body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    background-color: #fbec5d;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: auto;
}
.top-menu {
    display: none;
}
.top-menu .dropdown-content {
    left: 0px;
    top: 100%;
    margin-top: 0;
}
.dropbtn {
    color: #fff;
    text-decoration: none;
}
.sidebar {
    background: black;
    border-top-left-radius: none;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    width: 200px;
    padding: 20px;
    transition: width 0.3s ease;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    top: 0;
    left: 0;
    z-index: 100;
}
.sidebar:hover {
    overflow-y: visible;
}
.sidebar:not(:hover) {
    overflow-y: auto;
}
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    border-radius: 30px;
}
.sidebar .login-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    margin: 0 auto 20px auto;
    background-color: ghostwhite;
    border-radius: 50%;
    border: solid green;
    color: #333;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.sidebar .login-icon:hover {
    transform: scale(1.1);
    background-color: white;
    transition: transform 0.9s ease;
}
.sidebar h2, h3 {
    text-align: center;
}
.sidebar h3 a{
    text-decoration: none;
}
.sidebar ul {
    list-style-type: none;
    padding: 0;
}
.sidebar ul li {
    margin-bottom: 10px;
}
.sidebar ul li a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 15px;
    border: solid white 1px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, transform 0.3s ease;
}
.sidebar ul li a:hover{
    background-color: #777;
    transform: scale(1.05);
    border: solid rgba(255, 255, 255, 0.1) 1px;
}
.sidebar .dropdown {
    position: relative;
    overflow: visible;
}
.sidebar .dropdown-content {
    min-width: 210px;
    border-top-left-radius: 1px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    position: absolute;
    left: 100%;
    top: 0;
    z-index: 101;
}
.sidebar .dropdown-content a {
    background-color: #555;
    color: #fff;
    padding: 10px;
    border: none;
    display: block;
    text-decoration: none;
}
.sidebar .dropdown-content a:hover {
    background-color: #777;
    border: none;
}
.sidebar .dropdown:hover > a {
    background-color: #777;
}
.dropdown {
    position: relative;
}
.dropdown-btn {
    display: block;
    position: relative;
}
.dropdown-btn span {
    float: right;
    transition: transform 0.4s ease;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #555;
    padding: 10px 20px;
    min-width: 200px;
    z-index: 1;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-top-left-radius: 1px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 1px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(-10px);
}
.dropdown-content a {
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}
.dropdown-content a:hover {
    background-color: #777;
}
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.dropdown-btn:hover span {
    transform: rotate(-90deg);
}
.subject, .subject-dropdown, .module-dropdown, .chapter-dropdown, .page {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}
.subject-dropdown-btn, .module-dropdown-btn, .chapter-dropdown-btn, .page-btn {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: solid black;
    border-top-left-radius: 1px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 1px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}
.subject-dropdown-content, .module-dropdown-content, .chapter-dropdown-content {
    display: none;
    position: absolute;
    background-color: #555;
    min-width: 100%;
    z-index: 1;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-top-left-radius: 1px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 1px;
    overflow: hidden;
}
.subject-dropdown-content a, .module-dropdown-content a, .chapter-dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}
.subject-dropdown-content a:hover, .module-dropdown-content a:hover, .chapter-dropdown-content a:hover {
    background-color: #777;
}
.subject-dropdown:hover .subject-dropdown-content, .module-dropdown:hover .module-dropdown-content, .chapter-dropdown:hover .chapter-dropdown-content {
    display: block;
}
.content {
    flex: 1;
    padding: 20px;
    margin-left: 240px;
    position: relative;
    z-index: 1;
}
.container {
    display: flex;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 10px auto;
    overflow: hidden;
}
.column {
    flex: 1 1 300px;
    padding: 20px;
    background-color: #fff;
    margin-right: 20px;
    height: 540px;
    border-radius: 40px;
    margin-bottom: 20px;
    transform: translateY(5px);
    display: flex;
    border: solid;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.column:hover {
    transform: translateY(0px);
    transition: transform 0.5s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    border: solid #f0f0f0;
    background-color: #f0f0f0;

}
.column:last-child {
    margin-right: 0;
}
.column h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}
.column p {
    line-height: 1.6;
    text-align: justify;
}
.column img {
    max-width: 70%;
    margin-top: 20px;
    border-radius: 5px;
    align-self: center;
    cursor: pointer;
}
.column mcode {
    text-align: left;
}
.text-btn {
    background-color: mediumseagreen;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 35px;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    width: 50%;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}
.text-btn:hover {
    background-color: #fff;
    color: mediumseagreen;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.modal-content {
    position: absolute;
    top: 190px;
    left: 425px;
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}
#caption {
    position: absolute;
    top: 580px;
    left: 420px;
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}
.modal-content, #caption {    
    animation-name: zoom;
    animation-duration: 0.6s;
}
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}
.close {
    position: absolute;
    top: 35px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
.close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
.button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 101;
}
.redirect-button, .question-button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}
.question-button {
    background-color: #6959CD;
}
.question-button a{
    text-decoration: none;
    color: #fff;
}
.question-button:hover {
    background-color: #836FFF;
    cursor: pointer;
}
.redirect-button:hover {
    background-color: #555;
}
mcode {
    color: #5895a7;
    font-family: roboto mono;
    font-style: italic;
    font-weight: bold;
}
mcode br {
    margin-bottom: 5px;
}
scode {
    color: #79b6c9;
    font-family: roboto mono;
    font-style: italic;
    font-weight: normal;
}
tcode {
    color: green;
    font-family: roboto mono;
}
tcodepp {
    color: purple;
    font-family: roboto mono;
}
func{
    font-style: italic;
    font-weight: bold;
    font-family: Times New Roman;
    margin-left: 5px;
}
@media screen and (min-width: 1440px) {
    body {
        overflow-y: hidden;
    }
}
@media screen and (max-width: 768px) {
    .top-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #333;
        padding: .25px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        justify-content: space-around;
        opacity: 0.9;
    }
    .content {
        margin-top: 50px;
        margin-left: 10px;
    }
    .container{
        flex-wrap: wrap;
    }
    .top-menu-item {
        flex-grow: 1;
        text-align: center;
        color: #fff;
        text-decoration: none;
        font-size: 15px;
        padding: 7px;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }
    .top-menu-item:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }
    .column {
        flex-basis: 100%;
        margin-right: 0;
    }
    .sidebar {
        display: none;
    }
    .modal-content {
        top: 200px;
        left: 55px;
    }
    #caption {
        display: none;
    }
    .button-container {
        position: absolute;
        top: 40px;
    }
    .redirect-button {
        padding: 8px 13px;
    }
}