/* Apply background image to the body */
body {
    background-image: url("img/background.jpeg");
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover; /* Ensure the image covers the whole page */
    margin: 0;
    font-family: 'Merriweather Sans', sans-serif; /* Default font */
}

#grad1 {
    height: 100vh; /* Cover the entire viewport */
    width: 100%; /* Cover the entire viewport */
    background-image: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.9)); /* Adjust the gradient direction and transparency as needed */
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1; /* Place the gradient layer behind other content */
}

/* Specific class names */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6798A8; 
    padding: 10px 10px;
    position: relative;
    z-index: 1; /* Place the header above the gradient layer */
    text-align: center; /* Center align the content */
    border-bottom: 3px solid #0D2840;
}

.main-navigation h1 {
    font-family: 'Playfair Display', serif;  /* Decorative serif font for elegance */
    font-size: 3rem; /* Adjust size for emphasis */
    color: #0D2840;  /* Dark blue from the theme */
    text-align: center;
}

.main-navigation .middle-section {
    display: flex;
}

/* Positioning for the bird image */
#bird {
    position: absolute;  /* Keeps the bird in a fixed position relative to the viewport */
    top: 45%;         /* Adjust vertical position */
    left: 50%;        /* Adjust horizontal position */
    transform: translate(-50%, -50%);  /* Center the image at the given coordinates */
    z-index: 10;      /* Ensure the bird image is on top of other content */
    width: 200px;      /* Size of the bird image */
    height: auto;     /* Maintain aspect ratio */
}

/* Poem container in grid layout */
#poem {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Responsive grid columns */
    grid-gap: 30px; /* Space between boxes */
    width: 70vw; /* 90% of the viewport width */
    margin: 0 auto; /* Center grid horizontally */
    padding-top: 80px; /* Space from the top */
}

/* Each stanza in a transparent box */
.stanza {
    background-color: rgba(170, 184, 235, 0.7); /* Slightly transparent white background */
    padding: 20px;
    text-align: center; /* Center the text inside the box */
    border-radius: 10px; /* Slightly rounded corners */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    border: 2px solid #0D2840;
    font-family: 'Merriweather Sans', sans-serif; /* Clean sans-serif for readability */
    font-size: 1.2rem; /* Adjust size for easy reading */
    line-height: 1.6;
}

/* Ensure the grid layout is responsive */
@media (max-width: 1200px) {
    #poem {
        grid-template-columns: repeat(3, 1fr); /* Collapse to 3 columns on smaller screens */
    }
}

@media (max-width: 900px) {
    #poem {
        grid-template-columns: repeat(2, 1fr); /* Collapse to 2 columns on medium screens */
    }
}

/* Bio Section Styling */
#bio {
    background-color: #EEEBE6; /* Light neutral for bio background */
    padding: 20px;
    border-radius: 8px;
    color: #0D2840; /* Dark text color for readability */
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border-left: 5px solid #6798A8;
}

#bio h2 {
    color: #410B57; /* Rich purple for heading */
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

#bio figure {
    text-align: center;
}

#bio img {
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#bio figure img {
   border: 3px solid #0D2840; /* Matches the theme */
}


#bio figcaption {
    color: #6798A8;
    font-style: italic;
}

#bio p, #bio ul {
    font-size: 1rem;
    line-height: 1.6;
}

#bio ul {
    list-style-type: disc;
    padding-left: 20px;
}

#bio small a {
    color: #0D2840; /* Keep link in the same dark shade */
    text-decoration: none;
}

#bio small a:hover {
    text-decoration: underline;
}

a:hover {
   color: #410B57;
   text-decoration: underline;
}

/* Footer Styling */
footer {
    background-color: #0D2840; /* Dark background for footer */
    color: #EEEBE6; /* Light text for contrast */
    padding: 10px;
    text-align: center;
}

footer a {
    color: #AAB8EB; /* Soft blue for the link */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer time {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #AAB8EB;
}

