* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
  border: 0px;
  font-family: "Figtree", sans-serif;
}

* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

html,
body {
  height: 100%;
}

.layout_body {
  background-color: var(--darkgray1);
}

/* -- TOP -- */

.top {
  display: none;
  align-items: center;
  height: 60px;
  background: #232323;
  border-bottom: 1px solid var(--darkborder1);
}

.toggle_information_container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 2000;
  border-radius: 20px;
  padding-left: 20px;
  padding-right: 10px;
  background-color: var(--darkgray1);
}
.toggle_information_container:hover {
  background-color: var(--darkgray1_hover);
}
.toggle_information_container:active {
  background-color: var(--darkgray1_active);
}
.toggle_information {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: none;
  z-index: 100;
}
.toggle_information img {
  width: 15px;
  height: auto;
  object-fit: contain;
}
.toggle_information_text {
  display: inline-block;
  color: var(--darktext1);
  font-size: 1.2rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.toggle_menu {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 10px;
  top: 10px;
  color: #fff;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  z-index: 100;
}

.toggle_information {
  margin-left: auto;
}

.toggle_menu img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.controls {
  display: flex;
  position: fixed;
  justify-content: center;
  align-items: center;
  height: 45px;
  width: auto;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  gap: 20px;
  z-index: 80;
}

.slider-wrapper {
  position: relative;
  width: auto; /* match slider width */
}

.slider-wrapper input[type="range"] {
  width: 100%;
}

.time-indicator {
  position: absolute;
  top: -40px; /* move above the slider */
  left: 0;
  transform: translateX(-50%);
  font-weight: 500;
  font-size: 0.9rem;
  color: rgb(255, 255, 255);
  background-color: rgb(233, 75, 41);
  padding: 5px 10px;
  border-radius: 25px;
  pointer-events: none; /* avoid blocking clicks */
}

/* Match dropdown to button style */
.custom-select {
  position: relative;
  display: inline-block;
  width: 200px;
}

/* Style the select itself */
.custom-select select {
  width: 100%;
  height: 40px;
  background-color: rgb(233, 75, 41);
  border-radius: 25px;
  color: #fff;
  border: none;
  font-weight: 500;
  padding-left: 20px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none; /* removes blue/black focus outline */
  box-shadow: none; /* removes focus shadow (Safari/Firefox) */
}

/* Keep border-radius when dropdown is open (focus state) */
.custom-select select:focus {
  border-radius: 25px; /* stays rounded */
  outline: none;
  box-shadow: none;
}

/* Add custom arrow on the wrapper */
.custom-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  background: url("/assets/icons/beeldenfabriek/icon_beeldenfabriek_arrow_down.svg") no-repeat center center;
  background-size: contain;
  pointer-events: none;
  transform: translateY(-50%);
}

/* Base option styles (some browsers honor these) */
.custom-select select option {
  background: #1f1f1f;
  color: #fff;
}

/* Chromium: hover color (Firefox/Safari may ignore) */
.custom-select select option:hover {
  background: rgb(233, 75, 41);
  color: #fff;
}

/* Selected row color (Chromium + Firefox) */
.custom-select select option:checked {
  /* The linear-gradient hack helps Chromium apply the solid color reliably */
  background: rgb(233, 75, 41) linear-gradient(0deg, rgb(233, 75, 41), rgb(233, 75, 41));
  color: #fff;
}

/* Match slider base to button style */
.controls input[type="range"] {
  -webkit-appearance: none;
  width: 200px;
  height: 40px;
  background: rgb(233, 75, 41);
  border-radius: 25px;
  outline: none;
  cursor: pointer;
}

/* Slider track */
.controls input[type="range"] {
  -webkit-appearance: none;
  width: 300px;
  height: 40px; /* total clickable area */
  background: transparent; /* transparent, we'll style the track separately */
  cursor: pointer;
  margin: 0;
  padding: 0;
}

/* WebKit (Chrome, Safari) */
.controls input[type="range"]::-webkit-slider-runnable-track {
  height: 32px;
  background: rgba(150, 150, 150, 0.6);
  border-radius: 25px;
}

/* WebKit (Chrome, Safari, Edge) */
.controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(233, 75, 41) url("/assets/icons/beeldenfabriek/icon_beeldenfabriek_move_slider.svg") no-repeat center center;
  background-size: 20px 20px;
  margin-top: -4px;
  cursor: pointer;
  border: none; /* prevent outline border glitches */
}

/* Keep same background on hover and active */
.controls input[type="range"]::-webkit-slider-thumb:hover,
.controls input[type="range"]::-webkit-slider-thumb:active {
  background: rgb(233, 75, 41) url("/assets/icons/beeldenfabriek/icon_beeldenfabriek_move_slider.svg") no-repeat center center;
  background-size: 20px 20px;
}

/* Firefox */
.controls input[type="range"]::-moz-range-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(233, 75, 41) url("/assets/icons/beeldenfabriek/icon_beeldenfabriek_move_slider.svg") no-repeat center center;
  background-size: 20px 20px;
  border: none;
  cursor: pointer;
}

/* Firefox hover/active */
.controls input[type="range"]::-moz-range-thumb:hover,
.controls input[type="range"]::-moz-range-thumb:active {
  background: rgb(233, 75, 41) url("/assets/icons/beeldenfabriek/icon_beeldenfabriek_move_slider.svg") no-repeat center center;
  background-size: 20px 20px;
}

.custom-select-side {
  width: 120px;
}

.light-compass {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  user-select: none;
}

.light-compass-circle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(233, 75, 41);
}

.light-compass-north {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.66rem;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

.light-compass-arrow-wrap {
  position: absolute;
  inset: 0;
  transform: rotate(1deg);
  transform-origin: 50% 50%;
}

.light-compass-arrow-shaft {
  position: absolute;
  left: 50%;
  top: 19px;
  width: 2px;
  height: 12px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 1);
  border-radius: 2px;
}

.light-compass-arrow-head {
  position: absolute;
  left: 50%;
  top: 13px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid rgba(255, 255, 255, 1);
}

.main_controls {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  width: auto;
  height: 100%;
}

.main_slider_title {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 80px;
  border-radius: 25px;
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  font-size: 0.9rem;
  font-weight: 600;
  color: black;
  background-color: var(--lightgray1);
  z-index: 10;
}

.main_slider_title:hover {
  background-color: var(--lightgray1_hover);
}

.main_slider_title:active {
  background-color: var(--lightgray1_active);
}

.main_slider_degree_right {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: auto;
  font-size: 0.9rem;
  color: var(--slider_text);
  font-weight: 600;
  padding-left: 0px;
  padding-right: 0px;
}

.main_slider_container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  position: relative;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  border-radius: 5px;
  outline: none;
  position: relative;
  z-index: 1;
}

/* Track styling */
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  background-color: var(--slider_track);
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 2px;
  background-color: var(--slider_track);
}

input[type="range"]::-ms-track {
  width: 100%;
  height: 2px;
  background-color: var(--slider_track);
  border: none;
}

/* Thumb styling */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--slider_items);
  cursor: pointer;
  margin-top: -8.5px;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background-color: var(--slider_items_hover);
}

input[type="range"]::-webkit-slider-thumb:active {
  background-color: var(--slider_items_active);
}

input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--slider_items);
  cursor: pointer;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb:hover {
  background-color: var(--slider_items_hover);
}

input[type="range"]::-moz-range-thumb:active {
  background-color: var(--slider_items_active);
}

input[type="range"]::-ms-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--slider_items);
  cursor: pointer;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-ms-thumb:hover {
  background-color: var(--slider_items_hover);
}

input[type="range"]::-ms-thumb:active {
  background-color: var(--slider_items_active);
}

.main_slider_button_container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 45px;
  width: 120px;
}

.main_slider_button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: var(--slider_text);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  background-color: var(--slider_background);
}

.main_slider_button:hover {
  background-color: var(--slider_text_hover);
}

.main_slider_button:active {
  background-color: var(--slider_text_active);
}

.main_slider_container.curved {
  padding: 0;
  height: 100px;
}

.slider-dot {
  fill: white;
  cursor: pointer;
  transition: fill 0.2s ease;
}

.slider-dot.hover {
  fill: rgb(0, 0, 0);
}

text {
  transition: opacity 0.2s ease;
  user-select: none;
  pointer-events: none;
  font-weight: 700;
}

/* MAIN */

.main_scroll {
  position: relative;
  display: flex;
  justify-content: flex-start; /* Prevent centering here */
  align-items: center;
  width: 100vw; /* Full viewport width */
  height: 100vh; /* Full viewport height */
  overflow-x: scroll; /* Enable horizontal scrolling */
  overflow-y: hidden; /* Disable vertical scrolling */
  scroll-behavior: smooth;
  overscroll-behavior: none; /* Prevent bounce effect horizontally */
  touch-action: pan-x; /* Restrict scrolling to horizontal direction */
  -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
}

.main1 {
  position: relative;
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main_test {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main1 img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.main video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main {
  display: flex;
  height: 100%;
  width: 100%;
  position: relative;
}

.menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 70px;
  height: 100%;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  z-index: 11;
  gap: 15px;
}

.menu button:last-of-type {
  margin-bottom: 16px;
}

.menu-logo {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: auto;
}
.menu-logo img {
  width: 30px;
  height: 30px;
}

.menu-theme-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.menu-theme {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 0;
}
.menu-theme:hover {
  opacity: 0.85;
}
.menu-theme:active {
  opacity: 0.72;
}

.menu-theme img {
  width: 22px;
  height: 22px;
}

#toggle_fullscreen {
  margin-top: auto;
}

.menu-theme-label {
  margin-top: 4px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--darktext1);
  text-align: center;
}

.menu-item {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  background-color: var(--darkgray1);
}
.menu-item:hover {
  background-color: var(--darkgray1_hover);
}
.menu-item:active {
  background-color: var(--darkactive1);
}
.menu-item img {
  width: 20px;
  height: 20px;
}
.menu-item.is-active,
.menu-item.is-active:hover {
  background-color: var(--darkgray1_active);
}

.menu-item-bottom {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  margin-bottom: 8px;
  background-color: var(--darkgray1);
}
.menu-item-bottom:hover {
  background-color: var(--darkgray1_hover);
}
.menu-item-bottom:active {
  background-color: var(--darkgray1_active);
}
.menu-item-bottom img {
  width: 20px;
  height: 20px;
}
.menu-item-bottom.is-active,
.menu-item-bottom.is-active:hover {
  background-color: var(--darkactive1);
}

/* --- PANEL --- */

.panel {
  width: 0;
  overflow: hidden;
  background: var(--darkgray1);
  transition: width 0.35s ease;
  display: flex;
  position: relative;
  flex-direction: column;
}

.panel.show {
  width: 260px;
}

.panel-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 20px;
  cursor: pointer;
  background-color: var(--darkgray1);
}
.panel-close:hover {
  background-color: var(--darkgray1_hover);
}
.panel-close:active {
  background-color: var(--darkgray1_active);
}
.panel-close img {
  width: 15px;
  height: auto;
  object-fit: contain;
}

/* --- pages inside the panel --- */

.panel-page {
  display: none;
  padding: 16px;
  height: 100%;
}
.panel-page.is-visible {
  display: block;
}

.panel-page_title {
  display: flex;
  align-items: center;
  justify-content: left;
  width: 100%;
  height: 35px;
  padding-left: 10px;
  color: var(--darktext1);
  font-size: 1.2rem;
}

.information_panel_page {
  display: block;
  padding: 16px;
  height: 100%;
}

.information_panel_title {
  display: flex;
  align-items: center;
  justify-content: left;
  width: 100%;
  height: 35px;
  padding-left: 10px;
  color: var(--darktext1);
  font-size: 1.2rem;
}

.panel_scroll_container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow-y: scroll;
  margin-top: 15px;
  border-top: 1px solid var(--darkborder1);
}

/* --- Content --- */

.content {
  flex: 1;
  background: var(--darkgray2);
  transition: width 0.3s ease;
}

.main-content-page {
  display: none;
}

.main-content-page.is-visible {
  display: block;
}

/* --- Navigation --- */

.tree {
  list-style: none;
  padding-left: 0;
  padding-top: 10px;
}

.tree li {
  margin-bottom: 6px;
}

.tree-btn {
  all: unset;
  cursor: pointer;
  padding: 6px 10px;
  width: 90%;
  display: flex;
  align-items: center;
  border-radius: 30px;
  color: var(--darktext1);
}
.tree-btn:hover {
  background-color: var(--darkhover1);
}
.tree-btn:active {
  background-color: var(--darkactive1);
}
.tree-btn.is-active {
  background-color: var(--darkactive1);
}

/* Information */

.information {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background-color: var(--darkgray1);
  overflow: hidden;
  transition: width 0.3s ease-in-out;
  z-index: 1001;
}

.information:not(.collapsed) {
  width: 25%;
}

.information.collapsed {
  width: 0;
}

/* -- MISC -- */

.hidden {
  display: none;
}

@media screen and (max-width: 950px) {
  .controls {
    gap: 10px;
  }

  .custom-select {
    width: 160px;
  }

  .custom-select select {
    font-size: 0.7rem;
  }

  .controls input[type="range"] {
    width: 130px;
  }

  .custom-select-side {
    width: 120px;
  }

  .light-compass {
    width: 40px;
  }

  .light-compass-north {
    top: 5px;
    font-size: 0.66rem;
  }

  .light-compass-arrow-shaft {
    top: 19px;
    height: 12px;
  }

  .light-compass-arrow-head {
    top: 13px;
    border-left-width: 5px;
    border-right-width: 5px;
    border-bottom-width: 8px;
  }
}
