/* ===== BASE ===== */

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: white;
}

/* ===== INTRO ===== */

#intro-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;

    text-align: center;
    background: white;
}

.intro-title {
    font-size: 60px;
    font-family: Garamond, serif;
}

.intro-img {
    max-width: 400px;
}

.intro-meta {
    font-size: 14px;
    opacity: 0.7;
}

.enter-link {
    background: none;
    border: none;
    font-size: 60px;
    font-family: Garamond, serif;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
      text-underline-position: under;
}

.enter-link:hover {
    text-decoration: none;
}

/* ===== LAYOUT ===== */

#layout {
    display: none;
    padding: 20px 20px; /* space for marquees */
}

.center {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

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

.content-flow p {
    margin: 20px 0;
}

.content-flow img {
    max-width: 100%;
    display: block;
    margin: 30px auto;
}

.full-width-banner {
    width: 100vw;           /* full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;   /* stretch full viewport width */
    margin-right: -50vw;
    background-color: red;   /* red background */
    box-sizing: border-box;  /* ensure padding included in width */
    align-items: center;     /* vertical centering */
    text-align: center;      /* fallback for multi-line text */
}

.full-width-banner .banner-title {
    font-family: Arial Narrow;
    font-size: 24px;
    color: black;           /* text color */
    line-height: 1.2;       /* tighter line spacing */
    margin: 0;
}

/* ===== SIDE GIF SYSTEM ===== */

.side-gif {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 30px auto;
}

/* DESKTOP: push to sides */
@media (min-width: 768px) {

    .side-gif {
        position: absolute;
        width: 120px;
        margin: 0;
        opacity: 0.95;
    }

    .left-gif {
        left: -180px;
    }

    .right-gif {
        right: -180px;
    }

    
}

/* ===== IMAGE VARIATIONS ===== */

.image-row { 
    display: flex; 
    justify-content: 
    center; align-items: 
    flex-start; gap: 10px; 
    flex: 1; 
    margin: 40px 0;} 

.image-row img {
    height: 240px;   /* pick what looks good */
    width: auto;     /* keeps proportions */
    display: block;
}

/* Small gifs row: tight and small */
.image-row.small {
    display: flex;
    justify-content: center;   /* center the gifs */
    align-items: center;       /* vertical alignment */
    gap: 4px;                  /* tiny spacing */
    flex-wrap: nowrap;          /* prevent wrapping */
}

.image-row.small img {
    height: 80px;              /* small height */
    width: auto;               /* maintain aspect ratio */
    flex-shrink: 0;            /* prevent squishing */
    display: inline-block;     /* for inline alignment */
    margin: 0;                 /* remove extra margins */
}

.full-width-wrapper {
    width: 100vw;

    position: relative;
    left: 50%;
    transform: translateX(-50%);

    margin: 80px 0;
}

.full-width-wrapper img {
    width: 100%;
    display: block;
}

/* ===== TRIPLE IMAGE ROW ===== */
.image-row.triple {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 40px 0;
}

.image-row.triple img {
    height: auto;
    object-fit: contain;
}

/* center image */
.image-row.triple .center-img {
    height: auto;        /* 🔑 THIS unlocks width scaling */
    width: 500px;    
    z-index: 2;
}

/* side images */
.image-row.triple .side-img {
    max-width: 250px;
    width: auto;
}

/* push them outward symmetrically */
.image-row.triple .left {
    transform: translateX(-30%);
}

.image-row.triple .right {
    transform: translateX(30%);
}

.image-row.full-split {
    display: flex;
    width: 100%;
}

.image-row.full-split img {
    width: 50%;
    height: auto;
    display: block;
}



/* ===== TEXT STYLES ===== */


.full-width-text {
    width: 70vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 80px 0;
}

.red-background {
    background-color: red;
    padding: 10px;
}

.title {
    font-size: 42px;
    font-family: Garamond, serif;
    text-align: center;
    font-weight: bold;
}

      .blink {
        animation: blink-animation 1s steps(5, start) infinite;
        -webkit-animation: blink-animation 1s steps(5, start) infinite;
      }
      @keyframes blink-animation {
        to {
          visibility: hidden;
        }
      }
      @-webkit-keyframes blink-animation {
        to {
          visibility: hidden;
        }
      }

.center-blue {
    font-size: 42px;
    font-family: Garamond, serif;
    line-height: 80%;
    color: blue;
    font-weight: bold;
    text-align: center;
}

.comic {
    font-family: "Comic Sans MS", cursive;
    font-size: 30px;
}

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.big {
    font-size: 42px;
}

.underline {
    text-decoration: underline;
}

.medium {
    font-size: 24px;
}

.center-quote {
    text-align: center;
}

.small-letter-spacing {
    letter-spacing: -0.3px;
}

.red {
    color: red;
}

.arial-narrow {
    font-family: Arial Narrow, sans-serif;
}

.pink {
    color: pink;
}

.grey {
    color: grey;
}

.blue {
    color: blue;
}

.justify {
    text-align: justify;
}

.impact {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}


/* ===== MARQUEE ===== */

.marquee {
    position: fixed;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    z-index: 9998;
    font-size: 21px;
    background: blue;
    color: white;
    display: none;  /* show via JS when needed */
}

.marquee.top { top: 0; }
.marquee.bottom { bottom: 0; }

.marquee-inner-top {
    display: inline-block;
    padding-right: 100%;   /* ensures smooth looping */
    animation: scroll-top 50s linear infinite;
}

.marquee-inner-bottom {
    display: inline-block;
    padding-right: 100%;   /* ensures smooth looping */
    animation: scroll-bottom 50s linear infinite;
}

/* Keyframes for scrolling */
@keyframes scroll-top {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes scroll-bottom {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

@media (max-width: 768px) {

    #layout {
        padding: 40px 15px;  /* reduce top padding slightly for mobile */
        box-sizing: border-box; /* ensure padding included in width calculations */
        overflow-x: hidden;    /* prevent accidental horizontal scroll */
    }

    .intro-img {
        max-width: 250px; /* Adjust this number until it looks perfect */
        width: 80%;       /* Ensures it never hits the screen edges */
        height: auto;
    }

    /* SIDE GIFS NATURAL SIZE */
    .side-gif {
        position: static;
        margin: 30px auto;
        width: auto;
        max-width: none;
        height: auto;
        display: block;
    }

    /* IMAGE ROWS */
    .image-row {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;       /* allow wrapping if needed */
        justify-content: center;
    }
   /* Normal image rows (not small) */
    .image-row:not(.small) img {
        width: calc(50% - 5px); /* responsive width for normal rows */
        height: auto;
    }

    /* Small gif rows stay tiny and tight */
    .image-row.small {
        gap: 4px;        /* tight spacing */
        flex-wrap: nowrap; /* don't let them wrap */
        justify-content: center; /* center them */
    }

.image-row.small img {
    width: auto !important;    /* override mobile width */
    height: 80px !important;
}


    /* FULL WIDTH IMAGES */
    .full-width-wrapper {
        width: 100%;           /* take full mobile width */
        left: 0;
        transform: none;       /* remove translateX centering */
        margin: 40px 0;
    }

    .full-width-wrapper img {
        width: 100%;
        height: auto;
        display: block;
    }

    .enter-link {
        font-size: 40px;
    }

  .mobile-gif-wrapper.side-by-side {
    display: flex !important;
    flex-direction: row !important; 
    flex-wrap: nowrap !important;    /* CRITICAL: Prevents stacking */
    justify-content: center !important; 
    align-items: center !important;
    gap: 10px;                       /* Small gap to save space */
    width: 100%;
    margin: 20px 0 !important;
  }

  .mobile-gif-wrapper.side-by-side .side-gif {
    /* Set width to a percentage that leaves room for the gap */
    width: 45% !important;           
    max-width: 150px !important;     /* Hard cap on size */
    height: auto !important;
    flex-shrink: 1 !important;       /* Allows them to shrink to fit the row */
    margin: 0 !important;
    position: static !important;
  }
.image-row.triple {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

/* center image = biggest */
.image-row.triple .center-img {
    width: 40%;     /* main focus */
    height: auto;
}

/* side gifs = smaller */
.image-row.triple .side-img {
    width: 20%;     /* fits screen */
    height: auto;
}

}