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

body {
  background-color: #1E1E1E;
  color: #FEFEFE;
  font-family: "IM Fell English", serif;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #FEFEFE;
  text-decoration: none;
}

a:hover {
  color: #FFE39E;
}

/* header */

header {
  text-align: center;
  background-color: #1E1E1E;
  padding: 10px;
}

header.title h1 {
  font-family: "Barrio", system-ui;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: #FEFEFE;
}

/* story page titles */
header.menutitle {
  font-family: "Barrio", system-ui;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: #FEFEFE;
}

header h1 {
  font-family: "Barrio", system-ui;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: #FEFEFE;
}


.start-top {
  position: fixed;
  top: 12px;
  right: 40px;
  z-index: 1000;
}

.nav-wrap {
  position: relative;
}

.choices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 50px;
}

.choice {
  display: block;
  font-family: "IM Fell English", serif;
  font-size: 16px;
  color: #FEFEFE;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 16px;
  background-color: #2a2a2a;
  width: fit-content;
}

.choice:hover {
  background-color: #2a2a2a;
  border-color: #FFE39E;
  color: #FFE39E;
}

.menu-btn {
  background: #111;
  color: #FEFEFE;
  border: 1px solid #555;
  padding: 6px 18px;
  font-family: "IM Fell English", serif;
  font-size: 16px;
}

.menu-btn:hover {
  background: #2a2a2a;
}

.nav-drop {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #111;
  border: 1px solid #444;
  min-width: 220px;
  flex-direction: column;
}

.nav-wrap:hover .nav-drop {
  display: flex;
}

.nav-drop a {
  display: block;
  padding: 10px 16px;
  font-family: "IM Fell English", serif;
  font-size: 0.85rem;
  border-bottom: 1px solid #2a2a2a;
  color: #FEFEFE;
}

.nav-drop a:last-child {
  border-bottom: none;
}

.nav-drop a:hover {
  background: #2a2a2a;
  color: #FFE39E;
}

.start {
  font-family: "Barrio", system-ui;
  font-size: 60px;
  color: #FFE39E;
  display: block;
  text-align: center;
  margin: auto;
  padding: 10px 20px;
}

.start:hover {
  color: #fff0c0;
  text-decoration: underline;
}

.char {
  display: flex;
  justify-content: center;
  padding: 20px;
  flex-wrap: wrap;
  gap: 60px;
}

.char-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.char-card img{
  width: clamp(120px, 20vw, 200px);
}

.cyc-wrap {
  display: flex;
  justify-content: center;
  gap: 150px;
}

.logo {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px;
  flex-wrap: wrap;
}

body > img {
  display: inline-block;
  width: clamp(120px, 25vw, 200px);
  margin: 30px auto 0;
}

.cyc {
  font-family: "Barrio", system-ui;
  font-size: 30px;
  color: #FFE39E;
  display: inline-block;
  border-bottom: 2px solid #FFE39E;
  padding-bottom: 4px;
  margin: 20px 40px;
}

.cyc:hover {
  color: #fff0c0;
  border-color: #fff0c0;
}

.scene1 {
  background-image: url(images/hallway.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.scene2 {
  background-image: url(images/portal.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.scene3 {
  background-image: url(images/door.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.scene4 {
  background-image: url(images/mirror.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.scene5 {
  background-image: url(images/touch.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.scene6 {
  background-image: url(images/door.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.scene {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   
  align-items: center;         
  min-height: 50vh;
}

.storybox {
  position: relative;
  width: 100%;                 
  max-width: 1000px;            
  margin: 0 0 5px 0;         
  background: rgba(32, 32, 32, 0.6);
  padding: 24px 28px;
}

.storybox .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  font-style: italic;
}

.storybox p {
  font-family: "IM Fell English", serif;
  font-size: 16px;
  line-height: 1.9;
  color: #FEFEFE;
  margin-bottom: 20px;
}

.storybox a {
  justify-content: space-between;
  gap: 20px;
}
.storybox a:hover {
  color: #FFE39E;
  border-color: #FFE39E;
}

/* footer */

footer {
  font-family: "IM Fell English", serif;
  font-size: 16px;
  color: #444;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #111;
  border-top: 1px solid #222;
  margin-top: auto;
}

footer a {
  color: #444;
}

footer a:hover {
  color: #FFE39E;
}

/* mobile responsive */
@media (max-width: 600px) {

  .scene {
    min-height: 60vh;
  }

  .storybox {
    padding: 16px 18px;
    margin: 0 0 20px 0;
  }

  .storybox p {
    font-size: 14px;
  }

  .char {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .cyc-wrap {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .start {
    font-size: 40px;
  }

  header.title h1 {
    font-size: 2.5rem;
  }

  .choice {
    font-size: 14px;
    padding: 8px 12px;
  }
}

