/* ------------------------------------------------ */
/* GLOBAL RESET AND LAYOUT */
/* ------------------------------------------------ */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; 
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
}

/* ------------------------------------------------ */
/* VIDEO POSITIONING AND SIZING */
/* ------------------------------------------------ */

/* 1. Global positioning (Applies min-size and centering rules) */
#desktop-video,
#mobile-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 2. Desktop/Default View */
#mobile-video {
    display: none;
}
#desktop-video {
    display: block;
    object-fit: cover; 
}

/* ------------------------------------------------ */
/* MOBILE VIEWPOINT OVERRIDES (max-width: 767px) */
/* ------------------------------------------------ */
@media screen and (max-width: 767px) {
    #desktop-video {
        display: none;
    }
    
    #mobile-video {
        display: block;
        
        /* 1. Reset aggressive desktop sizing */
        min-width: 0; 
        min-height: 0;
        
        /* 2. Force video size to be EXACTLY the viewport size */
        width: 100vw;
        height: 100vh;
        
        /* 3. Reset the centering transforms and positioning */
        top: 0;
        left: 0;
        transform: none;
        
        /* **CRITICAL FIXES**: Using COVER to fill the width (no bars) */
        object-fit: cover; 
        
        /* Anchors the visible content to the TOP of the video. Cropping occurs at the bottom. */
        object-position: top; 
        
        background-color: black;
    }
}

/* ------------------------------------------------ */
/* CONTENT AND BUTTON STYLING (Kept from existing rules) */
/* ------------------------------------------------ */

.content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center; 
    flex-direction: column; 
    align-items: center; 
    height: 100vh;
}

#enter-button {
    padding: 0.9375rem 1.875rem;
    font-size: 1.5em;
    font-weight: bold;
    color: rgb(247, 240, 240); 
    background-color: #909EFF;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none; 
    transition: background-color 0.3s, border-color 0.3s;
    border: 2px solid #909EFF;
    
    margin-top: auto; 
    margin-bottom: 15vh; 
}

#enter-button:hover {
    background-color: rgb(255, 143, 231); 
    border-color: #ffcc00; 
}