/* General Body */
body {
  margin: 0;
  font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;
  background: url("../assets/chap6bg.webp") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}

.nav-toggle-button {
    position: fixed;
    top: 20px;
    right:-15px;
    z-index: 1000;
    background-color: transparent; 
    color: transparent; 
    font-size: 0;
    width: 100px;
    height: 50px;
    border: none;
    border-radius: 5px;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-toggle-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nav-toggle-button:hover {
    transform: scale(1.05);
}

.nav-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 300px;
    background-color: rgba(30, 30, 30, 0.5); 
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1); 
    z-index: 999;
    transform: translateX(300px); 
    transition: transform 0.4s ease-in-out;
    padding-top: 80px; /* Space for the top toggle button */
}

/* State to show the menu */
.nav-wrapper.open {
    transform: translateX(0); 
}

.bookmark {
    width: 100%;
    padding: 10px 15px; 
    border-radius: 4px;
    text-align: left;
    display: block; 
    text-decoration: none; 
    color: #ffcc70; 
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Create the Bullet Point (using pseudo-element) */
.bookmark span::before {
    content: '•'; /* The bullet character */
    color: #ffcc70; /* Bullet color */
    font-size: 1.2em;
    margin-right: 15px; /* Space between bullet and text */
    display: inline-block;
    width: 15px; /* Give it a fixed width for alignment */
}

.bookmark:hover {
    background-color: rgba(255, 204, 112, 0.25);
    transform: scale(1.05);
}

.bookmark span {
    opacity: 1; 
    color: #f7e2b3;
    font-weight: normal;
    font-size: 13px;
    display: inline; 
}


.title-wrapper {
  text-align: center;
  margin-bottom: 30px;
}

.title-image {
  width: 80%;            
  max-width: 700px;     
  display: block;
  margin: 0 auto;
}

/* Scroll Path Container */
.challenge-path {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 20px;
}

/* Section Title */
.path-title {
  text-align: center;
  font-size: 28px;
  color: #ffcc70;
  margin-bottom: 60px;
}

/* Challenge Card */
.challenge-card {
  display: flex;
  align-items: flex-start;
  background-color: rgba(255, 204, 112, 0.05);
  border-left: 5px solid #ffcc70;
  padding: 20px 20px 20px 40px;
  margin-bottom: 40px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Rock Icon */
.rock-icon {
  width: 75px;
  margin-top: 10px;
  margin-right: 20px;
  flex-shrink: 0;
}

/* Challenge Content */
.challenge-content h2 {
  margin: 0 0 10px;
  color: #ffcc70;
  font-size: 20px;
}

.challenge-content p {
  margin: 0;
  font-size: 16px;
  color: #f7e2b3;
}

/* Reveal animation */
.challenge-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effect */
.challenge-card:hover {
  background-color: rgba(255, 204, 112, 0.1);
}

.music-toggle {
  position: fixed;
  top: 20px;
  right: 100px; /* to the left of nav-toggle (which is at right: -15px) */
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  padding: 0;
  width: auto;
  height: auto;
  outline: none;
  -webkit-tap-highlight-color: transparent; /* removes tap highlight on mobile */
}

.next-button {
  position: fixed;
  bottom: 30px;
  right: -30px;
  width: 140px;
  height: 125px;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
  z-index: 100;
  padding: 0;
  outline: none;
}

.next-button.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.next-button:hover {
  opacity: 0.9; /* or apply a filter if you prefer */
}

.next-btn-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.next-button:hover {
  /* Scale the button up by 10% (1.1) */
  transform: scale(1.2);
  /* Slightly increase the opacity for emphasis (optional, you already have one) */
  opacity: 1; 
}
