*{
    scroll-behavior: smooth;
}

body{
    min-height: 100% !important;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    width: 90%;
    justify-content: center;
    padding: 50px 0;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--marginals);
    width: 95%;
    max-width: 900px;
    border-radius: 10px;
    padding: 20px;
}

a {
    color: var(--correct);
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

section .title {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;

    img {
        height: 40px;
    }
}

section .text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    display: none;
    width: 95%;
}

h3 {
    color: var(--incorrect);
    margin-bottom: 5px;
}

ul {
    margin: 5px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    border: 2px dashed var(--text);
    border-radius: 10px;
    padding: 20px;
}

li {
    margin-left: 15px;
}

strong {
    color: white;
    font: var(--font-main);
    font-weight: 900;
}

.expand-section {
    margin-top: 20px;
    font-size: 50px !important;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
    transition: all 300ms ease-in-out;
}

.expand-section:hover {
    color: gray;
}

section.expanded .text {
    display: flex;
}

section.expanded .expand-section {
    transform: rotate(180deg);
    color: gray;
}

section.expanded .expand-section:hover {
    color: var(--text);
}

.currentVersion,.currentPolicy,.seePrivacy {
    background-color: var(--marginals-secondary);
    margin-top: 10px;
    border-radius: 10px;
    width: 90%;
    padding: 10px;
    font-size: 2em;
    box-sizing: border-box;
}

.seeChangelog {
    color: var(--correct);
    margin-top: 10px;
}

.seePrivacy{
    border-radius: 0 0 10px 10px;
    margin-top: 0;
    border-top: 2px solid #646464;
    color: var(--correct);
}

.contact-select {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact-select button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    background-color: transparent;
    border: 2px solid;
    color: var(--text);
    font-size: 1.2em;
    margin: 0;
    font-family: var(--font-main);
    font-weight: 600;
    transition: 200ms ease-in-out;
}

.contact-select button:hover {
    background-color: var(--button-hover);
    border-color: var(--correct);
}

form {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    padding: 0 20px;
    border: 2px solid var(--text);
    border-radius: 15px;
    overflow: hidden;
    transition: all 300ms ease-in-out;
}

form .main-select {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

form .form-switch {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 80%;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

form .contact-select button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 50px;
    height: 50px;
    margin-bottom: 0;
    background-color: transparent;
    border: 2px solid;
    color: var(--text);
    font-size: 1.2em;
    font-family: var(--font-main);
    font-weight: 600;
    transition: 200ms ease-in-out;
}

form .contact-select .selected {
    cursor: not-allowed;
    background-color: var(--button-hover);
    border-color: var(--correct);
}

label {
    margin-bottom: 10px;
    margin-top: 30px;
}

input {
    color: var(--text);
    font-family: var(--font-main);
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    width: 100%;
    max-width: 400px;
    font-size: 2em;
    padding: 3px 6px;
    text-align: left;
    border-radius: 5px 5px 0 0;
    margin: 10px 0 8px 0;
    background-color: var(--marginals-secondary);
    outline: none;
    line-height: 1;
    box-sizing: border-box;
    vertical-align: top;
    border: 2px solid var(--text);
}

.input-type {
    cursor: not-allowed;
    color: silver;
}

.input-type:focus {
    border-color: var(--text) !important;
}

textarea {
    color: var(--text);
    font-family: var(--font-main);
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    width: 100%;
    width: 400px;
    min-height: 200px;
    max-width: 95%;
    resize: vertical;
    font-size: 1em;
    padding: 6px;
    text-align: left;
    border-radius: 5px;
    margin: 10px 0 8px 0;
    background-color: var(--marginals-secondary);
    line-height: 1;
    box-sizing: border-box;
    vertical-align: top;
    border: 2px solid var(--text);
}

textarea::placeholder {
    line-height: 1.5;
    font-weight: 300;
}

textarea:focus,
input:focus {
    outline: none;
    border-color: var(--incorrect);
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-container .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text);
    border-radius: 4px;
    background-color: transparent;
    display: inline-block;
    position: relative;
    transition: all 200ms ease-in-out;
}

.checkbox-container input:checked+.checkmark {
    background-color: var(--incorrect);
    border-color: var(--incorrect);
}

.checkbox-container .checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(1.5px, -1px);
    display: none;
}

.checkbox-container input:checked+.checkmark::after {
    display: block;
}

form button[type='submit'],
button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: transparent;
    border: 2px solid;
    color: var(--text);
    font-size: 1.2em;
    font-family: var(--font-main);
    font-weight: 600;
    transition: 200ms ease-in-out;
    margin-top: 30px;
}

form button:hover {
    background-color: var(--button-hover);
    border-color: var(--correct);
}

.popup button {
    margin-bottom: 0;
}

.popup button:hover {
    background-color: black;
}

@media only screen and (max-width: 768px) {

    main {
        gap: 10px;
    }

    p,
    li {
        font-size: 0.80em;
    }

    .banner{
        font-size: 1em !important;
    }
    #cancel-btn{
        font-size: 1.35em !important;
    }

    .main-select {
        grid-template-columns: 1fr;
        font-size: 0.7em;
    }
}