/* assets/styles.css */

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background: black;
    overflow: hidden; /* Stops scrolling */
}

/* Main container */
#c {
    position: relative;
    width: 100%;
    height: 100%;
    margin: auto;
}

/* Video Player - Puts it in the background */
#wrapper-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
}

#wrapper-video video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Makes video fill the screen without borders */
}

/* Controls - Puts them ON TOP of the video */
.controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none; /* Lets clicks pass through to the video */
}

/* Re-enable clicking for buttons */
.controls ul li, .controls a {
    pointer-events: auto;
}

/* Hide unused elements */
#file-selector, #choiceCaption, #interactionZones, #nextSegments, #nextSegment {
    display: none !important;
}

/* Button Styling */
.controls ul {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    
    /* Option A: To put buttons at the BOTTOM (Standard) */
    align-items: flex-end; 
    
    /* Option B: To put buttons in the DEAD CENTER (Uncomment to use) */
    /* align-items: center; */
}

.controls ul li {
    flex: 1;
    display: flex;
    justify-content: center; /* Centers horizontally */
    
    /* Spacing from the bottom of the screen */
    padding-bottom: 80px; 
}

/* Ensure text is white and visible */
.controls a {
    color: white !important; /* Forces white text */
    font-family: sans-serif;
    font-size: 1.5rem; /* Make text bigger */
    font-weight: bold;
    text-decoration: none;
    text-shadow: 2px 2px 4px black; /* Black outline to read against video */
    
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black box */
    padding: 20px 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: transform 0.2s, background 0.2s;
    
    /* Fix for blank boxes: Ensure the element has size */
    min-width: 200px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.controls a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1); /* Pop effect on hover */
    cursor: pointer;
}

#timer {
    color: white;
    font-family: sans-serif;
    font-size: 2em;
    font-weight: bold;
    margin: 10px auto;
    text-shadow: 0px 0px 5px #000;
    position: relative;
    z-index: 999;
    min-height: 1.2em; /* Prevents layout jump when empty */
}