.absolute-element {
    position: absolute;
    top: -5px;
    right: 15px;
}

.user_name {
    position: absolute;
    top: -22px;
    right: 2px;
}

.absolute-element .nav-item .nav-link {
    font-size: 10px !important;
}

 /* Define a cor azul para o texto da navbar ao passar o mouse */
 .navbar-nav .nav-item .nav-link:hover {
    color: #00558C;
}

/* Estilo para os itens do dropdown quando hover */
 .dropdown-menu .dropdown-item:hover {
    background-color: #00558C;
    color: #fff;
}

.botao {
    cursor: pointer;
    width: 6em;
    height: 2.6em;
    margin: 20px;
    font-size: 13px;
    border-radius: 6px;
    border: 2px solid #00558C;
    color: #00558C;
    background-color: #fff;
    margin-left: 4px;
}

#main:nth-of-type(n+2) .mega-links {
    border-left: 1px solid #00558c;
}

.mega-links .nav-link:hover {
    background: #00558c;
    color: #fff !important;
}

.mega-links .nav-link {
    font-size: 14px !important;
}

#main .dropdown-header {
    font-size: 16px !important;
    color: #58585a !important;
}

#main .dropdown-header:hover {
    cursor: pointer;
    text-decoration: underline;
}


@media(max-width:470px) {
    #main:nth-of-type(n+2) .mega-links {
        border-left: none;
    }

    .container-fluid {
        position: static;
    }

    .absolute-element {
        position: static;
        top: auto;
        right: auto;
    }

    .user_name {
        position: static;
        top: auto;
        right: auto;
    }

}

@media screen and (min-width:640px) {
    .mega-menu {
        width: 640px;
        transform: translate3d(-200px, 4px, 0) !important;
    }
}



@media(min-width:680px) and (max-width:990px) {
    #main:nth-of-type(n+2) .mega-links {
        border-left: none;
    }

    .container-fluid {
        position: static;
    }

    .absolute-element {
        position: static;
        top: auto;
        right: auto;

    }

    .user_name {
        position: static;
        top: auto;
        right: auto;
    }

    .mega-menu {
        width: 640px;
        transform: translate3d(0, 4px, 0) !important;
    }

}
