:root {
  --bg-color: #fdf6e3;
  --text-color: #2d2d2d;
  --accent: #7a9e7e;
  --nav-bg: #b22222;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.dark-mode {
  --bg-color: #1e1e1e;
  --text-color: #f5f5f5;
  --nav-bg: #8b1a1a;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: var(--nav-bg);
  color: white;
  position: relative;
}

.logo {
  margin: 0;
  font-size: 1.8rem;
  text-align: center;
  flex: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
  text-decoration: underline;
}

#darkModeToggle {
  background: var(--nav-bg);
  color: white;
  border: 2px solid white;
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  cursor: pointer;
}

#menuToggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 260px;
  background: var(--nav-bg);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar .nav-links {
  flex-direction: column;
  display: flex;
  gap: 1rem;
}

.sidebar .nav-links a {
  font-size: 1.2rem;
}

main {
  padding: 1rem;
  flex: 1;
}

section {
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.site-footer {
  text-align: center;
  padding: 1rem;
  background-color: var(--nav-bg);
  color: white;
}

.timeline-section,
.about-section,
.faq-section,
.rules-section,
.contact-section {
  max-width: 800px;
  margin: 2rem auto;
  line-height: 1.6;
}

.form-container iframe {
  width: 100%;
  max-width: 900px;
  min-height: 600px;
  height: 80vh;
  border: none;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  #menuToggle {
    display: block;
  }
  .logo {
    text-align: center;
    font-size: 1.3rem;
    margin: 0 2rem;
  }
  .form-container iframe {
    height: 90vh;
    min-height: 600px;
  }
}

@media (min-width: 769px) {
  #menuToggle {
    display: none;
  }
  .sidebar {
    display: none;
  }
  .logo {
    margin-left: 500px;
    text-align: center;
  }
}
