/* Imported from LunaDev's CSS */
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');
/* Reset + base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
/* text box color: #10d070 */
  body {
    font-family: sans-serif;
    line-height: 1.6;
    background-color: #0b1911 ;
    padding-bottom: 100px; /* space for fixed nav */
  }
  
  header .banner {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* Main content */
  .content {
    padding: 20px;
    text-align: center;
  }
  
  .content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  /* Bottom-left image navigation */
  .image-nav {
    position: fixed;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
  }
  
  .image-nav img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px #2AA469 ;
    transition: transform 0.2s ease;
    cursor: pointer;
  }
  
  .image-nav img:hover {
    transform: scale(1.1);
  }
  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 120px auto 0 auto; /* Sits under header, centered */
    width: 600px;
    min-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 16px #2AA469 ; /* More visible shadow */
    background: #000; /* Ensures shadow is visible */
  }
  .content p {
    font-family: 'Terminal', monospace;
    font-size: 1.2rem;
    color: #10d070;
  }
  .content a {
    font-family: 'Terminal', monospace;
    font-size: 1.2rem;
    color: #10d070;
  }
  
    header {
        position: fixed;
        top: 0;
        left: 30%;
        right: 30%;
        width: 30%;
        z-index: 1000;
    }
    header .banner {
        display: block;
        position: flex;
        top: 0;

    }
    .time {
        display: absolute;
        font-family: 'Terminal', monospace;
        padding-right: .5%;
        padding-left: 2%;
        right: 2%;
        top: 0;
    }
  
    header img {
        background: transparent;
    }

    div.gallery {
        margin: 5px;
        border: 1px solid #2AA469 ;
        float: left;
        width: 180px;
      }
      
      div.gallery:hover {
        border: 1px solid #777777;
      }
      
      div.gallery img {
        width: 100%;
        height: auto;
      }
      
      div.desc {
        padding: 15px;
        text-align: center;
        color: #2AA469;
        font-family: 'Terminal', monospace;
      }

      .terminal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 24, 16, 0.95); /* slightly transparent */
    color: #2AA469;
    border: 1px solid;
    border-radius: 8px;
    font-family: 'Terminal', monospace;
    max-width: 600px;
    width: 90vw;
    height: auto;
    padding: 16px;
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 10001; /* ensures it is above the floating image */
    animation: popup 0.3s cubic-bezier(0.77,0,0.175,1);
}

.wrapper {
    display: flex;
}

#custom-content {
    max-width: 600px;
    overflow: hidden;
    border-right: .15em solid #2AA469; /* The typwriter cursor */
    white-space: pre-wrap; /* allows wrapping and respects line breaks */
    letter-spacing: .15em; /* Adjust as needed */
    animation:
        typing 2.5s steps(60, end),
        blink-caret .75s step-end infinite;
    word-break: break-word; /* ensures long words wrap */
}

/* The typing effect */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: grey; }
}



.banner{
    width: 100%;
    text-align: center;
    margin: 0 0 20px 0;
}
.banner .fa-chevron-left {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 15%;
    left: calc(50% - 500px);
    transform: translateY(-50%);
    font-size: 2em;
    color: #000000;
    filter: drop-shadow(0px 0px 2px #10d070);
    cursor: pointer;
    z-index: 3;
}
.banner .fa-chevron-right {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 15%;
    left: calc(50% + 500px);
    transform: translateY(-50%);
    font-size: 2em;
    color: #000000;
    cursor: pointer;
    filter: drop-shadow(0px 0px 2px #10d070);
    z-index: 3;
}
.banner .slider{
    position: absolute;
    width: 200px;
    height: 250px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.77,0,0.175,1); /* <-- Add this line */
}
@keyframes autoRun{
    from{
        transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }to{
        transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
}

.banner .slider .item{
    position: absolute;
    inset: 0 0 0 0;
    transform: 
        rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
        translateZ(300px); /* was 550px */
}
.banner .slider .item img{
    height: 50%;
    object-fit: cover;
    filter: drop-shadow(0px 0px 12px #10d070);
}
.banner .content{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(700px, 50vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}
.banner .content h1{
    font-family: 'ICA Rubrik';
    font-size: 16em;
    line-height: 1em;
    color: #25283B;
    position: relative;
}
.banner .content h1::after{
    position: absolute;
    inset: 0 0 0 0;
    content: attr(data-content);
    z-index: 2;
    -webkit-text-stroke: 2px #d2d2d2;
    color: transparent;
}
.banner .content .author{
    font-family: Poppins;
    text-align: right;
    max-width: 200px;
}
.banner .content h2{
    font-size: 3em;
}
.banner .content .model{
    background-image: url('assets/noise.png');
    width: 100%;
    height: 75vh;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: auto 130%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
}
@media screen and (max-width: 1023px) {
    .banner .slider{
        width: 160px;
        height: 200px;
        left: calc(50% - 80px);
    }

    .banner .slider .item{
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(300px);
    }
    .banner .content h1{
        text-align: center;
        width: 100%;
        text-shadow: 0 10px 20px #000;
        font-size: 7em;
    }
    .banner .content .author{
        color: #fff;
        padding: 20px;
        text-shadow: 0 10px 20px #000;
        z-index: 2;
        max-width: unset;
        width: 100%;
        text-align: center;
        padding: 0 30px;
    }
}
/* COME BACK TO THIS LATER */
@media screen and (max-width: 767px) {
    .banner .slider{
        height: 150px;
        left: calc(50% - 150px);
        justify-content: center;
        align-items: center;
        width: 300px;
        max-width: 300px;
        transform-style: preserve-3d;
        transform: perspective(1000px);
        z-index: 2;
        transition: transform 0.6s cubic-bezier(0.77,0,0.175,1);

    }
        .banner .fa-chevron-left {
        position: absolute;
        width: 10px;
        height: 10px;
        top: 15%;
        left: 3%;
        transform: translateY(-50%);
        font-size: 2em;
        cursor: pointer;
        z-index: 3;
    }
    .banner .fa-chevron-right {
        position: absolute;
        width: 10px;
        height: 10px;
        top: 15%;
        left: 92%;
        transform: translateY(-50%);
        font-size: 2em;
        cursor: pointer;
        z-index: 3;
    }
.banner .slider .item{
    position: absolute;
    inset: 0 0 0 0;
    transform: 
        rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
        translateZ(100px); /* was 550px */
}
    .banner .content h1{
        font-size: 5em;
    }
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px; /* space between items */
    justify-content: center;
    align-items: flex-start;
    margin: 32px auto;
    max-width: 1800px;
}

.gallery {
    flex: 0 1 340px; /* or width: 340px; */
    box-sizing: border-box;
    margin: 0;
    background: #0b1911;
    border: 1px solid #085308;
    border-radius: 8px;
    padding: 8px;
    filter: drop-shadow(0px 0px 5px #10d070);
    transition: box-shadow 0.3s;
    position: relative;
}

.gallery img,
.gallery video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.gallery {
    margin: 5px;
    border: 1px solid #2AA469 ;
    float: left;
    width: 180px;
    display: inline-block;
    transition: box-shadow 0.3s;
    vertical-align: top;
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.77,0,0.175,1), box-shadow 0.4s;
    z-index: 1;
    position: relative;
    max-width: 100%;
    height: auto;
}

.gallery img {
    transition: transform 0.4s cubic-bezier(0.77,0,0.175,1), box-shadow 0.4s;
    z-index: 1;
    position: relative;
    max-width: 100%;
    height: auto;
    display: block;
}


.floating-image-container {
    position: absolute;
    left: 50%;
    top: 340px; /* Sits below the carousel/banner, adjust as needed */
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100vw;
    height: auto;
    z-index: 10;
    pointer-events: none;
    margin: 0;
}

.floating-image {
    width: 80vw;      /* Very large, scales with browser */
    max-width: 1200px; /* Prevents it from being too huge on big screens */
    min-width: 320px;  /* Ensures it's not too small on mobile */
    height: auto;
    animation: float-bounce 3s ease-in-out infinite;
    display: block;
}

.time {
    float: right;
    color: #2AA469;
}

@keyframes float-bounce {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-30px); }
    100% { transform: translateY(0); }
}

.navdesc {
    font-family: Terminal, monospace;
    font-size: .8em;
    color: #2AA469;
    text-align: center;
    padding: -10px 0px;
}

/* Add this to your style.css to make the banner smaller on fashion, gymnastics, and wallpapers pages */
body.fashion-page .banner,
body.gymnastics-page .banner,
body.wallpapers-page .banner {
    height: 180px;
    min-height: 0;
    max-height: 220px;
}
body.fashion-page .banner img,
body.gymnastics-page .banner img,
body.wallpapers-page .banner img {
    max-height: 180px;
    width: auto;
    object-fit: contain;
}  .gallery video,
  .gallery img {
    width: 100%;
    max-width: 120px; /* Match your mobile gallery item width */
    height: auto;
    aspect-ratio: 3/2; /* Or match your thumbnail aspect ratio */
    display: block;
    border-radius: 4px;
    object-fit: cover;
  }
  .gallery {
    width: 120px;
    padding: 4px;
  }

.page-banner-img {
    display: block;
    margin: 0 auto;
    width: 40%;         /* Default for desktop */
    max-width: 800vw;
    height: auto;
}

/* Larger on tablets */
@media (max-width: 1023px) {
    .page-banner-img {
        width: 60%;
        max-width: 95vw;
    }
}


/* Even larger on mobile */
@media (max-width: 767px) {
    .page-banner-img {
        width: 90%;
        max-width: 98vw;
    }
    .terminal {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(10, 24, 16, 0.95); /* slightly transparent */
        color: #2AA469;
        border: 1px solid;
        border-radius: 8px;
        font-family: 'Terminal', monospace;
        font-size: small;
        max-width: 400px;
        width: 80vw;
        height: 80vh;
        padding: 16px;
        overflow-y: auto;
        box-sizing: border-box;
        z-index: 10001; /* ensures it is above the floating image */
        animation: popup 0.3s cubic-bezier(0.77,0,0.175,1);
    }
    .gallery {
        width: 120px;
        padding: 4px;
        font-size: 0.85em;
    }
    .gallery img,
    .gallery video {
        padding: 4px;
        border-radius: 3px;
    }
    .gallery-container {
        gap: 12px;
    }
    .image-nav img:hover {
        transform: scale(1);
    }
  .gallery:hover,
  .gallery:active {
    transform: none !important;
    z-index: 1 !important;
    border: 1px solid #2AA469 !important;
    /* Remove or override any hover effects here */
    box-shadow: none !important;
    filter: none !important;
    background: none !important;
  }    
}

@media (-moz-touch-enabled: 0), (pointer: fine) {
    .gallery:hover {
        transform: scale(2.2) translateY(-20px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.5);
        z-index: 10;
    }
}

@media (hover: none) and (pointer: coarse) {
  .gallery:hover,
  .gallery:active {
    transform: none !important;
    z-index: 1 !important;
    border: 1px solid #2AA469 !important;
    /* Remove or override any hover effects here */
    box-shadow: none !important;
    filter: none !important;
    background: none !important;
  }
}