body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #ddd;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
}

canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-size: 100%;
    background-image: url("../assets/images/game_bg.png");
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    border-radius: 0px;
    z-index: 5;
}

.theme-header {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 3000;
}

#themeToggleButton, #settingsToggleButton {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 0px;
}

#themeToggleIcon, #settingsToggleIcon {
    width: 32px;
    height: 32px;
}

body.light-mode {
    background: no-repeat url("../assets/images/interface/light_mode_bg.png");
    background-size: 100% 100%;
}

body.dark-mode {
    background: no-repeat url("../assets/images/interface/dark_mode_bg.png");
    background-size: 100% 100%;
}

footer.dark-mode {
    background-color: rgba(255, 255, 255, 0.1);
    color: #eee;
}

footer.light-mode {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.tiny5-regular {
    font-family: "Tiny5", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.dragon {
    position: absolute;
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease-in-out;
}

.game-screen {
    width: 864px;
    height: 486px;
    position: fixed;
    border: none;
    background-image: url("../assets/images/console_bg.png");
    background-repeat: no-repeat;
    z-index: 10;
}

.controls-container {
    position: relative;
    z-index: 1;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 0;
    font-family: "Nunito Sans", sans-serif;
    z-index: 1000;
}

/* Urządzenia mobilne */
@media (max-width: 900px) and (orientation: landscape) {
    body {
        overflow: hidden;
        touch-action: none;
    }
    
    .game-screen {
        width: 100%;
        height: 100%;
        transform: scale(0.8);
        transform-origin: center;
        position: fixed;
        top: 0;
        left: 0;
    }
    
    canvas {
        width: 392px;
        height: 244px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .control-button-q {
        top: 60%;
        left: 10%;
    }
    
    .control-button-a {
        top: 75%;
        left: 10%;
    }
    
    .control-button-e {
        top: 60%;
        left: 80%;
    }
    
    .control-button-d {
        top: 75%;
        left: 80%;
    }
    
    .control-button-pause {
        top: 15%;
        left: 70%;
    }
    
    .control-button-resume {
        top: 15%;
        left: 55%;
    }
    
    .control-button-reset {
        top: 15%;
        left: 40%;
    }
    
    .green-light {
        top: 5%;
        left: 85%;
    }
    
    .red-light {
        top: 10%;
        left: 85%;
    }
    
    #dragonPauseContainer {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}
