@import "../../theme.css";

nav{
    background-color: var(--black);
    height:80px;
    width:100%;
    position: fixed;
    top:0;
    left:0;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding:0 25px;
    justify-content: space-between;
    z-index: 1000;
}

nav a.active, nav a:hover{
    text-decoration-color: white !important;
    text-decoration: underline !important;
    text-underline-offset: 6px !important;
    text-decoration-thickness: 1px !important;
    cursor: pointer;
}

nav #logo{
    height:50px;
    width:auto;
    cursor:pointer;
}

nav #links {
    display: flex;
    gap:30px;
    align-items: center;
    overflow-y: hidden;
}

nav #links a{
    color:white;
    display:flex;
    z-index:1100;
    align-items: center;
    height:30px;
}


nav #mobileNav{
    display: none;
    justify-content: center;
    align-items: center;
}

nav #mobileNav img{
    display:none;
    height:30px;
    width:auto;
}

nav #mobileNav img.active{
    display: block;
}

nav #mobileNav img:hover{
    cursor:pointer;
}

nav .loggedLinks{
    display: flex;
    flex-direction: column;
    align-items: top;
    justify-content: right;
    gap: 10px;
    position:absolute;
    top:80px;
    right:0px;
    background-color: var(--gray);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 25px;
    text-align: right;
    border-bottom-left-radius: 10px;
}

nav .loggedLinks a{
    align-items: right !important;
    justify-content: right !important;
    color:var(--black) !important;
    cursor:pointer;
}

nav .loggedLinks img{
    height:30px;
    width: auto;
    cursor: pointer;
    margin-left:10px;
}


@media screen and (max-width: 1100px) {
   nav #links {
        display: none;
        background-color: var(--black);
        position:fixed;
        flex-direction: column;
        gap:40px;
        top:80px;
        right:0;
        justify-content: top;
        text-align: center;
        padding:35px;
        max-height:500px;
        overflow: auto;
        z-index: 1000;
        border-bottom-left-radius: 10px;
    } 

    nav #links.active{
        display:flex;
    }

    nav #links a{
        color:var(--white);
    }

    nav #mobileNav{
        display: flex;
    }

    nav .loggedLinks {
        all:unset;
        display: flex;
        flex-direction: column;
        gap:40px;
    }

    nav .loggedLinks a {
        justify-content: center !important;
        color:white !important;
        cursor: pointer;

    }

}

@media screen and (max-width: 700px) {
   nav #links {
        position:fixed;
        flex-direction: column;
        gap:30px;
        top:80px;
        right:0;
        width:100%;
        justify-content: top;
        text-align: center;
        padding:50px 25px;
        max-height:400px !important;
        overflow:auto;
        height:fit-content;
        max-height:unset;
        z-index: 1000;
        border-radius:0px;
    } 

    nav #links a{
        color:var(--white);
    }

}

