/* Custom CSS for SonoTap */
/* Tailwind CSS is now loaded via /js/tailwindcss.js */
/* Add your custom styles below */

/* Fullscreen button auto-hide animation */
#fullscreen-btn {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.4;
}

#fullscreen-btn:hover {
    opacity: 0.9;
}

#fullscreen-btn.hidden-fade {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* Game container in fullscreen mode */
:fullscreen .bg-black.rounded-lg,
:-webkit-full-screen .bg-black.rounded-lg,
:-ms-fullscreen .bg-black.rounded-lg {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

/* Script game wrapper fullscreen support */
#game-script-wrapper.fullscreen-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: white;
}

/* Ensure script container maintains aspect ratio when not fullscreen */
#game-script-container:not(:has(#game-script-wrapper.fullscreen-active)) {
    position: relative;
}

/* Script wrapper default positioning */
#game-script-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
