nav {
    width: 100%;
    padding: 1rem 0;
    background-color: #ffffff8c;
    box-shadow: 0 0 1rem rgb(54, 54, 54);

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* .nav-header, .nav-main {
    animation: nav-header-fade-in;
    animation-duration: 200ms;
    animation-timing-function: ease-in;
} */

.nav-header {
    margin: 0 auto 1rem auto;
    min-width: max-content;
    max-width: 10em;
    min-height: max-content;
    height: max-content;
}
.nav-header a div {
    width: 70vw;
    padding: .5rem 0;
    margin-left: 15vw;
    margin-right: 15vw;
}

.nav-header a div img {
    padding-left: 15px;
    padding-right: 15px;
}

.nav-header p {
    width: 70vw;
    margin: 0 auto;
    text-align: center;
    color: hsl(359, 57%, 30%);
    font-weight: bold;
    letter-spacing: 1.5px;
}
@media screen and (max-width: 400px) {
    .nav-header p {
        width: 100vw;
    }
}
.nav-header div.hr {
    width: 90vw;
    margin: 0 5vw;
    height: 1px;
    border: 2px solid hsl(359, 57%, 30%);
    border-radius: 2rem;
}
@media screen and (min-width: 1500px) {
    .nav-header div.hr {
        width: 70vw;
        margin: 0 15vw;
    }
}
@media screen and (max-width: 1200px) {
    .nav-header div.hr {
        width: 100vw;
        margin: 0;
    }
}

.nav-main {
    font-size: 18px;
}

.nav-main ul {
    list-style: none;
    display: flex;
    align-items: center;
}
/* .nav-main li:first-child {
    padding-left: 0;
} */
.nav-main li {
    position: relative;
    padding: 0 2rem;

    transition: padding 400ms;
}

.nav-main a {
    text-decoration: none;
    color: hsl(359, 57%, 30%);
    border-radius: 20px;

    transition: all 400ms;
}
.nav-main:not(:hover) .selected a,
.nav-main li:hover a {
    font-weight: bold;
    color: hsl(359, 57%, 30%);

    border: 2px solid hsl(359, 57%, 30%);
    padding: 0.3rem;
}

.nav-locale {
    position: absolute;
    top: 1rem;
    width: 100%;
}
.nav-locale ul {
    list-style: none;
    display: flex;
    align-items: center;
    width: 100%;
}
.nav-locale li {
    position: relative;
    padding: 0 1.5rem;
}
.nav-locale li.move-to-other-side {
    margin-left: auto;
}


.nav-locale a {
    text-decoration: none;
    font-size: 2rem;
    padding: 0 7px;
    border-radius: 10px;
    background-color: #0000000b;

    transition: all 400ms;
}
.nav-locale li:hover a {
    background-color: #00000020;
}
.nav-locale li.selected a {
    background-color: #00000020;
}

@media screen and (min-width: 1070px) {
    .nav-main li.selected::before,
    .nav-main li::before {
        content: '';
        position: absolute;

        left: 50%;
        transform: translate(-50%, -1rem);

        
        width: 0; 
        height: 0; 
        border-left: 0.5rem solid transparent;
        border-right: 0.5rem solid transparent;
        
        border-top: 0.5rem solid hsl(359, 57%, 30%);
    }
    .nav-main li:not(.selected)::before,
    .nav-main:hover li.selected:not(:hover)::before {
        opacity: 0;
        transition: all 400ms;
    }
    .nav-main li:not(.selected):hover::before {
        opacity: 1;
        transition: all 400ms;
    }
}

@media screen and (max-width: 1070px) {
    .nav-main ul {
        flex-direction: column;
    }
    .nav-main li {
        padding: 0.5rem 0;
    }

    .nav-main li.selected::before,
    .nav-main li::before {
        content: '';
        position: absolute;

        top: 45%;
        transform: translate(-1rem, -50%);

        
        width: 0; 
        height: 0; 
        border-top: 0.5rem solid transparent;
        border-bottom: 0.5rem solid transparent;
        
        border-left: 0.5rem solid hsl(359, 57%, 30%);
    }
    .nav-main li:not(.selected)::before {
        opacity: 0;
        transition: all 400ms;
    }
    .nav-main li:not(.selected):hover::before {
        opacity: 0.4;
        transition: all 400ms;
    }
}
