/* Reset and Base Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
}

/* SLIDESHOWSTUFF */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.slideshow-track {
  display: flex;
  animation: scroll 120s linear infinite;
}

.slideshow-track img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-300%); } /* Adjust depending on how many images */
}

/* Overlay Content on Top of Slideshow */
.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}





/* Main content */
.content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #222;
}


.main-nav {
  background: white;

  max-width: 100%;
  width: 100%;
  margin: 2rem auto;
  justify-content: center;
}

.nav-buttons-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}


.nav-button {
  background: white;
  color: black;
  text-decoration: none;
  padding: 1rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.3s, color 0.3s;
  
  /* Fix these from your original version */
  width: auto;           /* don't force full width */
  max-width: none;       /* let it shrink to fit */
  margin: 0;             /* remove auto margin */
  text-align: center;
}

.nav-button:hover {
  background: black;
  color: rgb(188, 188, 56);
  cursor: pointer;
}

/* Header with month/year and buttons */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}



/* Preloader styling */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease; /* 👈 This makes fade-out smooth */
}

/* Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid lightgray;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}