/* Author: Joshua Boudreaux
   Date: October 21, 2025 (Updated November 16, 2025)
   File: styles.css
*/

/* ===== Reset Defaults ===== */
body, h1, h2, p, ul, li, input, textarea {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Body Layout ===== */
body {
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: Verdana, sans-serif;
    color: white;
    line-height: 1.6;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Sticky Navigation Bar ===== */
header {
    background-color: black;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.navbar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    background-color: white;
    color: black;
    transform: scale(1.05);
    border-radius: 5px;
}

/* ===== Main Content ===== */
main {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 10px;
    max-width: 900px;
    margin: 40px auto;
}

/* ===== Images ===== */
img.character,
.about img.character,
#year5-content img,
#tenyear-content img,
#contact-content img {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

img.character:hover {
    transform: scale(1.03);
}

/* ===== Headings ===== */
h1, h2 {
    text-align: center;
    margin-bottom: 15px;
}

/* ===== Paragraphs ===== */
p {
    text-align: justify;
    margin-bottom: 15px;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    border-top: 2px solid #444;
    margin-top: auto;
}

/* ===== Contact Form Styling ===== */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #fff;
    border-radius: 5px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    margin-bottom: 15px;
    font-size: 1em;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: #ddd;
}

input[type="submit"] {
    background-color: white;
    color: black;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

input[type="submit"]:hover {
    transform: scale(1.05);
    background-color: #ddd;
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 600px) {
    .navbar ul {
        flex-direction: column;
    }

    .navbar a {
        padding: 10px;
        font-size: 0.9em;
    }

    main {
        margin: 20px;
        padding: 15px;
    }

    img.character,
    #year5-content img,
    #tenyear-content img,
    #contact-content img {
        max-width: 300px;
    }
}

/* ===== Year 5, 10 Year, Contact Page Background ===== */
body.year5,
body.tenyear,
body.contact {
    background-image: url('../images/year5bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

/* ===== Year 5, 10 Year, Contact Content Box ===== */
#year5-content,
#tenyear-content,
#contact-content {
    padding: 25px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    max-width: 900px;
    margin: 40px auto;
}

#year5-content img,
#tenyear-content img,
#contact-content img {
    margin: 10px;
    max-width: 400px;
    display: inline-block;
    vertical-align: top;
}
