html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', sans-serif;
}

body.camera-page {
  background-image: url('assets/achtergrond.png');
  /*background-color: #1E1E2F;*/
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  opacity: 1;
}

#interface {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 70px 16px 40px 16px;
  box-sizing: border-box;
  z-index: 1;
}

#maincontent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 600px;
  min-width: 0;
  max-width: 1000px;
  width: 100%;
}

#container {
  position: relative;
  width: 100%;
  aspect-ratio: 1144 / 439;
  background-color: rgba(255, 255, 255, 0.171);
  z-index: 1;
  border-radius: 4px;
  border: 1px solid #E0E0E0;
}

#heftruck-img {
  width: 100%;
  height: auto;
  display: block;
}

.hotspot-icon {
  position: absolute;
  width: 4vw;
  min-width: 30px;
  max-width: 60px;
  height: 4vw;
  min-height: 30px;
  max-height: 60px;
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 50%;
  z-index: 10;
  transition: border-color 0.2s;
}

.hotspot-icon.active {
  border-color: dodgerblue;
}

.hotspot-icon.selected {
  outline: 5px solid #007BFF;
  border-radius: 50%;
}

#snelheidsreductie-en-uitleg {
  width: 100%;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#snelheidsreductie-container label {
  color: #fff;
  font-size: 1em;
}

#uitleg-container {
  background-color: #f0f8ff00;
  /* voorbeeldkleur */
  border-radius: 6px;
  margin-top: 10px;
  font-style: italic;
  color: #E0E0E0;
  min-height: 20px;
  background-color: rgba(255, 255, 255, 0.171);
  border-radius: 4px;
  border: 1px solid #E0E0E0;
}

#vrijeTekstLabel {
  color: #E0E0E0;
  margin-top: 18px;
  margin-bottom: 4px;
  display: block;
}

#vrijeTekst {
  width: 100%;
  height: 100px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.171);
  color: #E0E0E0;
  border-radius: 4px;
  border: 1px solid #E0E0E0;
  resize: vertical;
  margin-bottom: 24px;
  font-size: 1.5em;
}

#sidebar {
  flex: 0 0 350px;
  width: 350px;
  min-width: 250px;
  max-width: 400px;
  padding: 20px;
  color: #E0E0E0;
  border-radius: 4px;
  border: 1px solid #E0E0E0;
  background-color: rgba(255, 255, 255, 0.171);
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  margin-top: 0;
}

#sidebar ul {
  list-style: none;
  padding: 0;
}

#sidebar li {
  margin-bottom: 8px;
}

#sidebar button {
  padding: 10px;
  background-color: #4FD1C5;
  color: #1E1E2F;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 2px 0;
}

.floating-logo {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 200px;
  height: auto;
  z-index: 1000;
  opacity: 0.6;
}

#footer {
  position: fixed;
  top: 20px;
  right: 250px;
  font-size: 0.9em;
  color: #E0E0E0;
  padding: 5px 10px;
  background: #1E1E2F;
  border-radius: 6px;
  z-index: 1050;
}

#actiekoppen {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  padding: 10px;
  z-index: 1001;
}

#actiekoppen button {
  padding: 10px 14px;
  background-color: #4FD1C5;
  color: #1E1E2F;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.menu-button {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: #4FD1C5;
  z-index: 1001;
  outline: none;
  box-shadow: none;
  transition: color 0.3s ease;
}

.menu-button.active {
  color: white;
}

.menu-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

.overlay.show {
  display: block;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  #interface {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 70px 2vw 40px 2vw;
  }

  #maincontent,
  #container,
  #snelheidsreductie-en-uitleg {
    width: 100%;
    max-width: 100%;
  }

  #sidebar {
    border-left: none;
    border-top: 2px solid #ccc;
    margin-top: 20px;
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }

  #footer {
    position: static;
    margin-top: 20px;
    right: auto;
    top: auto;
    background: #1E1E2F;
  }

  .floating-logo {
    position: static;
    width: 140px;
    margin: 12px auto;
    display: block;
  }
}

@media (max-width: 700px) {

  html,
  body,
  #maincontent,
  #container,
  #snelheidsreductie-en-uitleg,
  #sidebar,
  #vrijeTekst,
  #vrijeTekstLabel {
    width: 100vw !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #footer {
    font-size: 0.8em;
  }

  .floating-logo {
    width: 100px;
  }

  #container {
    min-height: 180px;
  }

  .hotspot-icon {
    width: 12vw;
    height: 12vw;
    min-width: 28px;
    min-height: 28px;
    max-width: 44px;
    max-height: 44px;
  }
}

/* Sidemenu */
.sidemenu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 265px;
  background: rgba(22, 28, 36, 0.97);
  color: #ecf3fa;
  box-shadow: 8px 0 32px rgba(10, 10, 20, 0.33);
  backdrop-filter: blur(10px) saturate(140%);
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
  padding: 28px 18px 28px 28px;
  padding-top: 92px;
  transition: transform 0.32s cubic-bezier(.68, -0.55, .27, 1.55), box-shadow 0.28s;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-110%);
}

.sidemenu.open {
  transform: translateX(0);
  box-shadow: 8px 0 32px rgba(40, 50, 72, 0.24);
}

.sidemenu nav {
  width: 100%;
}

.sidemenu-home {
  display: block;
  background: none;
  color: #b9d6fc;
  border-radius: 0;
  font-weight: 600;
  font-size: 20px;
  padding: 13px 20px;
  text-align: left;
  margin-bottom: 28px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(44, 64, 76, 0.11);
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
}

.sidemenu-home:hover,
.sidemenu-home.active {
  background: linear-gradient(90deg, #263049 0%, #184780 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(70, 130, 200, 0.15);
}

.sidemenu-section {
  margin-bottom: 5px;
  padding-bottom: 5px;

}

.sidemenu-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 12px 0 4px 0;
  display: flex;
  align-items: center;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.13);
}

.sidemenu-title .icon {
  margin-right: 8px;
  filter: drop-shadow(0 2px 2px rgba(36, 70, 90, 0.18));
}

.sidemenu-section ul {
  list-style: none;
  padding-left: 10px;
  margin: 0 0 0 2px;
}

.sidemenu-section ul li {
  margin: 9px 0;
}

.sidemenu-section ul li a {
  display: block;
  padding: 9px 14px 9px 14px;
  border-radius: 9px;
  color: #c8d8ef;
  font-size: 16.2px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.17s, color 0.18s;
  position: relative;
}

.sidemenu-section ul li a:hover,
.sidemenu-section ul li a.active {
  background: linear-gradient(90deg, #223046 0%, #396fae 100%);
  color: #fff;
}

@media (max-width: 900px) {
  .side {
    width: 84vw;
    max-width: 340px;
    padding-top: 68px;
    border-radius: 0 22px 22px 0;
  }
}

.sidemenu-home.active .icon,
.sidemenu-title .icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

