* {
    box-sizing: border-box;
    font-family: 'Open Sans', Verdana, Arial, sans-serif;
    padding: 0;
    margin: 0;
    user-select: none; 
}

section {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 10%;
}

#question_text {
    font-size: 2rem;
    text-align: center;
}

#question_header {
    flex-direction: column;
    align-items: center;
}

    #question_header > div {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    }

#question_category {
    font-size: 0.8rem;
    font-style: italic;
}

#question_header {
    height: 20%;
    width: 50%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#question_answers {
    height: 70%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    user-select: none;
    position: relative;
    align-items: center;
}

.question-answer {
    width: 45%;
    height: 45%;
    border-radius: 4px;
    box-shadow: 2px 6px 12px #0a0e0f;
    padding: 16px 32px;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background: #212b30;
}

#question_answers.selectable .question-answer {
    cursor: pointer;
}

    #question_answers.selectable .question-answer:not(.selected):not(.correct):not(.wrong):hover {
        background: #536c79;
    }

    .question-answer.selected,
    #question_answers.selectable .question-answer.selected:hover {
        color: black;
        background: rgb(255, 160, 0);
        box-shadow: 2px 6px 12px #1a1000;
    }

.question-answer.correct {
    color: black;
    background: repeating-linear-gradient(135deg, #2cce31, #2cce31 10px, #25b12a 10px, #25b12a 20px);
    box-shadow: 2px 6px 12px #041505;
}

    .question-answer.correct.selected {
        background: #2cce31;
    }

.question-answer.wrong {
    color: black;
    background: rgb(230, 74, 25);
    box-shadow: 2px 6px 12px #170703;
}

#question_timer {
    width: 100%;
    height: 36px;
    line-height: 36px;
    background: linear-gradient(90deg, rgb(56, 142, 60) 0%, rgb(76, 175, 80) 50%, rgb(56, 142, 60) 100%);
    border-radius: 4px;
    color: white;
    text-align: center;
    font-size: 1.5rem;
    transition: width 1s linear, background 1s linear, font-size 1s cubic-bezier(0, 0, 1,-0.14);
    text-shadow: 1px 1px 1px black, -1px 1px 1px black, 1px -1px 1px black, -1px -1px 1px black, 0 0 4px black, 0 0 4px black, 0 0 4px black, 0 0 4px black;
    overflow: hidden;
    position: fixed;
    bottom: 2px;
}

    #question_timer.animate {
        animation: timer 45s linear;
    }

@keyframes timer {
    0% {
        width: 100%;
        background: rgb(56, 142, 60);
    }

    10% {
        background: rgb(104, 159, 56);
    }

    25% {
        background: rgb(175, 180, 43);
    }

    50% {
        background: rgb(251, 192, 45);
    }

    65% {
        background: rgb(255, 160, 35);
    }

    75% {
        background: rgb(245, 124, 30);
    }

    85% {
        background: rgb(230, 74, 25);
    }

    95% {
        background: rgb(211, 47, 47);
    }

    100% {
        width: 0%;
        background: rgb(211, 0, 0);
    }
}

#title {
    font-size: 3rem;
}

#subtitle {
    font-style: italic;
    font-size: 1.2rem;
}

#category_selection {
    display: block;
    font-size: 1rem;
    color: rgb(69, 90, 100);
    min-width: 250px;
    max-width: 666px;
    width: 33%;
    max-height: 75vh;
    overflow: auto;
    margin-top: 48px;
}

    #category_selection * {
        display: block;
    }

    #category_selection nav > a {
        margin-left: 32px;
    }

    #category_selection a {
        text-decoration: underline;
        cursor: pointer;
        background: #212b30;
        color: #d2dcdf;
        border-radius: 4px;
        margin: 6px 0;
        padding: 8px 16px;
        box-shadow: 2px 6px 12px #0a0e0f;
    }

        #category_selection a:hover {
            background: #536c79;
        }

    #category_selection > * {
        margin-bottom: 24px !important;
    }

    #category_selection span {
        padding: 8px;
        color: #d2dcdf;
    }


body {
    background: #111618;
    color: #ccc;
}

.hidden {
    display: none;
}

.invisible {
    visibility: hidden;
}

#section_score {
    font-size: 3rem;
}

#restart {
    font-size: 0.8rem;
    text-decoration: underline;
    color: #7693ab;
    cursor: pointer;
}


html, body {
    height: 100%;
}

#accept_answers {
    width: 8%;
    height: 8%;
    background-color: rgb(16, 75, 134);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    box-shadow: 2px 6px 12px #0a0e0f;
    text-align: center;
    padding: 8px;
}

#question_answers.selectable > #accept_answers {
    cursor: pointer;
}

    #question_answers.selectable > #accept_answers:hover {
        background-color: rgb(4, 87, 169);
    }

#accept_answers > img {
    filter: invert(100%);
    height: 100%;
    width: auto;
}

#question_text code > line:before {
    display: none;
}

#question_text code, #question_text code > line {
    display: inline-block;
    font-size: 1.35rem;
}
