/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Basis */
html, body {
  width: 100%;
  height: 100%;
  font-family: 'EB Garamond', serif;
  overflow: hidden;
  background-color: #f5f4f2;
}

.panel {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Overlay */
.overlay {
  background: rgba(255, 255, 255, 0.58);
  padding: clamp(2rem, 4vw, 4rem);
  text-align: center;
  max-width: 90%;
  border-radius: 4px;
  overflow-y: auto;
}

/* Hero overlay centrering en passend houden */
#hero .overlay {
  display: flex;
  flex-direction: column;
  align-items: center;      /* horizontaal centreren */
  justify-content: center;   /* verticaal centreren */
  max-height: 100%;          /* past binnen panel */
  overflow-y: auto;          /* scroll indien nodig */
}


/* Hero / betekenisblok */
#hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 600;
  color: #2f2f2f;
}

.subtitle {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 1rem 0;
  font-style: italic;
}

.meaning-block p {
  margin: 0.8rem 0;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.4;
}

button#startBtn {
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  background-color: #2f2f2f;
  color: white;
  transition: 0.3s;
}

button#startBtn:hover {
  background-color: #444;
}

/* Random wens pagina */
#sceneOverlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.scene-text {
  position: absolute;
  z-index: 10;
  text-align: center;
  pointer-events: none; /* klikken gaat naar tekst zelf */
}

.twente-text {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  color: #2f2f2f;
  margin-bottom: 1rem;
  cursor: pointer;
}

.subtle-title {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-style: italic;
  color: #2f2f2f;
  opacity: 0.6;
}

#hint {
  font-size: 0.9rem;
  margin-top: 1.5rem;
  color: #2f2f2f;
  opacity: 0.5;
  font-style: italic;
}

/* Fade-in animatie */
.panel {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

/* Mobiel */
@media (max-width: 600px) {
  .overlay {
    padding: 1.5rem;
  }

  #hero h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }

  .subtitle {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  .meaning-block p {
    font-size: clamp(1rem, 3vw, 1.5rem);
  }

  .twente-text {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }

  .subtle-title {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  }

  #hint {
    font-size: 0.8rem;
  }
}

.share-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #f5f4f2;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: none;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.8rem 1rem;
  z-index: 50; 
}

.share-bar button {
  background: transparent;
  border: none;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: #2a2a2a;     /* iets donkerder */
  cursor: pointer;
  opacity: 0.9;
}

.share-bar button:hover {
  opacity: 1;
  text-decoration: underline;
}
/* Tekst altijd boven overlay */
.twente-text,
.subtle-title {
  position: relative;
  z-index: 5;
}

/* Overlay zelf iets lager in stacking */
#sceneOverlay {
  position: relative;
  z-index: 1;
}

.photo-credit {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  font-size: 0.75rem;
  opacity: 0.4;
  font-style: italic;
}

/* Scroll-pagina: achtergrond vast, inhoud scrollt */
body.scroll-page {
  overflow: hidden;
}

body.scroll-page .panel {
  height: 100vh;
  background-attachment: fixed;
}

body.scroll-page .overlay {
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}


body.scroll-page .overlay {
  margin: 4rem auto;
}
.share-bar a.share-btn {
  background: transparent;
  border: none;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: #2a2a2a;
  cursor: pointer;
  opacity: 0.9;
  text-decoration: none;
}

.share-bar a.share-btn:hover {
  opacity: 1;
  text-decoration: underline;
}
