

body {
    font-family: 'LeagueMono', sans-serif;
    background-color: #fff;
}

.info-box {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 420px;
    /* Max height ensures it doesn't take over the screen */
    max-height: 500px; 
    background: rgba(252, 104, 2, 0.05);
    backdrop-filter: blur(12px) brightness(0.7);
    -webkit-backdrop-filter: blur(12px) brightness(0.7);
    border: 1px solid rgba(252, 104, 2, 0.5);
    color: #fc6802;
    padding: 0;
    z-index: 2000;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

/* Header bar for the title */
.panel-header {
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(252, 104, 2, 0.3);
    background: rgba(252, 104, 2, 0.1);
    text-transform: uppercase;
}

/* The scrollable area */
.scrolling-content-wrapper {
    padding: 0px 0px 20px 20px;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.3;
}

/* Custom Scrollbar to match the aesthetic */
.scrolling-content-wrapper::-webkit-scrollbar {
    width: 4px;
}
.scrolling-content-wrapper::-webkit-scrollbar-thumb {
    background: #fc6802;
}

/* The Fold Logic */
.info-box.folded {
    transform: translate(-440px, 0);
}

#toggle-fold {
    position: absolute;
    right: -40px;
    top: -1px;
    width: 40px;
    height: 40px;
    background: rgba(252, 104, 2, 0.8);
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    pointer-events: auto;
}

.video-stack {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 1;
    overflow: hidden;
    /* This makes the mask on .video-stack act as an eraser */
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    background: transparent;
}

.islands-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200; 
    pointer-events: none;  
}

/* Island Adjustments */
.island {
    position: absolute;
    width: 700px;
    height: auto;
    cursor: move;
    z-index: 100;
    pointer-events: auto; /* Required for dragging */
}

.island img.island-texture {
    width: 100%;
    display: block;
    pointer-events: none;

    opacity: 0; /* Hidden until hover */
    transition: opacity 0.3s ease-in-out;
}

/* Show texture on hover */
.island:hover img.island-texture {
    opacity: 0.4;
}

/*default page island logic*/

.island-texture-clippped {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    /* This clips the JPG/PNG into the SVG shape */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    
    /* Aesthetic: slight transparency so video peeks through, or 1 for solid */
    opacity: 0.9; 
    transition: opacity 0.3s ease;
}

.island:hover .island-texture-clippped {
    opacity: 1;
}

#layer-live {
    z-index: 5;
    position: fixed;
    opacity: 0.99;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* Allows clicking the islands underneath */
    background: transparent;
    will-change: transform, mask-image;
}

#player-1, #player-2, iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    
    /* Default to filling the screen */
    width: 100vw;
    height: 100vh;
}

/* Landscape / Wide Screens: Width is the priority */
@media (min-aspect-ratio: 16/9) {
  #player-1, #player-2, iframe {
    width: 100vw;
    height: 56.25vw; /* (9/16 * 100) - maintains 16:9 ratio */
    min-height: 100vh; /* Prevents gaps on very wide screens */
  }
}

/* Portrait / Tall Screens: Height is the priority */
@media (max-aspect-ratio: 16/9) {
  #player-1, #player-2, iframe {
    width: 177.78vh; /* (16/9 * 100) - maintains 16:9 ratio */
    height: 100vh;
    min-width: 100vw; /* Prevents gaps on very tall screens */
  }
}

.page-logo {
    position: fixed;
    top:40px;
    right:40px;
    text-align: right;
    overflow: hidden;
    z-index: 20; /* Highest layer */
    color: #fc6802; /* Ensure it's visible over the video */
    pointer-events: none; /* Optional: allows you to click islands THROUGH the text */
}

.panel-content {
    font-size: 0.8em;
}


.countdown-layer {
    position: relative;  
    z-index: 20; /* Above everything else */
    color: #fc6802; /* Dark Orange to match your text */
    font-family: 'LeagueMono', sans-serif;
    width: 380px;
    pointer-events: none; /* Allows you to click things behind the timer */
    /*text-shadow: 0 0 10px rgba(0,0,0,0.8);*/
}

.countdown-label {
    font-size: 1.8rem;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.8;
    text-align: right;
}

#countdown-timer {
    font-size: 1.1rem;
    font-weight: 200;
    text-align: left;
    /* Apply the animation */
    animation: blinker 5s linear infinite;
}

@keyframes blinker {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}



/* MENU Navigation Container */
#system-menu-root {
    position: fixed;
    top: 40px;
    left: 40px; /* Shifted to Left */
    z-index: 99999;
}

.system-fold-style {
    position: absolute;
    top: 10px;
    left: 0; /* Align to the left edge of the button */
    width: 320px;
    background: rgba(252, 104, 2, 0.05);
    backdrop-filter: blur(12px) brightness(0.7);
    -webkit-backdrop-filter: blur(12px) brightness(0.7);
    border: 1px solid rgba(252, 104, 2, 0.5);
    display: flex;
    flex-direction: column;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
}

.system-fold-style.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Submenu Styling */
.submenu-trigger {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #fc6802;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.submenu-trigger a:hover{
    opacity: 1;
    background: rgba(252, 104, 2, 0.1);
}

.submenu {
    display: none; /* Hidden by default */
    flex-direction: column;
    background: rgba(252, 104, 2, 0.1);
    padding-left: 40px;
}

.submenu.active {
    display: flex;
    flex-direction: column;
}

.submenu a {
    padding: 8px 0px;
    font-size: 0.8rem;
    color: #fc6802;
    text-decoration: none;
    opacity: 0.8;
}

.submenu a:hover {
    opacity: 1;
    background: rgba(252, 104, 2, 0.1);
}

.system-link {
    padding: 12px 0px;
    color: #fc6802;
    text-decoration: none;
    font-size: 0.9rem;
}

#system-menu-trigger {
    /* Reset Defaults */
    background: rgba(252, 104, 2, 0.3);
    backdrop-filter: blur(12px) brightness(0.4);
    -webkit-backdrop-filter: blur(12px) brightness(0.4);
    border: 1px solid rgba(252, 104, 2, 0.5);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    
    /* Positioning & Interaction */
    cursor: pointer;
    display: flex;
    align-items: left;
    gap: 10px;
    z-index: 100000;
    transition: all 0.2s ease-in-out;
    padding: 10px 15px;
}

.menu-title-text {
font-family: 'LeagueMono', sans-serif;
text-align: left;
color: #fc6802; /* Black text on orange looks like a warning label */
text-transform: uppercase;
text-align: left;
font-size: 1rem;
line-height: 1.3em;
font-weight: 200;
}


#system-menu-trigger:hover {
    background: rgba(252, 104, 2, 0.8);
    box-shadow: 0 0 15px rgba(252, 104, 2, 0.6);
    transform: scale(1.02);
}

/* Style for the '▤' symbol specifically */
#system-menu-trigger span.symbol {
    font-size: 1.5rem;
    color: #fc6802;
}


/* Mobile Styles */
/* Mobile Styles */
/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* 1. Adjust the Info Box to fill width and half-height */
    .info-box {
        left: 0;
        bottom: 0;
        width: 100vw;
        max-height: 50vh;
        border-left: none;
        border-right: none;
        border-bottom: none;
        /* Ensure it sits above islands but below menus if needed */
        z-index: 2000;
    }

    /* Adjust Fold Logic for full-width panel */
    .info-box.folded {
        transform: translateY(100%); /* Folds downward instead of left */
    }

    /* Reposition the toggle button for the bottom panel */
    #toggle-fold {
        top: -40px;
        right: 0;
        width: 60px; /* Bigger touch target */
        height: 40px;
    }

    /* 2. Scale down the Islands for small screens */
    .island {
        width: 70vw; /* Much smaller so they don't cover the whole screen */
        min-width: 250px;
    }

    /* 3. Adjust the Menu and Logo spacing */
    #system-menu-root {
        top: 20px;
        left: 20px;
    }

    .page-logo {
        top: 20px;
        right: 20px;
        transform: scale(0.8); /* Shrink logo slightly */
        transform-origin: right top;
    }

.logo-click {
    cursor: pointer;
    pointer-events: auto; /* Re-enable clicks for the images specifically */
    transition: transform 0.1s ease;
    display: block; /* Stack them or keep as inline-block if they are side-by-side */
}

.logo-click:active {
    transform: scale(0.92); /* Visual click feedback */
}


    .system-fold-style {
        width: calc(100vw - 40px); /* Fill screen width minus margins */
    }
}



/*FONTS*/



@font-face {
    font-family: 'LeagueMono';
    font-style: normal;
    font-weight: 200;
    src: local('LeagueMono Light'), local('LeagueMono-Light'),
         url('../fonts/LeagueMono-Light.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/LeagueMono-Light.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }

@font-face {
    font-family: 'LeagueMono';
    font-style: italic;
    font-weight: 200;
    src: local('LeagueMono Light Italic'), local('LeagueMono-LightItalic'),
         url('../fonts/LeagueMono-LightItalic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/LeagueMono-LightItalic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }

@font-face {
    font-family: 'LeagueMono';
    font-style: normal;
    font-weight: 400;
    src: local('LeagueMono Regular'), local('LeagueMono-Regular'),
         url('../fonts/LeagueMono-Regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/LeagueMono-Regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }

@font-face {
    font-family: 'LeagueMono';
    font-style: italic;
    font-weight: 400;
    src: local('LeagueMono Italic'), local('LeagueMono-Italic'),
         url('../fonts/LeagueMono-Italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/LeagueMono-Italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }

@font-face {
    font-family: 'LeagueMono';
    font-style: normal;
    font-weight: 500;
    src: local('LeagueMono Medium'), local('LeagueMono-Medium'),
         url('../fonts/LeagueMono-Medium.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/LeagueMono-Medium.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }

@font-face {
    font-family: 'LeagueMono';
    font-style: italic;
    font-weight: 500;
    src: local('LeagueMono Medium Italic'), local('LeagueMono-MediumItalic'),
         url('../fonts/LeagueMono-MediumItalic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/LeagueMono-MediumItalic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }

@font-face {
    font-family: 'LeagueMono';
    font-style: normal;
    font-weight: 600;
    src: local('LeagueMono Bold'), local('LeagueMono-Bold'),
         url('../fonts/LeagueMono-Bold.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/LeagueMono-Bold.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }

@font-face {
    font-family: 'LeagueMono';
    font-style: italic;
    font-weight: 600;
    src: local('LeagueMono Bold Italic'), local('LeagueMono-BoldItalic'),
         url('../fonts/LeagueMono-BoldItalic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/LeagueMono-BoldItalic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }

@font-face {
    font-family: 'LeagueMono';
    font-style: normal;
    font-weight: 700;
    src: local('LeagueMono ExtraBold'), local('LeagueMono-ExtraBold'),
         url('../fonts/LeagueMono-ExtraBold.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/LeagueMono-ExtraBold.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }

@font-face {
    font-family: 'LeagueMono';
    font-style: italic;
    font-weight: 700;
    src: local('LeagueMono ExtraBold Italic'), local('LeagueMono-ExtraBoldItalic'),
         url('../fonts/LeagueMono-ExtraBoldItalic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/LeagueMono-ExtraBoldItalic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }

@font-face {
    font-family: 'LeagueMono';
    font-style: normal;
    font-weight: 800;
    src: local('LeagueMono Black'), local('LeagueMono-Black'),
         url('../fonts/LeagueMono-Black.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/LeagueMono-Black.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }

@font-face {
    font-family: 'LeagueMono';
    font-style: italic;
    font-weight: 800;
    src: local('LeagueMono Black Italic'), local('LeagueMono-BlackItalic'),
         url('../fonts/LeagueMono-BlackItalic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/LeagueMono-BlackItalic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }

@font-face {
    font-family: 'LeagueMono Beastly';
    font-style: normal;
    font-weight: 900;
    src: local('LeagueMono Beastly Regular'), local('LeagueMonoBeastly-Regular'),
         url('../fonts/LeagueMonoBeastly-Regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/LeagueMonoBeastly-Regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }

@font-face {
    font-family: 'Haltera';
    font-style: normal;
    font-weight: 900;
    src: local('Haltera'), local('HALTERA_'),
         url('../fonts/HALTERA_.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/HALTERA_.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }


