body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f4f4f4;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

nav {
  background-color: #222;
  color: white;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-left {
  margin-left: 10px;
}

nav button {
  background-color: #444;
  color: white;
  padding: 10px 16px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav button:hover, .settings-dropdown button:hover {
  background-color: #555;
}

header {
  text-align: center;
  padding: 2rem;
  background: #333;
  color: white;
}

section {
  padding: 2rem;
  display: none;
}

section.active {
  display: block;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.timeline-item {
  background-color: white;
  border-left: 4px solid #007BFF;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s;
}

.timeline-item:hover {
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.timeline-item h4 {
  margin: 0;
  color: #007BFF;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-details {
  display: none;
  margin-top: 0.5rem;
  color: #555;
}

.timeline-item.active .timeline-details {
  display: block;
}

.more-info {
  color: #007BFF;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  user-select: none;
  transition: color 0.3s;
}

.more-info:hover {
  color: #0056b3;
  text-decoration: underline;
}

.settings-dropdown {
  position: relative;
  display: inline-block;
}

.settings-dropdown button {
  background-color: #444;
  border-radius: 4px;
}

.settings-dropdown .dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #222;
  min-width: 140px;
  padding: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  border-radius: 4px;
  z-index: 1001;
}

.settings-dropdown:hover .dropdown-content,
.settings-dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown-content label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  cursor: pointer;
  user-select: none;
}


table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

thead {
  background-color: #007BFF;
  color: white;
}

th, td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

body.dark-mode {
  background-color: #121212;
  color: #ddd;
}

body.dark-mode nav {
  background-color: #1e1e1e;
}

body.dark-mode nav button,
body.dark-mode .settings-dropdown button {
  background-color: #333;
  color: #ddd;
}

body.dark-mode nav button:hover,
body.dark-mode .settings-dropdown button:hover {
  background-color: #555;
}

body.dark-mode .timeline-item {
  background-color: #222;
  border-left-color: #bb86fc;
  box-shadow: none;
}

body.dark-mode .timeline-item:hover {
  box-shadow: 0 0 15px rgba(187, 134, 252, 0.7);
}

body.dark-mode .timeline-item h4 {
  color: #bb86fc;
}

body.dark-mode .timeline-details {
  color: #ccc;
}

body.dark-mode .more-info {
  color: #bb86fc;
}

body.dark-mode .more-info:hover {
  color: #9a67ea;
}

@media (max-width: 768px) {
  nav .nav-container {
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav-left, .nav-right {
    justify-content: center;
  }

  nav button {
    width: 100%;
    max-width: 300px;
  }

  .timeline-container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  header h2 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 1rem;
  }

  table {
    font-size: 14px;
  }
}

body.dark-mode tbody tr {
  background-color: #000 !important;
  color: white;
}

body.dark-mode tbody tr:nth-child(even) {
  background-color: #111 !important;
}

.more-info {
  color: #007BFF;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  user-select: none;
  transition: color 0.3s;
  display: inline-block;
}

.more-info:hover {
  color: #0056b3;
  text-decoration: underline;
}

body.dark-mode .more-info {
  color: #bb86fc;
}

body.dark-mode .more-info:hover {
  color: #9a67ea;
}
.hero-gallery {
  margin-top: 2rem;
  text-align: center;
}

.hero-gallery h4 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.image-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}

.image-scroll img {
  height: 200px;
  border-radius: 8px;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
}

.image-scroll img:hover {
  transform: scale(1.05);
}

body.dark-mode .hero-gallery h4 {
  color: #bb86fc;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-content-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #f1f1f1;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 0.25rem 0.5rem;
  transition: background-color 0.3s;
}

.modal .close:hover,
.modal .close:focus {
  background-color: rgba(255,255,255,0.2);
  color: #bbb;
}

.burger-menu {
  position: relative;
  display: block !important;
}

.burger-menu button {
  background-color: #444;
  color: white;
  font-size: 1.4rem;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.burger-menu button:hover {
  background-color: #555;
}

.burger-dropdown {
  position: absolute;
  top: 48px;
  left: 0;
  background-color: #222;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  min-width: 180px;
  z-index: 1002;
  animation: fadeIn 0.3s ease;
}

.burger-dropdown a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.burger-dropdown a:hover {
  background-color: #333;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

body.dark-mode .burger-dropdown {
  background-color: #111;
}

body.dark-mode .burger-dropdown a:hover {
  background-color: #222;
}

@media (max-width: 768px) {
  .burger-menu {
    display: block;
  }

  .nav-left > button:not(.burger-menu button),
  .nav-right {
    display: none;
  }
}
