/* ==========================================
   MERLIN VAN BEBBER - UNIFIED STYLES
   ========================================== */

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  max-width: 1600px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ==========================================
   SIDEBAR NAVIGATION
   ========================================== */
.sidebar {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 300px;
  height: 800px;
  max-height: 95vh;
  background-color: #ffffff;
  z-index: 15;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  font-weight: bold;
  overflow-y: auto;
  transition: left 0.3s ease;
  animation: sidebarSlideIn 0.7s ease-out forwards;
}

@keyframes sidebarSlideIn {
  from {
    transform: translate(-320px, -50%);
    opacity: 0;
  }
  to {
    transform: translateY(-50%);
    opacity: 1;
  }
}

.sidebar h1 {
  padding: 3px 16px;
  margin: 0;
  color: #f58986;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 2px;
}

.sidebar h2 {
  padding: 10px 16px;
  margin: 0;
  color: #001e91;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 2px;
}

.sidebar h3 {
  padding: 64px 16px;
  margin: 0;
  color: #f58986;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 2px;
}

.sidebar a {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: #666;
  border-bottom: 0px solid #f1f1f1;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar a:hover {
  background-color: transparent;
  color: #000;
}

.sidebar .close-btn {
  display: none;
  color: #678d3c;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 15px;
}

/* ==========================================
   TOP MENU (MOBILE)
   ========================================== */
.top-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  padding: 16px;
  z-index: 4;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-menu .menu-title {
  font-size: 18px;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  color: #f58986;
}

.top-menu .menu-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger icon */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 18px;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================
   OVERLAY
   ========================================== */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
  margin-left: 300px;
  transition: margin-left 0.3s ease;
}

/* ==========================================
   IMAGE CONTAINERS
   ========================================== */
.main-image-container {
  position: fixed;
  top: 0;
  left: 300px;
  right: 0;
  bottom: 0;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  transition: left 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

/* ==========================================
   MODAL (IMAGE GALLERY)
   ========================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 5;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  padding-top: 0;
  cursor: pointer;
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 64px;
  width: 90%;
  max-width: 1200px;
  text-align: center;
  animation: zoom 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.modal-content img {
  width: 100%;
  max-width: 1000px;
}

.modal-content p {
  color: white;
  margin-top: 20px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 6;
}

.modal-close:hover {
  color: #999;
}

/* ==========================================
   SLIDESHOW (voor iktover.html)
   ========================================== */
.slideshow-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin-left: 300px;
  text-align: center;
  transition: margin-left 0.3s ease;
}

.slideshow-container {
  position: relative;
  width: 800px;
  height: 800px;
  max-height: 100vh;
  border: 2px solid transparent;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
}

.slide[style*="display: block"] {
  display: flex !important;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.fade {
  animation-name: fade;
  animation-duration: 1s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* Slide caption */
.slide-caption {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.75);
  color: #333333;
  text-align: center;
  padding: 12px 20px;
  font-size: 16px;
  line-height: 1.4;
  font-family: Arial, sans-serif;
  backdrop-filter: blur(5px);
}

/* Slideshow controls */
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: absolute;
  bottom: 10px;
  width: 100%;
  z-index: 10;
}

.dots-container {
  display: flex;
  gap: 10px;
}

.dot {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background-color: #bbb;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #717171;
}

.dot:hover {
  background-color: #999;
}

.prev, .next {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: lightgray;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  padding: 0;
  line-height: 1;
}

.prev:hover, .next:hover {
  color: #555;
}

/* ==========================================
   OLD SLIDESHOW (voor mySlides - fallback)
   ========================================== */
.mySlides {
  display: none;
  width: 100%;
}

.mySlides img {
  width: 100%;
  vertical-align: middle;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */
@media screen and (max-width: 992px) {
  .sidebar {
    left: -300px;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  .sidebar .close-btn {
    display: block;
  }
  
  .top-menu {
    display: block;
  }
  
  .main-content {
    margin-left: 0;
    margin-top: 60px;
  }
  
  .main-image-container {
    left: 0;
    top: 60px;
  }
  
  .slideshow-wrapper {
    margin-left: 0;
    margin-top: 60px;
  }
  
  .overlay {
    display: block;
  }
}

@media (max-width: 850px) {
  .slideshow-container {
    width: 90vw;
    height: 90vw;
  }
  
  .slide-caption {
    font-size: 14px;
    padding: 10px 15px;
    bottom: 45px;
  }
}
