* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  height: 100%;
}

body, .slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  padding: 1rem 0 2rem 0;
}

body.fullscreen-mode,
.slide.fullscreen-mode {
  padding: 0 !important;
}

.hero-image {
  width: auto;
  max-width: 90vw;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
  transition: max-height 0.3s ease, width 0.3s ease;
  cursor: pointer;
  position: relative;
}

.hero-image.fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  margin: 0;
}

.overlay {
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(8px);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin-top: 0.75rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  overflow: hidden;
  display: block;
  width: auto;
  max-width: 90vw;
}

h1 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.text-scrollable {
  max-height: 10rem;
  overflow-y: auto;
  font-size: 1.1rem;
  line-height: 1.5;
  padding-right: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
  position: relative;
}

.text-scrollable::-webkit-scrollbar {
  width: 6px;
}

.text-scrollable::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.nav-button {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  background: rgba(0,0,0,0.4);
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  z-index: 1000;
  transition: background 0.2s ease;
}

.nav-button:hover {
  background: rgba(255,255,255,0.25);
}

#prevBtn { left: 10px; }
#nextBtn { right: 10px; }

#showTextHint,
#showFullscreenHint {
  position: fixed;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.2s ease;
  user-select: none;
  z-index: 3000;
}
.hero-image {
  display: block;
  max-width: 90vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  cursor: pointer;
  position: relative;
  object-fit: contain;
}

