body {
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

header {
    color: #fff;
    text-align: center;
    background: linear-gradient(to right, rgb(40, 39, 39), rgb(59, 59, 59));
    margin-bottom: 10px;
}

.header-background {
    background-image: url('assets/four.jpg');
    background-size: cover;
    background-position: center;
    padding: 50px 10px;
    color: #fff;
}

h1 {
    font-size: 36px;
    margin: 0;
    padding: 20px;
    display: inline-block;
    font-family: 'Arial Narrow', Arial, sans-serif;
}

nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 10px;
    margin: 10px;
    padding-bottom: 25px;
    overflow: hidden;
    box-sizing: border-box;
    flex-wrap: wrap; 
    width: 100%; 
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 20px;
    text-transform: uppercase;
    box-sizing: border-box;
}

nav a:hover {
    background-color: #c2c2c2;
    color: #333;
}

main {
    padding: 20px;
    text-align: center;
}

ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

li {
    margin: 10px 0;
}

a {
    text-decoration: none;
    color: #333;
}

.poem-img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px;
}

section {
    margin-bottom: 40px;
}

.quotes-box {
    border: 2px solid #ccc;
    margin-top: 20px;
}

.quote {
    font-size: 20px;
    font-style: italic;
    margin: 20px 0;
    color: #555;
    text-align: left;
}

.quote p {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin: 0;
}

@media only screen and (max-width: 600px) {
    .quote {
        padding: 20px;
    }
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #444;
    border-bottom: 2px solid #ccc;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 5px;
    text-transform: uppercase;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

@media (max-width: 669px) {
    nav {
        display: inline;
        text-align: center;
    }

    nav a {
        float: none;
        display: block;
        width: 100%;
    }
}