/* Header Navigation Bar */
:root {
  --header-text-color: #ffffff; /* Default color, will be overridden by script.js */
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000000; /* Changed to fully opaque */
  z-index: 1000;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo a {
  color: var(--header-text-color);
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin-left: 1.5rem;
}

.nav-menu a {
  color: var(--header-text-color);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--header-text-color);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  filter: brightness(1.5);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--header-text-color);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001; /* Ensure it's above the slide-in menu */
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%; /* Only cover half the screen */
    height: 100vh; /* Full height */
    background-color: #000000; /* Fully opaque */
    flex-direction: column;
    padding: 4rem 0 1rem; /* Add padding at top for the header */
    transform: translateX(100%); /* Slide from right */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    justify-content: flex-start;
    align-items: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }
  
  .nav-menu.show {
    transform: translateX(0); /* Slide in from right */
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu li {
    margin: 0.5rem 0;
    text-align: center;
  }
  
  .nav-toggle {
    display: block;
  }
}

/* Content spacing to account for fixed header */
.content-wrapper {
  padding-top: 5rem;
}

/* Rhyme Gym page styling */
.rhyme-gym-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  color: white;
}

.rhyme-gym-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  animation: pulse 2s infinite ease-in-out;
}

.rhyme-gym-content p {
  font-size: 1.5rem;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Main Content Navigation and link styling */
ol {
  list-style: none;
  counter-reset: days-counter;
  font-size: 2rem;
  position: relative;
}

/* Link styling with pulse animation */
ol a {
  color: inherit;
  text-decoration: none;
  display: inline-block; /* Ensures the scaling works as expected */
  transition: transform 0.3s ease-in-out; /* Smooth transition */
  animation: pulse 1.5s infinite ease-in-out; /* Apply the pulse animation */
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000; /* Add thicker black outline */
}

ol a:hover {
  animation: none; /* Stop pulsing on hover */
  transform: scale(2); /* Increase the size to create a bulge effect */
}

/* Counter display */
ol li:before {
  content: counter(days-counter);
  z-index: -5;
  position: absolute;
  opacity: 0;
  font-size: 30vh;
  font-family: "Major Mono Display", monospace;
  transform: translate(-50%, 0%);
}

/* Position counters left/right */
ol li:nth-child(odd):before { left: 0%; }
ol li:nth-child(even):before { left: 100%; }

/* Selection styling */
ol li::selection {
  color: white;
  background: #2d863c;
}
