@font-face {
    font-family: 'Avrile Serif Light';
    src: url('assets/fonts/AvrileSerif-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Avrile Serif Thin';
    src: url('assets/fonts/AvrileSerif-Thin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, sans-serif;
}

body {
    background-color: #fff;
    color: #777;
    font-size: 14px;
    background-image: url('assets/images/bg.png');
    background-repeat: no-repeat;
    background-position: left 0 top 910px;
    background-size: auto 200px; /* Adjusts the repeat interval */
}

p {
    line-height: 24px;
}

h1, h2, h3 {
    font-family: 'Avrile Serif Light', serif;
}

h3 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

header {
    background: url('assets/images/header.png') no-repeat center center/cover;
    padding: 20px;
    text-align: center;
    color: white;
}

.reduced-header {
    padding: 10px 20px; /* Reduced height */
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.nav ul li {
    margin: 0 15px;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding: 5px 15px;
    transition: color 0.3s ease;
    z-index: 1; /* Ensures text is above the background */
}

.nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav ul li a:hover::before {
    opacity: 1;
}

.nav ul li a:hover {
    color: #333;
}

.menu-item.active {
    background-color: #333;
    color: white;
    border-radius: 100px;
    font-weight: bold;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1000; /* Ensure the hamburger menu is above other content */
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px 0;
    transition: 0.4s;
}

.hamburger.toggle span:nth-child(1) {
    transform: rotate(-50deg) translate(-10px, 9px);
}

.hamburger.toggle span:nth-child(2) {
    opacity: 0;
}

.hamburger.toggle span:nth-child(3) {
    transform: rotate(50deg) translate(-5px, -7px);
}

@media (max-width: 768px) {
    .nav ul.menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        width: calc(100% - 40px); /* Ensures padding from both sides */
        background-color: white;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999; /* Ensure the menu is above other content */
    }

    .nav ul.menu li {
        text-align: center;
        margin: 15px 0;
    }

    .nav ul.menu li a {
        color: #136061;
    }

    .nav ul.menu li a:hover {
        background-color: #333;
        color: white;
        border-radius: 5px;
    }

    .hamburger {
        display: flex;
    }

    .nav ul.menu.active {
        display: flex;
    }
}

.hero {
    padding: 50px 0;
}

.hero h1 {
    font-size: 4.5em;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 1.5em;
    font-family: 'Avrile Serif Thin', serif;
    margin-top: 50px;
}

.hero-image {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
}

main {
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Center the form horizontally */
    align-items: center; /* Center the form vertically, if necessary */
    flex-direction: column; /* Ensure column layout */
}

main a {
    color: #136061;
    text-decoration: none;
}

main a:hover {
    color: #333;
}

.book {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.subtitle {
    font-weight: bold;
    margin-bottom: 8px;
}

.book-info {
    flex: 1;
    margin-right: 20px;
}

.book-image img {
    max-width: 100%;
    height: auto;
}

.read-more {
    text-align: right;
    margin-top:20px;
}

.read-more .button {
    background-color: #333;
}

.buy-buttons {
    text-align: center;
    margin-top: 20px;
}

.buy-buttons p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: bold;
}

.button {
    background-color: #136061;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 10px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-bottom: 10px;
}

.button:hover {
    background-color: #333;
    color: white;
}

.other-titles {
    text-align: center;
}

.titles {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    min-width: 370px;
}

.title {
    flex: 1;
    margin: 20px;
    text-align: center;
}

.title a {
    color: #136061;
    text-decoration: none;
}

.title a:hover {
    color: #333;
}

.title img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
}

.about-dione, .curiosity-inspiration {
    margin-bottom: 40px;
}

.about-dione h2, .about-book h2, .shamanic h2, .curiosity-inspiration h2, .inspirational-trees h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

.about-content {
    overflow: hidden; /* Ensure the container clears the floated elements */
}

.about-image {
    width: 300px;
    height: auto;
    border-radius: 10px;
    margin-right: 20px;
    float: left; /* Float image to the left */
}

.about-image.right {
    float: right; /* Float image to the right */
    margin-left: 20px;
    margin-right: 0;
}

.about-book h3 {
    font-size: 1.75em;
    color: #333;
    margin-bottom: 15px;
}

blockquote {
    background-color: #f4f4f4;
    border-left: 5px solid #136061;
    margin: 20px 0;
    padding: 10px 20px;
    font-style: italic;
}

.accordion {
    width: 100%;
    max-width: 800px;
    margin: 20px auto 0;
}

.accordion-item {
    border-bottom: 1px solid #ccc;
}

.accordion-item img {
    max-height: 150px;
    max-width:150px;
    border-radius: 10px;
    cursor: pointer;
    margin:10px 10px 10px 0;
}
.inspirational-trees .accordion-item img {
    max-width: 800px;
}
.accordion-header {
    background: #136061;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.3s ease;
    font-size: 1.2em;
}
.accordion-images {
    display: flex;
    justify-content: center;
    margin-top:10px;
}

.accordion-header:hover,
.accordion-header.active {
    background-color: #333;
}

.accordion-content {
    background-color: #f4f4f4;
    padding: 0 20px;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.accordion-content.show {
    max-height: 100%; /* Adjust this value based on your content */
    padding: 20px;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.accordion-content h3 {
    font-size: 1.5em;
    color: #136061;
    margin: 10px 0;
}

.inspirational-trees .accordion-header {
    background-color: #022833;
    color: white;
}

.inspirational-trees .accordion-header:hover,
.inspirational-trees .accordion-header.active {
    background-color: #333;
}

.contact {
    margin-bottom: 40px;
}

.contact h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 720px;
    width: 100%;
    margin: 20px auto 0; /* Center the form */
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input, select, textarea {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #136061;
    outline: none;
}

button {
    background-color: #136061;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    font-size: 12px;   
    font-weight: bold;
    width:100px;
}

button:hover {
    background-color: #333;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    height: 80%;
}

.modal .caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.modal .close:hover,
.modal .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.modal .prev,
.modal .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.modal .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.modal .prev:hover,
.modal .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

footer {
    background-color: #028780;
    background: url('assets/images/footer.png') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
    }

    .nav ul li {
        margin-bottom: 10px;
    }

    .about-content {
        display: block; /* Ensure the container handles block-level layout */
    }

    .about-image,
    .about-image.right {
        float: none; /* Remove float on smaller screens */
        display: block;
        margin: 0 auto 20px auto; /* Center images on smaller screens */
    }
}
