﻿
/* style.css - This controls the 3-layer menu */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* This applies the texture to the entire website background */
    background-image: url('images/background.jpg');
    background-attachment: fixed; /* Keeps the texture still while you scroll */
}

/* PART B: The Solid Menu Bar */
nav {
    background-color: #2c3e50; /* Solid dark color */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.menu-container {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu-item {
    position: relative;
}

    .menu-item a {
        display: block;
        padding: 15px 25px;
        color: white;
        text-decoration: none;
    }

        .menu-item a:hover {
            background-color: #34495e;
        }

/* --- The 2nd Layer (Detail A, B, C, D) --- */
.submenu {
    display: none;
    position: absolute;
    background-color: #ecf0f1;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    list-style: none;
    margin: 0;
    padding: 0;
}

    .submenu a {
        color: #2c3e50;
        border-bottom: 1px solid #ddd;
    }

        .submenu a:hover {
            background-color: #bdc3c7;
        }

/* Show 2nd layer when hovering over top menu */
.menu-item:hover .submenu {
    display: block;
}

/* --- The 3rd Layer (Detail A-1, A-2) --- */
.submenu li {
    position: relative; /* Anchor for the 3rd layer */
}

.second-layer {
    display: none;
    position: absolute;
    left: 100%; /* Pops out to the right */
    top: 0;
    background-color: #555; /* Darker gray for the deep layer */
    min-width: 180px;
    border-left: 3px solid #4facfe; /* Blue accent line */
    box-shadow: 5px 0px 15px rgba(0,0,0,0.3);
    z-index: 1001;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* THE MISSING TRIGGER: Show 3rd layer when hovering over its parent li */
.has-second-layer:hover > .second-layer {
    display: block;
}

.second-layer li a {
    padding: 12px 15px;
    font-size: 0.9em;
    color: #f0f0f0;
    border-bottom: 1px solid #666; /* Subtle divider for 3rd layer */
}

    .second-layer li a:hover {
        background-color: #666;
        color: #4facfe;
    }

/* Pop-left support for menus on the right side of the screen */
.pop-left .second-layer {
    left: auto;
    right: 100%;
    border-left: none;
    border-right: 3px solid #4facfe;
}
/* Simple Layout Styling */thead paragraph
.main-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff; /* Solid white so text is readable */
    box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    text-align: left;         /* align left */
}

.content-header {
    border-bottom: 2px solid #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
}
/* ----------------------------------------- */
/* PROJECT 2: GREEN BRANDING STYLE           */
/* ----------------------------------------- */

.brand-name {
    color: #32CD32; /* The bright green from Project 1 */
    font-size: 36pt; /* Large and impactful */
    font-weight: bold; /* Makes the letters thick */
    font-style: italic; /* Keeps the slanted look of your original em tag */
    font-family: 'Arial Black', Gadget, sans-serif;
    /* This shadow is the secret to making it "pop" against the background image */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    display: inline-block; /* Helps with spacing */
    /* Add the line below to make it italic */
    font-style: italic;
}