:root {
    --background: #161616;
    --text: #fff;
    --text-sec: #525252;
    --positive: #42be65;
    --negative: #ee5396;

    --purple: #be95ff;
    --babyblue: #82cfff;
    --green: #3ddbd9;
    --red: #ff7eb6;
}

html {
    display: flex;
    justify-content: center;
    background-color: var(--background);

    height: 100%;
    width: 100%;
}


body {
    font-family: sans-serif;
    color: var(--text);
    overflow-x: hidden;

    margin: 0px;
    padding: 1em;
    height: 100%;
    width: 70ch;
}

@media screen and (max-width: 673px) {
    body {
        width: 100%;
    }
}

p {
    margin: 0px;
}

h2 {
    margin-bottom: 1em;
    margin-top: 2em;
}

h4 {
    margin: 0px;
    margin-bottom: 0.5em;
    margin-top: 1.25em;
    line-height: 1.25em;
}

.quiz {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
    height: 100vh;

    & p {
        margin: 0px;
        line-height: 2em;
    }
}

.explanation {
    min-height: 100vh;
    width: 100%;
    font-size: 0.9em;

    & section {
        margin-bottom: 3em;
        line-height: 2em;
    }
}

.frage {
    color: var(--text-sec);
    max-width: 30ch;
    text-align: center;
}

code,
pre {
    color: var(--text);
    font-size: 1.45em;
    margin: 0px;
}

.numberline {
    overflow-x: scroll;
}

input[type=text] {
    color: var(--text);
    font-variant-ligatures: none;
    font-family: monospace;
    background: none;
    border: none;
    outline: none;
    border: 1px solid var(--text);
    border-radius: 5px;
    padding: 5px;
}

::placeholder {
    color: var(--text-sec);
}

input[type=button] {
    color: var(--background);
    background-color: var(--text);
    border: none;
    outline: none;
    border-radius: 5px;
    padding: 5px;
    border: 1px solid var(--text);
}

#answer {
    width: 100%;
}

#showCorrectAnswer {
    color: var(--text);
    border: none;
    outline: none;
    padding: 5px;
    background: none;
    border-radius: 5px;
}

#showCorrectAnswer:hover {
    background: color-mix(in srgb, var(--text) 20%, transparent);
}

.correct {
    color: var(--positive);
    border-radius: 5px;
    padding: 5px;
    border: 1px solid var(--positive);
    width: fit-content;
}

.incorrect {
    color: var(--negative);
    border-radius: 5px;
    padding: 5px;
    border: 1px solid var(--negative);
    width: fit-content;
}


.keyword_purple { color: var(--purple) }
.keyword_green { color: var(--green) }
.keyword_babyblue { color: var(--babyblue) }
.keyword_red { color: var(--red) }
.highlighted { color: var(--text) }
.unimportant { color: var(--text-sec) }


table {
    text-align: left;
}

th, td {
    padding: 5px;
}

a {
    color: var(--babyblue);
}

.numberline {
    margin: 0px;
    border-spacing: 0px;
}

.numberline tr:nth-of-type(1) {
    border-bottom: 1px solid var(--text);

    & td {
        border-left: 1px solid var(--text);
        border-right: 1px solid var(--text);
    }
}

footer {
    display: grid;
    place-items: center;
    padding-bottom: 2em;
    padding-top: 2em;
}

.example {
    border-radius: 1em;
    border: 1px solid var(--text-sec);
    padding: 1em;
    margin-bottom: 1em;

    & .unimportant {
        margin-bottom: 1em;
    }

    & p code {
        background-color: color-mix(in srgb, var(--text-sec), black 30%);
        padding-left: 3px;
        padding-right: 3px;
        padding-top: 1px;
        padding-bottom: 1px;
        border-radius: 5px;
        border: 1px solid var(--text-sec);
        font-size: 0.8rem;
    }
}

.step {
    position: relative;
    border-radius: 1em;
    border: 1px solid var(--text-sec);
    padding: 1.25em;
    margin-bottom: 1em;
}

.step1::before {
    content: "1";

    font-family: monospace;
    font-size: 0.85em;
    background-color: var(--text-sec);
    padding: 0.35em;
    width: 3ch;
    height: 3ch;
    border-radius: 10em;
    line-height: 0px;

    display: grid;
    place-items: center;

    position: absolute;
    left: -5px;
    top: -5px;
}

.step2::before {
    content: "2";

    font-family: monospace;
    font-size: 0.85em;
    background-color: var(--text-sec);
    padding: 0.35em;
    width: 3ch;
    height: 3ch;
    border-radius: 10em;
    line-height: 0px;

    display: grid;
    place-items: center;

    position: absolute;
    left: -5px;
    top: -5px;
}

.step3::before {
    content: "3";

    font-family: monospace;
    font-size: 0.85em;
    background-color: var(--text-sec);
    padding: 0.35em;
    width: 3ch;
    height: 3ch;
    border-radius: 10em;
    line-height: 0px;

    display: grid;
    place-items: center;

    position: absolute;
    left: -5px;
    top: -5px;
}

.step4::before {
    content: "4";

    font-family: monospace;
    font-size: 0.85em;
    background-color: var(--text-sec);
    padding: 0.35em;
    width: 3ch;
    height: 3ch;
    border-radius: 10em;
    line-height: 0px;

    display: grid;
    place-items: center;

    position: absolute;
    left: -5px;
    top: -5px;
}

.step5::before {
    content: "5";

    font-family: monospace;
    font-size: 0.85em;
    background-color: var(--text-sec);
    padding: 0.35em;
    width: 3ch;
    height: 3ch;
    border-radius: 10em;
    line-height: 0px;

    display: grid;
    place-items: center;

    position: absolute;
    left: -5px;
    top: -5px;
}
