/* =========================
   GLOBAL
========================= */
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* video blijft fullscreen */
  background: black;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;   /* horizontaal blijft strak */
  overflow-y: visible;  /* tooltips kunnen buiten het element verschijnen */
  background: black;
  font-family: Arial, sans-serif;
}


/* =========================
   VIDEO BACKGROUND
========================= */
.video-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* =========================
   LOGO
========================= */
.logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.logo img {
  width: 950px;
  max-width: 90vw;
  filter: drop-shadow(0 0 15px black);
}

/* =========================
   CONTROLS
========================= */
.controls {
  position: fixed;
  top: 5px;
  right: 100px;
  z-index: 9999;
  display: flex;
  gap: 10px;
}

.btn {
  width: 90px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  color: white;
  border: 0px solid #ff6600;
  cursor: pointer;09:32 6-7-2026
  font-weight: bold;
  border-radius: 6px;
  font-size: 14px;
  transition: background .2s, transform .2s;
}

.btn:hover {

  transform: translateY(-2px);
}

/* =========================
   FOOTER
========================= */
footer {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  color: white;
  z-index: 20;
  font-size: 18px;
  text-shadow: 0 0 10px black;
}

/* =========================
   NEWS WALL
========================= */
.news-wall {
  position: fixed;
  right: 0;
  top: 40px;
  width: 510px;
  max-width: 40vw;
  height: calc(100% - 40px);
  border-left: 2px solid #ff6600;
  z-index: 25;
  overflow-y: auto;
  padding: 15px;
  background: rgba(0,0,0,0.4);

  transform: translateX(0);
  transition: transform .4s ease;
}

.news-wall.shift-right {
  transform: translateX(100%);
}

.news-item {
  background: rgba(255,102,0,.08);
  border-left: 4px solid #ff6600;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  color: white;
  font-size: 12px;
}

.news-item h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #ffcc00;
}

/* =========================
   TRAFFIC TOTAL
========================= */
.traffic-total {
  position: fixed;
  right: 0;
  top: 0;
  width: 508px;
  max-width: 40vw;
  z-index: 30;
  color: white;
  font-weight: bold;
  font-size: 14px;
  padding: 16px;
  border-left: 2px solid #ff6600;
  background: rgba(0,0,0,0.4);

  transform: translateX(0);
  transition: transform .4s ease;
}

.traffic-total.shift-right {
  transform: translateX(100%);
}

/* =========================
   INFO BUTTONS
========================= */
.info-button,
.info-button-vocices {
  position: fixed;
  top: 450px;
  background: #ff6600;
  color: black;
  border: none;
  padding: 12px 18px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  z-index: 999999;
  transition: background .2s;
  width: 180px;
  font-size: 18px;
  transform: rotate(90deg);
  transform-origin: center;
}

.info-button:hover,
.info-button-vocices:hover {
  background: #ff8c1a;
}

.info-button {
  right: -80px;
}

.info-button-vocices {
  left: -80px;
}

/* =========================
   INFO PANEL RIGHT
========================= */
.info-panel {
  position: fixed;
  top: 115px;
  right: -560px;
  width: 510px;
  max-width: 90vw;
  height: 65%;
  color: white;
  overflow-y: auto;
  padding: 20px;
  font-size: 12px;
  background: rgba(255,102,0,.08);
  border-left: 2px solid #ff6600;
  border-top: 2px solid #ff6600;
  border-bottom: 2px solid #ff6600;
  border-radius: 8px;
  z-index: 9997;
  transition: right .4s ease;
}

.info-panel.open {
  right: 0;
}

.info-panel h2,
.info-panel h3 {
  color: #ffcc00;
}

/* =========================
   INFO PANEL LEFT (STEMMEN)
========================= */
.info-panel-vocices {
  position: fixed;
  top: 115px;
  left: -560px;
  width: 510px;
  max-width: 90vw;
  height: 65%;
  color: white;
  overflow-y: auto;
  padding: 20px;
  font-size: 12px;
  background: rgba(255,102,0,.08);
  border-right: 2px solid #ff6600;
  border-top: 2px solid #ff6600;
  border-bottom: 2px solid #ff6600;
  border-radius: 8px;
  z-index: 9998;
  transition: left .4s ease;
}

.info-panel-vocices.open {
  left: 0;
}

.info-panel-vocices h2,
.info-panel-vocices h3 {
  color: #ffcc00;
}

/* =========================
   TOOLTIP STYLE
========================= */
/* =========================
   PERFECT WERKENDE TOOLTIP
========================= */

.tooltip {
  position: relative;
  z-index: 1000000; /* hoogste stacking context */
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  top: 110%; /* tooltip ONDER de knop */
  left: 80%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #ffcc00;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  border: 1px solid #ff6600;
  text-shadow: 0 0 6px black;
  z-index: 1000001; /* boven ALLES */
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(4px);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:768px){

  .logo img {
    width: 70vw;
  }

  .info-button,
  .info-button-vocices {
    bottom: 20px;
    top: auto;
    font-size: 18px;
    transform: rotate(90deg);
    transform-origin: center;
  }

  .news-wall {
    width: 100vw;
    max-width: 100vw;
    height: 40%;
    top: auto;
    bottom: 0;
    border-left: none;
    border-top: 2px solid #ff6600;
  }

  .traffic-total {
    width: 100vw;
    max-width: 100vw;
    border-left: none;
    border-top: 2px solid #ff6600;
  }

  .info-panel {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    top: 0;
    right: -110vw;
    border-left: none;
    border-top: 2px solid #ff6600;
    border-radius: 0;
  }

  .info-panel.open {
    right: 0;
  }

  .info-panel-vocices {
    width:100vw;
    max-width:100vw;
    left:-95vw;   /* panel begint links */
    border-right: none;
    border-top: 2px solid #ff6600;
    border-radius: 0;
  }

  .info-panel-vocices.open {
      right:0;
  }
}
