body {
    margin: 0;
    padding: 0; /* Remove default padding */
}
header {
    background: linear-gradient(90deg, #B0C2FF, #00F0FF);
    height: 6em;
    display: flex;
    align-items: center; /* Vertically align items */
    padding: 0; /* Remove padding */
}
#topMenu {
    flex-direction: row;
    color: #502f77;
    padding: 0;
    justify-content: space-between;
    align-items: center;
    display: flex;
    gap: 15px;
    flex-basis: 500px;
    z-index: 200;
    font-family: 'Lexend Deca', 'Noto Sans', Helvetica, sans-serif;
}
#navBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2em; /* Adjust padding as needed */
    box-sizing: border-box; /* Include padding in element's total width */
}
#logo {
    margin-right: auto;
    height: 70px;
}
.dropdown {
    position: relative;
    user-select: none;
    display: inline-block;
}
.dropbtn {
    cursor: pointer;
    margin: 0; /* Remove margin */
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 8px;
    margin-top: 0;
    user-select: none;
    -webkit-user-select: none; /* Adding Safari support */
    left: 0; /* Explicitly set left alignment as default */
}
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 8px;
}
.dropdown-content a:hover {
    background-color: #D9F2FD;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropbtn:focus + .dropdown-content {
    display: block;
}
.dropdown:hover .dropbtn {
    filter: drop-shadow( 0px 0px 7px #84038b);
}
.dropMenu:hover {
    filter: drop-shadow( 0px 0px 7px #6564b6);
    cursor: pointer;
}

@media (max-width: 500px) {
    #logo {
        margin-right: auto;
        height: 70px;
    }
    #navBar{
        padding: 0 10px 0 10px;
    }
    #topMenu {  
        font-size: 0.7rem;
        justify-content: space-between;
        align-items: center;
        display: flex;
        gap: 15px;
        flex-basis: auto;
        line-height: 1rem;
    }
    .dropdown-content {
        left: auto; /* Remove left alignment */
        right: 0;   /* Align to the right */
        min-width: 8rem;
        font-size: 0.7rem;
    }


}
