/* Modern Normalize-ish Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: white;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

#root,
#__next {
  isolation: isolate;
}

.montserrat-font {
  font-family: 'Montserrat', sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}
.josefin-sans-font {
  font-family: 'Josefin Sans', sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}
.bold {
  font-weight: bolder;
}
.bolder {
  font-weight: 900;
}
.regular {
  font-weight: normal;
}
.thin {
  font-weight: 300;
}
.grad {
  position: relative;
  background: radial-gradient(
    ellipse farthest-corner at 50% 50%,
    #cf0000 0%,
    #c23fff 59%,
    #00007d 100%
  );
  height: 700px;
  text-align: center;
  color: white;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.pulse {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.year {
  color: white;
  position: relative;
  font-size: 4.2rem;
  top: 15%;
}
.wow {
  position: absolute;
  top: 0;
  right: 20%;
  font-weight: 400;
  font-size: 1.2rem;
  rotate: calc(30deg);
}
.found {
  position: relative;
  top: 25%;
  font-size: 2.7rem;
}
.each-other {
  font-size: 1.5rem;
}
.heart-block {
  display: flex;
  justify-content: center;
  gap: 25px;
  position: relative;
  top: 35%;
}
.date {
  position: relative;
  top: 40%;
}
.header {
  text-align: center;
  color: white;
  font-size: 2.25rem;
}
.centered-text {
  text-align: center;
  margin: 0 auto; /* centers it on all screens */
  padding: 0 20px;
}
.what-is-this-section {
  margin-bottom: 47px;
}

.what-is-this-section .header {
  margin-top: 38px;
}
.what-is-this-section .paragraph {
  margin: auto;
  text-align: center;
}
.lot-relative {
  position: relative;
}
.lot {
  position: absolute;
  top: 80%;
  font-weight: bold;
  font-size: 10px;
  left: 81%;
  rotate: calc(15deg);
}
.line {
  background-color: white;
  height: 1px;
  margin: 0 92px;
}
.our-song-wrapper {
  margin-top: 20px;
  margin-bottom: 20px;
}
.so-much-to-say-section {
  margin-bottom: 20px;
}
.song-frame {
  display: flex;
  justify-content: center;
  margin: 5px 8%;
}
.love {
  font-weight: 800;
  text-transform: lowercase;
  display: inline-block;

  background: radial-gradient(
    circle at 50% 50%,
    #ff90c2 0%,
    #ff4f8b 35%,
    #ff1e63 60%,
    #ff8fc9 100%
  );

  background-size: 250% 250%;
  animation: lovelyLove 2.8s ease-in-out infinite;

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes lovelyLove {
  0% {
    background-position: 40% 40%;
    transform: scale(1);
  }
  25% {
    background-position: 80% 20%;
    transform: scale(1.05);
  }
  50% {
    background-position: 60% 80%;
    transform: scale(1.1);
  }
  75% {
    background-position: 20% 60%;
    transform: scale(1.05);
  }
  100% {
    background-position: 40% 40%;
    transform: scale(1);
  }
}
.paragraph {
  margin: 0 20px;
  text-align: left;
  line-height: 180%;
}
.img-saturn {
  margin: 20px;
}
.img-saturn img {
  border-radius: 20px;
  border: 2px solid white;
}
.center-planet {
  display: flex;
  justify-content: center;
}
.center-heart {
  display: flex;
  justify-content: center;
  margin: 17px 0;
}
.why-section {
  margin-top: 20px;
  margin-bottom: 20px;
}
.justify {
  text-align: start;
  margin: 0 18px;
}
.grayed {
  color: #808080;
}
.fire {
  font-weight: 700;
  background: linear-gradient(90deg, #ff4b00, #ffb400, #ff0000);
  background-size: 200% 200%;
  animation: burn 1.5s infinite linear;

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  display: inline-block;
  position: relative;
}

/* Optional: subtle flicker/shake for more realism */
@keyframes burn {
  0% {
    background-position: 0% 50%;
    transform: translateY(0) rotate(0deg) scale(1);
    filter: brightness(1);
  }
  25% {
    background-position: 50% 100%;
    transform: translateY(-1px) rotate(-1deg) scale(1.02);
    filter: brightness(1.2);
  }
  50% {
    background-position: 100% 50%;
    transform: translateY(1px) rotate(1deg) scale(1);
    filter: brightness(1.1);
  }
  75% {
    background-position: 50% 0%;
    transform: translateY(-1px) rotate(-1deg) scale(1.02);
    filter: brightness(1.3);
  }
  100% {
    background-position: 0% 50%;
    transform: translateY(0) rotate(0deg) scale(1);
    filter: brightness(1);
  }
}
.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 100px; /* adjust as needed */
}

.year {
  font-size: 48px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.year.show {
  opacity: 1;
  transform: translateY(0);
}

.infinity {
  font-size: 60px;
  margin-top: 30px;
}

.infinity {
  font-size: 80px;
  font-weight: 900;
  background: radial-gradient(
    circle at 50% 50%,
    #cf0000 0%,
    #c23fff 59%,
    #00007d 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: flowGradient 4s linear infinite,
    pulseInfinity 2s ease-in-out infinite;
}

/* Gradient movement */
@keyframes flowGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Optional pulse for more life */
@keyframes pulseInfinity {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
/* vertical dots */
.dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; /* spacing between dots */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.dots.show {
  opacity: 1;
  transform: translateY(0);
}
.infinite {
  margin-bottom: 100px;
}

.dots span {
  display: block;
  width: 10px;
  height: 10px;
  background-color: #ffffff10; /* change color as needed */
  border-radius: 50%;
}
.opa1 {
  opacity: 1;
}
.opa2 {
  opacity: 0.9;
}
.opa3 {
  opacity: 0.8;
}
.opa4 {
  opacity: 0.7;
}
.opa5 {
  opacity: 0.6;
}
.opa6 {
  opacity: 0.5;
}
.opa7 {
  opacity: 0.4;
}
.opa8 {
  opacity: 0.3;
}
.opa9 {
  opacity: 0.2;
}
.opa10 {
  opacity: 0.1;
}

.fruit {
  display: inline-block;
  animation: bounce 1.2s ease-in-out infinite;
  transform-origin: bottom center; /* makes the squash look natural */
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) scaleX(1) scaleY(1);
  }
  20% {
    transform: translateY(-10px) scaleX(1.05) scaleY(0.95);
  }
  40% {
    transform: translateY(0) scaleX(0.95) scaleY(1.05);
  }
  60% {
    transform: translateY(-6px) scaleX(1.03) scaleY(0.97);
  }
  80% {
    transform: translateY(0) scaleX(0.98) scaleY(1.02);
  }
}

.heart {
  display: inline-block;
  width: 60px; /* adjust size */
  height: 60px;
  animation: heartbeat 1s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  14% {
    transform: scale(1.2) rotate(-5deg);
  }
  28% {
    transform: scale(1) rotate(5deg);
  }
  42% {
    transform: scale(1.2) rotate(-3deg);
  }
  70% {
    transform: scale(1) rotate(0deg);
  }
}


.shrek-btn {
  background: linear-gradient(145deg, #5db84d 0%, #3f7d30 100%);
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  padding: 12px 30px;
  border: 2px solid #2e5d1f;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 4px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-size: 200% 200%;
}

/* slight animated texture movement */
.shrek-btn:hover {
  background-position: 100% 0;
  transform: scale(1.05);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 6px 8px rgba(0,0,0,0.4);
}

/* optional bouncing glow for fun */
@keyframes shrekGlow {
  0%, 100% { box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 4px 6px rgba(0,0,0,0.3); }
  50% { box-shadow: inset 0 3px 6px rgba(0,0,0,0.3), 0 6px 8px rgba(0,0,0,0.5); }
}

.shrek-btn.animate {
  animation: shrekGlow 2s infinite ease-in-out;
}
.shrek-wrap{
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

#shrek-container {
  position: relative; /* relative to the page or a parent container */
  width: 100%;
  height: 100%;
}

.shrek-img {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease-out;
  cursor: pointer; /* optional fun: can click Shrek again */
}

/* optional bounce */
@keyframes shrek-bounce {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  20% { transform: translate(-50%, -60%) scale(1.1); }
  40% { transform: translate(-50%, -50%) scale(0.95); }
  60% { transform: translate(-50%, -55%) scale(1.05); }
  80% { transform: translate(-50%, -50%) scale(1); }
}

.shrek-img.bounce {
  animation: shrek-bounce 1s ease-in-out infinite;
}