/* Algemene basisstijlen */
html {
  height: 100%; /* Zorgt dat body 100% hoogte krijgt */
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Minstens volledige schermhoogte */
  background-color: rgba(239, 239, 239, 0.40); /* Gewenste achtergrondkleur */
}



* {
  box-sizing: border-box;
}

/* Container en paginalay-out */
#container {
  min-height: 100%;
  /* _height:100%; - Deze eigenschap is voor IE6 en kan waarschijnlijk verwijderd worden. */
  width: 1590px;
  margin: 0 auto;
  font-size: 16px;
  background-color: rgba(239, 239, 239, 0.40);
  flex: 1;
}

#divtop {
  padding: 10px;
  width: 1590px;
  height: auto;
  position: fixed;
  /* position: absolute; /*ie6 */ - Redundant met fixed, verwijder tenzij specifieke IE6 support nodig is. */
  top: 0;
  background-color: rgba(239, 239, 239, 1);
  z-index: 10000;
}

#restpaginadesktop {
  padding-left: 20px;
  padding-right: 20px;
  margin: 138px auto 0;
}

#restpaginamobiel {
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 auto 0;
}

#frontrestpagina {
  padding-left: 20px;
  padding-right: 20px;
  margin: 190px auto 0;
}

#mobilefix {
  padding-top: 120px;
  padding-left: 12px;
  padding-right: 12px;
}

/* Inschrijfblok */
.inschrijf-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  justify-content: flex-start;
}

.inschrijf-item {
  font-family: sans-serif;
  font-size: 14px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #3f51b5;
  width: calc(16% - 16px);
  box-sizing: border-box;
}

.inschrijf-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.inschrijf-item b {
  display: block;
  margin-bottom: 4px;
  color: #333;
  font-weight: 600;
}

.inschrijf-item span {
  display: inline;
}

.inschrijf-info {
  display: flex;
  align-items: baseline;
  margin-top: 4px;
}

.label {
  width: 50px; /* Vaste breedte voor mooie uitlijning */
  display: inline-block;
}

/* Knoppen en interactieve elementen */
button {
  border: 4px solid black;
  font-size: 18px;
}

.buttonC {
  font-weight: 1000;
  border-radius: 0;
  margin-left: -5px;
  border: none; /* Maakt alle borders nul, overlappend met de 'button' stijl */
  font-size: 18px;
}

.buttonD {
  font-weight: 100;
  border-radius: 1px;
  margin-left: -5px;
  border: 2px solid; /* Aanname: 2px solid zwart, of specifieke kleur toevoegen */
  font-size: 20px;
}

.buttonM {
  margin-left: -5px;
  font-size: 16px;
  line-height: 17px;
  color: red;
}

.knop-wrapper,
.knop-deleter {
  position: relative;
  display: inline-block;
  z-index: 10; /* knop-deleter had z-index: 1, samengevoegd naar 10 als algemene wrapper */
}

.delete-knop {
  position: relative;
  z-index: 5;
}

#verwijder-popup {
    position: absolute;
    z-index: 9999;
    background: white;
    border: 3px solid black;
    padding: 20px;
 margin-left: 310px;

    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.3);
    min-width: 300px;
    max-width: 600px;
    display: none;
    transition: opacity 0.3s ease-in-out;
}

#verwijder-popup.show {
    display: block;
    opacity: 1;
}







/* Tekst en typografie */
td {
  font-size: 18px;
}

h1 {
  font-size: 40px;
  line-height: 42px;
  display: inline;
}

h2 {
  display: inline;
}

h5 {
  font-size: 40px;
  line-height: 42px;
  display: inline;
}

p6 {
  font-size: 28px;
  line-height: 34px;
  display: inline;
}

p7 {
  font-size: 18px;
  line-height: 20px;
  display: inline;
}

h8, h9 { /* Samengevoegd omdat ze identiek waren */
  font-size: 22px;
  line-height: 5px;
  display: inline;
}

.grotere-tekst {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}

hr {
  margin-left: -5px;
  margin-right: -5px;
}

/* Links */
a:link,
a:visited {
  color: orange;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: red;
  background-color: transparent;
  text-decoration: underline;
}

a:active {
  color: orange;
  background-color: transparent;
  text-decoration: underline;
}

/* Specifieke secties en componenten */
#divdagen,
#divoverzicht { /* Gecombineerd voor gemeenschappelijke stijlen */
  border-style: solid;
  border-radius: 5px; /* divdagen was 5px, divoverzicht was 8px - kies een of maak apart */
  padding-left: 17px;
  padding-top: 11px;
  padding-bottom: 19px;
  background-color: hsla(228, 54%, 46%, 0.06);
}
#divdagen {
  border-width: 2px;
  border-color: hsla(228, 54%, 46%, 0.55);
}


#divmededeling { /* Gecombineerd voor gemeenschappelijke stijlen */
  border-style: solid;
  border-radius: 5px; /* divdagen was 5px, divoverzicht was 8px - kies een of maak apart */
  padding-top: 11px;
  padding-bottom: 11px;
  border-width: 4px;
  background-color: hsla(228, 54%, 46%, 0.06);
  border-color:hsla(359,100%,50%,1.46);
  font-size: 25px;
}

#divoverzicht {
  border-width: 3px;
  border-color: #3f51b5;
  border-radius: 8px; /* Specifieke radius voor divoverzicht */
}

#divspacedagen {
  height: 20px;
}

#divlinks {
  width: 60%;
  float: left;
}

#divrechts {
  width: 40%;
  float: left;
  font-size: 24px;
}

#binnensteslider,
.slider { /* Dubbele selector, kan samengevoegd */
  /* Geen specifieke stijlen hier gedefinieerd */
}

.slick-slide {
  margin: 0; /* Was 0px 0px */
  transition: all ease-in-out .3s;
  opacity: .2;
}

.slick-active {
  opacity: .5;
}

.slick-current {
  opacity: 1;
}

input.pw2 {
  -webkit-text-security: disc;
}

#kassa {
  padding-top: 25px;
  padding-left: 80px;
}

#frames {
  height: 830px;
}

#divmunitieklein {
  background-color: hsla(0, 100%, 50%, 0.42);
  width: 100%;
}

.pushbericht {
  background-color: hsl(0, 100%, 92%);
  width: auto;
  padding: 10px 10px 10px 10px; /* Vereenvoudigd padding */
  /* padding-right:-200px; - Dit is een negatieve padding en kan onverwacht gedrag veroorzaken. Controleer dit. */
  border-style: double;
}

/* Sponsoren */
#divsponsoren {
  width: 100%;
  text-align: center;
  padding-bottom: 10px;
}

.sponsor-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px; /* Ruimte tussen de logo's */
  flex-wrap: wrap; /* Op kleinere schermen onder elkaar */
}

#divkeukentotaal,
#divtwentegolf {
  text-align: center;
}

#divwapenkluis {
  width: 420px;
  float: left;
  text-align: center;
  margin-left: 20px;
}

#divsponsorkliks {
  width: 650px;
  float: left;
  text-align: center;
  margin-left: 20px;
}

#divlinksdagen {
  padding-left: 0;
}

/* Hamburger Menu */
.menu-container {
  z-index: 99999;
  position: relative;
}

#hamburger-menu .nav-links,
.nav-links { /* Gecombineerd voor gemeenschappelijke stijlen */
  display: none;
  background-color: #333;
  color: white;
  font-size: 50px;
  overflow-y: auto;
}

#hamburger-menu .nav-links {
  position: fixed; /* Zorgt dat het menu boven de hele pagina komt */
  top: 0;
  left: 0;
  width: 1360px; /* Let op: vaste breedte kan problemen geven op kleinere schermen */
  height: auto; /* Volledige schermhoogte */
  padding-top: 10px;
  margin-top: 110px;
  z-index: 1; /* Zorg dat het menu boven alles komt */
}

.nav-links.show {
  display: block;
}

.hamburger-buttonmenu {
  z-index: 100;
}

.hamburger-button {
  background-color: #333;
  color: white;
  padding: 0 0 5px 65px; /* Vereenvoudigd padding */
  font-size: 75px;
  cursor: pointer;
  width: 1605px; /* Let op: vaste breedte kan problemen geven op kleinere schermen */
  margin: -12px 0 0 -30px; /* Vereenvoudigd margin */
  text-align: left;
  z-index: 99999;
}

.nav-links a {
  display: block;
  padding: 15px;
  color: white;
  text-decoration: none;
}

.nav-links a:hover {
  background-color: #111;
}

/* Tabellen */
.mijntabel {
  border-collapse: separate;
  border: none; /* Buitenrand uitschakelen */
}

.mijntabel td,
.mijntabel th {
  border: 1px solid black; /* Binnenranden */
}

/* Baanplanner en Reserveringen */
#baanplanner-container {
  position: relative;
  z-index: 1; /* Lager dan menu */
}

.tijd-geselecteerd {
  outline: 3px solid orange;
  background-color: rgba(255, 165, 0, 0.15);
}

.day-reservation-section { /* Aangepaste naam voor dagelijkse secties */
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0; /* Ruimte boven en onder elke dagsectie */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.day-reservation-section h3 {
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 22px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.reserve-button-main {
  background-color: #28a745;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.2s ease;
  margin: 15px auto 0 auto; /* Ruimte boven de knop en centreren */
  display: block; /* Zorgt dat de knop een eigen regel inneemt */
  width: fit-content; /* Past de breedte aan de inhoud aan */
}

.reserve-button-main:hover:not(:disabled) {
  background-color: #218838;
}

.reserve-button-main:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.selectable-slot {
  position: relative;
  cursor: pointer;
  background: linear-gradient(-90deg, transparent 95%, green 5%);
  font-weight: 500;
  border-radius: 2px;
  border: 2px solid green;
  width: 260px;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box; /* Include padding/border in width/height */
  margin: 5px 0; /* Ruimte tussen knoppen */
}

.selectable-slot.selected {
  background: linear-gradient(-90deg, green 95%, transparent 5%);
  color: white;
  border-color: darkgreen;
}

.selectable-slot.selected .slot-text {
  color: white !important; /* Forceer witte tekst */
}

.selectable-slot.selected::after {
  content: '✓'; /* Vinkje */
  position: absolute;
  right: 10px;
  color: white;
  font-size: 20px;
  font-weight: bold;
}

.selectable-slot .slot-text {
  color: green; /* Standaard tekstkleur */
  font-weight: bold;
}

.selectable-slot:hover {
  opacity: 0.9;
}











.confirm-deletepopup {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 1000;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    width: 600px;
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.confirm-deletepopup.show {
    opacity: 1;
    visibility: visible;
    display: block;
}



.confirm-deletepopup .doe-reserveer {
    background-color: #28a745; /* Groen */
    color: white;
}

.confirm-deletepopup .doe-reserveer:hover {
    background-color: #218838;
}

.confirm-deletepopup .annuleer-reserveer {
    background-color: #FF0004; /* Rood */
    color: white;
}

.confirm-deletepopup .annuleer-reserveer:hover {
    background-color: #c82333;
}













/*Algemene styling voor de bevestigings-popup */
.confirm-popup {
    position: absolute;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 1000;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.confirm-popup.show {
    opacity: 1;
    visibility: visible;
}

.confirm-popup .grotere-tekst {
    font-size: 24px; /* Grotere tekst voor de vraag */
    margin-bottom: 25px; /* Meer ruimte onder de vraag */
    color: #333;
}

/* Styling voor de inschrijf-items binnen de popup */
.confirm-popup .inschrijf-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* Houd de gap van de originele inschrijf-container */
    justify-content: center; /* Zorgt ervoor dat items centreren */
    margin-bottom: 25px; /* Ruimte boven de knoppen */
}

.confirm-popup .inschrijf-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    text-align: left;
    width: auto; /* Laat flexbox de breedte bepalen */
    flex-grow: 1; /* Belangrijk: laat items groeien om beschikbare ruimte te vullen */
    min-width: 180px; /* Minimale breedte voor betere leesbaarheid */
    border-left: 8px solid #28a745; /* Groene balk aan de zijkant */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Licht schaduw voor diepte */
}

.confirm-popup .inschrijf-item div {
    margin-bottom: 5px;
}

.confirm-popup .inschrijf-item strong {
    color: #000;
}

.confirm-popup .inschrijf-item .label {
    font-weight: normal; /* Labels zijn niet vet */
    color: #555;
    margin-right: 5px;
}

/* Knoppen in de popup */
.confirm-popup button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin: 0 10px; /* Ruimte tussen knoppen */
    transition: background-color 0.3s ease;
}

.confirm-popup .doe-reserveer {
    background-color: #28a745; /* Groen */
    color: white;
}

.confirm-popup .doe-reserveer:hover {
    background-color: #218838;
}

.confirm-popup .annuleer-reserveer {
    background-color: #FF0004; /* Rood */
    color: white;
}

.confirm-popup .annuleer-reserveer:hover {
    background-color: #c82333;
}

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  font-size: 54px;
  background-color: rgba(51, 51, 51, 0.5);

  color: white;
  border: none;
  border-radius: 50%;
  padding: 14px 18px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #555;
  transform: scale(1.1);
}






/* Responsive aanpassingen */
@media screen and (max-width: 768px) {
  .ButtonC.delete-knop { /* Let op: .ButtonC en .delete-knop zijn samen gebruikt */
    min-width: unset !important;
    width: 100%;
    height: 54px !important;
    padding-left: 10px !important;
    margin-bottom: 5px;
  }

  .knop-deleter .confirm-popup {
    top: auto;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
  }

  .selectable-slot {
    height: 54px; /* Hoger op mobiel */
  }

  .day-reservation-section { /* Aangepaste naam */
    padding: 15px;
    margin-bottom: 20px;
  }

  .reserve-button-main {
    width: 100%; /* Maak de knop volledig breed op mobiel */
    box-sizing: border-box; /* Zorg dat padding meetelt */
  }
}