body {
    font-family: "Roboto";
    overflow-x: hidden;
}

#game {
    opacity: 1;
    transition: opacity 1s, filter 0.3s;
    z-index: -1;
    display: block;
}

#gameHTML {
    z-index: 5;
    user-select: none;
    touch-action: none;
    pointer-events: none;
}

#renderCanvas {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#gameOverlayFilter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    user-select: none;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.74);
    z-index: 6;
}

#pauseMenu {
    display: none;
    z-index: 10;
}

#errorMessage {
    position: absolute;
    left: 50%;
    top: 15%;
    transform: translate(-50%, -50%);
    font-size: 2.3vw;
    color: red;
}

#fps {
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 3vmin;
    color: white;
    text-shadow: 0 0 10px black;
    z-index: 10;
}

.versionLine {
    position: absolute;
    bottom: 2%;
    right: 1%;
    font-size: 1.1vw;
    color: black;
    text-decoration: none;
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.74);
    z-index: 30;
}

#loadingOverlayIcon {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 20vh;
    height: 20vh;
    border-radius: 50%;
    border: 1.2vh solid white;
    border-color: transparent white transparent white;
    animation: loadingIcon 1.3s ease-in-out infinite;
    z-index: 31;
}

@keyframes loadingIcon {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(360deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(720deg);
    }
}

#loadingOverlayMessage {
    position: fixed;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4vh;
    color: white;
    text-shadow: 0 0 10px black;
    animation: loadingOverlayMessage 1.3s ease-in-out infinite;
    text-align: center;
    z-index: 31;
}

@keyframes loadingOverlayMessage {
    50% {
        top: 66%;
    }
}

#errorOverlayIcon {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18vh;
    color: white;
    text-shadow: 0 0 10px black;
    z-index: 31;
    display: none;
    animation: errorIcon 2.6s ease-in-out infinite;
}

@keyframes errorIcon {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

#gameDescription {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    opacity: 1;
    display: none;
    z-index: 9;
    background-color: #33334C;
    text-align: center;
    font-size: 7vmin;
}

.descriptionChooseContainerAnimation {
    animation: gameChooseContainerAnimation 0.5s ease-in-out;
}

@keyframes gameChooseContainerAnimation {
    0% {
        width: 100%;
        height: 100%;
        font-size: 7vmin;
    }
    40% {
        width: 90%;
        height: 90%;
        font-size: 6.5vmin;
    }
    100% {
        width: 100%;
        height: 100%;
        font-size: 7vmin;
    }
}

#descriptionChooseOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #33334C;
    z-index: 11;
    opacity: 1;
    transition: opacity 0.2s;
}

.descriptionQuestionMark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 13;
}

#gameDescription .icon {
    width: 9vmin;
}

#gameDescription #gameImage {
    position: absolute;
    top: 25%;
    right: 5%;
    width: 35%;
    border: 20px solid #404055;
    border-radius: 10px;
}

#gameDescription #gameTitle {
    position: absolute;
    display: block;
    left: 50%;
    top: 12%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 9vmin;
}

#gameDescription .descriptionContainer {
    position: absolute;
    left: 5%;
    top: 25%;
    font-size: 4vmin;
    text-align: left;
    width: 40%;
    background-color: #404055;
    color: white;
    padding: 20px;
    border-radius: 20px;
    color: rgb(206, 206, 206);
}

#gameDescription .descriptionControlsContainer {
    position: absolute;
    left: 5%;
    bottom: 5%;
    font-size: 4vmin;
    text-align: left;
    width: 40%;
    background-color: #404055;
    color: white;
    padding: 20px;
    border-radius: 20px;
    color: rgb(206, 206, 206);
}

#gameDescription .descriptionTitle {
    text-align: center;
    margin-bottom: 10px;
    color: white !important;
}

#gameDescription #readyButton {
    position: absolute;
    bottom: 5%;
    right: 25%;
    transform: translate(50%, 0);
    border: 5px solid rgb(37, 104, 37);
    outline: none;
    border-radius: 20px;
    font-size: 10vmin;
    padding: 20px;
    padding-left: 30px;
    padding-right: 30px;
    background-color: rgb(49, 255, 42);
    color: black;
    transition: border-color 0.3s, width 1s;
    cursor: pointer;
}

#gameDescription #readyButton:hover {
    border-color: rgb(49, 255, 42);
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    z-index: -1;
}

#pauseMenu .title {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 7vw;
    color: white;
    cursor: default;
    text-shadow: 0 0 10px black;
    z-index: 10;
}

#resumeGame {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, 55%);
    border: 2px solid black;
    border-radius: 20px;
    background-color: white;
    color: black;
    font-size: 9vh;
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    transition: all 0.3s;
    cursor: pointer;
    z-index: 10;
}

#resumeGame:hover {
    background-color: rgb(216, 216, 216);
}

#resumeGame:active {
    background-color: rgb(175, 175, 175);
}

#resumeGame:focus {
    outline: none;
}

.sliderContainer {
    position: absolute;
    left: 50%;
    top: 30%;
    width: 25%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
}

.volContainer {
    top: 30% !important;
}

.senContainer {
    top: 40% !important;
}

.sliderTitle {
    font-size: 25px;
    z-index: 10;
    text-shadow: 0 0 10px black !important;
}

.slider {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-color: #d3d3d3;
    border-radius: 10px;
    outline: none;
    z-index: 11;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}