body, html {
    height: 100%;
    margin: 0;
    font-size: 16px;
    font-family: "Arial", sans-serif;
    scroll-behavior: smooth;
}

.hero-image {
  background-image: linear-gradient(rgba(87, 82, 82, 0.623), rgba(0, 0, 0, 0.5)), url("img/heroImg.jpg");
  height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-text {
  text-align: center;
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Arial Black", "Arial Bold", Gadget, sans-serif;
  color: rgba(255, 255, 255, 0.514);
}

.hero-text h1 {
  font-size: 3.5rem;
  margin: 10px 0;
}

.hero-text p {
  font-size: 1.8rem;
  margin: 15px 0;
}

.play-btn {
  font-size: 1.5rem;
  padding: 15px 40px;
  cursor: pointer;
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  font-weight: bold;
}

.play-btn:hover {
  background-color: rgba(255, 0, 0, 0.9);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: auto;
}

.close {
  position: absolute;
  right: -40px;
  top: -40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close:hover {
  color: #ccc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.info-section {
  background-color: #ffff;
  padding: 40px 30px;
  margin: 30px 0;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.info-section h2 {
  color: #333;
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 20px;
}

.info-section p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.events-section {
  background-color: #fff;
  padding: 40px 30px;
  margin: 40px 0;
}

.events-section h2 {
  color: #333;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
}

.events-text {
  max-width: 900px;
  margin: 0 auto;
}

.events-text p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 20px 0;
  padding: 15px;
  border-left: 4px solid #d32f2f;
  background-color: #f9f9f9;
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text p {
    font-size: 1.3rem;
  }
  
  .play-btn {
    font-size: 1.2rem;
    padding: 12px 30px;
  }

  .info-section h2 {
    font-size: 2rem;
  }

  .info-section p {
    font-size: 1rem;
  }

  .events-section h2 {
    font-size: 2rem;
  }

  .close {
    right: 10px;
    top: 10px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .play-btn {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .container {
    padding: 20px 10px;
  }

  .info-section {
    padding: 20px 15px;
    margin: 20px 0;
  }

  .info-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .info-section p {
    font-size: 0.95rem;
  }

  .events-section {
    padding: 20px 10px;
  }

  .events-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .events-text p {
    font-size: 0.95rem;
    padding: 12px;
  }

  .modal-content {
    width: 95%;
  }
}

.timeline-section {
  background-color: #fff;
  padding: 50px 30px;
  margin: 50px 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-section h2 {
  text-align: center;
  color: #333;
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 15px;
}

.timeline-intro {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-bottom: 30px;
}

.timeline-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.timeline-button {
  background-color: #d32f2f;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.timeline-button:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.timeline-button.active {
  background-color: #d32f2f;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.timeline-content {
  display: none;
  background-color: #f5f5f5;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  border-left: 5px solid #d32f2f;
  animation: slideIn 0.4s ease;
}

.tijdlijn-img{
  width: 100%;
  height: 100%;
}

.timeline-content.active {
  display: block;
}

.timeline-content h3 {
  color: #333;
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 20px;
}

.timeline-detail h4 {
  color: #d32f2f;
  font-size: 1.2rem;
  margin-top: 20px;
  margin-bottom: 10px;
}

.timeline-detail p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 15px 0;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .timeline-section {
    padding: 30px 20px;
  }

  .timeline-section h2 {
    font-size: 1.8rem;
  }

  .timeline-container {
    gap: 10px;
  }

  .timeline-button {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .timeline-content {
    padding: 20px;
  }

  .timeline-content h3 {
    font-size: 1.4rem;
  }
}

.timeline-game-section {
  background-color: #fff;
  padding: 50px 30px;
  margin: 50px 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-game-section h2 {
  text-align: center;
  color: #333;
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 10px;
}

.timeline-game-intro {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.timeline-game-container {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 10px;
  border: 2px dashed #ddd;
}

.timeline-slot {
  background-color: white;
  border: 3px dashed #d32f2f;
  border-radius: 8px;
  padding: 20px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.timeline-slot:hover {
  border-color: #d32f2f;
  background-color: #fff9f9;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.1);
}

.year-label {
  position: absolute;
  top: 5px;
  left: 10px;
  font-weight: bold;
  color: #d32f2f;
  font-size: 0.9rem;
}

.events-pool {
  background-color: #f5f5f5;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  min-height: 150px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  align-content: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.event-card {
  background-color: #d32f2f;
  color: white;
  padding: 15px 18px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(211, 47, 47, 0.2);
  transition: all 0.3s ease;
  max-width: calc(50% - 6px);
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
  background-color: #c71c1c;
}

.event-card.selected {
  outline: 4px solid #3498db;
  background-color: #b81d1d;
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.6);
  transform: translateY(-3px) scale(1.02);
}

.event-card.correct {
  background-color: #4caf50;
  box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.event-card.wrong {
  background-color: #f44336;
  box-shadow: 0 3px 10px rgba(244, 67, 54, 0.3);
  animation: shake 0.4s ease;
}

.check-btn {
  background-color: #d32f2f;
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto 20px;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.2);
}

.check-btn:hover {
  background-color: #c71c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.reset-btn {
  background-color: #666;
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reset-btn:hover {
  background-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.timeline-result {
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-text {
  color: #333;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  padding: 15px 20px;
  border-radius: 8px;
  animation: slideInDown 0.4s ease;
}

.result-text.success {
  background-color: #f1f8f5;
  border: 2px solid #4caf50;
  color: #2e7d32;
}

.result-text.error {
  background-color: #fff3f0;
  border: 2px solid #f44336;
  color: #c62828;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@media (max-width: 768px) {
  .timeline-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-game-section h2 {
    font-size: 2rem;
  }

  .event-card {
    max-width: 100%;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .timeline-game-section {
    padding: 30px 20px;
    margin: 30px 0;
  }

  .timeline-game-section h2 {
    font-size: 1.5rem;
  }

  .timeline-game-intro {
    font-size: 1rem;
  }

  .timeline-track {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }

  .timeline-slot {
    min-height: 100px;
    padding: 15px;
  }

  .events-pool {
    padding: 15px;
    gap: 10px;
  }

  .event-card {
    max-width: 100%;
    padding: 12px 15px;
    font-size: 0.85rem;
  }

  .check-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}