/* ==========================================
   RESET & BASE SETTINGS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f0;
}

/* ==========================================
   BACKGROUND VIDEO
   ========================================== */
#bgVideo {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100vw;
    min-height: 100vh;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    background-color: #f5f5f0;
}

/* ==========================================
   OVERLAY CONTENT - USING YOUR EXACT GRID
   ========================================== */
.overlay-content {
    /* 1. Cover the entire screen */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    z-index: 2;
    
    /* 2. The dark overlay */
    background: rgba(0, 0, 0, 0.15);
    
    /* 3. Prevent interaction with the video behind */
    pointer-events: none;
    
    /* ==========================================
       YOUR EXACT GRID LAYOUT
       ========================================== */
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px;
}

/* ==========================================
   THE GLASS BOX - POSITIONED AT ROW 5 (BOTTOM)
   ========================================== */
.content-box {
    /* ==========================================
       YOUR EXACT GRID PLACEMENT (div8 style)
       ========================================== */
    grid-column: span 5 / span 5;
    grid-row-start: 5;
    
    /* Center the box horizontally within the bottom row */
    justify-self: center;
    
    /* Center it vertically within the bottom grid cell */
    align-self: center;
    
    /* --- Keep your beautiful glassmorphism design --- */
    text-align: center;
    color: #ffffff;
    max-width: 700px;
    padding: 40px 50px;
    
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* Allow clicks on the box itself */
    pointer-events: auto;
    
    /* Stop it from shrinking */
    flex-shrink: 0;
}

/* ==========================================
   TYPOGRAPHY INSIDE THE BOX
   ========================================== */
.emoji-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.content-box h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.content-box p {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

.divider {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    margin: 20px auto;
    border-radius: 2px;
}

.small-note {
    font-size: 1rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 0 !important;
}

/* ==========================================
   RESPONSIVE DESIGN (Mobile friendly)
   ========================================== */
@media (max-width: 768px) {
    .content-box {
        padding: 30px 25px;
        max-width: 90%; /* Prevents overflow on small screens */
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    
    .content-box h1 {
        font-size: 2.2rem;
    }
    
    .content-box p {
        font-size: 1rem;
    }
    
    .emoji-icon {
        font-size: 3rem;
    }
}