﻿/* Author: Joshua Boudreaux
   Date: October 13, 2025
   File: styles.css
*/

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

/* Body with full background */
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;

    /* keeps footer at bottom when page is short */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

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

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

/* Main content box */
main {
    flex: 1; /* makes main area fill available space */
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    max-width: 900px;
    margin: 40px auto;
}

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

.about 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;
    margin-top: 40px;
    border-top: 2px solid #444;
}

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

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

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

    .about img.character {
        max-width: 300px;
    }
}
