@font-face {
  font-family: "Instrument Serif";
  src: url("InstrumentSerif-Regular.woff2") format("woff2"),
    url("InstrumentSerif-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Instrument Serif", serif;
  background-color: black;
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.top-image {
  align-self: center;
  margin-top: 2em;
  width: 200px;
}

/* Text styles with reduced opacity */
.bottom-text {
  align-self: flex-start;
  padding-left: 0.2em;
  margin-left: 0.4em;
  margin-bottom: 0.5em;
  font-size: 103px;
  letter-spacing: 0.02em;
  background: linear-gradient(
    to right,
    rgba(255, 235, 238, 1),
    rgba(221, 160, 221, 1),
    rgba(255, 222, 235, 1),
    rgba(221, 160, 221, 1),
    rgba(255, 235, 238, 1)
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: movingGradient 10s linear infinite;
  opacity: 0.8;
}

.bottom-text span:first-child,
.bottom-text span:last-child {
  font-style: italic;
  font-size: 106px;
}

.avant-garde {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.ball {
  --delay: 0s;
  --size: 0.4;
  --speed: 20s;

  aspect-ratio: 1;
  width: calc(150% * var(--size));

  background: linear-gradient(259.53deg, #e83e8c 6.53%, #fd7e14 95.34%);
  filter: blur(10vw);

  border-radius: 50%;

  position: absolute;
  top: 0;
  left: 0;

  animation: loop var(--speed) infinite linear;
  animation-delay: var(--delay);
  transform-origin: 50% 50%;

  opacity: 0.6;
}

@keyframes loop {
  0% {
    transform: translate3D(0%, 51%, 0) rotate(0deg);
  }
  5% {
    transform: translate3D(8%, 31%, 0) rotate(18deg);
  }
  10% {
    transform: translate3D(22%, 13%, 0) rotate(36deg);
  }
  15% {
    transform: translate3D(40%, 2%, 0) rotate(54deg);
  }
  20% {
    transform: translate3D(46%, 21%, 0) rotate(72deg);
  }
  25% {
    transform: translate3D(50%, 47%, 0) rotate(90deg);
  }
  30% {
    transform: translate3D(53%, 80%, 0) rotate(108deg);
  }
  35% {
    transform: translate3D(59%, 98%, 0) rotate(125deg);
  }
  40% {
    transform: translate3D(84%, 89%, 0) rotate(144deg);
  }
  45% {
    transform: translate3D(92%, 68%, 0) rotate(162deg);
  }
  50% {
    transform: translate3D(99%, 47%, 0) rotate(180deg);
  }
  55% {
    transform: translate3D(97%, 21%, 0) rotate(198deg);
  }
  60% {
    transform: translate3D(80%, 7%, 0) rotate(216deg);
  }
  65% {
    transform: translate3D(68%, 25%, 0) rotate(234deg);
  }
  70% {
    transform: translate3D(59%, 41%, 0) rotate(251deg);
  }
  75% {
    transform: translate3D(50%, 63%, 0) rotate(270deg);
  }
  80% {
    transform: translate3D(38%, 78%, 0) rotate(288deg);
  }
  85% {
    transform: translate3D(21%, 92%, 0) rotate(306deg);
  }
  90% {
    transform: translate3D(3%, 79%, 0) rotate(324deg);
  }
  100% {
    transform: translate3D(0%, 51%, 0) rotate(360deg);
  }
}

.glow-container {
  overflow-x: hidden;
  overflow-y: hidden;
  position: fixed;

  width: 100%;
  min-height: 100vh;
}

/* Media Queries for Mobile Devices */
@media (max-width: 480px) {
  .top-image {
    width: 150px; /* Smaller image for smaller screens */
  }

  .bottom-text {
    font-size: 50px; /* Adjusted font size for readability */
  }

  .bottom-text span:first-child,
  .bottom-text span:last-child {
    font-size: 50px;
  }

  .bottom-text {
    padding-bottom: 80px; /* Additional padding to avoid the iOS bottom toolbar */
  }
}
