@import url('https://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900');
@import url('https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,600,700,800,900');
@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* --- Title Animation CSS --- */
.hidden {
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

.visible {
    opacity: 1;
    transition: opacity 3s ease-in-out;
}

/* --- General Body and Layout --- */
body {
    font-family:'Gloria Hallelujah', sans-serif;
    display: block;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    color: #333;
    overflow-x: hidden !important;
}

.intro {
    height:100vh;
    display:flex;
    justify-content: center;
    align-items: center;
    width:100%;
}

h1.title {
    font-size: 4em;
    color: #000;
    text-transform:uppercase;
    width:100%;
    text-align:center;
}

.credits {
    font-weight:normal;
    font-family:'Gloria Hallelujah', sans-serif;
    color:#ffffff;
    background-color:#000000;
}
.credits .stanza {
    background-color:#000000;
    text-align:center;
    margin:auto;
    padding-top:10%;
}
h2 {
    font-size:2em;
    line-height:1.5em;
}
h3 {
    font-size:1.5em;
    line-height:1.7em;
}

.title p {
    font-family:'Gloria Hallelujah', sans-serif;
}

.page-break.full {
    display:block;
    width:100%;
    height:250vh;
}


.page-break.final {
    display:block;
    width:100%;
    height:200vh;
    background-color:#000000;
    padding-top:20%;
}

.stanza {
    max-width:600px;
    background-color:#ffffff;
    font-size:18px;
    text-align:left;
    line-height:24px;
    margin:auto;
    display:block;
    padding:4px 20px;
    position: relative;
    z-index: 2;
    
}

.stanza .italic {
 font-family:'Gloria Hallelujah', sans-serif;
}

.stanza.full {
     display:block;
    width:100%;
}
.stanza.left {
    display:block;
    width:200px;
    margin-top:200px;
    margin-left:10%;
}

.stanza.right {
    display:block;
    width:200px;
    margin-top:200px;
    margin-right:10%;
}
.stanza.final {
     display:block;
    width:300px;
    z-index:999;
}

.page-break.end {
    display:block;
    width:100%;
    height:240vh;
    background-color:#000000;
    padding-top:20%;
       z-index:999;
}


.page-break {
    height:200vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: Georgia;
}

/* --- Kaleidoscope Section CSS (Canvas) --- */
.kaleidoscope {
    width: 100%;
    position: relative;
    background: linear-gradient(180deg,rgba(240, 240, 240, 1) 37%, rgba(0, 0, 0, 1) 61%, rgba(0, 0, 0, 1) 100%);
    min-height: 500vh; 
    display: flex;
    flex-direction: column; 
    justify-content: space-around; 
    align-items: center; 
}

.kaleidoscope-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; 
    z-index: 1; 
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
}

/* BLUE SECTION - Now gradient colors */

.blue {
    min-height: 300vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #000000; 
    overflow: hidden;
      background-size: cover;
  
}

.blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; 
    z-index: 0;
}

@-webkit-keyframes bg-color {
  14.3% {
    background-color: #C77DF3;
  }
  28.6% {
    background-color: #8A2BE2;
  }
  42.9% {
    background-color: #0000ff;
  }
  57.2% {
    background-color: #00ff00;
  }
  71.5% {
    background-color: #ffdd00;
  }
  85.8% {
    background-color: #ff7700;
  }
  100% {
    background-color: #FF0000;
  }
}


.blue.blue-active::before {
    opacity: 1;
}

/* --- DISTORTION ON TEXT --- */
@keyframes distort {
  0% {
    filter: url("#messy1");
  }
  25% {
    filter: url("#messy2");
  }
  50% {
    filter: url("#messy3");
  }
  75% {
    filter: url("#messy4");
  }
  100% {
    filter: url("#messy5");
  }
}

.always-fuzzy {
	animation: distort 0.6s linear infinite alternate;
}

.interact-fuzzy:hover {
	animation: distort 0.6s linear infinite alternate;
    cursor: url('../images/cat-cursor-hover.png'), pointer !important;
}


/* FLASHING COP LIGHTS */
.container-dark {
    height:200vh;
    background-color:#000;
    padding:100px 0;
    overflow-y: visible;
}
.cops {
    min-height: 150vh;
    position: relative;
    background-color: #000;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.cops.cops-active {
    opacity: 1;
}

.cops::before, /* Red light */
.cops::after { /* Blue light */
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    
}

.cops::before { /* Red Light */
    background: radial-gradient(circle at 10% 50%, rgba(255, 0, 0, 0.5), transparent 70%);
    animation: flicker-red 3s infinite alternate; 
    
}

.cops::after { /* Blue Light */
    background: radial-gradient(circle at 90% 50%, rgba(0, 0, 255, 0.5), transparent 70%);
    animation: flicker-blue 3s infinite alternate;
    animation-delay: 1.5s;
}

.cops .stanza {
    z-index: 99;
}

/* Keyframe animations for flickering lights */
@keyframes flicker-red {
    0% { opacity: 0.2; transform: scale(1) translateX(0); }
    25% { opacity: 0.6; transform: scale(1.1) translateX(5vw); }
    50% { opacity: 0.3; transform: scale(0.9) translateX(-5vw); }
    75% { opacity: 0.7; transform: scale(1.2) translateX(0); }
    100% { opacity: 0.2; transform: scale(1) translateX(0); } 
}

@keyframes flicker-blue {
    0% { opacity: 0.2; transform: scale(1) translateX(0); }
    25% { opacity: 0.6; transform: scale(1.1) translateX(-5vw); }
    50% { opacity: 0.3; transform: scale(0.9) translateX(5vw); }
    75% { opacity: 0.7; transform: scale(1.2) translateX(0); }
    100% { opacity: 0.2; transform: scale(1) translateX(0); } 
}


/* LIGHTHOUSE ANIMATION */
.lighthouse-section {
    height: 200vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

#lighthouseSVG {
    width: 40%;
    max-height: 100%;
    display: block;
    margin: auto;
    position: sticky; /* Makes the lighthouse stay in place while scrolling through the section */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    overflow: visible;
}

.lighthouse-filled {
    fill: #ffffff;
    stroke: #ffffff;
    stroke-miterlimit: 10;
    stroke-width: 3px;
}
.lighthouse-filled-thick-stroke {
    fill: #ffffff;
    stroke: #ffffff;
    stroke-miterlimit: 10;
    stroke-width: 3px;
}
.lighthouse-filled-thin-stroke {
    fill: #ffffff;
    stroke: #ffffff;
    stroke-miterlimit: 10;
    stroke-width: 2px;
}
.lighthouse-stroke-only {
    fill: none;
    stroke: #ffffff;
    stroke-miterlimit: 10;
    stroke-width: 5px;
}

.light-rays {
    z-index: 1;
    transition: transform 0.1s linear, opacity 0.1s linear;
}

.light-ray {
    stroke-linecap: round;
    fill: none;
    stroke: rgba(255, 255, 255, 0.5); 
    transition: stroke-width 0.1s linear;
}


/* FULL PAGE RAINBOW SCROLLER */


.scroll {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 1;
  font-family: Roboto, sans-serif;
  letter-spacing: 0.2em;
  font-size: 11px;

  span {
    display: block;
  }

  svg {
    margin-top: 200px;
    width: 18px;
    height: 18px;
    animation: scroll 0.95s ease-in-out alternate infinite;
    fill: none;
    stroke: #000000;
    stroke-linecap: round;
    stroke-miterlimit: 10;
    stroke-width: 1;
  }
}

.circle {
  width: 20px;
  height: 20px;
  border-radius: 40%;
  opacity: 0;
  margin: -19px auto;
  transition: transform 1s cubic-bezier(0.14, 0.15, 0.13, 0.99);
}

span.small {
    font-size:14px;
    color:#000;
    font-family:'Gloria Hallelujah', sans-serif;
}

@keyframes scroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(10px);
  }
}

a {
    color:#ffffff;
}

@media only screen and (max-width: 600px) {
    .stanza {
        margin-left:10px;
        margin-right:10px;
        max-width:90%;
    }

/* Mobile fallback layout */
 #wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

#content {
  position: absolute;
  width: 100%;
  height: 2300%; 
  top: 0;
  left: 0;
  pointer-events: none;
}
html {
    overflow-x: hidden !important;
    max-width:100%;
}
.page-break.final {
    height:150vh;
}

#lighthouseSVG {
    width: 80%;
    top: 30%;

}
  
}