/* styles.css */

/* Basic Styling */
body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    font-size: 1em;
    color: #333;
}

.title-text {
    text-align: center;
    font-size: 3.5em;
    color: #f0f0f0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

header {
    background-color: #822035;
    padding: 1em; /* Increased padding for better spacing */
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: space-between;
    background-color: #208257;
    width: 100%;
    padding: 0.5em 0; /* Padding for vertical spacing */
    position: relative;
    justify-content: space-around;
}

nav a {
    color: white;
    padding: 10px 15px; /* Adjusted padding for better spacing */
    text-decoration: none;
    font-size: 1.1em; /* Increased font size for better readability */
    transition: background-color 0.3s, transform 0.2s;
    align-content: center;
}

nav a:hover {
    background-color: #2e6e9c;
    transform: scale(1.05);
}

main {
    padding: 30px; /* Increased padding for main content */
}

footer {
    background-color: #2e6e9c;
    color: rgb(151, 151, 151);
    text-align: center;
    padding: 1em; /* Increased padding for better spacing */
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Styles */
.toggle-button {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.nav-links {
    text-align: left;
    display: flex;
    flex-direction: row;
}

.nav-links.active {
    display: block;
}

/* Responsive Styling */

/* Mobile Styles */
@media (max-width: 768px) {
    header, footer {
        text-align: center;
    }

    nav {
        flex-direction: column;
    }

    nav a {
        padding: 10px 0;
        border-top: 1px solid #555;
    }

    main {
        padding: 15px; /* Reduced padding for mobile */
    }

    footer {
        position: static;
        margin-top: 20px;
    }
}
/* Mobile Menu Styles */
.toggle-button {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

/* Ensure the toggle button is visible on mobile */
@media (max-width: 768px) {
    .toggle-button {
        display: block;
    }

    .nav-links {
        display: none; /* Initially hide nav links on mobile */
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .nav-links.active {
        display: flex; /* Show nav links when active class is added */
    }

    nav a {
        padding: 10px 0;
        border-top: 1px solid #555;
    }
}

/* Tablet and Desktop Styles */
@media (min-width: 769px) {
    #app {
        max-width: 960px;
        margin: 0 auto;
    }

    nav {
        flex-direction: row;
    }

    main {
        padding: 40px; /* Increased padding for desktop */
    }
}

.profile-pic {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Poem and Article Card Styles */
.poem-grid, .article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.poem-card, .article-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.poem-card:hover, .article-card:hover {
    background-color: #f0f8ff;
    transform: scale(1.02);
}

/* Typography Styles */
h1 {
    text-align: center;
    font-size: 2.5em; /* Adjusted font size for h1 */
    color: #2e2e2e;
}

h2 {
    font-size: 1.6em; /* Increased font size for h2 */
    color: #4b74e0;
    text-align: center; /* Center aligned for better presentation */
}

p {
    font-size: 1.1em;
    margin: 15px 0; /* Increased margin for better spacing */
    text-align: justify;
}

/* BioPage styles */
.bio-page {
    display: flex;
    flex-direction: row;
    gap: 50px; /* Increased gap between sections */
    padding: 30px; /* Increased padding for the bio page */
    max-width: 1200px;
    margin: auto;
    background-color: #fff;
    border-radius: 10px;
    line-height: 2;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.top-sections {
    display: flex;
    gap: 20px;
}

.photo-section {
    flex: 1;
    text-align: center;
}

.right-section {
    flex: 2;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.flex-container {
    display: flex;
    gap: 20px;
}

.left-section {
    flex: 2;
}

.message-box {
    flex: 1;
    background-color: #f9f9f9;

    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.about-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Gallery section styles */
.images-section {
    text-align: center;
}

.image-container {
    display: flex;
    gap: 4em;
    justify-content: center;
    flex-wrap: wrap;
}

.image-item {
    max-width: 150px;
   
    text-align: center;

}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Cover the space while maintaining aspect ratio */

    border-radius: 5px; /* Rounded corners */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Shadow effect */
    margin-bottom: 0.5em; /* Space below images */
}

.image-item p {
    font-size: 0.9em;
    color: #666;
}

/* Add media queries for responsiveness */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
    }

    .message-box {
        margin-top: 20px;
    }

    .image-container {
        flex-direction: column;
    }

    .image-item {
        max-width: 100%;
    }
}
