:root {
     --primary-dark: #515622;
     --primary-med-dark: #9b9b3e;
     --primary-medium: #ced094;
     --primary-light: #f9f9e7;
     --text-dark: #000;
     --text-light: #ccc;
     --read-poem: #999;
     --read-poem-light: #ccc;
     --warning: #ff9966;
     --favorite: #CC3300;
}

 html {
     scroll-behavior: smooth;
}
 body {
     font-family: 'Courier New', monospace;
     text-align: center;
     color: var(--text-dark);
     margin: 0 auto;
    /* Center the content horizontally */
     font-size: 20px;
}
 .container {
     max-width: 800px;
     margin: 0 auto;
    /* Center the content horizontally */
}
 .book_container {
     margin: 0 auto;
    /* Center the content horizontally */
}
 .poems_container {
     max-width: 800px;
     margin: 0 auto;
    /* Center the content horizontally */
}
 .header_container {
     position: sticky;
     top: 0;
     padding: 16px 20px;
     z-index: 100;
     background: var(--primary-medium);
     border-bottom: 1px solid var(--text-light);
}
 .home_header {
     display: flex;
     justify-content: space-between;
    /* This will space out the items */
     align-items: center;
    /* Align items vertically */
     font-size: 24px;
     max-width: 800px;
     margin: 0 auto;
}
 .home_header .hh_left {
     cursor: pointer;
     font-size: 18px;
     text-align: left;
     -webkit-user-select: none; /* Safari */
     -ms-user-select: none; /* IE 10 and IE 11 */
     user-select: none; /* Standard syntax */
}
 .home_header .hh_center {
     margin: 0 auto;
    /* This will center the item */
     padding: 0 20px;
     -webkit-user-select: none; /* Safari */
     -ms-user-select: none; /* IE 10 and IE 11 */
     user-select: none; /* Standard syntax */
}
 .home_header .hh_right {
     font-size: 18px;
     text-align: right;
     -webkit-user-select: none; /* Safari */
     -ms-user-select: none; /* IE 10 and IE 11 */
     user-select: none; /* Standard syntax */
}

    .hamburger-svg {
        width: 30px; /* Width of the SVG icon */
        height: 20px; /* Height of the SVG icon */
        cursor: pointer;
    }

    .bar {
        color : var(--primary-dark);
        rx: 5; /* Radius for rounded corners */
    }

    /* Varying the length of each bar */
    .bar:nth-child(1) { width: 90%; }
    .bar:nth-child(2) { width: 80%; }
    .bar:nth-child(3) { width: 100%; }

 .title {
     font-size: 24px;
}
 .graph {
     margin: 30px;
     text-align: left;
}

.hidden_span {
    display: none;
}

 .hidden_letter {
     color: rgba(34, 34, 34, 0.0);
}
 .menu {
     display: flex;
     justify-content: space-between;
     width: 100%;
     margin: 0 auto;
    /* Center the container horizontally */
}
 .half {
     flex: 1;
    /* Each half takes up 50% of the container width */
     text-align: center;
    /* Center-align the text within each half */
}
 .sub_title {
     font-size: 20px;
     font-weight: bold;
     margin-bottom: 15px;
     margin-top: 30px;
     color : var(--primary-dark);
}

 .sub_title_link {
     color : var(--primary-dark);
     text-decoration: none;
}

.no-touch .sub_title_link:hover {
     text-decoration: underline;
}


 .menu_book {
     font-size: 20px;
     margin-bottom: 8px;
     padding: 2px;
}
 .menu_book_gray {
     font-size: 20px;
     margin-bottom: 8px;
     color: var(--text-light);
     padding: 2px;
}
 .book_link {
     text-decoration: none;
     color : #fff;
     color : var(--primary-dark);
}
.no-touch .book_link:hover {
     text-decoration: underline;
}
 .bpp_link {
     text-decoration: none;
     color: var(--text-dark);
}
 .about_link {
     color: var(--text-dark);
     text-decoration: none;
}
.no-touch .about_link:hover {
     text-decoration: underline;
}

 .white_link {
     color: #fff;
     text-decoration: underline;
}
.no-touch .white_link:hover {
     text-decoration: underline;
}

 .body_link {
     color: var(--text-dark);
     text-decoration: underline;
}

 .chapters {
     display: grid;
     grid-template-columns: repeat(5, 1fr);
    /* 5 columns with equal width */
     grid-gap: 20px;
    /* Spacing between grid items */
     text-align: center;
    /* Center align text within each grid item */
     padding: 20px;
     border-bottom: 1px solid var(--primary-medium);
}
 .chapters div {
     padding: 4px 0;
     font-size: 20px;
}

 .fav_chapters {
     display: grid;
     grid-template-columns: repeat(5, 1fr);
    /* 5 columns with equal width */
     grid-gap: 20px;
    /* Spacing between grid items */
     text-align: center;
    /* Center align text within each grid item */
     padding: 20px;
}
 .fav_chapters div {
     padding: 4px;
     font-size: 20px;
     border-radius: 20px;

}

 .chapter_title {
     margin: 40px 0 30px 0;
     padding: 20px 0 0 0 ;
     display: flex;
     justify-content: center;
     position: relative;
     color: var(--primary-dark);
     font-size: 22px;
     font-weight: bold;
}
 .chapter_link {
     padding: 8px;
     text-decoration: none;
     color: var(--primary-dark);
     border: none;
    border-radius: 20px;
     -webkit-user-select: none; /* Safari */
     -ms-user-select: none; /* IE 10 and IE 11 */
     user-select: none; /* Standard syntax */
    border: 1px solid #fff;

}
.no-touch .chapter_link:hover {
    border: 1px solid var(--primary-dark);
}

.read_chapter_indicator {
     background-color: var(--primary-light);
     font-weight: bold;
}

.fav_chapter_indicator {
    color: var(--favorite);
    background-color: var(--primary-light);
    font-weight: bold;
}


 .chapter_anchor {
     padding-top: 80px;
    /* Height of the sticky header plus some extra space */
     margin-top: -80px;
     display: block;
}
 .poem {
     font-size: 22px;
     margin: 0 20px;
     text-align: left;
     padding-bottom: 30px;
}
 .top_span {
     position: absolute;
     right: 20px;
     cursor: pointer;
     background: none;
     border: none;
}
 #book_title {
     padding: 0 12px;
     cursor: pointer;
     font-size: 24px;
}
 .book_header {
     display: flex;
     justify-content: space-between;
    /* This will space out the items */
     align-items: center;
    /* Align items vertically */
     max-width: 800px;
     margin: 0 auto;
}
 .bh_left {
     cursor: pointer;
     font-size: 18px;
     text-align: left;
}
 .bh_center {
     margin: 0 auto;
    /* This will center the item */
     flex: 1;
    /* Allows center div to grow and shrink */
     overflow: hidden;
    /* Hides overflowed text */
}
 .bh_right {
     font-size: 20px;
     text-align: right;
}

 .button_row {
     margin: 0 20px;
     padding-bottom: 30px;
     border-bottom: 1px solid var(--primary-medium);
     text-align: left;
}

.icon_button {
    border-radius: 24px;
     display: inline-flex;
     align-items: center;
     padding: 8px 8px;
     background-color: white;
     cursor: pointer;
     outline: none;
     color: var(--primary-med-dark);
     -webkit-user-select: none; /* Safari */
     -ms-user-select: none; /* IE 10 and IE 11 */
     user-select: none; /* Standard syntax */
     margin: 0 12px; /* Adds space between buttons */   
     border: none;
}

 .fav_button_svg {
     fill: var(--favorite);
}

 .icon_button_svg {
     fill: var(--primary-med-dark);
}
.no-touch .icon_button_hover {
     color: var(--primary-dark);
}
.no-touch .dark_hover {
     fill: var(--primary-dark);
}



 .button {
     border-radius: 24px;
     display: inline-flex;
     align-items: center;
     padding: 8px 8px;
     background-color: white;
     cursor: pointer;
     font-size: 18px;
     outline: none;
     border: none; /* 1px solid var(--primary-med-dark); */
     color: var(--primary-med-dark);
     -webkit-user-select: none; /* Safari */
     -ms-user-select: none; /* IE 10 and IE 11 */
     user-select: none; /* Standard syntax */
     margin: 0 12px; /* Adds space between buttons */
     min-width: 110px;
}

#buttonText {
    text-align: center;
    margin-left: 4px;
}

 .button_svg {
     fill: var(--primary-med-dark);
}
.no-touch .button_hover {
     border: none; /* 1px solid var(--primary-dark); */
     color: var(--primary-dark);
}
.no-touch .dark_hover {
     fill: var(--primary-dark);
}

 .tiny_popup_container {
     display: flex;
     justify-content: center;
     align-items: baseline;
     position: fixed;
     top: 25%;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 9;
     opacity: 1;
     display: none;
     font-family: Arial;

}
 .tiny_popup_content {
     background-color: var(--primary-dark);
     color: white;
     padding: 10px;
     border-radius: 5px;
     text-align: center;
     min-width: 150px;
     font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.fade-in {
    opacity: 0;
    animation: fadeInAnimation ease 1.0s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

 #scrollTopButton {
     position: fixed;
     bottom: 20px;
     right: 20px;
     cursor: pointer;
     border-radius: 24px;
     display: none;

}
 .footer {
     margin: 30px 0;
     font-size: 18px;
     color: #888;
     display: none;
}
 .message {
     margin: 20px;
     padding: 10px;
     text-align: center;
     background: var(--primary-light);
     border: 1px solid var(--primary-dark);
     color: var(--primary-dark);
     font-size: 20px;
     border-radius: 5px;
}
 .spaced_div {
     margin: 30px 20px;
}

 .spaced_left_div {
     text-align: left;
     margin: 0 20px 30px 20px;
}

 label {
     font-size: 18px;
     margin-top: 20px;
     display: block;
}
 .form_div {
     padding: 0 20px;
     text-align: left;
     background: var(--primary-light);
     border: 1px solid var(--primary-dark);
     border-radius: 24px;
     max-width: 300px;
     margin: 0 auto;
}
 small {
     color: #888;
}
 input[type="submit"] {
     width: 100%;
     margin: 20px 0;
     padding: 12px;
     background-color: var(--primary-dark);
     color: #fff;
     border: none;
     border-radius: 5px;
     cursor: pointer;
     font-size: 20px;
}
 input[type="text"], input[type="email"] {
     width: 100%;
     padding: 10px;
     margin: 10px 0;
     box-sizing: border-box;
     font-size: 20px;
     color: var(--text-dark);
}
 #subscribe_message {
     display:none;
}

/* Initial hidden state of the menu */
.nav_menu_hidden {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* Menu visible state */
.nav_menu_visible {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

/* Keyframes for the slide down animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Styling for the menu items */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--primary-dark);
}
.no-touch ul li a:hover {
    background-color: var(--primary-light);
;
}

.popup_warning {
    background-color: var(--warning);
}

