* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
}

body {
  background-color: #f4f4f4;
  color: #333;
}

header {
  background-color: #2c3e50;
  padding: 1rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  left: 1rem;
  top: 1rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

nav {
  transition: transform 0.3s ease;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover, nav a[aria-current="page"] {
  color: #3498db;
}

main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

#timeline, #weapons, #war-crimes, #map-section {
  text-align: center;
}

#timeline h1, #weapons h1, #war-crimes h1, #map-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

#timeline p, #weapons p, #war-crimes p, #map-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #666;
}

#map-section p #current-time {
  font-weight: bold;
  color: #2c3e50;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.filter-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.filter-menu button {
  background: #3498db;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-menu button:hover, .filter-menu button.active {
  background: #2980b9;
}

.filter-menu button:focus {
  outline: 2px solid #2c3e50;
  outline-offset: 2px;
}

.timeline-item, .weapon-item, .accusation-item, .event-item, .call-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  animation: slideIn 0.5s forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item.hovered, .weapon-item.hovered, .event-item.hovered {
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.timeline-item strong, .weapon-item strong, .event-item strong {
  color: #2c3e50;
  margin-right: 0.5rem;
  font-weight: bold;
}

.weapon-item h3, .accusation-item h3, .call-item h3, .event-item h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.weapon-item p, .accusation-item p, .event-item p, .call-item p {
  margin-bottom: 1rem;
}

.weapon-image {
  max-width: 100%;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.weapon-image:hover {
  transform: scale(1.05);
}

.weapon-item ul, .accusation-item ul, .event-item ul {
  list-style: none;
  padding: 0;
}

.weapon-item ul li, .accusation-item ul li, .event-item ul li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

#donate form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 0 auto;
  gap: 1rem;
}

#donate input, #donate button {
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#donate button {
  background-color: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#donate button:hover {
  background-color: #2980b9;
}

#map {
  height: 500px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#province-info {
  margin-top: 1rem;
}

#province-info.active {
  opacity: 1;
  transform: translateY(0);
}

.metrics-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.metrics-list li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.metrics-list li strong {
  color: #2c3e50;
}

.leaflet-popup-content-wrapper {
  border-radius: 5px;
}

.leaflet-popup-content h3 {
  margin-top: 0;
  color: #2c3e50;
}

.leaflet-popup-content p {
  margin: 0.5rem 0;
}

.leaflet-popup-content ul {
  list-style: none;
  padding: 0;
}

.leaflet-popup-content ul li {
  margin-bottom: 0.5rem;
}

/* Ensure proper layering for heatmap and markers */
.leaflet-heatmap-layer {
  z-index: 400; /* Default for heatmap */
}

.leaflet-marker-pane {
  z-index: 500; /* Ensure markers are above heatmap */
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #2c3e50;
  color: white;
  margin-top: 2rem;
}

/* Accessibility */
:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  nav {
    transform: translateX(-100%);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background: #2c3e50;
    padding-top: 4rem;
  }
  nav.active {
    transform: translateX(0);
  }
  nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  main {
    padding: 1rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  #timeline h1, #weapons h1, #war-crimes h1, #map-section h1 {
    font-size: 2rem;
  }
  #timeline p, #weapons p, #war-crimes p, #map-section p {
    font-size: 1rem;
  }
  #map {
    height: 400px;
  }
  .filter-menu {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .timeline-item, .weapon-item, .accusation-item, .event-item, .call-item {
    padding: 1rem;
  }
  .filter-menu button {
    width: 100%;
    text-align: center;
  }
}

/* Font Loading */
@font-face {
  font-family: 'Roboto';
  src: url('assets/fonts/roboto-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url('assets/fonts/roboto-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}


/* [Previous CSS remains unchanged until new styles] */

#donate #qr-options {
  margin-top: 1rem;
}

.qr-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  animation: slideIn 0.5s forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-item h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  text-align: center;
}

.qr-code {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.qr-code:hover {
  transform: scale(1.05);
}

.qr-item p {
  text-align: center;
  color: #666;
  margin-bottom: 0;
}

/* [Rest of the CSS remains unchanged] */
/* [Previous CSS remains unchanged until new styles] */

#blog #timeframe-generator {
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

#blog #timeframe-generator label {
  font-weight: bold;
  color: #2c3e50;
}

#blog #timeframe-generator input,
#blog #timeframe-generator button {
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#blog #timeframe-generator button {
  background-color: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#blog #timeframe-generator button:hover {
  background-color: #2980b9;
}

.article-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  animation: slideIn 0.5s forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-item.hovered {
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.article-item h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.article-item p {
  margin-bottom: 0.5rem;
  color: #666;
}

.article-item .read-more {
  background: #3498db;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.article-item .read-more:hover {
  background: #2980b9;
}

#full-article {
  margin-top: 1rem;
}

#full-article h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

#full-article p {
  color: #333;
  line-height: 1.6;
}

/* [Rest of the CSS remains unchanged] */