body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-image: url("img/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Zabars', Arial, Helvetica, sans-serif;
    overflow-y: hidden;
}


@font-face {
    font-family: 'Zabars';
    src: url('fonts/Zabars.ttf') format('truetype');
}

canvas {
    background-color: black;
    border: 5px solid rgba(18, 173, 31, 0.377);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    display: block;
    width: 100%;
    height: auto;
}

h1 {
    color: red;
    font-size: 128px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    margin: 50px;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 720px;
    height: auto;
}

.start {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 100px;
    margin: 0;
}

.start:hover {
    cursor: pointer;
    height: 105px;
}

.icons {
    display: flex;
    align-items: center;
    justify-content: end;
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    height: 60px;
    width: 200px;
}

.icons img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.icons img:hover {
    transform: scale(1.1);
}

.popup {
    display: none;
    position: absolute;
    height: 480px;
    width: 720px;
    z-index: 10;


    img {
        height: 100%;
        width: 100%;
    }
}

.popup h2 {
    margin-top: 0;
}

.game-over {
    position: absolute;
    height: 480px;
    width: 720px;

    img {
        height: 490px;
        width: 730px;
        position: absolute;
    }

    button {
        cursor: pointer;
        z-index: 99999;
        left: 45%;
        top: 47%;
        position: absolute;
        background: #531A82;
        border: 3px solid white;
        border-radius: 6px;
        box-shadow: rgba(0, 0, 0, 0.1) 1px 2px 4px;
        box-sizing: border-box;
        color: #FFFFFF;
        cursor: pointer;
        display: inline-block;
        font-size: 16px;
        font-weight: 800;
        line-height: 16px;
        min-height: 40px;
        text-align: center;
        text-rendering: geometricprecision;
        text-transform: none;
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        vertical-align: middle;
    }

}

.impressum {
    cursor: pointer;
    position: absolute;
    right: 0px;
    bottom: 0;
    padding: 10px;
}

.impressum-info {
    position: absolute;
    border: 3px solid black;
    background-color: wheat;
    padding: 20px;
    width: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    font-size: auto;
    font-family: 'Courier New', Courier, monospace;
}

.close {
    position: absolute;
    right: 10px;
    cursor: pointer;
}

.mobile {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    display: none;

    img {
        border: 1px solid black;
        border-radius: 50%;
        background-color: #F2CB89;
        margin: 5px;
        height: 20px;
        width: 20px;
        padding: 10px;
    }

    img:hover {
        cursor: pointer;
        transform: scale(1.1);
    }
}

#rotateMessage {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 24px;
    text-align: center;
    padding-top: 50%;
    z-index: 9999;
}

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

    h1 {
        display: none;
    }

    .mobile {
        display: flex;
        width: 100%;
    }

    .start {
        left: 10px;
    }

    .icons {
        top: 40px;
        align-items: start;

    }

    .canvas-container {
        width: 100%;
    }

    .impressum {
        display: none;
    }
}

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

    .mobile {
        display: flex;
        width: 100%;
    }

    .start {
        left: 10px;
    }

    .icons {
        top: 40px;
        align-items: start;

    }

    .impressum {
        display: none;
    }
}


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

    h1 {
        display: none;
    }

    .mobile {
        display: flex;
        width: 100%;
    }

    .start {
        left: 10px;
    }

    .icons {
        top: 40px;
        align-items: start;
    }

    .canvas-container {
        width: 100%;
        height: 100vh;
    }
}