body {
  background-color: rgba(240, 240, 240, 0.6);
}

.container.map {
  margin-top: 15px;
  padding: 20px 10px 10px 10px;
  /* Padding toegevoegd voor meer ruimte binnen de container boven iets meer */
  background-color: rgba(240, 240, 240, 0.6);
  /* Lichtgrijze achtergrond met 60% transparantie */
  border-radius: 10px;
  /* Optionele afronding van de hoeken */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Optionele schaduw voor meer diepte */
  border: solid #4a6c99 4px;
}

/* Boven de invoer knop: ruimte tussen de kaart en de knop */
.ruimte_input {
  padding: 70px 0px 0px 10px;
  display: inline-block;
  /* Of gebruik 'block' als dat beter past */
}

.ruimte_input_zone {
  padding: 10px 0px 0px 10px;
  display: inline-block;
  /* Of gebruik 'block' als dat beter past */
}

button {
  margin-left: 15px;
  margin-bottom: 25px;
  margin-top: 25px;
}

.kleine_letter {
  font-size: 12px;
  margin-top: 10px;
  color: #6c757d;
  /* Is gelijk aan bootstrap vermelding 'text-muted'=> '#6c757d' */
}

.kleine_tijdzone {
  font-size: 14px;
  color: #4a6c99;
  /* Is gelijk aan bootstrap vermelding 'text-muted' */
}

.h5 {
  color: #4a6c99;
  margin: 40px 0px 8px 0px;
  padding-left: 15px;
}

label[for="timezone-input"] {
  padding: 15px;
  color: orange;
}

label[for="time-input"] {
  padding: 15px;
  margin-bottom: 25px;
  color: orange;
}

#time-difference-result {
  color: #4a6c99;
  padding-left: 15px;
}

#converted-time-output {
  color: #4a6c99;
  padding-left: 15px;
}

#timezone-select {
  margin-bottom: 1rem;
  /*      of 16px  ==> de ruimte onder het dropdown menu            */
}

/* Basis: mobiel eerst */
.ruimte_input_zone {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0 12px;
}

#timezone-select,
#time-input,
#btn-calc {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Kop iets responsiever */
.h5 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

/* Desktop en grotere schermen: compacter en naast elkaar */
@media (min-width: 768px) {
  /* Houd het hele blok op een prettige breedte */
  .ruimte_input_zone {
    max-width: 520px;
    /* pas aan naar smaak (bv. 480–640px) */
    padding: 0;
    /* desktop: geen extra rand nodig */
  }

  /* Zet input en select netjes onder elkaar of naast elkaar */
  .ruimte_input_zone {
    gap: 0.75rem;
  }

  /* Besturingselementen: niet meer full-width */
  #timezone-select,
  #time-input {
    width: 100%;
    max-width: 420px;
    /* voorkomt 'enorm' brede velden op desktop */
  }

  /* Knop: alleen zo breed als nodig */
  #btn-calc {
    display: inline-block;
    width: auto;
    max-width: none;
    padding: 0.5rem 1rem;
  }
}

/* Extra: superbreed scherm? iets strakker centreren */
@media (min-width: 1200px) {
  .ruimte_input_zone {
    max-width: 560px;
  }
}

/* Donker thema => volgt de systeem instellingen van het 'apparaat' */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1c1c1c;
    color: #ffffff;
  }

  .container.map {
    background-color: #1c1c1c;
  }

  .kleine_tijdzone {
    color: lightseagreen;
  }

  .h5 {
    color: lightseagreen;
  }

  #time-difference-result {
    color: lightseagreen;
  }

  #converted-time-output {
    color: lightseagreen;
  }
}
