body {
  font-family: 'Georgia', serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #1a1a1a;
  color: #e0e0e0;
  overflow-x: hidden;
}

.hero {
  height: 100vh;
  background: url('image.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 20%, #000 70%);
  animation: ripple 5s infinite ease-in-out;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0.5; }
  100% { transform: scale(1); opacity: 0.8; }
}


.chapter {
  min-height: 100vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  position: relative;
  padding: 20px;
  overflow: hidden;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.chapter:hover {
  transform: scale(1.02);
}


.chapter-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chapter-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


.chapter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  transition: opacity 0.5s ease;
}

.chapter:hover::before {
  opacity: 0.6;
}



.hero-content {
  max-width: 800px;
  padding: 20px;
}

.title {
  font-size: 4rem;
  color: #c9a769;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: float 3s infinite ease-in-out;
}


.subtitle {
  font-size: 1.5rem;
  color: #e0e0e0;
  margin-top: 20px;
  animation: fadeIn 2.5s ease-in-out;
}

.chapter {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
  will-change: transform, opacity;
}

.chapter.visible {
  opacity: 1;
  transform: translateY(0);
  animation: float 3s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}



.chapter.visible {
  opacity: 1;
  transform: translateY(0);
}

.chapter-content {
  max-width: 800px;
  margin: 0 auto;
}

h2 {
  font-size: 2.5rem;
  color: #c9a769;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}


.story-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.story-image:hover {
  transform: scale(1.02);
}

#reveal-button {
  background-color: #c9a769;
  color: #1a1a1a;
  border: none;
  padding: 15px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin-top: 30px;
}

#reveal-button:hover {
  background-color: #b8935a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.choice-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  background: transparent;
}



.story-choice {
  background-color: #c9a769;
  color: #1a1a1a;
  border: none;
  padding: 15px 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  margin: 10px 0;
  width: 100%;
  max-width: 400px;
  align-self: center;
}


.story-choice:hover {
  background-color: #b8935a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.story-choice:disabled {
  background-color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

.choice-outcome {
  margin-top: 15px;
  padding: 15px;
  background-color: rgba(201, 167, 105, 0.1);
  border-left: 3px solid #c9a769;
  font-style: italic;
  color: #e0e0e0;
  animation: fadeIn 0.5s ease-in-out;
}


.hidden {
  display: none;
}

#destiny-text {
  margin-top: 30px;
  font-style: italic;
  color: #c9a769;
  font-size: 1.2rem;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeUp {
  from { opacity: 0;
  transform: translateY(30px); }
  to { opacity: 1;
  transform: translateY(0); }
}

.chapter.visible .chapter-content {
  animation: fadeUp 1s ease-out forwards;
}

@keyframes slideIn {
  from {
      transform: translateY(-50px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

@media (min-width: 768px) {
  .title {
      font-size: 5rem;
  }
  
  .subtitle {
      font-size: 2rem;
  }
  
  h2 {
      font-size: 3rem;
  }
  
  .story-image {
      max-width: 80%;
  }
}