/* Sidebar Styles */
#sidebar {
    width: 250px;
    min-height: 100vh;
    padding: 20px;
    position: fixed;
    transition: left 0.3s ease;
    background-color: rgb(252, 249, 249);
    z-index: 1000;
    top: 59px; /* Height of navbar */
}

#sidebar ul {
    padding: 0;
    list-style: none;
}

#sidebar ul li {
    margin-bottom: 15px;
}

#sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 10px;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

#sidebar ul li a i {
    margin-right: 10px;
    font-size: 20px;
}

#sidebar ul li a:hover {
    background: #28a745;
    color: white;
    transform: scale(1.05);
}

/* Content Styles */
.content {
    margin-left: 260px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

/* Quiz Section */
.quiz {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.quiz h4 {
    color: #28a745;
}

.options {
    list-style: none;
    padding: 0;
}

.options li {
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    margin: 5px 0;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.explanation {
    display: none;
    margin-top: 15px;
    padding: 10px;
    background: #ffcccc;
    border-left: 5px solid red;
}

/* Toggle Button */
#sidebarToggle {
    position: fixed;
    top: 15px;
    left: 15px;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    z-index: 1001;
    background: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
    #sidebar {
        left: -250px;
    }

    #sidebar.active {
        left: 0;
        box-shadow: 0 0 15px rgba(0,0,0,0.2);
    }

    .content {
        margin-left: 0;
    }

   
}
/* Hide toggle button in large screens */
@media (min-width: 769px) {
    #sidebarToggle {
        display: none;
    }
}


/* Specific styles for 480px and below */
@media (max-width: 480px) {
    #sidebarToggle {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 16px;
    }
    
   
    #sidebar.active {
        left: 0;
        width: 80%;
    }
    
    #sidebar ul li a {
        font-size: 16px;
        padding: 8px;
    }
    
    #sidebar ul li a i {
        font-size: 18px;
    }
    
    .content {
        padding: 15px 10px;
    }
    
    .quiz {
        padding: 15px;
    }
    
    /* Add overlay when sidebar is active */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .overlay.active {
        display: block;
    }
}
.container-fluid .navbar-brand {
   
    font-family: 'Work Sans';font-size: 22px;
    text-align: center;
    width: 100%; /* Ensure full width */
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer {
    background:#19692c; /* Same color as navbar */
    color: white; /* White text for contrast */
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    width: 100%;
    bottom: 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    position: relative; /* Change to 'fixed' if you want it always visible */
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    font-family: 'Work Sans';font-size: 19px;
}

.footer-content p {
    margin: 0;
    color: white;
}



@media (max-width: 768px) {
    .footer {
        font-size: 12px;
        padding: 10px 0;
    }
}
