/* ============================
   Custom Fonts
============================ */
@font-face {
  font-family: 'JDMelted';
  src: url('assets/fonts/WhiteStorm.woff2') format('woff2'),
       url('assets/fonts/WhiteStorm.woff') format('woff'),
       url('assets/fonts/WhiteStorm.ttf') format('truetype');
}

@font-face {
  font-family: 'RomanAntique';
  src: url('assets/fonts/RomanAntique.woff2') format('woff2'),
       url('assets/fonts/RomanAntique.woff') format('woff'),
       url('assets/fonts/RomanAntique.ttf') format('truetype');
}

@font-face {
  font-family: 'oldsch';
  src: url('assets/fonts/oldsch.woff2') format('woff2'),
       url('assets/fonts/oldsch.woff') format('woff'),
       url('assets/fonts/oldsch.ttf') format('truetype');
}


/* ============================
   Body + Background
============================ */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  background: #000 center/cover no-repeat;
  font-family: 'oldsch', serif;
  color: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-image 1s ease-in-out;
}


/* ============================
   Main Game Container
============================ */
#game-container {
  max-width: 90vw;
  margin: 0 auto;
  padding: 5vw 4vw;
  background-color: rgba(0,0,0,0.6);
  text-align: center;
  border-radius: 1em;
  font-size: 1rem;

  will-change: filter, opacity, transform;
  filter: blur(0);
  opacity: 1;
  transform: scale(1);

  transition:
    filter 0.4s ease-in-out,
    opacity 0.4s ease-in-out,
    transform 0.4s ease-in-out;
}

.blur-transition {
  filter: blur(16px);
  opacity: 0.3;
  transform: scale(1.02);
}


/* ============================
   Thumbnail
============================ */
#initial-thumb {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: block;
}


/* ============================
   Scene Text
============================ */
#scene {
  opacity: 1;
}

#scene h1 {
  font-family: 'oldsch', cursive;
  font-size: 58px;
}

#scene p {
  font-family: 'oldsch', serif;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 1em;
}

#scene br {
  line-height: 0;
}

.small-gap {
  display: block;
  height: 2px;
}

.red-text {
  color: #f00;
}


/* Notebook image */
.scene-notebook {
  width: 100%;
  max-width: 600px;
  max-height: 600px;
  margin: 20px auto;
  display: block;
  border-radius: 10px;
}


/* ============================
   Choice Buttons
============================ */
#choices button {
  display: block;
  margin: 10px auto;
  padding: 15px 30px;
  font-size: 1.8rem;
  font-family: 'oldsch', serif;

  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;

  transition: background 0.3s;
}

#choices button:hover {
  background-color: #666;
}


/* ============================
   Blur Overlay
============================ */
#blur-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;

  backdrop-filter: blur(0px);
  background: rgba(0,0,0,0);

  transition:
    backdrop-filter 1.2s ease-in-out,
    background 1.2s ease-in-out;
}

#blur-overlay.active {
  backdrop-filter: blur(16px);
  background: rgba(0,0,0,0.3);
}


/* ============================
   Splash Screen
============================ */
#splash {
  position: absolute;
  inset: 0;
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  background: url("thumb.jpg") center/cover no-repeat;
  background-color: black;
}

#splash-content {
  text-align: center;
  color: #eee;
  font-family: 'oldsch', serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

#splash-buttons { 
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

/* Shared audio buttons */
.splash-btn {
  font-size: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90px;
  height: 90px;
  border-radius: 18px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px); 
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  cursor: pointer;
  transition: 
    transform 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.splash-btn:hover {
  background: rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.6);
  transform: scale(1.08);
}

.splash-btn:active {
  transform: scale(0.95);
}
.splash-text {
  font-size: 1.2rem;
  opacity: 0.8;
}

.hidden {
  display: none;
}


/* ============================
   Mobile Responsiveness
============================ */
@media (max-width: 600px) {
  #game-container {
    padding: 6vw 4vw;
  }

  #scene h1 {
    font-size: 8vw;
  }

  #scene p {
    font-size: 5.5vw;
  }

  #choices button {
    font-size: 5vw;
    padding: 4vw 6vw;
  }

  .splash-btn {
    font-size: 14vw;  /* keeps icons big and readable */
  }
}
