/*----------------------------------------------------------------
|                    HEADER                                      |
-----------------------------------------------------------------*/
/*Header Base*/
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.151); 
    backdrop-filter: blur(5px); /*frosted glass*/
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.topbar .mainWrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 30px;
}
.logo {
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2))
}
.rightGroup {
  display: flex;
  align-items: center;
  gap: 20px;       /* jarak antara langSelect & hamburger */
  margin-left: auto; /* dorong ke kanan */
  background: transparent; /*rgba(59, 59, 59, 0.041)*/
  border-radius: 5px;
  padding: 0 10px;
}

#langSelect {
  margin: 0;      
}

.hamburger {
  font-size: 1.5rem;
  cursor: pointer;
  color: #550303;
}

.hamburgerIcon {
  opacity: 1; /* selalu ada */
}
.navLink.terms {
  cursor: pointer;
  color: #550303;
}

.contentWrapper {
    display: none;
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    background: rgba(255, 255, 255, 0.973); 
    backdrop-filter: blur(50px); /*frosted glass*/
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-radius: 0 0 8px 8px;
    padding: 20px 10px 0 10px;
    z-index: 9999;
}
.contentWrapper h2 {
    margin-top: 0;
    padding-left: 10px;
    color: #550303;
    border-radius: 10px;
    background: rgba(223, 218, 208, 0.137); 
    backdrop-filter: blur(5px); /*frosted glass*/
}
.contentWrapper ol {
    margin-top: -20px;
    padding: 10px 10px 10px 30px ;
    font-size: 0.9rem;
    color: #333;
    border-radius: 10px;
    background: rgba(223, 218, 208, 0.137); 
    backdrop-filter: blur(5px); /*frosted glass*/
}
.contentWrapper.active {
    display: block;
    animation: slideDown 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.contentWrapper.closing {
    display: block;
    animation: slideUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-200px); /* start dari atas */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* posisi normal */
  }
}
@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-200px); /* naik ke atas lagi */
  }
}
.navContainer {
    font-size: clamp(12px, 1.5vh, 20px);
}
.navLink {
    text-align: right;
    margin-right: 50px;
}
.navLink a {
    text-decoration: none;
    pointer-events: auto;
    color: #550303;
    font-size: 0.7rem;
}
.navLink a:hover {
    text-decoration: underline;
    font-size: 0.9rem;
}

/*----------------------------------------------------------------
|                    FOOTER                                      |
-----------------------------------------------------------------*/
/*Footer Base*/
footer  {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: transparent;
    margin: 0;
    padding: 0;
    z-index: 10;
    line-height: 0.2;
}
.footerBottom {
    height: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #333;
}
.footerBottom a {
    color: #550303;
    text-decoration: none;
    font-weight: bold;
    margin: 0 5px;
}
.footerBottom a:hover {
    text-decoration: underline;
}

/*----------------------------------------------------------------
|                    MAIN BOOK                                   |
-----------------------------------------------------------------*/
/*Book Base*/
.mainWrapper {
    font-family: 'Courier New', Courier, monospace;
    height: 90vh;
    max-width: 100vw; 
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; 
    overflow: visible;
}
/* BUKU UTAMA */
.bookContainer {
    display: flex;
    flex-direction: row;
    position: relative;
    width: 95vw; 
    max-width: 950px;    
    height: 95vh;
    max-height: 90%;
    align-items: stretch; 
}
/*Halaman Isi (KERTAS MENU)*/
.pageContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    width: 100%;
    background-color: transparent;
    border-radius: 25px 0 0 25px; 
    box-shadow: 5px 12px 15px rgba(0,0,0,0.5);
    overflow: visible;
    z-index: 8;
}