html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Open Sans", sans-serif !important;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
  font-size: 1em;
  background-color: #ffffff;

}

header {
  height: 110px;
  margin: auto;
}

.overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  background-color: white;
  z-index: 2000;
}

.overlay div{
  display: block;
  width: 80%;
  margin: 50px auto;
  text-align: center;
}

main {
  display: flex;
  flex-direction: row;
}

.filter {
  height: calc(100% - 110px); /* Trek de hoogte van de header af van de totale hoogte */
}

.nofilter {
  height: 100% !important;
}

.w3-rest {
  flex: 1 1 0; /* Laat .w3-rest groeien en krimpen met de beschikbare ruimte, maar stel de basisbreedte in op 0 */
  min-height: 0; /* Laat .w3-rest krimpen onder de grootte van zijn inhoud */
}

#map {
 width: 100%;
 background-color: #5D7FA4;
 border-radius: 0px 5px 5px 0px;
}

.w3-row-padding {
  display: flex;
}

.w3-quarter {
  flex: 0 0 auto; /* Laat .w3-quarter niet groeien of krimpen, en stel de basisbreedte in op de breedte van de inhoud */
  min-height: 0; /* Laat .w3-quarter krimpen onder de grootte van zijn inhoud */
  overflow-y: auto; /* Toont een scrollbar als de inhoud langer is dan de hoogte van .w3-quarter */
}

.sidebar {
    height: 100%;
    margin: 0;
    background-color: #EDF3F3;
    overflow-y:auto;
    padding: 0 .5em;
    font-size: 100%;
    border-radius: 5px 0px 0px 5px;
}

.popup {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2000;
  background-color: white;
  width: 250px;
  overflow-y:auto;
  padding: 1em;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.card {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  text-decoration: none;
  padding: 20px;
  background-color: #FFFFFF !important; 
  font-size: 14px;
}

.card .closebutton {
  position: absolute;
  right: 10px;
  top: 10px;
}

.card p {
  padding-right: 1rem !important;
  padding-left: 1rem !important;
  margin: .85em 0;

}

.card img {
  width: 210px;
  max-height: 200px;
  min-height: 100px;
}

.logos {
  object-fit: contain !important;
  width: 100% !important;
  margin: 0 !important;
}

.card h2 {
  color: #000 !important;
  font-size: 20px;
  margin: .25em 0;
  font-weight: bold;
  line-height: 1.2;
  padding-right: 1rem !important;
  padding-left: 1rem !important;
  font-family: "Open Sans", sans-serif !important;
}

.card a {
  background-color: #26455c;
  color: #fff;
  display: block;
  width: 100%;
  padding: 5px;
  text-align: center;
  text-decoration: none;
  height: auto;
  margin-bottom: 15px;
}

.hx4 {
  padding-right: 1rem !important;
  padding-left: 1rem !important;
}

a[target="_blank"]::after {
  content: url(https://verhaalvangelderland.nl/wp-content/uploads/2023/05/externe-link-wi-kleint.fw_.png);
  padding: 5px 0 0 5px;
}

.leaflet-container {
  height: 100%;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
}

.custom-marker {
    text-align: center;
  }
  
.custom-tooltip {
    background: none;
    text-align: center;
    color: white;
    border: 0px solid #ccc;
    padding: .5em;
    border-radius: 0px;
    box-shadow: none;
}

.custom-control {
  padding: .5em .5em;
  box-shadow: 0 0 .5em rgba(0,0,0,0.1);
  border-radius: 10px;
  background-color: #ffffff;
  padding: 0px 1.5em 0px 1.5em;
}

.custom-control h3 {
  font-size: 1.5em;
  font-family: "Open Sans", sans-serif !important;
  font-weight: 400;
  margin: 1em;
  padding: 0px;
}

#control-container {
  position: absolute;
  bottom: 1em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
}

.w3-row-padding, .w3-quarter {
  padding: 0px !important;
}


.item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 10px;
  background-color: #ffffff;
  padding: 10px;
  margin: .5em 0px;
}

.subitem {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 10px;
  background-color: #ffffff;
  padding: 1em;
  margin: .5em 0px;
}

.tijdthema {
  display: flex;
  flex-direction: row;
  justify-content:flex-start;  
  padding-top: inherit;
  gap: 10px;
  border-radius: 10px;
}

.tijdthema > * {
  background-color: #EDF3F3;
  border-radius: 10px;
  padding: 3px 10px;
  margin-bottom: 5px;
}


.item h3, .subitem h3{
  font-size: 100%;
  font-weight: 700;
  margin: 0px;
  margin-right: auto;
}

.subitem p {
  margin: 0px;
}

.item p{
  margin: 0px;
  margin-right: auto;
}

.groen {
  background-color: #4FA589 !important;
  letter-spacing: 0.02em;
  color: white;
  font-weight: 600;
}

.geel{
  background-color: #E1B600 !important;
  letter-spacing: 0.02em;
  color: white;
  font-weight: 600;
}

.rood {
  background-color: #E8412C !important;
  letter-spacing: 0.02em;
  color: white;
  font-weight: 600;
}

.blauw {
  background-color: #4E8BB9 !important;
  letter-spacing: 0.02em;
  color: white;
  font-weight: 600;
}


.grijs {
  opacity: 0.2;
}

.smallfont {
  font-size: 90% !important;
}

.button {
  margin-left: .5em;
  float: right;
  width: 1.5em;
  height: 1.5em;  
  background-color: black;
  vertical-align: middle;
}

.button:hover {
  background-color: #E8412C;
  cursor: pointer;
}

.pijl {

  -webkit-mask: url(../assets/pijl_02.svg) no-repeat 50% 50%;
  mask: url(../assets/pijl_02.svg) no-repeat 50% 50%;
  -webkit-mask-size: cover;
  mask-size: cover;
}

.kruis {
  -webkit-mask: url(../assets/sluit.svg) no-repeat 50% 50%;
  mask: url(../assets/sluit.svg) no-repeat 50% 50%;
  -webkit-mask-size: cover;
  mask-size: cover;
}

.klein {
  width: 1.2em;
  height: 1.2em;

}

.pijl:hover {
  background-color: #E8412C;
  cursor: pointer;
}


.container {
  display: flex; /* or inline-flex */
  justify-content: flex-start;
  flex-wrap: nowrap;
  flex-direction:row;
}


.knop {
  font-weight: 600;
  font-size: 1em;
  padding: .8em 1em;
  
  border-radius: 10px;
  background-color: #F3F3F3;
  margin: .2em .2em;

  margin-top: auto;
  margin-bottom: auto;
  line-height: .9;

}

.knop:hover {
  background-color: #4E8BB9;
  cursor: pointer;
}

.blauweAchtergrond {
  background-color: #4E8BB9 !important;
  color: white !important;
}

.grijzeAchtergrond {
  background-color: #b6cfe2;
  color: black;
}

.titel {
  font-weight: 600;
  padding: .8em 1em;
  box-shadow: 0 0 1em rgba(0,0,0,0.1);
  border-radius: 10px;
  background-color: #4E8BB9;
  margin: .2em .2em;
  color: white;
}

.clickbaar:hover {
  cursor: pointer;
}

.leaflet-control-attribution{
  visibility: hidden;
}

#logo {
  position: absolute;
  top: 120px;
  right: 0;
  z-index: 1000;
}

#logo img {
  width: 400px;
}






@media (max-width: 1200px) {
  body{
    font-size: 0.8em !important;
  }
  .titel {
    font-size: 0.9em !important;
  }

  .knop {
    font-size: 0.9em !important;
    line-height: .9;
  margin-top: auto;
  margin-bottom: auto;
  }

  .custom-control h3 {
    font-size: 1.2em;
  }

  .button {
    width: 1.2em;
    height: 1.2em;  

  }

  .klein {
    width: 1em;
    height: 1em;
  }

  header {
    height: 80px;

  }

  .filter {
    height: calc(100% - 80px); /* Trek de hoogte van de header af van de totale hoogte */
  }

  .nofilter {
    height: 100% !important;
  }

  #logo {
    position: absolute;
    top: 100px;
    right: 10px;
    z-index: 900;
  }
  
  #logo img {
    width: 300px;
  }
}