@font-face {
    font-family: 'NimbusSansExtd';
    src: url('assets/fonts/Nimbus_Sans_Extd_Regular.eot');
    /* IE9 Compat Modes */
    src: url('assets/fonts/Nimbus_Sans_Extd_Regular.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('assets/fonts/Nimbus_Sans_Extd_Regular.woff2') format('woff2'),
        /* Modern Browsers */
        url('assets/fonts/Nimbus_Sans_Extd_Regular.ttf') format('truetype');
    /* Safari, Android, iOS */
    font-style: normal;
    font-weight: normal;
}

/* Black ITALIC */

@font-face {
    font-family: 'NimbusSansBlack';
    src: url('assets/fonts/nimbus-sans-black-italic.eot');
    /* IE9 Compat Modes */
    src: url('assets/fonts/nimbus-sans-black-italic.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('assets/fonts/nimbus-sans-black-italic.woff2') format('woff2'),
        /* Modern Browsers */
        url('assets/fonts/nimbus-sans-black-italic.ttf') format('truetype');
    /* Safari, Android, iOS */
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'MS Sans Serif';
    src: url('assets/fonts/MS_Sans_Serif.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MS Sans Serif';
    src: url('assets/fonts/MS_Sans_Serif_bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}

body {
    /* font-family: 'Helvetica Neue', sans-serif; */
    /* background-image: url('assets/bugged-out-assets/buggedout_gif.gif'); */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/buggedout_gif.gif');
    background-color: rgb(179, 219, 227);
    /* White background */
    color: #333;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    touch-action: none;
    /* No perspective needed for 2D flow */
}


/* Base container */
.album-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    touch-action: none;
}

.bg {
    position: absolute;
    /* object-fit: cover; */
    z-index: -100;
}

.nav-logo {
    position: absolute;
    top: 0;
    left: 0;
    margin: 2rem;
    width: 7%;
    z-index: 1001;
}

.info-logo {
    position: absolute;
    top: 0;
    right: 0;
    margin: 2rem;
    width: 3%;
    z-index: 1001;
}

.out {
    font-style: italic;
}

/* Container for frames - no 3D transform needed on wrapper */
.spiral-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* Reset transforms */
    transform: none !important;
}

/* Individual Photo Frames */
.film-frame {
    position: absolute;
    width: 400px;
    /* Increased from 200px */
    height: auto;
    /* Will be positioned by JS */
    will-change: transform;
    /* Optimize for movement */
    z-index: 1;
}

/* The Photo Image */
.film-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    /* Transition only transform (scale) on the image itself to avoid conflict with frame movement */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
}

/* Hover Effect (Desktop) */
/* We scale the IMAGE, not the frame, so the frame position logic stays clean */
@media (width >=600px) {
    .film-frame:hover .film-photo {
        transform: scale(1.5);
        /* Good zoom */
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    }


}

/* Zoomed state for Tap-to-Zoom (Mobile) */
.film-photo.zoomed {
    transform: scale(1.5) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

.film-frame.zoomed-frame {
    z-index: 10000 !important;
}

.frame-caption {
    display: none;
}

@media (width < 600px) {

    h1 {
        text-shadow: none;
        font-size: 16px;
        margin: 0;
    }

    .film-frame {
        width: 300px;
        /* Smaller width for mobile */
    }

    .film-photo.zoomed {
        transform: scale(1.7) !important;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
        z-index: 10001;
    }

}

/* Text Frame Styles */
.film-text {
    /* aspect-ratio: 4 / 3; */
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    margin: 2rem;
}

.film-text h2 {
    font-family: 'NimbusSansBlack';
    position: relative;
    font-size: 2rem;
    text-shadow: none;
    margin: 0 0 5px 0;
    line-height: 1;
    letter-spacing: normal;
    color: #000;
}

.film-text p {
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
    color: #000;
}

@media (width < 600px) {
    .film-text h2 {
        font-size: 1.5rem;
    }

    .film-text p {
        font-size: 0.9rem;
    }
}

.film-frame.text-frame {
    z-index: 10;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.win95-window {
    background-color: #c0c0c0;
    padding: 3px;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    box-shadow: inset -1px -1px #808080, inset 1px 1px #fff, 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: #000;
    position: relative;
    text-align: left;
    border-radius: 0;
}

.modal-content.win95-window {
    width: 80%;
    max-width: 500px;
}

.win95-title-bar {
    background: navy;
    color: white;
    padding: 3px 3px 3px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'MS Sans Serif', sans-serif;

}

.win95-title-bar-text {
    font-weight: normal;
    font-size: 16px;
    letter-spacing: 1px;
}

.win95-title-bar-controls {
    display: flex;
}

.win95-window-body {
    padding: 20px;
}

.modal-content h1 {
    margin: 0;
    font-size: 16px;
}

.modal-content p {
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #000;
}

.modal-content a {
    color: navy;
}

.close-btn {
    width: 24px;
    height: 24px;
    cursor: pointer;
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    box-shadow: inset -1px -1px #808080, inset 1px 1px #fff;
    padding: 4px;
    display: block;
    box-sizing: border-box;
    image-rendering: pixelated;
}

.close-btn:active {
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #dfdfdf;
    border-bottom: 2px solid #dfdfdf;
    box-shadow: inset 1px 1px #808080, inset -1px -1px #fff;
    padding-top: 6px;
    padding-left: 6px;
}

.info-logo {
    cursor: pointer;
}

.win95-button {
    height: 32;
    padding: 3px 12px;
    background-color: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    box-shadow: inset -1px -1px #808080, inset 1px 1px #fff;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    color: #000;
    outline: none;
    text-decoration: none;
}

/* Landing page specific button spacing */
.win95-window-body .win95-button {
    margin-top: 15px;
}

.win95-button:active {
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #dfdfdf;
    border-bottom: 2px solid #dfdfdf;
    box-shadow: inset 1px 1px #808080, inset -1px -1px #fff;
    padding: 5px 11px 3px 13px;
}

.win95-button-inverted {
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #dfdfdf;
    border-bottom: 2px solid #dfdfdf;
    box-shadow: inset 1px 1px #808080, inset -1px -1px #fff;
    padding: 4px 11px 3px 13px;
}

.win95-button-inverted:active {
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    box-shadow: inset -1px -1px #808080, inset 1px 1px #fff;
    padding: 4px 12px;
}

#media-player-btn {
    width: 150px;
    height: 32px;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    text-align: left;
    padding-left: 8px;
    font-weight: normal;
}

#media-player-btn:active,
#media-player-btn.win95-button-inverted {
    font-weight: normal;
}

#start-btn {
    font-weight: bold;
}

.maximize-btn {
    width: 24px;
    height: 24px;
    cursor: pointer;
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    box-shadow: inset -1px -1px #808080, inset 1px 1px #fff;
    padding: 4px;
    display: block;
    box-sizing: border-box;
    image-rendering: pixelated;
    margin-right: 2px;
}

.maximize-btn:active {
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #dfdfdf;
    border-bottom: 2px solid #dfdfdf;
    box-shadow: inset 1px 1px #808080, inset -1px -1px #fff;
    padding-top: 6px;
    padding-left: 6px;
}

.videoPlayer {
    position: absolute;
    top: -2000px; /* Off-screen initially to prevent "jump" during randomization */
    left: 0;
    width: 40%;
    height: auto;
    max-height: calc(100vh - 44px - 40px); /* Safe zone: viewport height - taskbar - margin */
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.byoma-player {
    width: 320px !important;
}

.rsd-player {
    width: 400px !important;
}

.intl-player {
    width: 300px !important;
}

.tiftt-player {
    width: 400px !important;
}

.bootup-player {
    width: 400px !important;
}

.lf8bday-player {
    width: 300px !important;
}

.videoPlayer.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    z-index: 9999 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.videoPlayer.fullscreen-mode .project-vid {
    flex-grow: 1;
    height: calc(100vh - 80px);
    background: black;
    object-fit: contain;
}

.project-vid {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
    display: block;
    background: transparent;
}

.win95-window h2 {
    margin: 0;
    font-size: 16px;
}

.win95-vid-player-controls {
    width: 100%;
    padding: 10px;
    padding-top: 20px;
    box-sizing: border-box;
    display: flex;
    gap: 10px;
    align-items: center;
    height: auto;
}

.videoPlayer.fullscreen-mode .win95-vid-player-controls {
    display: none !important;
}

.win95-progress-container {
    flex-grow: 1;
    height: 24px;
    background: #c0c0c0;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    position: relative;
    cursor: pointer;
    margin: 0 5px;
    box-shadow: inset 1px 1px #000, inset -1px -1px #dfdfdf;
    display: flex;
    align-items: center;
}

.win95-progress-bar {
    height: 100%;
    width: 0;
    background: navy;
}

.win95-playhead {
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 32px;
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    box-shadow: inset -1px -1px #808080, inset 1px 1px #fff;
    cursor: pointer;
    z-index: 2;
    transform: translate(-50%, -50%);
}

.win95-window.focused-window {
    /* Visual focus handled in CSS, Z-index now handled in JS */
}

.info-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 350px;
    z-index: 500;
}

footer {
    position: fixed;
    bottom: 0;
    z-index: 3000;
    /* Above everything */
    width: 100%;
    height: 44px;
    background-color: #c0c0c0;
    padding: 3px;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    box-shadow: inset -1px -1px #808080, inset 1px 1px #fff, 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: #000;
    text-align: left;
    border-radius: 0;
    box-sizing: border-box;
}

footer>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0 5px;
    padding-left: 0;
}

.footer-left {
    display: flex;
    gap: 4px;
    align-items: center;
}

.win95-tray {
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    background: #c0c0c0;
    padding: 2px 10px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 13px;
    min-width: 80px;
}


@media (max-width: 600px) {
    .film-frame {
        width: 300px;
    }

    .film-photo {
        width: 100%;
        height: auto;
    }

    /* Project Player Mobile Overrides */
    .videoPlayer {
        width: 85% !important; /* Ensure it fits with room for error */
    }

    .byoma-player, 
    .rsd-player, 
    .tiftt-player, 
    .boot-up-player {
        width: 85% !important;
    }

    .intl-player,
    .lf8bday-player {
        width: 65% !important; /* Narrower for portrait video */
        max-height: 75vh !important; /* Cap height to ensure it fits comfortably */
    }
}

/* Menu Styles */
.win95-menu {
    position: fixed;
    bottom: 40px;
    /* Above footer */
    left: 2px;
    width: auto;
    min-width: 200px;
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    box-shadow: 1px 1px #808080;
    z-index: 4000;
    display: none;
    padding: 2px;
    flex-direction: row;
}

.win95-menu.active {
    display: flex;
}

.start-menu-sidebar {
    width: 25px;
    background: linear-gradient(to bottom, #000080, #1084d0);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    margin-right: 5px;
    cursor: pointer;
    transition: filter 0.1s;
}

.start-menu-sidebar:hover {
    filter: brightness(1.2);
}

.sidebar-text {
    color: #c0c0c0;
    font-family: 'MS Sans Serif', sans-serif;
    font-weight: bold;
    font-size: 18px;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}

.win95-menu-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.win95-menu-item {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    cursor: pointer;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 14px;
    color: black;
    position: relative;
    min-width: 150px;
}

.win95-menu-item:hover {
    background: #000080;
    color: white;
}

.win95-menu-item.has-submenu::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid black;
    display: inline-block;
    margin-left: 5px;
}

.win95-menu-item.has-submenu:hover::after {
    border-left-color: white;
}

/* Submenu positioning */
.win95-submenu {
    display: none;
    position: absolute;
    left: 100%;
    bottom: -2px;
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    box-shadow: 1px 1px #808080;
    padding: 2px;
    min-width: 180px;
}

.win95-menu-item:hover>.win95-submenu {
    display: block;
}

.minimize-btn,
.maximize-btn,
.close-btn {
    width: 24px;
    height: 24px;
    cursor: pointer;
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    box-shadow: inset -1px -1px #808080, inset 1px 1px #fff;
    padding: 4px;
    display: block;
    box-sizing: border-box;
    image-rendering: pixelated;
    margin-right: 2px;
}

.minimize-btn:active,
.maximize-btn:active,
.close-btn:active {
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #dfdfdf;
    border-bottom: 2px solid #dfdfdf;
    box-shadow: inset 1px 1px #808080, inset -1px -1px #fff;
    padding-top: 6px;
    padding-left: 6px;
}