/**
 * RMRS Game Modal Styles
 * Modal popup for the Recycle It Right game iframe
 * Close: double-tap overlay or Escape key (kid-friendly)
 * Sizing: JS calculates optimal 16:9 fit per device viewport
 */

/* =============================================================================
   GAME MODAL - Main Container (flexbox centering)
   ============================================================================= */

.rmrs-game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
}

.rmrs-game-modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

/* =============================================================================
   GAME MODAL - Overlay
   ============================================================================= */

.rmrs-game-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    opacity: 0; /* GSAP animates this */
}

/* =============================================================================
   GAME MODAL - Content Container (sized by JS for exact 16:9 fit)
   ============================================================================= */

.rmrs-game-modal__content {
    position: relative;
    max-width: 1200px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0; /* GSAP animates this */
}

/* =============================================================================
   GAME MODAL - Iframe
   ============================================================================= */

.rmrs-game-modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* =============================================================================
   GAME MODAL - Double-tap hint
   ============================================================================= */

.rmrs-game-modal__hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
    padding: 12px;
    pointer-events: none;
}
