/* ================================================ */
/* Algemene body & container instellingen          */
/* ================================================ */
body {
  margin: 0;
  padding: 0;
  overflow: hidden;

}

#container {
  display: flex;
  justify-content: space-between;

  height: 100vh;
}



/* ================================================ */
/* Field-container & layout                         */
/* ================================================ */
#Field-container {
width: 100%;
height: 100%;
justify-self: center;


}

.FieldWrapper {
  display: grid;
grid-template-columns: 15% 70% 15%; 
  grid-template-rows: 25% 50% 25%;
 
 
 width: 80%;           /* Of een ander percentage/px naar keuze */
  height: auto;         /* Laat de hoogte bepalen door de breedte */
  aspect-ratio: 2 / 1;  /* Forceert een perfect vierkant. Pas aan naar bijv. 4/3 voor rechthoek */
  max-height: 80%;
  z-index: 0;
  margin: 0 auto;

  
  z-index: 0;
}
.NameFieldWrapper{
     /* neemt alle beschikbare ruimte naast #change-menu */
  height: 100%;
  display: flex;

  justify-content: center; /* horizontaal centreren */
  align-items: center; 
  flex-direction: column;    /* verticaal centreren */

}

.Name{
  padding: 0px;
  margin: 0px;
  justify-self: center;
  margin-bottom: 30px;
}

/* ================================================ */
/* Field & Grid Cells                               */
/* ================================================ */
.Field {
  
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  grid-row: 2;
  grid-column: 2;
  width: 100%;  /* Vult nu de volledige 60% van de grid-cel */
  height: 100%;
  aspect-ratio: 1 / 1;
  background-color: rgb(8, 170, 8);
  z-index: 0;
  
}

.A {
  display: flex;
  flex-direction: column;
  grid-row: 2;
  grid-column: 1;

  height: 100%;
}

.B {
  display: flex;
  
  width: 100%;
  grid-row: 1;
  grid-column: 2;
}

.C {
  display: flex;
  flex-direction: column;

  height: 100%;
  grid-row: 2;
  grid-column: 3;
}

.D {
  display: flex;
  width: 100%;

  grid-row: 3;
  grid-column: 2;
}
.A, .C {
  width: 100%; /* Vult de 1fr van de grid kolom */
  height: 100%;
}

.B, .D {
  width: 100%;
  height: 100%; /* Vult de 1fr van de grid rij */
}
/* ================================================ */
/* Sponsors & sponsor space                         */
/* ================================================ */
.Sponsorspace {
  background-color: transparent;
}

.sponsor {
  box-sizing: border-box;
  flex: 1;
  background-color: cadetblue;
  width: 100%;
  border: 1px solid black;
  cursor: pointer;
}
.sponsor:hover{
filter: brightness(80%);
}

/* ================================================ */
/* Change-menu instellingen                         */
/* ================================================ */
#change-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 5px;
  background-color: rgb(40, 129, 246);
  z-index: 10;
  overflow: hidden;
}


/* ========================================================= */
/* edit */
/* ========================================================= */
.edit{

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: rgb(136, 241, 237);
  width: 10px;
  height: 10px;
  padding: 8px;
  border-radius: 50%;
margin-left: 5px;
  cursor: pointer;
}

.edit:hover{
  transform: scale(1.05);
background-color:rgb(114, 194, 191) ;
}
.icon{

  color: rgb(73, 87, 87);
}

#editplattegrondform{
  border-radius: 10px;
  transition: 0.7s;
  position:fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  height: 500px;
  padding: 10px;
  background-color: blue;


  
  z-index: 100;
  opacity: 0;
  pointer-events: none;
}
#editplattegrondform.show{
    opacity: 1;
  pointer-events: all;
}

#editFloorform{
    transition: 0.7s;
  position: fixed;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  height: 600px;
  background-color: blue;
  border-radius: 10px;
padding: 10px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
}

#editFloorform.show{
    opacity: 1;
  pointer-events: all;
}

#editsponsorform{
  border-radius: 10px;
     transition: 0.7s;
 position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
 
  height: 500px;
  background-color: blue;
padding: 10px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
}

#editsponsorform.show{
    opacity: 1;
  pointer-events: all;
}
#editplattegrondform, #editFloorform, #editsponsorform {
  width: 90%;      /* Gebruik een percentage */
  max-width: 500px; /* Maar nooit breder dan 500px */
  text-align: center;
}
.editform{
  position: fixed;
}
.editinput{
  margin-right: 10px;
  width: 80%;
  height: 60px;
 outline: none;
 border: none;
 border-radius: 10px;
}


.blurred {
  filter: blur(10px);
  pointer-events: none; /* voorkomt klikken */
}


.beschrijving{
  color: rgb(0, 244, 252);
}
#achtergrondkeuze{

margin-top: 50px;
gap: 10px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
 

}
.achtergrond {
  width: 100%;
  height: 100%;
border-radius: 20px;
  cursor: pointer;
  box-sizing: border-box;
}
#default{

  background-color: rgb(8, 170, 8) !important;
}


.FieldBackground{
 
   width: 100%;
height: 100%;

   /* Schaal de afbeelding met behoud van de verhoudingen */
  

}

#kleurkeuze{
  display: flex;
  gap: 10px;
  justify-self: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.color{
  width: 50px;
  height: 50px;
  border: 1px solid black;
  cursor: pointer;
  box-sizing: border-box;
}
.color:hover{
  filter: brightness(90%);
}

.chosen{
  outline: 3px solid gray;
  border: none;
}
.main{
  background-color: cadetblue;
}
.orange{
  background-color: orange;
}
.yellow{
  background-color: yellow;
}
.green{
  background-color: green;
}
.blue{
  background-color: blue;
}
.purple{
  background-color: purple;
}


.datepicker{
  outline: none;
  border: none;
  
  border-radius: 10px;
}
.maindatepicker{
  width: 50%;
  text-align: center;
}

.expired-sponsor {
  background-color: red !important;
}

#verloopTekst{
display: none;
color: red;
}
/* Verberg de kleurkeuze sectie als de sponsor verlopen is */
.expired-mode #kleurkeuze, 
.expired-mode .beschrijving:nth-of-type(2) { 
    display: none; 
}
 .editopslaan{
   transition: 0.5s;
  text-align: center;
  width: 80px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background-color: #0381f7;
  color: white;
  cursor: pointer;
 }
 .editopslaan:hover{
  transform: scale(1.02);
  background-color: #023bb6;
 }

.verwijderKnop{
  transition: 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 80px;
  height: 40px;
  background-color: red;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  margin-top: 10px;
}
.verwijderKnop:hover{
    background-color: rgb(165, 0, 0);
    transform: scale(1.02);
}
/* ========================================================= */
/* Plattegronden */
/* ========================================================= */
#plattegronden-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  height: fit-content;

 
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.plattegronden-button {
  cursor: pointer;
  outline: none;
  border-radius: 10px;
  border: none;
  padding: 5px;
  margin: 10px;
  background-color: rgb(0, 115, 255);
  color: white;
}

.plattegrond {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  background-color: rgb(20, 212, 255);
padding-top: 5px;
padding-bottom: 5px;

 
  width: 100%;
  height: 30px;
  cursor: pointer;
}

.plattegrond:hover {
  color: white;
  background-color: rgb(8, 167, 252);
}


.text{
  flex: 1;
  padding: 0px;
  margin: 0;
}

.wrapper{
  display: flex;
  justify-content: center;
width: 100%;
max-width: 500px;

border-radius: 5px;
  overflow: hidden;
  justify-content: center;
  
}
#plattegronden-list {
  width: 100%;
 height: 120px;


}
/* ========================================================= */
/* Floors Generator */
/* ========================================================= */
#Floors-generator-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;


}

.Floors-generator {
  width: 100%;
  outline: none;
  border-radius: 10px;
  border: none;
  padding: 5px;
}

.Floors-generator-button {
  cursor: pointer;
  outline: none;
  border-radius: 10px;
  border: none;
  padding: 5px;
  background-color: rgb(0, 115, 255);
  color: white;
}

.Floors-generator-button:hover {
  background-color: rgb(1, 93, 206);
  transform: scale(1.01);
}
/* ========================================================= */
/* FieldMaker */
/* ========================================================= */
#FieldMaker {
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  z-index: 10;
}

.opslaanKnop {
  cursor: pointer;
  width: 200px;
  outline: none;
  border-radius: 10px;
  border: none;
  padding: 5px;
  background-color: rgb(4, 85, 236);
  color: white;
}

.opslaanKnop:hover {
  background-color: rgb(5, 64, 173);
  transform: scale(1.01);
}

.sponsorspaceamount {
  width: 200px;
  outline: none;
  border-radius: 10px;
  border: none;
  padding: 5px;
}
/* ========================================================= */
/* Floors list */
/* ========================================================= */
#Floors-list {

  width: 100%;
  justify-self: center;
  max-height: 200px;
  border-radius: 5px;
  
  background-color: cadetblue;
}
#Floorwrapper{
  width: 80%;
}

.Floor-button {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  width: 100%;
  height: 30px;
padding-top: 5px;
padding-bottom: 5px;
  background-color: rgb(20, 212, 255);
  cursor: pointer;
}

.Floor-button:hover {
  background-color: rgb(8, 167, 252);
  color: white;
}

.active {
  background-color: rgb(19, 111, 224) !important;
  color: white;
}
.aangepast:hover{
  color: #b8f9ffff !important;
}

/* ================================================ */
/* Scrollbar styling                                */
/* ================================================ */
#plattegronden-list::-webkit-scrollbar {
  width: 10px;
  border-radius: 10px;
}

#plattegronden-list::-webkit-scrollbar-track {
  background: rgb(8, 206, 251);
}

#plattegronden-list::-webkit-scrollbar-thumb {
  background: #006ed5;
  border-radius: 10px;
}

#plattegronden-list::-webkit-scrollbar-thumb:hover {
  background: #0a4db7;
}





#Floors-list::-webkit-scrollbar {
  width: 10px;
  border-radius: 10px;
}

#Floors-list::-webkit-scrollbar-track {
  background: rgb(8, 206, 251);
}

#Floors-list::-webkit-scrollbar-thumb {
  background: #006ed5;
  border-radius: 10px;
}

#Floors-list::-webkit-scrollbar-thumb:hover {
  background: #0a4db7;
}

.Sponsorspace.A {
    flex-direction: row-reverse !important; /* Draait de kolommen om */
}

/* Vlak B: Horizontale rijen, maar de eerste rij onderaan */
.Sponsorspace.B {
    flex-direction: column-reverse !important; /* Draait de stapeling van rijen om */
}
/* ================================================================================== */
/* media Query ====================================================================== */
/* ================================================================================== */


@media only screen and (max-width: 1400px) {
  body{
    overflow-y: scroll;
  }
 

  .FieldWrapper{
    width: 90%;
  }

}

@media only screen and (max-width: 900px) {
body {
    overflow-x: hidden; /* Voorkomt horizontale witte balken aan de zijkant */
    overflow-y: auto;   /* Zorgt dat je wel naar beneden kunt scrollen */
    height: auto;
  }

  #container {
    flex-direction: column-reverse;
    height: auto;       /* BELANGRIJK: Laat de container meegroeien met de content */
    width: 100%;
  }
#change-menu{
  padding-bottom: 20px;
  
}
  #Field-container {
    width: 100%;
   /* Zorgt dat het rood altijd het scherm vult */
    height: auto;
    padding-bottom: 50px; /* Geeft wat ademruimte onderaan */
  }

  .FieldWrapper {
    width: 95vw;        /* Gebruik viewport-width om exact binnen beeld te blijven */
    max-width: 95vw;
    aspect-ratio: auto; /* Laat op mobiel de verhouding los als dat nodig is */
  }

  .wrapper {
    max-width: 300px;
  }
  

  .maindatepicker{
    max-width:200px ;
  }

  .editinput{
    width: 100%;
  }
}