body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(./img/desert-5112222_1920.png);
    margin: 0;
    background-size: cover;
    background-attachment: fixed; 
}

canvas {
    background-color: black;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
}

h1 {
    font-size: 35px;
    font-family: fantasy;
    font-weight: bold;
}

@media only screen and (max-width: 720px) {
    canvas {
        width: 100vw;
        height: 100vh;
    }

    h1 {
        display: none;
    }
}

@media only screen and (max-height: 480px) {
    h1 {
        display: none;
    }
}

.arrow-bar.d-none {
    display: none !important;
}

.arrow-bar.d-block {
    display: flex !important;
}

.arrow {
    width: 40px;
    height: 40px;
    cursor: pointer;
    background-color: rgb(245, 210, 22);
    border-radius: 17px;
    transition: transform 0.3s ease;
}

.arrowRight{
    width: 40px;
    height: 40px;
    cursor: pointer;
    background-color: rgb(245, 210, 22);
    border-radius: 17px;
    transition: transform 0.3s ease; 
    transform: rotate(180deg);
}

.arrow:hover {
    transform: scale(1.1);
}

.arrow:hover {
    transform: scale(1.1);
}

@media only screen and (max-width: 1024px) {
    .arrow-bar {
        position: absolute;
        bottom: 10px; 
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        z-index: 1000;
    }

    .arrow {
        width: 40px;
        height: 40px;
    }
}

@media only screen and (max-width: 400px) {
    .arrow {
        width: 30px;
        height: 30px;
    }

    .arrowbar {
        bottom: 10px;
    }
}

@media only screen and (max-height: 480px) {
    canvas {
        height: 100vh;
    }
}

.canvasDiv {
    position: relative;
    width: 100%;
    max-width: 720px;
}

.buttonContainer {
    position: absolute;
    bottom: 14px;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.impressumButton {
    font-size: 20px;
    padding: 10px;
    height: 50px;
    border-radius: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    background-color: orange;
    transition: transform 0.3s ease;
}

.impressumButton:hover {
    transform: scale(1.1);
}

.startButton,
.gameInfoButton,
.playAgainButton {
    font-size: 20px;
    padding: 10px;
    height: 50px;
    width: 30%;
    border-radius: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    background-color: orange;
    transition: transform 0.3s ease;
}

.startButton:hover,
.gameInfoButton:hover,
.playAgainButton:hover {
    transform: scale(1.1);
}

.muteButton {
    width: 40px;
    height: 40px;
    position: absolute;
    cursor: pointer;
    background-color: rgb(255, 89, 0);
    border-radius: 10px;
    right: 60px;
    top: 10px;
    transition: transform 0.3s ease;
}

.muteButton:hover {
    transform: scale(1.1);
}

.speakerButton {
    width: 40px;
    height: 40px;
    position: absolute;
    cursor: pointer;
    background-color: rgb(255, 89, 0);
    border-radius: 10px;
    right: 60px;
    top: 10px;
    transition: transform 0.3s ease;
    display: none;
}

.fullScreen,
.exitFullScreenButton {
    width: 40px;
    height: 40px;
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    background-color: rgb(255, 89, 0);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.fullScreen:hover,
.exitFullScreenButton:hover {
    transform: scale(1.1);
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.gameInfo {
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    text-align: left;
    z-index: 1001;
    overflow: auto;
}

.closeButton {
    cursor: pointer;
}

.loseImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.winImage {
    position: absolute;
    top: 15%;
    left: 5%;
    width: 90%;
    height: 50%;
    z-index: 2;
}

.playAgainButton {
    position: absolute;
    bottom: 20px;
    left: 35%;
    z-index: 3;
}

.arrow-bar {
    display: flex;
    justify-content: space-between;
    width: 90%;
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.rotate-message {
    display: none; /* Standardmäßig ausgeblendet */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 24px;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

@media only screen and (min-width: 720px) and (orientation: portrait) {
    .rotate-message {
        display: flex; /* Zeige die Nachricht an */
    }

    .canvasDiv {
        max-width: none !important;
    }
}

@media only screen and (max-width: 1024px) {
    .canvasDiv {
        max-width: none;
    }
}

.background-color-White {
    background-color: rgba(0, 0, 0, 0.5); /* Adjust the color and opacity as needed */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999; /* Ensure it is on top of other elements */
}