/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#randomColorButton {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: none;
  color: var(--background-color, #121212);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  z-index: 1000;
}

#colorPopover {
  position: fixed !important;
  top: 4.5rem !important;
  right: 1rem !important;
  bottom: auto !important;
  left: auto !important;
  padding: 0.75rem 1rem;
  background-color: var(--text-color, #ffffff);
  color: var(--background-color, #121212);
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.875rem;
  white-space: nowrap;
  z-index: 1001;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0 !important;
  inset: auto !important;
}

#colorPopover:popover-open {
  display: block !important;
  position: fixed !important;
  top: 4.5rem !important;
  right: 1rem !important;
  bottom: auto !important;
  left: auto !important;
}

html,
body {
  background-color: var(--background-color, #121212);
  color: var(--text-color, #ffffff);
  height: 100dvh;
  font-weight: bold;
  line-height: 1.5;
  font-family: "Arial", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
}
header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  padding-block: 2rem;
  padding-top: 2rem;
  flex-wrap: wrap;
}

a {
  color: inherit;
}

/* Main container */
.container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Center content - takes up remaining space */
.center-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-content {
  flex: 1;
  max-width: 600px;
  width: 90%;
  margin: 0 auto;

  margin-left: 10%;

  font-weight: 100;
}

.main-content * + * {
  margin-top: 1rem;
}

.main-content h2 {
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.main-content ol {
  margin-left: 1.5rem;
  margin-bottom: 2rem;
  list-style-type: decimal;
  padding-left: 1rem;
}
/* Main title styling */
.main-title {
  font-size: clamp(8rem, 20vw, 25rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Individual letter animation */
.letter {
  display: inline-block;
  /* animation: float 3s ease-in-out infinite; */
  animation-delay: var(--delay);
  transform-origin: center;
}

/* Floating animation with subtle pulsing effect */
@keyframes float {
  0%,
  100% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  75% {
    opacity: 1;
  }
}

/* Footer styling */
.footer {
  padding: 2rem;
  text-align: center;
}

.footer p {
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 1rem;
  }

  .main-title {
    letter-spacing: 0.05em;
  }
}
