/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Steinerlight";
  src: url("../Font/Steinerlight.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Bahnschrift Light";
  src: url("../Font/BAHNSCHRIFT.ttf") format("truetype");
  font-weight: lighter;
  font-style: normal;
}

@font-face {
  font-family: "Bahnschrift";
  src: url("../Font/BAHNSCHRIFT.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Bahnschrift Light";
  background-color: #ffffff;
  color: #000000;
  overflow: hidden; /* Prevent scrolling on home page */
  --dynamic-bg: none;
}

/* Background blur overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--dynamic-bg);
  background-size: 100%;
  background-position: center;
  filter: blur(10px);
  z-index: -1;
}

/* Header (fixed at top) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: transparent;
  z-index: 1000;
}

/* Header container grid structure */
.header-container {
  display: grid;
  grid-template-columns: 1fr auto auto; /* Three columns: nav menu, language switcher, social links */
  align-items: center;
  height: 80px;
  padding: 0 20px;
}

/* Position the .logo in the left column (column 1) */
.logo {
  grid-column: 1;
  position: absolute;
  top: 0; 
  left: 20px;
}

/* Logo 150x150 */
.logo img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-top: -0px;
}

/* Navigation Menu */
.nav-menu {
  grid-column: 1; /* Keep it in the first column */
  justify-self: center; /* Center it horizontally within its column */
  display: flex;
  list-style: none;
  margin-left: 50px; /* Push the nav menu slightly to the right */
}

.nav-menu ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-menu ul li {
  margin: 0 20px;
}

.nav-menu ul li a {
  text-decoration: none;
  color: #000;
  font-family: "Steinerlight";
  font-size: 24px;
  font-weight: bold;
  transition: font-size 0.3s ease, color 0.3s ease;
  letter-spacing: 3px;
}

.nav-menu ul li a.active {
  font-size: 24px;
  text-decoration: underline;
  color: #000;
}

.nav-menu ul li a:hover {
  font-size: 30px;
}

/* Language Switcher */
.language-switcher {
  grid-column: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: flex-end;
  margin-right: 15px;
}

.language-switcher .lang-option {
  text-decoration: none;
  font-size: 18px;
  font-family: "Steinerlight";
  font-weight: bold;
  color: #000;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.language-switcher .lang-option:hover {
  background-color: #f5f5f5;
  color: #333;
}

.language-switcher .lang-option.active {
  background-color: #fff;
  color: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Social Links */
.social-links {
  grid-column: 3;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-self: flex-end;
}

.social-links .social-dot {
  font-size: 20px;
  color: #000000;
  text-decoration: none;
  transition: transform 0.3s;
}

.social-links .social-dot:hover {
  transform: scale(1.2);
}

/* Main area (the slideshow region) takes up leftover space (no scroll) */
main {
  position: absolute;
  top: 80px;     /* just below header */
  bottom: 60px;  /* just above footer */
  left: 0;
  right: 0;
  overflow: hidden;
}

/* =========================
   The slideshow container
   ========================= */
   .slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px 0; /* spacing from header & footer */
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
  }
  
  /* 
     Each slide is .slideshow-item, stacked absolutely 
     in the center. Only the .active one is visible.
  */
  .slideshow-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    /* Explicit dimensions */
    width: 80vw;
    height: 80vh;
    max-width: 80vw; 
    max-height: 80vh;
  
    box-sizing: border-box;
  
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
  }
  
  .slideshow-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
  }
  
  /* 
     The anchor around the image, so you can link to #2024, etc.
     We just make it block so it behaves nicely. 
  */
  .slideshow-item a {
    display: flex; /* Match `.slideshow-item` */
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit; /* Match text color */
  }
  
  /* 
     The image – ensure it never overflows the container’s max 
     and keep the white border as you had. 
  */
  .slideshow-item a img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  
    /* If 50px is too large a border, reduce it. This adds up to 
       100px total in both width & height. */
    border: 50px solid #fff;
  }
  
  /* 
     If you’re not wrapping the image in <a>, 
     or for fallback, you can also keep these. 
     (This duplicates the same sizing logic.)
  */
  .slideshow-item img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 50px solid #fff;
  }

/*
  The description is pinned near the bottom
  (within the .slideshow-item, which is position: relative).
*/
.slideshow-description {
  position: absolute;
  left: 50%;
  bottom: 5px; /* Adjust gap from bottom as needed */
  transform: translateX(-50%);
  
  color: #000;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  text-align: center;
  max-width: 80%;
  box-sizing: border-box;
  z-index: 2;
}

.slideshow-description span.first-word {
  font-family: "Bahnschrift";
  font-weight: bold; /* Optional, if you want the first word bold */
}

/* Navigation Arrows */
button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;       /* Size for circle */
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 3;

  /* Center the text arrow < or > */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Make the text arrow visible */
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

/* Hover effect: darker background */
button.prev:hover,
button.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Positioning */
button.prev {
  left: 200px; /* adjust as needed */
}
button.next {
  right: 200px; /* adjust as needed */
}

/* Footer fixed at bottom */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
footer p {
  margin-bottom: 3px;
}
footer a {
  text-decoration: none;
  color: #000000;
  transition: color 0.3s;
}
footer a:hover {
  color: #888888;
}

/* Responsive Design */
@media (max-width: 1024px) {
  header {
    height: 80px;
  }

  /* Background blur overlay */
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--dynamic-bg);
    background-size: 200%;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
  }

  .logo {
    left: 0px;
  }

  .logo img {
    width: 120px;
    height: 120px;
  }

  /* Hamburger menu: Position after the logo */
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    left: 140px; /* Adjust based on logo width */
    top: 25px; /* Center vertically relative to header height */
  }

  .social-links {
    right: 20px;
    position: absolute;
  }

  .nav-menu {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
    padding: 20px 0;
    align-items: center;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 15px;
  }

  .nav-menu ul li {
    margin: 10px 0;
  }

  .nav-menu ul li a {
    font-size: 20px;
  }

  .slideshow-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  
    /* Center the content (anchor/img) horizontally/vertically */
    display: flex;
    align-items: center;
    justify-content: center;
  
    /* Instead of forcing full screen, let it shrink/grow: */
    width: auto;
    max-width: 90vw;  /* Slide can’t exceed 80% of viewport width */
    height: auto;
    max-height: 80vh; /* Slide can’t exceed 80% of viewport height */
  
    box-sizing: border-box;
  
    /* Fade transitions & layering */
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
  }
  
  .slideshow-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
  }
  
  /* 
     The anchor around the image, so you can link to #2024, etc.
     We just make it block so it behaves nicely. 
  */
  .slideshow-item a {
    display: block;
    text-decoration: none;
    color: inherit; /* or #000 if you want link text color same as text */
  }
  
  /* 
     The image – ensure it never overflows the container’s max 
     and keep the white border as you had. 
  */
  .slideshow-item a img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  
    /* If 50px is too large a border, reduce it. This adds up to 
       100px total in both width & height. */
    border: 50px solid #fff;
  }
  
  /* 
     If you’re not wrapping the image in <a>, 
     or for fallback, you can also keep these. 
     (This duplicates the same sizing logic.)
  */
  .slideshow-item img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 50px solid #fff;
  }

  /* Navigation Arrows */
  button.prev,
  button.next {
    display: none;
  }

  .footer-container{
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  header {
    height: 70px;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--dynamic-bg);
    background-size: 200%;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
  }

  header {
    height: 70px; /* Smaller header */
    backdrop-filter: blur(10px); /* Blur effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    z-index: 1001; /* Ensure header stays on top */
  }

  .logo {
    left: 0px;
  }

  .logo img {
    width: 80px;
    height: 80px;
    left: 0px;
  }

  .language-switcher {
    position: absolute;
    right: 80px; /* adjust so it doesn't collide with social links */
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    left: 100px; /* Adjust based on smaller logo */
    top: 30px; /* Center vertically */
    z-index: 1002;
  }

  .hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px; /* Below header */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    padding: 15px 0;
    align-items: center;
    margin-left: 0px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 15px;
  }

  .nav-menu ul li a {
    font-size: 18px;
  }

  .slideshow-description {
    display: none;
  }

  .slideshow {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px - 60px); /* subtract header/footer if needed */
    margin-bottom: 60px; /* above fixed footer */
    overflow: hidden;   /* optional, to prevent scrollbars */
  }

  .slideshow-item {
    /* Absolutely center each slide within .slideshow */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Adapt to screen size without stretching */
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;

    /* For visual centering of content */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    /* Fade in/out only the active slide */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
  }

  .slideshow-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
  }

  /* Link styling (if needed) */
  .slideshow-item a {
    display: block;
    text-decoration: none;
    color: inherit; 
  }

  /* Keep each image contained within the max dimensions, 
     preserving its aspect ratio. */
  .slideshow-item a img {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;

    /* Adjust border as you like */
    border: 10px solid #fff;
  }
  

  /* Navigation Arrows */
  button.prev,
  button.next {
    display: none;
  }

  .footer-container{
    font-size: 10px;
  }

}
  