/* Styles to center all slides regardless of media size */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f5;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 0;
}

.slide-container {
  width: 1280px;
  height: 720px; /* Fixed height for consistent sizing */
  max-width: 95vw;
  max-height: 95vh;
  margin: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow-y: auto; /* Enable vertical scrolling within slides */
  overflow-x: hidden;
  transform-origin: center;
  background: linear-gradient(297deg, #EBF5F7 17.11%, #C0D8E6 47.35%, #93B8D4 76.46%, #5F93C2 103.74%);
  font-family: 'Trykker', serif;
  color: #333333;
}

/* Custom scrollbar styling for better appearance */
.slide-container::-webkit-scrollbar {
  width: 8px;
}

.slide-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.slide-container::-webkit-scrollbar-thumb {
  background: rgba(95, 147, 194, 0.5);
  border-radius: 4px;
}

.slide-container::-webkit-scrollbar-thumb:hover {
  background: rgba(95, 147, 194, 0.7);
}

@media screen and (max-width: 1300px) {
  .slide-container {
    transform: scale(0.85);
    margin: 20px auto;
  }
}

@media screen and (max-width: 1100px) {
  .slide-container {
    transform: scale(0.75);
    margin: 30px auto;
  }
}

@media screen and (max-width: 900px) {
  .slide-container {
    transform: scale(0.65);
    margin: 40px auto;
  }
}

@media screen and (max-width: 700px) {
  .slide-container {
    transform: scale(0.55);
    margin: 50px auto;
  }
}

@media screen and (max-width: 500px) {
  .slide-container {
    transform: scale(0.45);
    margin: 60px auto;
  }
}

/* Make sure slide navigation is properly positioned */
.slide-navigation {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  z-index: 1000;
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media screen and (max-width: 600px) {
  .slide-navigation {
    bottom: 15px;
    gap: 10px;
  }
  
  .slide-navigation .nav-button {
    padding: 8px 16px !important;
    font-size: 14px !important;
  }
  
  .slide-navigation .home-button {
    width: 40px !important;
    height: 40px !important;
    font-size: 14px !important;
  }
  
  .slide-counter {
    top: 10px !important;
    right: 10px !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
  }
}