/* filepath: /Users/evanmurray/Bread-11/HTML/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    font-family: Arial, sans-serif;
    background-color: rgb(199, 213, 222);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* creating a header */
header {
    background-color: #1a4979ce;
    font-size: 25px;
    padding: 20px;
    margin: 0px;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
}

header h1 a {
    color: rgba(16, 17, 18, 0.915);
    text-decoration: none;
    font-family: cogliostro;
    display: flex;
    align-items: center;
    gap: 12px;
}

header h1 a img.header-logo {
    height: 1.5em;
    width: auto;
    display: block;
    image-rendering: auto;
    opacity: 0.915;
}
/* Top navigation bar */
.topnav {
    background-color: rgba(170, 184, 197, 0.81);
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.topnav ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: flex !important;
    flex-direction: row !important;
    gap: 0;
}

.topnav ul li a {
    display: block;
    color: rgba(16, 17, 18, 0.915) !important;
    text-decoration: none !important;
    padding: 12px 28px;
    font-size: 15px;
    font-family: cogliostro;
    transition: background-color 0.2s;
}

.topnav ul li a:hover {
    background-color: rgba(255,255,255,0.15);
}

.topnav ul li a.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: bold;
}

/* Container to hold sidebar and main content below the header */
.container {
    display: flex;
    width: 100%;
    flex: 1;
}
/* Navigation bar styles */
.navbar {
    background-color: #949494a7;
    overflow: hidden;
    width: 100%;
    font-size: 20px;
    margin: 0%;
    height: 100%;
    text-align: center;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.navbar li {
    display: inline;
}

.navbar a {
    display: inline-block;
    color: black;
    padding: 14px 20px;
    text-decoration: none;
}

.navbar a:hover {
    background-color: #575757;
}
/* databar here*/
.databar {
    background-color: #919090a7;
    overflow: hidden;
    width: 100%;
    font-size: 20px;
    margin: 0%;
    height: 100%;
    text-align: center;
}

.databar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.databar li {
    display: inline;
}

.databar a {
    display: inline-block;
    color: black;
    padding: 14px 20px;
    text-decoration: none;
}

.databar a:hover {
    background-color: #575757;
}

/* Sidebar here*/
.sidebar {
    width: 320px;
    min-width: 320px;
    background-color: #191a1b;
    padding-top: 0;
    padding-bottom: 40px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease, min-width 0.3s ease, padding 0.3s ease;
    flex-shrink: 0;
    align-self: flex-start;
}

/* Hidden sidebar state - collapses width so content actually fills the space */
.sidebar.hidden {
    width: 0;
    min-width: 0;
    padding: 0;
}

/* Toggle button for sidebar - fixed so it stays visible when sidebar collapses */
.sidebar-toggle {
    position: fixed;
    left: 320px;
    top: 50vh;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    background-color: #191a1b;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    z-index: 1000;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease, background-color 0.3s ease;
    overflow: visible;
}

.sidebar-toggle:hover {
    background-color: #2d3436;
}

/* Move toggle button to left edge when sidebar is hidden */
.sidebar-toggle.sidebar-hidden {
    left: 0;
}

/* Arrow icon in toggle button */
.sidebar-toggle::before {
    content: "◀";
}

.sidebar-toggle.sidebar-hidden::before {
    content: "▶";
}

.sidebar-sticky {
    position: relative;
    top: 0;
    padding-top: 20px;
    background-color: #191a1b;
    z-index: 10;
}

.sidebar h2 {
    padding: 20px;
    margin: 0%;
}
/* Remove bullet points from the list */
.sidebar ul {
    list-style-type: none; /* Remove default list styling */
    padding: 0;
    margin: 0;
}

/* Sidebar links */
.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
}

/* Sidebar links hover effect */
.sidebar a:hover {
    background-color: #575757;
}

/* Sidebar header */
.sidebar h2 {
    color: white;
    text-align: center;
}

/* Main content area */
.main-content {
    flex: 1;
    padding: 40px 60px;
    overflow-y: auto;
    background-color: rgb(199, 213, 222);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* About section styling */
.about {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: max-width 0.3s ease;
}

.about h2 {
    color: #3a6b95;
    font-size: 32px;
    margin-bottom: 20px;
    border-bottom: 3px solid #3a6b95;
    padding-bottom: 10px;
}

.about h3 {
    color: #3a6b95;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.about .slogan {
    font-size: 20px;
    color: #3a6b95;
    font-weight: 600;
    text-align: center;
    margin: 25px 0;
    padding: 15px;
    background-color: #f0f7ff;
    border-left: 4px solid #3a6b95;
    border-radius: 4px;
}

.about ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.about ul li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: #333;
}

.about ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3a6b95;
    font-weight: bold;
    font-size: 18px;
}

.about ul li strong {
    color: #3a6b95;
}

/* Content section styling for model pages */
.content {
    flex: 1;
    padding: 40px 60px;
    overflow-y: auto;
    background-color: rgb(199, 213, 222);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: max-width 0.3s ease;
}

/* Constrain direct children so they stay centered within .content */
.content > * {
    max-width: 900px;
    width: 100%;
}

/* No special rules needed - content auto-centers because sidebar collapses its actual width */

.content h2 {
    color: #3a6b95;
    font-size: 32px;
    margin-bottom: 20px;
    border-bottom: 3px solid #3a6b95;
    padding-bottom: 10px;
    margin-top: 30px;
}

.content h2:first-child {
    margin-top: 0;
}

.content h3 {
    color: #3a6b95;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
    background-color: white;
    padding: 20px;
    border-radius: 6px;
}

.content ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 25px;
    background-color: white;
    padding: 20px 20px 20px 40px;
    border-radius: 6px;
}

.content ul li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: #333;
}

.content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3a6b95;
    font-weight: bold;
    font-size: 18px;
}

.content ul li strong {
    color: #3a6b95;
}

.content ol {
    margin-bottom: 25px;
    background-color: white;
    padding: 20px 20px 20px 60px;
    border-radius: 6px;
}

.content ol li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
    color: #333;
}

.content ol li strong {
    color: #3a6b95;
}

.content .back-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #3a6b95;
}

.content .back-link a {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3a6b95;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.content .back-link a:hover {
    background-color: #2d5575;
}

/* Footer styles */
.footer {
    background-color: #2c3e50;
    color: white;
    width: 100%;
    padding: 40px 0 20px 0;
    margin-top: 0;
    clear: both;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 0 20px 20px 20px;
}

.footer-section h3 {
    color: #3a6b95;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #3a6b95;
    padding-bottom: 8px;
}

.footer-section p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #ecf0f1;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3a6b95;
    text-decoration: underline;
}


/* =====================
   RESPONSIVE / MOBILE
   ===================== */

/* Tablet: 768px and below */
@media (max-width: 768px) {

    header {
        font-size: 20px;
        padding: 14px;
    }

    header h1 a img.header-logo {
        height: 1.4em;
    }

    .databar {
        font-size: 16px;
    }

    /* On mobile the sidebar overlays the content instead of pushing it */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 500;
        width: 280px;
        min-width: 280px;
        box-shadow: 4px 0 16px rgba(0,0,0,0.4);
    }

    .sidebar.hidden {
        width: 0;
        min-width: 0;
    }

    /* Toggle button matches narrower sidebar width */
    .sidebar-toggle {
        left: 280px;
    }

    .sidebar-toggle.sidebar-hidden {
        left: 0;
    }

    /* Main content fills full width since sidebar overlays */
    .main-content {
        padding: 20px 16px;
    }

    .content {
        padding: 20px 16px;
    }

    .about {
        padding: 24px 18px;
    }

    .about h2 { font-size: 24px; }
    .about h3 { font-size: 20px; }
    .content h2 { font-size: 24px; }
    .content h3 { font-size: 20px; }

    /* Footer stacks vertically */
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 16px;
    }

    .footer-section {
        margin: 0 0 24px 0;
    }
}

/* Small phone: 480px and below */
@media (max-width: 480px) {

    header {
        font-size: 17px;
        padding: 12px;
    }

    .about h2, .content h2 { font-size: 20px; }

    .about p, .content p,
    .about ul li, .content ul li, .content ol li {
        font-size: 14px;
    }

    .databar a {
        font-size: 14px;
        padding: 10px 12px;
    }
}
