body {
    margin: 0;
    padding: 0;
    font-family: 'Press Start 2P', cursive;
    overflow: hidden;
    background-color: #f1f1f1;
    background-image: url("./img/img-MQeiwOkoz1xVbJifaaixq.jpeg");
    background-size: cover;
    backdrop-filter: blur(1px);
    text-shadow: 0px 0px 16px rgb(252, 252, 252);
    overflow: hidden;
    background-attachment: fixed;
    scrollbar-width: 0;
}

#content {
    font-family: 'Press Start 2P', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: #f1f1f1;
    flex-direction: column;
    background-image: url("./img/img-MQeiwOkoz1xVbJifaaixq.jpeg");
    background-size: cover;
    backdrop-filter: blur(1px);
    text-shadow: 0px 0px 16px rgb(252, 252, 252);
    overflow: hidden;
    background-attachment: fixed;
    scrollbar-width: 0;
    margin: 0;

}

#game {
    width: 720px;
    height: 480px;
    background-size: cover;
    background-color: black;
    display: none;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2),
        10px 10px 10px rgba(0, 0, 0, 0.4),
        15px 15px 15px rgba(0, 0, 0, 0.6);
    border: 1px solid black;
}

.lineUp {
    position: fixed;
    top: 5%;
    color: #5c1405;
    font-size: 5rem;
    font-weight: bold;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    text-shadow: 0px 0px 16px rgb(252, 252, 252);
}

.mute {
    position: fixed;
    top: 25px;
    right: 60px;
    width: 30px;
    height: 30px;
    background-image: url('./img/FXoff.png');
    background-size: cover;
    background-color: transparent;
    cursor: pointer;
    z-index: 1000;
}

#soundIcon {
    position: fixed;
    top: 25px;
    right: 105px;
    width: 30px;
    height: 30px;
    background-image: url('./img/musicOn.png');
    background-size: cover;
    background-color: transparent;
    cursor: pointer;
    z-index: 1000;
}

#startGame {
    border: 1px solid black;
    font-size: 5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    width: 720px;
    height: 480px;
    background-color: black;
    background-image: url("./img/9_intro_outro_screens/start/startscreen_1.png");
    background-size: cover;
    background-position: center;
}

h2 {
    color: #5c1405;
    font-size: 3rem;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    text-shadow: 0px 0px 16px rgb(252, 252, 252);
    transition: 0.2s ease-in-out;
    cursor: pointer;
    margin-top: 0;
}

h2:hover {
    font-size: 4rem;
    transition: 0.2s ease-in-out;
    transform: translateY(-25%);
}

#rotateImage {
    display: none;
}

.description {
    position: fixed;
    bottom: 9%;
    margin-left: 50px;
    margin-right: 50px;
    color: #FFCE16;
    font-size: 1.8rem;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    text-shadow: 5px 0px 5px rgba(0, 0, 0, 0.2),
        10px 0px 10px rgba(0, 0, 0, 0.4),
        15px 0px 15px rgba(0, 0, 0, 0.8);
}

#gameOverImage {
    background-image:
        url('./img/9_intro_outro_screens/game_over/game_over!.png'),
        url('./img/5_background/layers/1_first_layer/1.png'),
        url('./img/5_background/layers/2_second_layer/1.png'),
        url('./img/5_background/layers/3_third_layer/1.png'),
        url('./img/5_background/layers/air.png');
    width: 720px;
    height: 480px;
    background-size: cover;
    background-position: center;
    display: none;
    justify-content:space-around;
    align-items: center;
}

#showWinImage {
    background-image:
        url('./img/9_intro_outro_screens/GameComplete.png');
    width: 720px;
    height: 480px;
    background-size: cover;
    background-position: center;
    display: none;
    justify-content:center;
    align-items: center;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 40px;
    color: white;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 10px 0;
}

.refresh {
    position: fixed;
    top: 25px;
    right: 15px;
    background-image: url('./img/refresh.png');
    width: 30px;
    height: 30px;
    background-color: transparent;
    background-size: cover;
    font-size: 3rem;
    cursor: pointer;
    z-index: 1000;
}

.changeResolution {
    position: fixed;
    top: 25px;
    left: 25px;
    background-image: url('./img/bigger.png');
    width: 30px;
    height: 30px;
    background-color: transparent;
    background-size: cover;
    font-size: 3rem;
    cursor: pointer;
    z-index: 1000;
}

#moveLeft {
    display: none;
    position: fixed;
    bottom: 40px;
    left: 10px;
    background-image: url('./img/left.png');
    width: 50px;
    height: 50px;
    background-color: transparent;
    background-size: cover;
    font-size: 3rem;
    cursor: pointer;
    border: none;
    touch-action: none;
}

#moveRight {
    display: none;
    position: fixed;
    bottom: 100px;
    left: 10px;
    background-image: url('./img/left.png');
    rotate: 180deg;
    width: 50px;
    height: 50px;
    background-color: transparent;
    background-size: cover;
    font-size: 3rem;
    cursor: pointer;
    border: none;
    touch-action: none;
}

#jump {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 5px;
    background-image: url('./img/left.png');
    rotate: 90deg;
    width: 50px;
    height: 50px;
    background-color: transparent;
    background-size: cover;
    font-size: 3rem;
    cursor: pointer;
    border: none;
    touch-action: none;
}

#throw {
    display: none;
    position: fixed;
    bottom: 100px;
    right: -16px;
    border-radius: 50%;
    background-image: url('./img/6_salsa_bottle/salsa_bottle.png');
    rotate: 45deg;
    width: 80px;
    height: 80px;
    background-color: transparent;
    background-size: cover;
    font-size: 3rem;
    cursor: pointer;
    border: none;
    touch-action: none;
}

#impressumButton {
    position: fixed;
    bottom: 15px;
    left: 0px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    background-color: transparent;
    color: white;
    font-family: 'Press Start 2P', cursive;
}

.impressum {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    z-index: 1000;
    overflow: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#showLevel {
    display: none;
    position: fixed;
    top: 37%;
    right: 50% - 50px;
    font-size: 3rem;
    border: none;
    font-weight: bold;
    background-color: transparent;
    color: rgb(238, 72, 7);
    font-family: 'Press Start 2P', cursive;
    animation: fadeInOut 2s forwards;
}

.gameOver{
    display: none;
    position: fixed;
    width: 720px;
    height: auto; 
    justify-content:space;
    align-items:self-end;
    flex-direction: column;
    right: 50% - 50px;
    font-size: 3rem;
    border: none;
    font-weight: bold;
    background-color: transparent;
    color: rgb(238, 72, 7);
    font-family: 'Press Start 2P', cursive;
}

#restart{
    border : none;
    background-color: transparent;
    font-size: 2rem;
    font-family: 'Press Start 2P', cursive;
    color: rgb(238, 72, 7);
    cursor: pointer;
}

#restart:hover{
    font-size: 3rem;
    transition: 0.2s ease-in-out;
    transform: translateY(-15%);
}

#backToStart{
    border : none;
    background-color: transparent;
    font-size: 2rem;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    color: rgb(238, 72, 7);
}

#backToStart:hover{
    font-size: 3rem;
    transition: 0.2s ease-in-out;
    transform: translateY(-15%);
}

#backToStartAfterWin{
    border : none;
    background-color: transparent;
    font-size: 2rem;
    font-family: 'Press Start 2P', cursive;
    color: rgb(238, 72, 7);
    cursor: pointer 
}

#backToStartAfterWin:hover{
    font-size: 3rem;
    transition: 0.2s ease-in-out;
    transform: translateY(+15%);
}

.impressum-content {
    margin: 20px;
}

.impressum .close {
    position: fixed;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}

@media (max-height: 480px) {
    #game {
        height: 100%;
        width: auto
    }

    #startGame {
        height: 100%;
    }

    body {
        backdrop-filter: none;
    }

    #gameOverImage {
        width: 100vw;
        height: 100vh;
    }

    #showWinImage {
        height: 100%;
    }
}

@media (max-width: 666px) {
    #game {
        display: none;
        scale: 0.5;
    }

    .changeResolution {
        display: none;
    }

    #startGame {
        display: none;
    }

    .footer {
        display: none;
    }

    .description {
        display: none;
    }

    #rotateImage {
        display: block;
        background-image: url('./img/rotate.png');
        width: 300px;
        height: 300px;
        position: fixed;
        top: 50%;
        left: 45%;
        transform: translate(-50%, -50%) rotate(0deg);
        animation: rotateAnimation 3s ease-in-out infinite;
        mix-blend-mode: screen;
    }

    #moveLeft {
        display: none;
    }

    #moveRight {
        display: none;
    }

    #jump {
        display: none;
    }

    #throw {
        display: none;
    }


}

@media (max-height: 750px) {
    .description {
        display: none;
    }

    .lineUp {
        display: none;
    }
}

@media (max-height: 590px) {
    .footer {
        display: none;
    }
}

@media only screen and (max-width: 719x) {
    #moveLeft {
        display: block;
    }

    #moveRight {
        display: block;
    }

    #jump {
        display: block;
    }

    #throw {
        display: block;
    }

    #game {
        width: 100vw;
    }
}


@media only screen and (max-height: 480px) {
    #moveLeft {
        display: block;
    }

    #moveRight {
        display: block;
    }

    #jump {
        display: block;
    }

    #throw {
        display: block;
    }

    .changeResolution {
        display: none;
    }
}

@keyframes rotateAnimation {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    100% {
        transform: translate(-50, -50%) rotate(0deg);
    }

}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        scale: 0.5;
        color: rgb(238, 7, 7);
    }

    10% {
        opacity: 1;
        scale: 1;
        color: rgb(255, 255, 255);
    }

    90% {
        opacity: 1;
        scale: 1;
        color: rgb(0, 0, 0);
    }

    100% {
        opacity: 0;
        scale: 3.5;
        color: rgb(255, 255, 255);
    }
}