* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Kumbh Sans', sans-serif;
}

@font-face {
  font-family: 'MyFont';
  src: url('/fonts/AreaExtended-Regular.woff2') format('woff2'),
       url('/fonts/AreaExtended-Regular.woff') format('woff'),
       url('/fonts/AreaExtended-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

#navbar_logo,
.navbar_links,
.navbar_btn .button {
  font-family: 'Montserrat', sans-serif;
}

.navbar {
    background-color: #131313;
    height: 80px;   
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999;   
    
}

.navbar_container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

#navbar_logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.2rem; /* match other links */
    font-family: 'Montserrat', sans-serif;
    padding: 10px 20px; /* match Buy button spacing */
    height: 75%; /* same as .button */
    border-radius: 4px;
    background: none; /* remove gradient */
    color: #fff; /* normal white text */
    transition: all 0.3s ease;
}

/* When hovered, match the other links */
#navbar_logo:hover {
    color: #095540;
}

/* Fix the logo image alignment and sizing */
.navbar_logo_img {
  height: 30px; /* aligns better with text and Buy button */
  width: auto;
  margin-right: 8px;
}


.navbar_logo_text {
  color: inherit; /* take color from #navbar_logo */
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

#navbar_logo .navbar_logo_text {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #fff;
  -moz-text-fill-color: #fff;
  color: #fff;
}

#navbar_logo:hover .navbar_logo_text {
  color: #095540;
}



.fa-gem {
    margin-right: 0.5rem;
    
}

.navbar_menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;

}


.navbar_item {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
}

.navbar_links {
    color: #fff;
    display: flex;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
}

.navbar_btn {
    display:flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    width: 100%;
}

.button {
    display: flex;
    justify-content: center;    
align-items: center;
text-decoration: none;
white-space: nowrap;
padding:10px 20px;
height: 75%;
width: 120px;
border: none;
outline: none;
border-radius: 4px;
background: #a2c9a7;
color: #fff;
}



.button:hover {
    background: #095540;
    color: #fff;
    transition: all 0.3s ease;

}

.navbar_links:hover {
    color: #095540;
    transition: all 0.3s ease;
}   

@media screen and (max-width: 960px) {
    .navbar_container {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
    }

    .navbar_menu {
        display: grid;
        grid-template-columns: 1fr;
        position: absolute;
        top: 80px; /* directly under the navbar */
        left: 0;
        width: 100%;
        background-color: #131313;
        opacity: 0;
        height: 0;
        overflow: hidden;
        transition: all 0.5s ease;
        z-index: 998;
    }
    
    .navbar_menu.active {
        opacity: 1;
        height: 50vh; /* adjust based on how much content you have */
    }
    

    #navbar_logo {
        padding: 0 1rem;
        
    }  
    
    .navbar_logo_text {
    display: none;
  }

    #mobile-menu .bar {
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: #fff;
    }

    .navbar_item {
        width: 100%;
    }

    .navbar_links {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
        
    }

    #mobile-menu {
        
            position: absolute;
            top: 20px;
            right: 20px;
            cursor: pointer;
            z-index: 1000;
        
        
    } 
    
    .navbar_btn {
        padding-bottom: 2rem;
    }

    .button {
        display:flex;
        justify-content: center;
        align-items: center;
        width: 80%;
        height: 60px;
        margin: 0;

    }

    .navbar_toggle .bar {
        display: block;
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {  
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {  
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {  
        transform: translateY(-8px) rotate(-45deg);
    }
}




/* MAIN SECTION */ .series-header {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    color: #a2c9a7;
}

.book-title {
    font-size: 2rem;
    margin-top: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    color: #a2c9a7;
    text-align: center;
}

.book-subtext {
    margin-top: 1rem;
    text-align: center;
    color: #a2c9a7;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
}

.main_img-container {
    text-align: center;
    padding: 2rem 0;
}

#main_img {
    width: 85%;
    max-width: 1100px;
    height: auto;
    border-radius: 12px;
    margin: 2rem auto;
    display: block;
    transition: transform 0.3s ease;
}

#main_img:hover {
    transform: scale(1.05);
}

.hover-caption {
    margin-top: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: #a2c9a7;
    text-align: center;
}

.book-card {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.overlay-buttons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover .overlay-buttons {
    opacity: 1;
}

.overlay-btn {
    display: inline-block;
    background: #1c1c1c; /* same as other buttons, or adjust as needed */
    color: #a2c9a7; /* match text color */
    padding: 10px 20px;
    border: 2px solid #a2c9a7;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none; /* removes underline */
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.overlay-btn,
.overlay-btn:link,
.overlay-btn:visited,
.overlay-btn:hover,
.overlay-btn:active {
    display: inline-block;
    background: #1c1c1c; /* match your other buttons */
    color: #a2c9a7;       /* text color */
    padding: 10px 20px;
    border: 2px solid #a2c9a7;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none; /* remove underline */
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.overlay-btn:hover {
    background: #a2c9a7;
    color: #1c1c1c;
    text-decoration: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: #1c1c1c;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 70%;
    max-width: 600px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.modal-content h2 {
    color: #a2c9a7;
    margin-bottom: 1rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.close:hover {
    color: white;
}


/* Map Modal Styling */

/* ===== Fullscreen Map Modal ===== */
.fullscreen-map {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.map-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-title {
  color: #a2c9a7;
  font-family: "Montserrat", sans-serif;
  margin: 40px 0 20px 0;
  font-size: 2rem;
}

.close-map {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1100;
}

.close-map:hover {
  color: #a2c9a7;
}

/* allow zoom box to sit outside the map container */
.map-container {
  position: relative;
  flex-grow: 1;
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible; /* <-- important so zoom-box isn't clipped */
}


/* Main fullscreen map */
/* main map */
.main-map {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
  cursor: crosshair;
}

/* ===== Zoom box (preview window) ===== */
.zoom-box {
  position: absolute;
  top: 50%;
  left: calc(100% + 20px);    /* sits to the right of the map */
  transform: translateY(-50%);
  width: 320px;               /* tweak to desired preview size */
  height: 320px;
  overflow: hidden;
  border: 2px solid #a2c9a7;
  border-radius: 8px;
  display: none;
  background: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 1050;
}

.zoom-box .zoom-map {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ===== spotify modal ===== */

.spotify-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1DB954;
    color: white;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px;
  }

  .spotify-btn:hover {
    background-color: #17a74a;
    transform: scale(1.05);
  }

  .spotify-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
  }

  /* Optional: make modal text centered */
  #playlistModal .modal-content {
    text-align: center;
  }





    /* Content advisory page styles */
    .modal-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: 100px; /* space below navbar */
    text-align: center;
    background-color: #000;
    color: #a2c9a7;
}

.modal-page-content {
    width: 85%;
    max-width: 900px;
    padding: 20px;
    border: 2px solid #a2c9a7;
    border-radius: 8px;
    background-color: #1c1c1c;
}

.modal-page-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #a2c9a7;
}
