body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: #333;
    position: relative;
    overflow: visible;
    padding: 10px 20px; /* Initial padding */
}

nav a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

nav a:hover {
    background-color: #ddd;
    color: black;
}

.profile-container {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    overflow: visible;
}

.profile-info {
    margin-left: 10px;
}

.profile-info span {
    margin-left: 5px;
}

.profile-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    border-radius: 5px;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ddd;
    color: black;
}

.logo {
    width: 100px;
    height: auto;
    display: block;
}

.nav-left a img {
    height: 34px;
    transform: translatex(0px) translatey(-14px);
    min-height: 52px;
}

nav .nav-left a img {
    width: 116% !important;
}

.card-container {
    transform: translatex(0px) translatey(0px);
}

nav .nav-left {
    height: 55px;
}

nav .nav-left a {
    height: 66px;
    transform: translatex(0px) translatey(0px);
}

/* Media Queries */
@media (max-width: 768px) {
    nav {
        padding: 10px 10px; /* Compress the padding for smaller screens */
    }

    nav a {
        padding: 14px 16px;
        text-align: left;
    }

    .nav-left {
        display: flex;
        justify-content: space-between;
        width: 310px;
    }

    .profile-container {
        right: auto;
        top: auto;
        position: static;
        display: block;
        margin-top: 10px;
    }

    .profile-info {
        display: none; /* Hide profile info on smaller screens for better responsiveness */
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
        display: block;
    }

    .dropdown-content a {
        padding: 12px;
    }

    .logo {
        width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 10px 8px; /* Further compress the padding for even smaller screens */
    }

    .nav-left {
        width: 310x;
        text-align: center;
    }

    nav a {
        padding: 10px;
        font-size: 14px;
    }

    .logo {
        width: 70%;
    }
}

