.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #333;
    overflow-x: hidden;
    /* transition: 0.5s; */
    padding-top: 60px;
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 5px;
    font-size: 36px;
    margin-left: 10px;
}

.openbtn {
    font-size: 20px;
    cursor: pointer;
    background-color: #333;
    color: white;
    /* padding: 10px 15px; */
    border: none;
}

.openbtn:hover {
    background-color: #444;
}

#main {
    background-color: #333;
    color: #f1f1f1;
    border: #f1f1f1;
    font-size: 16px;
    position: absolute;
    top: 20px;
    left: 40px;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    /* transition: margin-left .5s; */
    /* padding: 16px; */
}

.sidebar-open #main {
    display: none;
    /* Hide the open button when sidebar is open */
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidebar {
        padding-top: 15px;
    }

    .sidebar a {
        font-size: 18px;
    }
}

.home-widget {
    display: block;
    /* Adjust the vertical spacing */
    width: 30px;
    height: auto;
    float: left;
    padding: 0 20px;
    margin-bottom: 10px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar li {
    padding: 5px 5px 5px 20px;
    /* Adds 20px left padding */
    font-size: 18px;
    font-weight: bold;
}

.sidebar h3 {
    padding: 5px 5px 5px 20px;
    /* Adds 20px left padding */

    color: white;
    text-decoration: none;
    display: block;
}

.sidebar a {
    padding: 8px 8px 8px 8px;
    text-decoration: none;
    font-size: 15px;
    color: #f1f1f1;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #f1f1f1;
}

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

.sidebar-element {
    display: none;
}

.item-topics.open>.sidebar-element {
    display: block;
}

.darkmodebutton {
    transition-duration: 0.4s;
    font-size: 18px;
    font-weight: bold;
    background-color: #e7e7e7;
    color: #333;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin: 10px 0;
}

/* Button style in dark mode */
.dark-mode .darkmodebutton {
    background-color: #333;
    color: #e7e7e7;
    border-width: thin;
    border-color: #e7e7e7;
    border-style: solid;
    /* This ensures the border is visible */
}

.sidebar-top-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 5px 5px 5px 20px;
    /* Adds 20px left padding */

    /* Adjust spacing as needed */
}