/* ==========================================
   1. THE DARK BACKGROUND OVERLAY OVER THE WALLPAPER
   ========================================== */
.video-overlay, .video-overlay * {
    visibility: visible !important;
    opacity: 1 !important;
}

   .video-overlay {
    display: none;
    position: fixed;
    top: 0; 
    left: 0; 
    /*bottom: 0px; 
    right: 0px; */
    width: 100vw; 
    height: 100vh;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.85); 

    /*background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), 
                      url('/Foto/hriso1_column.jpg') !important; 
    background-repeat: repeat-x;
    background-size: contain;
    background-attachment: fixed;


    background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), 
                      url('/Foto/MonoStavroi.gif') !important; 
    background-repeat: repeat;
    background-size: auto;
    background-attachment: fixed;

    background-color: #000000;
     */
}

/* ==========================================
   2. THE SIMPLE EXTRA HIDING CLASS FOR THE MAIN TABLE
   ========================================== */
.hide-underlying-content {
    visibility: hidden;
    opacity: 0;
}

/* ==========================================
   3. TURN OFF THE TOP & BOTTOM MARGIN MASKS IN POPUP MODE
   ========================================== */



	

/*  Top Shaded Margin Layer 
.video-overlay::before {
    content: ""; 
    position: fixed; 
    top: 0; left: 0; width: 100%;
    height: var(--mask-height, 0px); background: rgba(0, 0, 0, 0.65); 
    z-index: 1;
}*/

/* Bottom Shaded Margin Layer 
.video-overlay::after {
    content: ""; 
    position: fixed; 
    bottom: 0; left: 0; width: 100%;
    height: var(--mask-height, 0px); 
    background: rgba(0, 0, 0, 0.65); 
    z-index: 1;
}*/

/* ==========================================
   2. THE BLACK 16:9 WIDESCREEN CINEMA BOX FRAME
   ========================================== */
.video-box {
    position: relative;
    z-index: 2;
    width: 95vw;
    /* height:100%;               
    max-width: 800px;            Sleek maximum width constraint for 16:9 desktop viewing */
	
    

    max-width: calc(90vh * 16 / 9);
    max-height: 90vh;

    /* THE 16:9 widescreen RATIO LOCK */
    aspect-ratio: 16 / 9;

    min-width: 0 !important;
    min-height: 0 !important;

    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;               
    padding: 0px;     
    box-sizing: border-box;     
    /*clip-path: inset(0);*/

    background: #000000; 
     border: 1px solid rgba(0, 0, 0, 0.85);
     box-shadow: 0px 10px 40px rgba(255, 255, 255, 0.12);  
    border-radius: 8px;
    
    overflow: hidden; 
    object-fit: contain;
    

    
     
    /*box-shadow: 8px 8px 30px rgba(0, 0, 0, 0.95);
    box-shadow: 15px 15px 60px rgba(0, 0, 0, 0.80);
    box-shadow: 30px 30px 0px #FF0000;*/
    

    /*box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.15), 
            0px 20px 50px rgba(255, 255, 255, 0.08);*/
    
     
    
}

/* 3. The Responsive Video Content Object */
.video-box video {
    display: block;
    width: 100%;
	/* max-height: 55vh;             Leaves 45% of screen room for buttons with zero clipping */
    height: 100%;
	object-fit: contain;
    background: #000000;         /*  Internal player background remains pure black */
    border-radius: 4px;
}

/* 4. Close 'X' Button Placement */
.close-btn {
    position: absolute;
    top: 12px; 
    right: 15px; 
    color:  rgba(255, 255, 255, 0.50);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;  
    
    text-shadow: 0px 0px 3px #000000, 
                 0px 2px 8px rgba(0, 0, 0, 0.80);

    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    
    background: rgba(0, 0, 0, 0.20); /* Dark 50% opacity backdrop */
                 /* Makes the backdrop a perfect circle */
    opacity: 0.25;

    transition: opacity 0.3s ease, background 0.2s ease, color 0.2s ease;
}



/* THE FLOATING DIVE BUTTON - FAINT BASELINE STATE */
.dive-btn {
    position: absolute;
    bottom: 12px; /* Pins it to the bottom instead of the top */
    right: 15px; 
    
    color: rgba(255, 255, 255, 0.40); /* Matches the X font opacity */
    font-size: 24px;                  /* Size adjusted for an icon emoji/symbol */
    cursor: pointer;
    z-index: 10;
    
    /* Perfect matching touch circle backdrop tint */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 50%;
    text-shadow: 0px 0px 3px #000000;
    
    /* Syncs perfectly with your 3-second mouse movement fader */
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease, color 0.2s ease;
}



/* THE MOVEMENT STATE: Triggered by JavaScript when the mouse moves or screen is tapped */
.video-box.user-is-active .close-btn {
    opacity: 0.75; /* Wakes up to a highly visible state */
    background: rgba(0, 0, 0, 0.50);
}

/* WOKEN UP STATE (Controlled by your existing active user timer) */
.video-box.user-is-active .dive-btn {
    opacity: 0.75;
    background: rgba(0, 0, 0, 0.55);
}


.close-btn:hover { 
    opacity: 1 !important;
    color: #dfb76c; 
    background: rgba(0, 0, 0, 0.80);
}

/* DIRECT MOUSE HOVER STATE */
.dive-btn:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    transform: scale(1.05); /* Gives a tiny, premium pop when hovered */
}


/* 5. Proportional Return Button Box 
.return-container {
    position: fixed;
    bottom: 15px;            
    left: 0;
    width: 100% !important; 
    display: block !important;
    margin-top: 18px;  margin-top: 2vh;
    text-align: center;
    z-index: 10;  
}*/

/* 6. Dynamic Return Arrow Image 
.return-btn {
    width: 8vw;
    min-width: 40px;
    max-width: 55px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
}*/

/*.return-btn:hover {
    transform: scale(1.1);

}*/


.video-trigger {
    cursor: pointer;
}

/* MOBILE OVERRIDE SHIELD: 
   If the screen width is 768px or smaller (smartphones and tablets), make the X bigger */
@media (max-width: 768px) {
    .close-btn {
        top: 10px;       /* Puts it a little further down from the notch/status bar */
        right: 12px; 
        
        width: 52px;     /* Increased circle from 48px to 65px for a massive thumb target */
        height: 52px;
        font-size: 34px; /* Enlarges the X character itself so it stands out clearly */
        
        /* Updates the faint baseline state so mobile users see it a bit better by default */
        opacity: 0.35;
        background: rgba(0, 0, 0, 0.40); 
    }

    .dive-btn {
        bottom: 10px !important;
        right: 12px !important;
        width: 52px !important;
        height: 52px !important;
        font-size: 34px !important;
    }
    
    /* When they tap the video container on mobile, it brightens up perfectly */
    .video-box.user-is-active .close-btn {
        opacity: 0.90;
        background: rgba(0, 0, 0, 0.65);
    }

    .video-box.user-is-active .dive-btn {
        opacity: 0.90;
        background: rgba(0, 0, 0, 0.65);
    }
}

