nav {
    column-gap: 1rem;
    padding-inline: 1rem;
    position: sticky;
    top:0;
    z-index: 99;
    height: 10vh;
    white-space: nowrap;
}

nav .logo a, nav .container-login, nav .logo {
    color: white;
}

nav a {
    font-weight: bold;
    text-decoration: none;
}

nav .logo a:hover {
    color: white;
}

nav menu {
    width: 70vw;
    position: absolute;
    left: -100vw;
    top: 10vh;
    align-items: flex-start;
    height: calc(90vh);
    align-items: center;
    transition: left 500ms;
    background-color: rgba(237, 255, 250, 0.9);
}

.desplazar {
    transition: left 500ms;
    left: 0 !important;
}

menu a {
    width: 100%;
    text-align: center;
    color: black;
    padding-block: 1rem;
    border-bottom: 1px lightgray solid;
}

menu a:hover {
    color: black;
    background-color: var(--burocracia-azul-50);
}

nav .logo {
    display: flex;
    align-items: center;
    min-width: 9rem;
}

nav .container-login {
    padding: 5px;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    border: white solid 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

@media (min-width: 768px) {
    menu a {
        width: initial;
        color: white;
        border-bottom: none;
    }

    menu a:hover {
        color: white;
        background-color: transparent;
    }

    nav menu {
        width: 100%;
        column-gap: 3.5rem;
        margin: 0;
        padding-inline: 4rem;
        position: relative;
        top: 0;
        left: 0;
        background-color: transparent;
        height: auto;
    }

    nav menu a:hover::after {
        content: "";
        background: rgba(3, 188, 255, 0.9);
        border-radius: 2.5px;
        height: 5px;
        position: absolute;
        bottom: 10px;
        left: 0;
        animation: ensanchar 0.5s forwards;
    }

    @keyframes ensanchar {
        from {
            width: 0;
        }
        to {
            width: 70%;
        }
    }
}

#tituloPagina{
    min-width: max-content;
    font-weight: bolder;
    color:yellow;
}
.text-xl{
    font-size: large;
}
#idioma{
    color:white;
}
#idioma:hover{
    cursor: pointer;
    color: var(--burocracia-azul);
}
.flag{
    width: 25px;
    aspect-ratio: 1/1;
    border: none;
    border-radius: 50%;
}
.flag:hover{
    outline: var(--burocracia-azul) 4px solid;
    cursor: pointer;
}
.cat{
    background-image: url("../../img/Flag_of_Catalonia.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.es{
    background-image: url("../../img/espanya.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.eng{
    background-image: url("../../img/flag_english.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}


