nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    /* height: 140px; */
    /* width: auto; */
    flex-direction: row;
    /* background: linear-gradient(to bottom, #ff61da46, transparent 100%); */
    color: white;
    
    padding: 10px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    /* opacity: 0;
    visibility: hidden; */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;
}

.navbar {
    position: absolute;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    top: 10px;
    /* width: 205px; */
    padding: 5px;
    z-index: 999;
    background: #1c04288a;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    overflow:visible;
}

.navbar:hover{
    cursor: default;
}

.navbarButton {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 8px;
    margin: 0px 5px 0px 5px;
    transition: box-shadow 1s ease, border-color 1s ease, background 1s ease;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 2px  solid transparent;
    background: linear-gradient(to bottom, #5a00838a , #1c04288a);
    width: 25px;
    z-index: 15;
}

.navbarButton:hover {
    background: linear-gradient(to bottom, #fb48b681 , #1c04288a);
    border-color: #fff; /* Border becomes visible on hover */
}

.navbarPopUp {
    display: block; /* Changed from 'none' to 'block' to allow for opacity transition */
    position: fixed;
    transform: translateX(-50%);
    top: 70px;
    background-color: #38124a;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease; /* Smooth transition for opacity and visibility */
    width: 170px;
}
.navbarPopUp p {
    margin: 5px 0px 10px 0px;
}

.navbarPopUp .close {
    position: absolute;
    top: 8px;
    right: 10px;
    visibility: hidden;
    padding: 5px;
    border-radius: 4px;
    width: 14px;
    text-align: center;
}

.navbarPopUp .close:hover {
    background-color: rgb(252, 109, 109);
}

.navbarPopUp:hover .close{
    visibility: visible;
}

.navbarButton:hover .navbarPopUp {
    opacity: 1; /* Fully visible on hover */
    visibility: visible; /* Make visible on hover */
}