/* Typography */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    min-height: 100vh;
    flex-direction: row;
    margin: 0;
}

p{
    margin: 1rem 0 1rem 0;
    line-height: 1.8;
    font-size: 1.1rem;
}


ul li, ol li {
    font-size: 1.1rem;
    margin-bottom: .1rem;
    line-height: 1.8;
}

header {
    background-color: #046a38;
    height: 200px;
    width: 100%;
    position: relative;
}

header img {
    width: 200px;
    height: auto;
    margin: 20px 0 0 20px;
}

header h1 {
    color: #FFF;
    font-weight: 500;
    position: absolute;
    left: 40%;
    top: 25px;
    font-size: 6rem;
    text-align: center;
}

header h1#cis110 {
    color: #FFF;
    font-weight: 500;
    position: absolute;
    left: 22%;
    top: 25px;
    font-size: 6rem;
    text-align: center;
}

header h1 span {
    display: block;
    font-size: .4em;
}


body img {
    margin: 1rem 0 1rem 0;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-top: 1rem;
    margin-bottom: .5rem;
    font-weight: 200;
    line-height: 1.2;
    color: var(--bs-heading-color);
}

h2 {
    font-size: 2.5rem;
    padding-bottom: 0.5rem;
}

h3,.h3 {
    font-size: 1.75rem !important;
}

h4,.h4 {
    font-size: 1.5rem !important;
}

code, pre  {
    font-family: inherit;
}


code {
    color: #004cdb;/*was #00f*/
    font-size: 1.1rem;
    line-height: 1.8;
}

pre>code {
    font-size: 1rem;
}

.wrapper {
    display: flex;
    width: 100%;
}

.collapse {
    display: none;
}

.collapse.show {
    display: block;
    padding-left: 20px;
}

.list-unstyled {
    padding: 0;
}

.list-unstyled li a {
    color: #fff;
    padding: 10px;
    display: block;
    text-decoration: none;
}

.list-unstyled li a:hover {
    background: #555;
}

.sidebar-header {
    padding: 20px;
    /*background: #555;*/
}
.sidebar-header h3 {
    font-size: 2em;
    font-weight: bold;
    color: #fff;
    border-bottom: 2px solid #11998e;
    padding: 10px 20px 10px 20px;
    margin: 0;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    letter-spacing: 1px;
}

.active > ul {
    display: block;
}

/*SIDEBAR AREA*/

#sidebar {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: #333; /* Keeps everything black */
    color: #fff;
    transition: transform 0.3s ease;
    transform: translateX(0); /* Sidebar is visible by default */
    overflow-y: auto; /* Enables scrolling */
    padding-bottom: 50px; /* Ensures extra space for scrolling */
}

#sidebar ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

#sidebar ul.collapse {
    max-height: none;
    overflow: visible;
    padding-left: 20px; /* Adds indentation */
}

#sidebar a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
}

#sidebar ul.collapse li a {
    padding-left: 30px; /* Ensures further indentation */
}

#sidebar a:hover {
    background: none;
}

#sidebar .active > a {
    background: none;
}

html {
    scroll-behavior: smooth;
}

#content {
    flex-grow: 1;
    margin-left: 250px; /* Make room for the sidebar */
    transition: margin-left 0.3s;
}

#padding20{
    padding: 20px;
}

.hamburger-menu {
    display: none; /* Hide hamburger menu by default */
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.hamburger-menu button {
    padding: 10px;
    font-size: 20px;
    background: transparent;
    color: white;
    border: 1px solid black;
    border-radius: 5px;
    cursor: pointer;
    text-shadow: 0 0 3px #000; /* Add shadow to text for better visibility */
}

/*TABLES*/
table {
    width: 80% !important;
    border-collapse: collapse !important;
    margin-bottom: 1em !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
}

/* Table header text styling */
table thead th {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

/* Widget header styling - with higher specificity */
.table.table-bordered tbody tr.widget-header,
.table-bordered tbody tr.widget-header {
    background-color: #d3d3d3 !important;
    color: #000 !important;
}

/* Table header styling */
table th {
    background-color: #f2f2f2 !important;
    color: #333 !important;
    padding: 10px !important;
    text-align: left !important;
    border: 1px solid #ddd !important;
}

/* Table body styling */
table td {
    padding: 10px !important;
    border: 1px solid #ddd !important;
}

/* Alternate row colors */
table tr:nth-child(even) {
    background-color: #f9f9f9 !important;
}

table td {
    font-size: 1.1rem;
}

@media (max-width: 900px){
    header {
        display: none;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block; /* Show hamburger menu on small screens */
    }

    #sidebar {
        transform: translateX(-100%); /* Hide sidebar off-screen */
    }

    #sidebar.active {
        transform: translateX(0); /* Show sidebar when active */
    }

    #content {
        margin-left: 0; /* Content uses full width when sidebar is hidden */
    }

    #content.active {
        margin-left: 250px; /* Make room for sidebar when it's active */
    }
}

/* Print Styles */
@media print {
    #sidebar, .hamburger-menu {
        display: none;
    }
    
    #content {
        margin-left: 0;
        max-width: 100%;
    }
    
    header {
        height: auto;
        padding: 20px;
        background: none;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    header h1 {
        position: static;
        font-size: 24pt;
        color: #046a38;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    pre, code {
        white-space: pre-wrap;
        border: 1px solid #ddd;
    }
    
    table {
        break-inside: avoid;
    }
    
    th {
        background-color: #f8f9fa !important;
        color: #000 !important;
    }
}

ul, ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

