/* Algemene stijl */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  background-color: #121212;
  color: #ffffff;
  text-align: center;
  box-sizing: border-box;
}

.logo-container {
  margin-bottom: 20px; /* Ruimte tussen logo en main-container */
}

#logo {
  width: 260px; /* Pas de breedte aan naar wens */
  height: auto;
  display: block; /* Verwijdert eventuele inline spacing */
  margin: 0 auto; /* Centreert het logo binnen de container */
}

/* Stijl voor de main-container */
.main-container {
  max-width: 600px;
  width: 100%;
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

button {
  font-size: 1rem;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  background-color: #007BFF;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Animation Container */
#animation-container {
  position: relative;
  width: 100%;
  height: 200px;
  margin-top: 10px;
  overflow: hidden;
}

/* Car Container */
#car-container {
  position: absolute;
  right: -200px; /* Start buiten het scherm aan de rechterkant */
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: right 2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Klasse om de animatie te starten */
#car-container.show {
  right: 50%;
  transform: translateX(50%);
}

/* Styling voor de auto */
#car {
  width: 150px;
  height: auto;
  z-index: 10; /* Zorgt ervoor dat de auto boven remspoor staat */
}

/* Remspoor styling */
#remspoor {
  position: absolute;
  width: 300px; /* Lengte remspoor */
  bottom: 55px;
  left: 31px;
  height: 5px;
  background: linear-gradient(to right, rgba(73, 73, 73, 0.8), transparent);
  margin-top: -5px; /* Zodat het remspoor direct onder de auto staat */
  z-index: 5; /* Remspoor onder de auto */
}

/* Advies-tekst onder de animatie */
#advice-text {
  margin-top: 10px;
  text-align: center;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Klasse om advies-tekst te tonen */
#advice-text.show {
  opacity: 1;
}

.data-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #d0d0d0;
}

/* Disclaimer stijl */
#disclaimer {
  margin-top: 40px;
  max-width: 600px;
  font-size: 0.7rem; /* Verlaagd van 0.8rem naar 0.7rem voor kleinere tekst */
  color: #cccccc;
  line-height: 1.4;
  text-align: center; /* Centreert de disclaimertekst */
}

/* Als je de <small> tag gebruikt, kun je deze regel toevoegen */
#disclaimer p small {
  font-size: 0.7rem; /* Zorgt voor kleinere tekst binnen de <small> tag */
}

/* Responsieve aanpassingen */
@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }

  p {
    font-size: 1rem;
  }

  button {
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  #logo {
    width: 200px; /* Kleinere logo op mobiele apparaten */
  }

  #car {
    width: 120px;
  }

  #remspoor {
    width: 200px; /* Aanpassen voor kleinere schermen */
    bottom: 44px;
    left: 30px;
  }

  #animation-container {
    height: 180px;
  }

  #advice-text {
    font-size: 0.9rem;
  }

  #disclaimer {
    font-size: 0.6rem; /* Nog kleinere tekst voor mobiele apparaten */
  }
}
