body {
    background-color: floralwhite;
    font-family: Arial, sans-serif;
    margin: 0;
    color: darkolivegreen;
    overflow-x: hidden;
}

.page-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(1180px, 99%);
    min-height: 100vh;
    margin: 2px auto;
    background-color: thistle;
    border: 1px solid darkorchid;
    border-radius: 10px;
    box-sizing: border-box;
    padding-bottom: 10px;
}

h1,
h2 {
    color: darkolivegreen;
    font-weight: bold;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

p {
    line-height: 1.5;
}

a,
a:visited {
    color: darkolivegreen;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    width: 99%;
    margin: 8px auto 5px;
    text-align: center;
}

.site-header img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid blueviolet;
}

.nav-bar ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 5px 0 8px;
    padding: 0;
}

.nav-bar button {
    border: 1px solid blueviolet;
    background-color: #8034A0;
    min-height: 35px;
    width: 120px;
    color: floralwhite;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: all 300ms ease;
}

.nav-bar button:hover,
.nav-bar button:focus,
.nav-bar button.active {
    background-color: beige;
    color: darkviolet;
    border-color: darkviolet;
    box-shadow: 0 0 5px #0000ff;
}

.site-main {
    width: 99%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid mediumpurple;
    background-color: floralwhite;
    border-radius: 15px;
    padding: 6px;
    box-sizing: border-box;
}

.banner {
    border: 1px solid blueviolet;
    background-color: rgb(144, 99, 148);
    border-radius: 15px;
    padding: 4px;
}

.banner-item {
    background-color: floralwhite;
    border: 1px solid pink;
    border-radius: 15px;
    padding: 10px;
    text-align: justify;
}

.banner-item p,
.details p {
    text-align: justify;
    margin: 10px;
}

.details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid blueviolet;
    background-color: rgb(144, 99, 148);
    border-radius: 15px;
    padding: 8px;
}

.details article {
    background-color: floralwhite;
    border-radius: 15px;
    text-align: center;
    padding: 10px;
    overflow: visible;
}

.book-grid,
.video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.book-grid img {
    width: 120px;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: 8px;
}

.video-grid iframe {
    width: 185px;
    height: 104px;
    max-width: 100%;
    border: 0;
    border-radius: 8px;
}

.youtube-link p {
    text-align: center;
}

.site-footer {
    width: 99%;
    margin-top: 6px;
    border: 1px solid blueviolet;
    border-radius: 5px;
    background-color: floralwhite;
}

.site-footer p {
    text-align: center;
    font-size: 0.75rem;
    margin: 8px;
}

@media (max-width: 900px) {
    .details {
        grid-template-columns: 1fr;
    }

    .nav-bar button {
        width: 140px;
    }

    .book-grid img {
        width: 100px;
    }

    .video-grid iframe {
        width: 220px;
        height: 125px;
    }
}

@media (max-width: 600px) {
    .site-header img {
        width: 100px;
        height: 100px;
    }

    h2 {
        font-size: 1.25rem;
    }

    .nav-bar button {
        width: 135px;
    }

    .book-grid img {
        width: 90px;
    }

    .video-grid iframe {
        width: 100%;
        height: 180px;
    }
}
