@charset "utf-8";

/* Color variables - tuned to match header image accents */
:root {
    --bg-page: #f6f2fb; /* light lavender */
    --accent: #7b4bbd; /* medium purple */
    --accent-dark: #5a2f8d; /* darker purple for hover */
    --text: #2b2b2b; /* primary text */
    --muted: #6b6b6b; /* secondary text */
}

/* Body element styles */
body {
    font-family: Verdana, Geneva, sans-serif;
    color: var(--text);
    background-color: var(--bg-page);
}

/* Header section styles */
header {
    text-align: center;
    padding: 20px;
}

/* H2 element styles */
h2 {
    font-size: 1.3em;
    text-shadow: 4px 6px 5px gray;
}

/* Nav section styles */
/* nav {
    background-color: var(--accent);
    padding: 15px;
    text-align: center;
} */

/* Nav ul styles */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Nav link styles */
nav a {
    display: block;
    background-color: var(--accent);
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
    color: #ffffff;
    font-weight: bold;
}

/* Nav link hover styles */
nav a:hover {
    background-color: var(--accent-dark);
    color: #ffffff;
}

/* Main element styles */
main {
    padding: 20px;
    margin-top: 35px;
}

/* Header image styles */
header img {
    width: 100%;
}

/* Header title color */
header h1 {
    color: var(--accent-dark);
    margin-top: 10px;
    text-shadow: 4px 6px 5px gray;
}

/* Footer styles */
body > footer {
    background-color: var(--accent);
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    clear: both;
}

body > footer a { color: #ffffff; }

/* Ordered list styles */
ol {
    list-style-type: upper-roman;
}

/* Image Grid Styles */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.grid-item {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.grid-item p {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: var(--accent);
    margin: 0;
}

/* Desktop Styles */
@media only screen and (min-width: 769px) {
    /* HTML element - subtle accent background */
    html {
        /* full-page background image with a subtle gradient fallback layer */
        background-image: url('https://images.unsplash.com/photo-1503264116251-35a269479413?auto=format&fit=crop&w=1600&q=80'),
                          linear-gradient(180deg, #efe7fb 0%, #f8f6ff 100%);
        background-size: cover, cover;
        background-repeat: no-repeat, no-repeat;
        background-position: center top, center top;
        background-attachment: fixed;
    }
    
    /* Body element - desktop width */
    body {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Nav li styles - horizontal layout */
    nav li {
        display: block;
        width: 20%;
        float: left;
    }
    
    /* Image element styles - only for images in main section */
    main > img {
        width: 25%;
        padding: 25px;
        float: right;
    }
}

/* Tablet/Mobile Styles */
@media only screen and (max-width: 768px) {
    body {
        width: 100%;
        margin: 0;
    }
    
    /* Mobile menu - list items */
    nav li {
        float: none;
        font-size: x-large;
        width: 100%;
    }
    
    /* Mobile menu - links */
    nav a {
        border-bottom: 1px solid black;
    }
    
    /* Main section images */
    main > img {
        width: 90%;
        float: none;
    }
}
