html, body {
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

h1 {
    font-size: 1.2rem;
}

body {
    background: rgb(255, 255, 255);
    font-family: 'Georgia', Times, serif;
}

main {
    height: 100%;
    overflow: auto;
    display: flex;
    flex-flow: column;
    align-items: center;
}

form {
    display: flex;
    flex-flow: column;
    padding: 20px 20px;
}

@media (min-width: 600px) {
    form {
        margin-top: 40px;
        margin-bottom: 40px;
        border-radius: 5px;
        max-width: 550px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
}

section#test, section#timeIsUp, section#thanks {
    display: flex;
    flex-flow: column;
}

section#timeIsUp {
    display: none;
}

section#thanks {
    display: none;
}

section.question {
    display: flex;
    flex-flow: column;
    margin-top: 40px;
}

section.question > label {
    font-size: 1.1rem;
    font-weight: bold;

    &::before {

    }
}

input[type="text"] {
    margin-top: 10px;
    height: 40px;
    border: none;
    border-bottom: 1px solid rgb(31, 132, 255);
    outline: none;
    font-size: 0.9rem;
}

#submit {
    border-radius: 5px;
    border: none;
    background: rgb(31, 132, 255);
    color: white;
    outline: none;
    align-self: center;
    margin-top: 40px;
    font-size: inherit;
    padding: 10px 40px;
    cursor: pointer;
}

.radio-answers {
    margin-top: 10px;
}

.radio-answer {
    display: flex;
    align-items: center;

    input {
        margin: 0;

        &:checked + label {
            color: rgb(31, 132, 255);
            &[icon] {
                border: 2px solid rgb(31, 132, 255);
            }
        }
    }

    label {
        flex: 1 0 auto;
        margin-left: 8px;
        user-select: none;
        cursor: pointer;
        width: 100%;

        &[icon] {
            flex: 0 0 auto;
            font-size: 50px;
            width: 100px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: blue;
            user-select: none;
            line-height: 1;
            border: 2px solid rgba(255, 186, 121, 0.579);
            border-radius: 5px;
            background: #2A7B9B;
            background: linear-gradient(135deg, rgba(42, 123, 155, 0.10) 0%, rgba(232, 137, 224, 0.10) 66%, rgba(137, 232, 232, 0.10) 88%);
            height: 100px;
            font-family: "Noto Color Emoji", sans-serif;

            @supports (-webkit-touch-callout: none) {
                font-family: -apple-system, sans-serif;
            }
        }
    }

    &:not(:first-child) {
        margin-top: 5px;
    }
}

#timer {
    top: 20px;
    position: sticky;
    display: flex;
    justify-content: center;
    padding: 20px;
    width: 200px;
    border-radius: 5px;
    margin-top: 20px;
    color: rgb(31, 132, 255);
    font-size: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid #0004;
    background: #fffa;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-weight: bolder;
    font-family: "Orbitron", monospace;
    align-self: center;
    user-select: none;
    transform: translateY(0);
}

#copyright {
    margin-top: 40px;
    font-size: 0.7rem;
    align-self: center;
}

code {
    border-radius: 5px;
    border: 2px solid #0004;
}
