/* 
* Watermelon Drop - Fullscreen Stylesheet
* This file contains styles for the fullscreen game functionality
*/

/* Exit fullscreen button */
.exit-fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    font-size: 18px;
    transition: background-color 0.2s;
}

.exit-fullscreen-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Fullscreen styles */
:fullscreen .game-container,
:-webkit-full-screen .game-container,
:-moz-full-screen .game-container,
:-ms-fullscreen .game-container {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Show exit button in fullscreen mode */
:fullscreen .exit-fullscreen-btn,
:-webkit-full-screen .exit-fullscreen-btn,
:-moz-full-screen .exit-fullscreen-btn,
:-ms-fullscreen .exit-fullscreen-btn {
    display: flex !important;
}

/* Fullscreen iframe styles */
:fullscreen .game-iframe,
:-webkit-full-screen .game-iframe,
:-moz-full-screen .game-iframe,
:-ms-fullscreen .game-iframe {
    /* Maintain aspect ratio while maximizing size */
    position: relative !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    margin: auto !important;
    
    /* Enable hardware acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    
    /* Fix click issues */
    pointer-events: auto !important;
    z-index: 1 !important;
}

/* Responsive aspect ratio in fullscreen */
@media (max-width: 768px) {
    :fullscreen .game-iframe,
    :-webkit-full-screen .game-iframe,
    :-moz-full-screen .game-iframe,
    :-ms-fullscreen .game-iframe {
        aspect-ratio: 9/16 !important;
    }
}

@media (min-width: 769px) {
    :fullscreen .game-iframe,
    :-webkit-full-screen .game-iframe,
    :-moz-full-screen .game-iframe,
    :-ms-fullscreen .game-iframe {
        aspect-ratio: 4/3 !important;
    }
}