
/* Reset CSS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.poetry {
    line-height: 1.5em;
    font-size: 1.8rem;
    color: #111;
}

/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #E8D9C2;
    color: #1a1a1a;
    line-height: 1.6;
}

header {
    background-color: #E0C2A5;
    color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
}

nav {
    background-color: #E0C2A5;
    padding: 10px 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    color: #1a1a1a;
    text-decoration: none;
    margin: 0 10px;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
}

footer {
    background-color: #E0C2A5;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    bottom: 0;
    width: 100%;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-media img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.developer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.developer a:hover {
    text-decoration: underline;
}

/* index page Style*/
.poet-image {
    display: block;
    margin: 0 auto;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
}

.biography {
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

.biography h2 {
    font-size: 24px;
}

.biography-entry {
    margin-bottom: 20px;
}

.book-intro {
    max-height: 30px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.book-intro.expanded {
    max-height: none;
}

.download-button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #4169e1;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.download-button:hover {
    background-color: #00008b;
}

/* Book pages */
.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.book {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.book img {
    max-width: 50%;
    height: 70%;
    margin-bottom: 10px;
}

.book-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Video and Audio Style*/
.contain {
    max-width: 800px;
    margin: 20px auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.media {
    width: 48%;
    margin-bottom: 30px;
}

.media h2 {
    margin-bottom: 10px;
}

.media-item {
    margin-bottom: 20px;
}

.media-item iframe,
.media-item audio {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        display: block;
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid #ccc;
        font-size: 16px;
    }

    .poet-image {
        max-width: 90%;
    }

    .biography {
        padding: 0 15px;
    }

    .book-intro p,
    .biography-entry p {
        font-size: 16px;
        line-height: 1.6;
    }

    h2,
    h3 {
        font-size: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-content > div {
        margin-bottom: 10px;
    }

    .developer a {
        font-size: 16px;
    }

    .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .book img {
        max-width: 70%;
        height: auto;
    }
}

@media screen and (max-width: 480px) {
    .container {
        grid-template-columns: 1fr;
    }

    .book img {
        max-width: 90%;
    }
}
