:root {
  --ink: #f8f4ed;
  --muted: rgba(248, 244, 237, 0.76);
  --accent: #f05a47;
  --accent-dark: #c94136;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

/* body */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 120px 24px 80px;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background-image: url("../images/header-land-van-cuijk.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

body p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

p {
  color: white;
}

h1 {
  text-align: center;
  margin: 0 0 14px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}
/* body */

footer {
  background-color: rgba(25, 25, 25, 0.20);
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: lighter;
}

/* Sport Pages */

.Mountainbike-Description {
  max-width: 580px;
  font-weight: bold;
  color: #fff;
  border-radius: 10px;
  background-color: rgba(32, 32, 32, 0.85);
  outline: 1px solid rgba(255, 255, 255, 0.34);
}

.Voetbal-Description {
  max-width: 580px;
  font-weight: bold;
  color: #fff;
  border-radius: 10px;
  background-color: rgba(32, 32, 32, 0.85);
  outline: 1px solid rgba(255, 255, 255, 0.34);
}

.home-Description {
  max-width: 580px;
  margin-top: 520px;
  margin-left: auto;
  margin-right: auto;
  font-weight: bold;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  background-color: rgba(32, 32, 32, 0.85);
  outline: 1px solid rgba(255, 255, 255, 0.34);
}

.Hockey-Description {
  max-width: 580px;
  font-weight: bold;
  color: #fff;
  border-radius: 10px;
  background-color: rgba(32, 32, 32, 0.85);
  outline: 1px solid rgba(255, 255, 255, 0.34);
}

.ICT-Descriptions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}

.Toerist-Descriptions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}

.Maasvallei-Description,
.VanDerHoffICT-Description,
.Connectiq-Description,
.Maashorst-Description,
.Overloon-Description,
.MuseumCeuclum-Description {
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: 100%;
  padding: 16px;
  margin: 0;
  margin-top: 200px;
  font-weight: bold;
  color: #fff;
  border-radius: 10px;
  background-color: rgba(32, 32, 32, 0.85);
  outline: 1px solid rgba(255, 255, 255, 0.34);
}

@media (max-width: 650px) {
  .ICT-Descriptions {
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
  }
}

.Sport-Title,
.Voetbal-Title,
.Toerist-Title,
.Hockey-Title,
.Home-Title,
.ICT-Title {
  max-width: 780px;
  margin-bottom: auto;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.Home-Title{
  margin-top: 5px;
  margin-bottom: 5px;
}

#welkom {
    margin-left: auto;
    margin-right: auto;
    margin-top: -125px;
    margin-bottom: 100px;
    font-size: 2.2em;
    font-weight: bold;
    color: #e05340;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 1);
}

.ICT-Title{
  width: 780px;
  margin-top: 0px;
  margin-bottom: 5px;
  margin-left: 508px;
  margin-right: 508px;
  color: #7da1d6;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  -webkit-text-stroke: 2px black;
}

.Tourist-Title{
  width: 780px;
  margin-top: 0px;
  margin-bottom: 5px;
  margin-left: 508px;
  margin-right: 508px;
  color: #d38129;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  -webkit-text-stroke: 2px black;
}

.Home-Title h1,
.Sport-Title h1,
.Hockey-Title h1,
.Voetbal-Title h1 {
  color: #f05a47;
}

.Mountainbike-Title {
  max-width: 780px;
  margin-bottom: auto;
  color: #5A3D28;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  -webkit-text-stroke: 1.3px black;
}


.Tourist-page {
  background-image: url("../images/achtergrond_toerism.jpg");
  background-position: center;
}

.mountainbike-page {
  background-image: url("../images/Mountainbikeroutes.jpg");
  background-position: center;
}
/* Voetbal page */
.voetbal-page {
  background-image: url("../images/voetbal.jpg");
  background-position: center;
}

.hockey-page {
background-image: url("../images/hockey.png");
}

.ICT-page {
  background-image: url("../images/ICT.jpg");
  background-position: center;
}

/* Sport Pages */

/* Luch page */
.lunch-page {
  background-image: url("../images/vandervalkRestaurant.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(18, 25, 29, 0.42);
  background-blend-mode: multiply;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 80px 0 0;
  text-align: initial;
}

.lunch-title {
  color: #ffd166;
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.45);
  margin-top: 0;
  margin-bottom: 5px;
}

.lunch-description {
  max-width: none;
  color: #f3f3f2;
  text-align: center;
  margin-top: 0;
  margin-bottom: 5px;
}

.lunch-slideshow {
  width: min(1100px, calc(100% - 40px));
  margin: auto auto;
  transform: translateY(-7vh);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.slideshow-viewport {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.18);
}

.lunch-slide {
  display: none;
  margin: 0;
  aspect-ratio: 16 / 9;
}

.lunch-slide.is-active {
  display: block;
  animation: slide-appear 420ms ease-out;
}

.lunch-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.slideshow-button:hover,
.slideshow-button:focus-visible {
  background: rgba(255, 255, 255, 0.38);
}

@keyframes slide-appear {
  from {
    opacity: 0.4;
    transform: scale(1.02);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Luch page */

/* Header */
nav {
  position: fixed;
  top: 18px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  z-index: 100;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: rgba(18, 25, 29, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  display: flex;
}

nav a {
  display: flex;
  flex: 0 0 110px;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

nav a:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(240, 90, 71, 0.8);
  transform: translateY(-2px);
}


.home-nav a {
  flex-basis: 67px;
  width: 67px;
}

#NavColorSwitcher {
display: flex;
margin-left: auto;
margin-right: auto;
position: fixed;
top: 5px;
left: 102px;
background: rgba(18, 25, 29, 0.25);
border-color: rgba(255, 255, 255, 0.28);
border-radius: 15px;
}

.logo-cuijk {
  display: block;
  position: fixed;
  top: 10px;
  left: 12px;
  width: clamp(58px, 7vw, 88px);
  z-index: 101;
  transform: translateY(-26px);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.logo-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
}

.logo-nav a {
  text-decoration: none;
}
/* Header */

/* Map Javascript */
.Mtb-buttons {
  display: flex;
  flex-direction: row;
  margin-top: 10px;
  gap: 10px;
  width: min(100%, 320px);
  margin-right: 50%;
  margin-left: 50%;
}

.Mtb-buttons button {
  flex: 1 1 0;
}

/*
#BikeParkButton { 
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  color: white;
  background: #1B4D3E; 
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 180ms ease, transform 180ms ease;
}

#routeButton { 
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  color: white;
  background: #1B4D3E; 
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 180ms ease, transform 180ms ease;
} */

#routeButton:hover,
#BikeParkButton:hover {
  background: #113227;
  transform: translateY(-2px);
}

.map-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 500px;
  overflow: hidden;
  z-index: 99999;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: rgba(75, 75, 75, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.map-title-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-left: 15px;
  z-index: 100001;
  color: var(--ink);
  background: rgba(75, 75, 75, 0.05);
  cursor: move;
  font-family: Arial, sans-serif;
  font-weight: bold;
  user-select: none;
}

.map-frame {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: calc(100% - 40px);
  border: 0;
}

.map-close {
  position: absolute;
  top: 5px;
  right: 10px;
  width: 30px;
  height: 30px;
  z-index: 100002;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 25px;
}
