:root {
    --background: #FFFFFF;
    --color: #000000;
}

a {
    text-decoration: none;
}

.dark {
    --background: #000000;
    --color: #FFFFFF;
}

body {
    margin: 0px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    background-color: var(--background);
    font-family: sans-serif;
}

canvas {
    position: absolute;
}

#menu,
#levelMenu,
#cookiebanner {
    position: fixed;
    height: 100vh;
    width: 100vw;
    text-align: center;
    font-size: 4vh;
    z-index: 1;
    background-color: var(--background);
}

#message {
    position: absolute;
    width: 100vw;
    top: 30vh;
    font-size: 4vh;
    color: var(--color);
}

#start,
#endless,
#cookie,
#next {
    top: 80vh;
}

#level,
#aboutCookies,
#skip {
    top: 70vh;
}

#tutorial {
    top: 55vh;
}

#installPWA {
    top: 35vh;
}

#about {
    top: 25vh;
}

#backButton {
    top: 65vh;
}

.highlight {
    color: var(--background) !important;
    background-color: var(--color);
}

#darkMode {
    top: 45vh;
    background-image: url(/light.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 7.5vh;
    left: calc(50vw - 3.75vh);
    border-radius: 50%;
}

#darkMode.darkMode {
    background-image: url(/dark.svg);
    filter: invert(1);
    border: 0.5vh solid var(--background);
    color: var(--background);
}

#darkMode.auto {
    background-image: url(/auto.svg);
}


.button {
    position: absolute;
    width: 30vh;
    left: calc(50vw - 15vh);
    height: 7.5vh;
    line-height: 7.5vh;
    border: 0.5vh solid var(--color);
    border-radius: 3.75vh;
    cursor: pointer;
    color: var(--color);
    text-align: center;
    font-size: 4vh;
}

#cookiebanner {
    z-index: 1000;
}

#rotateP {
    z-index: 100;
    position: fixed;
    height: 100vh;
    width: 100vw;
    background-color: var(--background);
}

#cookiemessage {
    position: absolute;
    width: 70vw;
    left: 15vw;
    top: 20vh;
    font-size: 4vh;
    color: var(--color);
}

.dark > div > #rotatephone,
.dark > div > img {
    filter: invert(1);
}

#rotatephone {
    height: 30vh;
    width: 30vh;
    position: fixed;
    left: calc(50vw - 15vh);
    top: 35vh;
    background-image: url(/phone.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    animation: rot 5s infinite;
}

#title {
    top: 5vh;
    position: absolute;
    width: 100%;
    line-height: 7.5vh;
    color: var(--color);
}

#title > h1 {
    font-size: 6vh;
}

#levelname {
    font-size: 4vh;
}

#levelBox {
    position: fixed;
    top: 20vh;
    height: 55vh;
    width: 100%;
    overflow-y: scroll;
}

.level {
    position: relative;
    margin-bottom: 2vh;
    width: 80vw;
    left: 10vw;
}

.textBox {
    position: fixed;
    top: 0vh;
    height: 70vh;
    width: 100%;
    overflow-y: scroll;
    color: var(--color);
}

#tutorialSlots {
    position: fixed;
    height: 50vh;
    width: 100vw;
    top: 15vh;
}

.tutorialSlot {
    height: 100%;
    width: 100%;
    color: var(--color);
    display: none;
}

.tutorialGif{
    left: 0vw;
    width: 100vw;
    max-width: 40vh;
}

.tutorialDescription{
    width: 90%;
    margin-left: 5%;
}

@keyframes rot {
    0% {
        transform: rotate(-45deg);
    }

    5% {
        transform: rotate(-45deg);
    }

    95% {
        transform: rotate(-135deg);
    }

    100% {
        transform: rotate(-135deg);
    }
}
