/* GLOBAL RESET */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background: #000; 
    color: #fff; 
    font-family: 'Courier New', monospace; 
    min-height: 100vh; 
    overflow-x: hidden; 
}

/* MAIN LAYOUT: Shifted 100px to the right */
.main-layout { 
    display: flex; 
    width: 100vw; 
    min-height: 100vh; 
    padding-left: 100px; 
    padding-bottom: 100px; 
}

/* LEFT WING: Shifted 100px higher total */
.left-wing { 
    width: 40%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding-bottom: 150px; 
}

.center-stack { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

/* NAVIGATION */
.vertical-nav { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 30px; 

    /* ✅ FIX */
    position: relative;
    z-index: 20;
}

.vertical-nav a { 
    color: #fff; 
    text-decoration: none; 
    font-size: 18px; 
    transition: 0.3s; 
    font-weight: normal; 

    /* ✅ FIX */
    display: inline-block;
}

.vertical-nav a:hover { 
    font-size: 40px; 
    color: #b783d4; 
    text-shadow: 0 0 15px #b783d4; 
}

/* LOGO & ASCII */
.logo-container { 
    position: relative; 
    width: 500px; 
    height: 500px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.ascii-underlay { 
    position: absolute; 
    z-index: 1; 
    color: #b783d4; 
    font-size: 18px; 
    line-height: 14px; 
    white-space: pre; 
    opacity: 0.75; 
}

.letras-header { 
    position: relative; 
    z-index: 2; 
    width: 500px; 
    cursor: pointer; 
    transition: transform 0.05s; 
}

.letras-header:hover { 
    filter: invert(1) hue-rotate(280deg); 
}

/* RIGHT WING */
.right-wing { 
    width: 60%; 
    display: flex; 
    justify-content: flex-start; 
    align-items: flex-start; 
    padding-top: 40px; 
    padding-left: 50px; 
}

.center-wing { 
    width: 60%; 
    display: flex; 
    /* Centers horizontally */
    justify-content: center; 
    /* Centers vertically */
    align-items: center; 
    /* Removed padding-left/top so it is truly centered */
    margin: 0 auto; 

}
.vhs-container { 
    position: relative; 
    width: 850px; 
    height: 850px; 
    left: 20px; 
}

.vhs-frame { 
    position: absolute;
    width: 780px; 
    height: 800px; 
    background: var(--frame-img, url('https://alondranoctvrna.neocities.org/vhs.gif')) center/cover;
    border: 1px solid #b783d4; 
    top: 10px; 
    left: 50px; 
}

/* DATA BOXES */
.data-box { 
    position: absolute; 
    background: #000; 
    border: 1px solid #b783d4; 
    z-index: 5; 
}

.label { 
    border-bottom: 1px solid #b783d4; 
    padding: 6px; 
    font-size: 14px; 
    text-align: center; 
    letter-spacing: 3px; 
}

.box-inside { 
    top: 100px;
    left: -30px; 
    width: 900px; 
    min-height: 600px;
    z-index: 40;
}

/* ✅ FIX (padding match) */
.box-inside .content {
    padding: 15px;
}
.box-inside iframe {
    width: 100%;
    min-height: 550px;  /* 👈 baseline size */
    height: 100%;       /* 👈 allows growth */
    display: block;
}

.box-spotify { 
    top: 40px;
    left: 0px; 
    width: 550px; 
    z-index: 30;
}

/* ✅ FIX (padding match) */
.box-spotify .content {
    padding: 15px;
}

.box-info { 
    bottom: 70px; 
    left: 20px; 
    width: 450px; 
    z-index: 20;
} 

.box-sidebar { 
    top: 0px; 
    right: 20px; 
    width: 230px; 
    bottom: 80px; 
    z-index: 10;
}

/* SIDEBAR */
.sidebar-center { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 15px; 
    gap: 10px; 
}

.sidebar-icon { 
    width: 50px; 
}

.sidebar-main-img { 
    width: 100%; 
}

.link-list {
    text-align: center; /* Centers the links within the container */
}

a { 
    color: #b783d4; 
    text-decoration: none; 
    font-size: 12px;
    transition: color 0.3s ease; /* Optional: makes the color change smooth */
}

a:hover {
    color: #ffffff; /* Changes text to white on hover */
}

.scroll-inner { 
    height: auto;  
    overflow-y: auto; 
    padding: 15px; 
    font-size: 13px; 
    text-align: justify; 
}

.one-div {
  position: relative;
  height: 250px;
  width: 200px;
  background-color: rgb(15, 15, 15);
  transform-style: preserve-3d;
  animation: rot 2s infinite ease;
  border-radius: 20px;
  box-shadow: 0 0 50px 0px, inset 0 0 90px 0px;
  color: white;
  transition: 1s;
  
  /* Alignment for the image and text */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
padding: 20px 0; /* Minimal padding */
     /
}

.card {
  margin-top: 30px; 
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  background: #463452; /* Added missing # */
  position: relative;
  /* Default state: Straight */
  transform: skewY(0deg); 
  border: 5px solid #463452;
  box-sizing: border-box;
  transition: all 0.3s;
  cursor: pointer;
}

/* Side panel - Hidden by default */
.card::before {
  content: '';
  width: 0px; 
  height: 195px;
  background: #fff;
  position: absolute;
  top: 0.1px;
  left: 0;
  transform-origin: right;
  transform: skewY(45deg);
  transition: all 0.3s ease-in-out;
overflow: hidden; /* Keeps the glow/image contained */
}

/* Top panel - Hidden by default */
.card::after {
  content: '';
  height: 0px;
  width: 195px;
  background: #fff;
  position: absolute;
  top: 0;
  left: 0.1px;
  transform-origin: bottom;
  transform: skewX(45deg);
  transition: all 0.5s;
}
/* Container for all your cards to sit side-by-side */
.gallery-content {
  display: flex;
  flex-wrap: wrap;      /* Allows cards to move to next line if screen is small */
  justify-content: center;
  gap: 40px;            /* Space between the card units */
  padding: 20px;
}

/* Individual wrapper for one card + one title */
.card-unit {
  display: flex;
  flex-direction: column;
  align-items: center;  /* Centers title under card */
  text-align: center;
}

/* The Title Style */
.card-caption {
  margin-top: 25px;     /* Space below the card's tilted edge */
  font-size: 14px;      /* Standard body size */
  color: #fff;          /* Change to your preferred text color */
  font-family: monospace; /* Matches your aesthetic */
  text-transform: lowercase;
}

/* Ensure images fit the card perfectly */
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
filter: brightness(0.4) grayscale(0.3); 
  transition: filter 0.4s ease;
}

/* --- Hover States: Apply the Tilt --- */

.card:hover {
  transform: skewY(-10deg);
box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.4);
  border-color: #fff; /* Ensures the border stays crisp */
}

.card:hover::before {
  width: 10px;
  height: 200px;
  left: -14.7px;
  top: -5px;
}

.card:hover::after {
  height: 10px;
  width: 200px;
  top: -14.7px;
  left: -5px;
}

.card__content {
  padding: 0px; 
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* The Image itself */
.card-image {
  width: 100%;
  height: 100%;
  /* This ensures the image stays square and fills the space without stretching */
  object-fit: cover; 
  border-radius: 4px; /* Optional: adds a slight round to image corners */
}
.card:hover .card-image {
  /* Full color and brightness */
  filter: brightness(1) grayscale(0);
}

/* From Uiverse.io by catraco */ 
.scene {
  width: 10em;
  justify-content: center;
  align-items: center;
}

/* From Uiverse.io by catraco */ 
.scene {
  width: 10em;
  justify-content: center;
  align-items: center;
}

.cube {
  color: #b783d4;
  cursor: pointer;
  margin: 20px;
  font-family: 'Courier New', monospace; 
  transition: all 0.85s cubic-bezier(.20,.60,.20,1);
  transform-style: preserve-3d;
  transform-origin: 100% 50%;
  width: 10em;
  height: 4em;
}

.cube:hover {
  transform: rotateX(-90deg) rotateZ(-20deg);
}

.side {
  box-sizing: border-box;
  position: absolute;
  display: inline-block;
  height: 4em;
  width: 10em;
  text-align: center;
  text-transform: uppercase;
  padding-top: 1.5em;
  font-weight: bold;
}

.top {
  background: #b783d4;
  color: #000;
  transform: rotateX(90deg) translate3d(0, 0, 2em);
  box-shadow: inset 0 0 0 5px #b783d4;
}

.front {
  background: #000;
  color: #fff;
  box-shadow: inset 0 0 0 5px #fff;
  transform: translate3d(0, 0, 2em);
}

.right {
  height: 4em;
  width: 4em;
  background: #000;
  box-shadow: inset 0 0 0 5px #fff;
  transform: rotateY(90deg) translate3d(0, 0, 8em);
}

/* POPUPS */
.popup-window { 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 950px; 
    background: #000; 
    border: 2px solid #b783d4; 
    z-index: 100; 
    box-shadow: 10px 10px 0px #b783d4; 
}

/* ✅ OVERLAY */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.65);

    z-index: 95;
    display: none;
}


.win-header { 
    background: #b783d4; 
    color: #000; 
    padding: 6px; 
    display: flex; 
    justify-content: space-between; 
    font-weight: bold; 
    cursor: move; 
}

.win-body { 
    padding: 25px; 
    color: #fff; 
}



/* SCROLLBAR SIZE */
.scroll-inner::-webkit-scrollbar {
    width: 14px; /* ← make it bigger here */
}

/* TRACK (background) */
.scroll-inner::-webkit-scrollbar-track {
    background: #000;
}

/* THUMB (the draggable part) */
.scroll-inner::-webkit-scrollbar-thumb {
    background: #b783d4;
    border: 2px solid #000;
}

/* HOVER EFFECT */
.scroll-inner::-webkit-scrollbar-thumb:hover {
    background: #d1a3ff;
}

.close-btn { 
    cursor: pointer; 
}

/* ========================= */
/* MOBILE STACK */
/* ========================= */

@media (max-width: 800px) {

    /* ===== RESET DESKTOP OFFSET ===== */
    .scroll-inner {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .main-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 0;
    }

    .left-wing,
    .right-wing {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .left-wing {
        margin-bottom: 0px;
    }

    /* ===== NAV + LOGO ===== */

    .center-stack {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .vertical-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .vertical-nav a {
        display: block;
        width: fit-content;
        margin: 0 auto;
        font-size: 16px;
    }

    /* 🔥 mobile-friendly interaction */
    .vertical-nav a:hover {
        font-size: 16px;
        color: #fff;
        text-shadow: none;
    }

    .vertical-nav a:active {
        font-size: 22px;
        color: #b783d4;
        text-shadow: 0 0 10px #b783d4;
    }

    .logo-container {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    .letras-header {
        width: 100%;
    }

    .ascii-underlay {
        font-size: 9px;
        line-height: 7px;
    }

    /* ===== CONTENT AREA ===== */

    .right-wing {
        justify-content: left;
        padding-left: 0;
    }

    .vhs-container {
        width: 100%;
        max-width: 100%px;
        margin: 0 auto;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 🔥 TRUE FLOW LAYOUT */
    .data-box {
        position: static !important;
        width: 100%;
        max-width: 360px;
        margin: 0 0 20px 0; /* left aligned inside container */
        z-index: 2;
    }

    .box-inside {
        height: auto !important;
        min-height: auto !important;
    }

    .box-inside .scroll-inner {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }

    .box-inside iframe {
        width: 100%;
        height: 80vh;
        display: block;
    }
    .box-sidebar {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
 }



    /* 🔥 REMOVE ALL DESKTOP OFFSETS */
    .box-spotify,
    .box-inside,
    .box-info,
    .box-sidebar {
        left: unset !important;
        right: unset !important;
        top: unset !important;
        bottom: unset !important;
    }

    /* ===== VHS BACKGROUND ===== */

    .vhs-frame {
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        pointer-events: none;
        opacity: 0.6;
    }

    /* ===== POPUPS ===== */

    .popup-window {
        width: 90vw;
        max-width: 500px;

    }

    iframe {
        width: 100%;
        height: 80vh; /* 👈 fills most of screen */
        border: none;
    min-height: 100% !important;
    }
    /* 🔥 REMOVE ALL HEIGHT CONSTRAINTS */
    .box-inside,
    .box-inside .scroll-inner {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* 🔥 LET CONTENT FLOW */
    .box-inside .content {
        height: auto !important;
        display: block !important;
    }

    /* 🔥 NOW iframe can actually expand */
    .box-inside iframe {
        width: 100%;
        height: 1300px !important;
        min-height: 0 !important;
        display: block;
    }
}

