/* ================================
   GENERAL STYLES
=================================*/
html, body {
    height: 100%;           /* ensures full viewport height */
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #fff; /* default, overridden by page classes */
}

/* Page-specific backgrounds */
body.index {
    background-image: url('index.jpg');
    background-size: cover;
    background-position: center;
}

body.about {
    background-image: url('about.jpg');
    background-size: cover;
    background-position: center;
}

body.contact {
    background-image: url('contact.jpg');
    background-size: cover;
    background-position: center;
}

/* ================================
   HEADER / Title 
=================================*/
.title {
  display: block;                      /* full width */
  text-align: center;                   /* center text inside */
  background-color: rgba(255, 255, 255, 0.7);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 2em;
  font-weight: bold;
  margin: 20px auto 0;                 /* auto left/right centers block */
  width: fit-content;                   /* shrink background to text width */
}

header {
    display: flex;
    justify-content: space-between; /* left vs right */
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid #ddd;
}

/* Left section: logo + title */
.header-left {
    display: flex;
    align-items: center;
}

.header-left .logo-container {
    margin-right: 15px;
}

.header-left .logo-container img,
.header-left .logo {
    height: 75px;
    display: block;
}

.header-left h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

/* Navigation links */
.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-list li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-list li a:hover {
    color: #555;
}

/* Logout button (optional) */
.logout-button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.logout-button:hover {
    background-color: #555;
}

/* ================================
   MAIN CONTENT
=================================*/
main {
    flex: 1 0 auto;
    padding: 20px;
    background: transparent;
}

.blur-effect{
    max-width: 400px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.7); /* slight transparency over bg */
    padding: 20px;
    border-radius: 8px;
}

/* ================================
   FOOTER
=================================*/
footer {
    flex-shrink: 0;          /* prevents footer from shrinking */
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    background-color: #f8f8f8;
    width: 100%;
}

/* Contact Info Button
=================================*/
section.contact-info {
    background-color: rgba(255, 255, 255, 0.8); /* white with some transparency */
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;        /* optional: keeps text from stretching too wide */
    margin: 20px auto;       /* center horizontally */
    text-align: center;      /* optional, centers text and image */
    
}



/* ================================
   POEMS PAGE (WORK.PHP)
=================================*/
.poem-container {
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 15px;
}

.poem-title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 5px;
}

.poem-content {
    white-space: pre-wrap; /* preserve line breaks */
}

/* ================================
   LOGIN FORM
=================================*/
.login-form {
    max-width: 400px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.9); /* slight transparency over bg */
    padding: 20px;
    border-radius: 8px;
}



.login-form input {
    padding: 8px;
    margin-bottom: 15px;
    font-size: 16px;
}

.login-form button {
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
}

.login-form button:hover {
    background-color: #555;
}

/* ================================
   MOBILE-FRIENDLY STYLES
=================================*/
@media (max-width: 768px) {

    /* HEADER */
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .header-left {
        flex-direction: column;
        align-items: center;
    }

    .header-left .logo-container {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .header-left h1 {
        font-size: 20px;
        text-align: center;
    }

    /* NAVIGATION */
    .nav-list {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .nav-list li a {
        font-size: 16px;
    }

    /* MAIN / CONTENT */
    main {
        padding: 15px;
    }

    .blur-effect {
        max-width: 90%;          /* responsive width */
        margin: 20px auto;
        padding: 15px;
    }

    /* POEM TITLES */
    .poem-title {
        font-size: 18px;          /* slightly smaller for mobile */
        margin-bottom: 5px;
    }

    .poem-content {
        font-size: 16px;          /* more readable on smaller screens */
    }

    /* HOMEPAGE TITLE */
    .title {
        font-size: 1.8em;
        padding: 5px 8px;
        margin: 15px auto 10px;
    }

    /* FOOTER */
    footer {
        font-size: 14px;
        padding: 8px 0;
    }

    /* LOGIN FORM */
    .login-form {
        width: 90%;
        padding: 15px;
        margin: 20px auto;
    }

    .login-form input,
    .login-form button {
        font-size: 14px;
        padding: 8px;
    }
}
