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

html,
body {
    overflow: hidden;
    width: 100%;
    height: 100%;
    touch-action: none;
}


body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: 100vh;

    background-image: url('img/background.png');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 110% 100vh;
    position: relative;
    font-family: 'zabras', Arial, Helvetica, sans-serif;
}

h1 {
    position: absolute;
    top: calc(50% - 360px);
    left: 50%;
    transform: translateX(-50%);

    font-size: 60px;
    letter-spacing: 3px;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

#start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 720px;
    height: 100%;
    max-height: 480px;
}

#start-image {
    width: 100%;
    max-width: 720px;
    height: 100%;
    max-height: 480px;
}

#start-button {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    border: none;
    cursor: pointer;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    max-width: 720px;
    max-height: 480px;
    aspect-ratio: 3 / 2;
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.btn {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
    padding: 0;
}

.btn img {
    width: 50px;
    height: 50px;
}

.game-over-btn {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.bottomRight {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

#fullscreenButton {
    background-color: transparent;
    border: none;
}

#mobile-controls {
    position: absolute;
    bottom: 20px;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

#mobile-controls button {
    width: 50px;
    height: 50px;
    font-size: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.left,
.right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

#left-btn,
#right-btn,
#jump-btn,
#throw-btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.salsa-bottle1 {
    width: 40px;
}

#orientation-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 9999;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
}

.mobile-hint {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 5px;
    text-align: center;
    font-size: 25px;
    letter-spacing: 1.5px;
    z-index: 101;
}

.mobile-hint p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


.salsa-bottle2 {
    width: 30px;
}

.impressum-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}

.win-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 720px;
    height: 483px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    text-align: center;
    z-index: 10;
}

.winner-img {
    width: 60%;
    height: auto;
}

.w-h-auto {
    width: 80px;
    height: 80px;
}

.pos90 {
    top: 90%;
}

#menuButton {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.menu-container {
    position: absolute;
    top: 10px;
    right: 70px;
    width: auto;
    height: 50px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.hidden {
    display: none;
}

@media (min-width: 1200px) {
    #mobile-controls {
        display: none;
    }
}

@media (max-width: 720px) {
    #canvas-container {
        width: 100%;
        height: auto;
    }

    #start-screen {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 720px) {
    #orientation-popup {
        display: flex;
    }

    #canvas-container {
        display: none;
    }
}

@media (max-height: 480px) {
    #canvas-container {
        height: 100vh;
        width: auto;
    }
}