@import url('https://fonts.googleapis.com/css2?family=Alegreya:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@100;300;400;500;700;800;900&family=Alegreya:ital,wght@0,400..900;1,400..900&family=Bebas+Neue&family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Inter:wght@100..900&family=Lato:wght@100;300;400;700;900&display=swap');
@import url(https://db.onlinewebfonts.com/c/a56d949a6d6d64d17b1a95dc59f35fe8?family=Verner+W00+Regular);

/* ------------------------------------------------------------
   GLOBAL STYLE
------------------------------------------------------------ */
body {
  background-color: #fbf4ec;
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 600;
  margin: 0;
}

h1 { font-size: 30px; font-weight: 600; margin: 0; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
p  { font-size: 14px; margin: 4px 0; }

/* Opening hours */
.hours {
  color: #4a3e30;
  text-align: center;
  font-size: 26px;
  font-weight: 400;
  margin: 6px 0;
}

.maintenance {
  background-color: #a69c94;
  color: white;
  padding: 4px 6px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: clamp(12px,1.4vw,16px);
  flex-shrink: 0;
}

/* Logo text */
.logo-w {
  font-family: "Verner W00 Regular";
  font-size: 60px;
  color: #ab182b;
  user-select: none;
  white-space: nowrap;
  margin-bottom: 120px;
  margin-left:5px;
}
.logo-text {
  font-family: "EB Garamond", serif;
  font-weight: 700;
  font-size: 60px;
  color: #ab182b;
  letter-spacing: 1px;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
  margin-bottom: 12px;
  margin-left:5px;
}

/* ------------------------------------------------------------
   GRID LAYOUT (DESKTOP)
------------------------------------------------------------ */
.grid-layout {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 12px;
  padding: 10px;
  margin-top: 90px;
}

.left-column,
.middle-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ------------------------------------------------------------
   CONTAINERS + GLOW SYSTEM
------------------------------------------------------------ */
.container {
  border: 3px solid #e9e7da;
  background: white;
  border-radius: 12px;
  padding: clamp(4px,0.6vw,10px);
  box-sizing: border-box;

  position: relative;
  overflow: hidden;

  --rijk-color: transparent;

  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: 0 0 0 transparent;
  transition: box-shadow .25s ease;
}

.container:hover::before {
  box-shadow: 0 0 30px 10px var(--rijk-color);
}
/* ------------------------------------------------------------
   GLOW FIX – werkt 100% ook met border-radius + shadow
------------------------------------------------------------ */

/* Base container (mag overflow:hidden houden) */
.container {
  position: relative;
  overflow: visible;   /* <<< BELANGRIJK: laat glow buiten container */
}

/* Glow element */
.container::before {
  content: "";
  position: absolute;

  border-radius: inherit;
  pointer-events: none;

  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.25s ease;
  z-index: -1;         /* <<< glow komt ACHTER de container */
}

/* Glow on hover */
.container:hover::before {
  box-shadow: 0 0 15px 5px var(--rijk-color);
}

/* Zorg dat de container zelf boven de glow blijft */
.container {
  z-index: 1;
}


/* Glow colors */
.container[data-rijk="marerijk"]     { --rijk-color: rgba(39,97,72,0.45); }
.container[data-rijk="fantasierijk"] { --rijk-color: rgba(109,66,146,0.45); }
.container[data-rijk="reizenrijk"]   { --rijk-color: rgba(220,145,20,0.45); }
.container[data-rijk="ruigrijk"]     { --rijk-color: rgba(206,10,20,0.45); }
.container[data-rijk="anderrijk"]    { --rijk-color: rgba(0,123,190,0.45); }
.container[data-rijk="grandhotel"]  { --rijk-color: rgba(91,125,114,0.45); }
.container[data-rijk="bosrijk"]      { --rijk-color: rgba(88,109,112,0.45); }

/* Section header */
.header {
  font-family: "Alegreya", serif;
  font-weight: 700;
  color: #ab182b;
  margin-bottom: 4px;
}

/* ------------------------------------------------------------
   RIDE ROWS
------------------------------------------------------------ */
.item {
  padding: 2px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(14px,1.6vw,18px);
  color: #3f342a;
  line-height: 1.1;
  border-bottom: 1px solid #ccc;
}
.item:last-child { border-bottom: none; }

.item .name {
  flex: 1;
  margin-right: 8px;
  transition: color .15s;
  cursor: pointer;
  
  
}
.item:hover .name {
  color: #ab182b;
}

.time,
.state {
  background: #2c9825;      /* zelfde groen als 'open' */
  color: white;
  padding: 4px 6px;
  border-radius: 4px;     /* zelfde pill-shape */
  font-weight: 600;
  font-size: clamp(12px,1.4vw,16px);
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0,1;
  margin-left: 2px;
  
}



.time  { background: #d3911e; }
.state { background: #2c9825; }

/* ------------------------------------------------------------
   TOP MENU BAR
------------------------------------------------------------ */
.menu-bar {
  font-family: "Alegreya Sans", sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 10px;
  background: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.menu-options a {
  text-decoration: none;
  color: #ab182b;
  margin: 0 35px;
  font-size: 40px;
  font-weight: 700;
  transition: .2s;
}

.menu-options a:hover { color: #d3911e; }

/* ------------------------------------------------------------
   MODAL
------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.modal.hidden { display: none !important; }

.modal-content {
  width: 80vw;
  max-width: 1280px;
  aspect-ratio: 4/3;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: rotate(0deg);
  transition: transform 3s ease-in-out;
}

/* VILLA VOLTA FLIP */
.modal-flip .modal-content {
  transform: rotate(360deg);
}

.modal-banner img {
  transform: rotate(0deg);
  transition: transform 3s ease-in-out;
}

.modal-flip .modal-banner img {
  transform: rotate(180deg);
}

/* ensure inner content readable */
.modal-flip .modal-body,
.modal-flip #modal-title,
.modal-flip #modal-description,
.modal-flip #modal-empire,
.modal-flip #modal-height,
.modal-flip .modal-icon,
.modal-flip .modal-icon-label,
.modal-flip .icon-category-title,
.modal-flip .icon-category-box,
.modal-flip .icon-category-grid,
.modal-flip .modal-waitbox {
  transform: rotate(360deg);
  transition: transform 3s ease-in-out;
}

/* ------------------------------------------------------------
   MODAL BANNER
------------------------------------------------------------ */
.modal-banner {
  position: relative;
  width: 100%;
  height: 40%;
  background: black;
  overflow: hidden;
}

.modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Title bar */
.modal-title-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: linear-gradient(to top,rgba(0,0,0,.75),rgba(0,0,0,0));
}

#modal-title {
  font-family: "EB Garamond", serif;
  color: white;
  font-size: 48px;
  margin: 0;
  filter: drop-shadow(2px 2px 4px black);
}

.modal-waitbox {
  background: #d3911e;
  padding: 6px 14px;
  border-radius: 6px;
  color: white;
  font-weight: 700;
  font-size: 32px;
  margin-right: 30px;
}

.modal-nav-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.55);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background 0.2s;
}

.modal-nav-btn:hover {
  background: rgba(0,0,0,0.75);
}

/* ------------------------------------------------------------
   MODAL BODY
------------------------------------------------------------ */
.modal-body {
  padding: 18px;
  font-size: 18px;
  overflow-y: auto;
  flex: 1;
}

#modal-description p {
  margin-bottom: 10px;
}

#modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ab182b;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
}

/* ------------------------------------------------------------
   ICON CATEGORIES
------------------------------------------------------------ */
#modal-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding: 20px;
} /* Category box */
.icon-category-box {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 12px;
} /* Category title */
.icon-category-title {
  font-size: 20px;
  font-weight: 700;
  color: #3f342a;
  margin-bottom: 10px;
} /* Inner grid (icons inside each category) */
.icon-category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  justify-items: center;
}
.modal-icon-svg {
  width: 30px;
  height: 30px;
} /* Icon + label wrapper */
.modal-icon {
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
}
.modal-icon-label {
  margin-top: 4px;
  font-size: 12px;
  color: #3f342a;
  line-height: 1.1;
  max-width: 70px;
}
.modal-icon-svg,
  .icon-list-svg {
    width: 40px;
    height: 40px;
  }
@media (max-width: 768px) {
  .modal-icon-label {
    font-size: 11px;
    max-width: 60px;
  }
  
}
.icon-section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: #5a3b2e;
}
.icon-section-separator {
  height: 1px;
  background: #e5ded4;
  margin: 15px 0;
}
.icon-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.icon-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-list-svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.icon-list-text {
  font-size: 17px;
  color: #3f342a;
}

/* ------------------------------------------------------------
   WEATHER BAR
------------------------------------------------------------ */
#weather-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgb(127, 127, 127);
  border: 3px solid #e9e7da;
  border-radius: 10px;
  padding: 12px 18px;
  margin: 10px 0;
  gap: 14px;
}

.weather-item {
  flex: 1;
  text-align: center;
}

.weather-icon,
.weather-icon-img {
  
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
}

.wind-icon {
  transition: transform 0.6s ease;
}

.weather-value {
  font-size: 24px;
  font-weight: 700;
  color: #3f342a;
}

/* ------------------------------------------------------------
   MOBILE
------------------------------------------------------------ */
@media (max-width: 768px) {

  html, body {
    overflow-x: hidden;
  }

  .grid-layout {
    grid-template-columns: 1fr;
    margin-top: 80px;
    gap: 14px;
    padding: 10px;
  }

  .container {
    padding: 8px 10px;
  }

  .item { font-size: 16px; padding: 6px 0; }
  

  .time, .state {
    padding: 3px 8px;
    font-size: 14px;
  }

  .menu-bar {
    height: 60px;
  }

  .menu-options a {
    font-size: 26px;
    margin: 0 15px;
  }

  /* Modal sizing fix */
  .modal-content {
    width: 100vw;
    height: 94vh;
    margin-top: 3vh;
    margin-bottom: 3vh;
    border-radius: 12px;
  }

  .modal-banner {
    height: 32%;
  }

  #modal-title {
    font-size: 26px;
  }

  .modal-waitbox {
    font-size: 15px;
    padding: 4px 8px;
  }

  #modal-icons {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .icon-category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .modal-icon-svg { width: 30px; height: 30px; }
  .modal-icon-label { font-size: 11px; max-width: 60px; }

  /* Weather mobile fix */
  #weather-box {
    padding: 16px 12px;
    gap: 10px;
  }

  .weather-value {
    font-size: 14px;
  }
}
/* ================================================================
   BARON 1898 DROP ANIMATIE
   — de modal maakt een vrije val en wordt daarna verborgen
================================================================ */

#ride-modal.baron-drop .modal-content {
  animation: baronDropAnim 0.9s cubic-bezier(0.5, 0.5, 0.7, 0.1) forwards;
  transform-origin: top center;
}

/* Vrije val → mini rebound → verdwijnen */
@keyframes baronDropAnim {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  10% {
    transform: translateY(0) scale(1.02);
  }
  40% {
    transform: translateY(120px) scale(0.98); /* begin val */
  }
  75% {
    transform: translateY(600px) scale(0.95); /* versnelling */
    opacity: 0.8;
  }
  100% {
    transform: translateY(1600px) scale(0.9); /* weg uit beeld */
    opacity: 0;
  }
}
/* Zorg dat show-regels de titel bovenaan zetten */
.show-item {
  align-items: flex-start !important;
}

/* De titel mag ook iets naar boven "pushen" */
.show-item .name {
  margin-top: 2px;
}
/* Tijdvak zoals de wachttijd-boxen */
.time-box {
  background: #2c9825;      /* zelfde groen als 'open' */
  color: white;
  padding: 4px 6px;
  border-radius: 4px;     /* zelfde pill-shape */
  font-weight: 600;
  font-size: clamp(12px,1.4vw,16px);
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0,1;
  margin-left: 2px;
}

/* Geen tijden */
.time-box.closed {
  background: #666;
  color: white;
}

  
  

