/* ===== Global Page Styling ===== */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #111;
    color: #ddd;
}

h1 {
    color: #fff;
}

/* ===== Sidebar ===== */

.sidebar {
    width: 220px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: #1b1b1b;
    padding-top: 0px;
    border-right: 1px solid #333;
    transition: transform 0.3s ease; /* mobile animation */
}

.sidebar h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
}

.sidebar a:hover {
    background-color: #333;
    color: #fff;
}

/* ===== Main Content ===== */

.content {
    margin-left: 240px;
    line-height: 1.6;
}

.content a:link {
    color: #ffd700;   /* gold */
}

.content a:visited {
    color: #ff8c00;   /* dark orange */
}

.content a:hover {
    color: #ffffff;
}

.content a:active {
    color: orange;
}

/* ===== Illustrated Table ===== */

.illustrated-table {
    border-collapse: collapse;
    margin-top: 20px;
}

.illustrated-table td {
    border: none;
    text-align: center;
    padding: 15px;
}

.illustrated-table img {
    width: 150px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.illustrated-table .label {
    font-size: 14px;
    margin-top: 5px;
    color: #ccc;
}

/* ===== Close Button (Hidden on Desktop) ===== */

.close-btn {
    display: none;
}

/* ===== Mobile Layout ===== */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #1b1b1b;
        color: #fff;
        border: none;
        padding: 15px 0;
        font-size: 16px;
        text-align: center;
        z-index: 1100;
        border-bottom: 1px solid #333;
        cursor: pointer;
    }

    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
        padding: 40px 20px 20px 20px; /* space under fixed button */
    }

    .menu-toggle.active {
        display: none; /* hide button when menu is open */
    }

    /* Mobile Close Button Styling */
    .close-btn {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 18px;
        padding: 15px 20px;
        text-align: left;
        width: 100%;
        border-bottom: 1px solid #333;
        cursor: pointer;
    }

    .close-btn:hover {
        background-color: #333;
    }
}