:root {
    --body-color: black;
    --text-color: white;
    --buttons-radius: 8px;
    --button-top: rgb(214, 125, 0);
    --button-right: rgb(174, 0, 0);
    --button-left: green;
    --button-bottom: rgb(0, 108, 145);
}

::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--body-color);
    color: var(--text-color);
    font-family: "Bebas Neue", sans-serif;
    position: relative;
    user-select: none;
    height: 100vh;
    overflow: hidden;
}

.mitte {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    font-size: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.mitte a {
    display: none;
    color: rgb(156, 118, 124);
    text-decoration: underline;
}

button {
    font-size: 25px;
    padding: 5px 15px;
    border-radius: var(--buttons-radius);
    border: none;
    color: white;
    font-family: "Bebas Neue", sans-serif;
    transition: 0.5s;
}

button:hover {
    background-color: gray !important;
    cursor: pointer;
}

/* Oben */
.buttons-top {
    position: absolute;
    top: 20px;
    /* Abstand von oben */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 2;
}

.buttons-top button {
    background-color: var(--button-top);
}

/* Unten */
.buttons-bottom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 2;
}

.buttons-bottom button {
    background-color: var(--button-bottom);
}

/* Links */
.buttons-left {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.buttons-left button {
    background-color: var(--button-left);
}

/* Rechts */
.buttons-right {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.buttons-right button {
    background-color: var(--button-right);
}

.overlay {
    position: fixed;
    background-color: purple;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    font-weight: 600;
}

.overlay-inhalt {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

.overlay-header {
    font-size: 50px;
}

.overlay-antwort {
    font-size: 100px;
}

.overlay-untertitle {
    font-size: 20px;
    font-family: sans-serif;
    font-weight: 500;
    text-align: center;
    line-height: 30px;
}

.buttons-top button,
.buttons-bottom button,
.buttons-left button,
.buttons-right button {
    width: 6rem;
}

.overlay-untertitle a {
    text-decoration: underline;
    text-decoration-style: dotted;
    color: rgb(9, 78, 97);
}

.back-button {
    position: absolute;
    bottom: 14rem;
    font-family: sans-serif;
    background-color: rgb(156, 140, 121);
    font-size: 25px;
    font-weight: 600;
}

.switch-button {
    position: absolute;
    right: 0;
    top: 0;
    background-color: transparent;
    color: transparent;
}

.switch-button:hover {
    background-color: transparent !important;
}

main {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

@media only screen and (max-width: 780px) {
    body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .mitte {
        position: static;
        transform: none;
        font-size: 30px;
        text-align: center;
        margin-bottom: 20px;
        height: fit-content;
    }

    /* Buttons-Container untereinander stapeln */
    .buttons-top,
    .buttons-bottom,
    .buttons-left,
    .buttons-right {
        position: static;
        transform: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin: 10px 0;
    }

    /* Buttons touchfreundlicher machen */
    button {
        font-size: 18px;
        padding: 10px 20px;
    }

    .back-button {
        bottom: 12rem;
        font-size: 18px;
        padding: 10px 20px;
    }

    .overlay-inhalt {
        margin-bottom: 200px;
    }
}