:root{
    --header-main-color: #FFFFFF;
}

.header{   
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    align-items: center;  
    max-width: var(--max-width); 
    width: 100%;
    margin: auto;
    height: var(--header-height);
}

header{
    background-color: var(--header-color);
    backdrop-filter: blur(5px);
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    
    position: fixed;
    display: flex;
    justify-content: space-between;
}

.logo_header{
    width: 200px;
}

.logo_header:hover{
    cursor: pointer;
}

nav{
    height: var(--header-height);
    display: flex;
    align-items:flex-end;
    gap: 20px;
    padding-bottom: 40px;
}

.nav-links{
    display: flex;
    gap: 20px;
}

.nav-links a{
    color: var(--header-main-color);
    text-decoration: none;
    position: relative;
}

.nav-links a::after {
    content: '';
    height: 2px;
    width: 0;
    padding: 0;
    background-color: var(--main-color);
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    bottom: -5px;
    border-radius: 5px;
}

.nav-links a:hover::after {
    width: 85%;
    transition: all 125ms ease-in-out;
}

#navbar-btn {
    height: 35px;
    width: 35px;
    margin: auto;
    border: solid 2px var(--header-main-color);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: none;
    transition: all 225ms ease-in-out;
}

#btn-icon,
#btn-icon::before,
#btn-icon::after {
    position: absolute;
    content: '';
    height: 3px;
    width: 25px;
    margin: auto;
    background-color: var(--header-main-color);
    border-radius: 5px;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    transition: all 225ms ease-in-out;
}

#btn-icon::before {
    content: '';
    transform: translateY(-8px);
}

#btn-icon::after {
    content: '';
    transform: translateY(8px);
}

#btn-icon.open {
    transform: translateX(50px);
    background: transparent;
}

#btn-icon.open::before {
    transform: rotate(-45deg) translate(-35px, -35px);
}

#btn-icon.open::after {
    transform: rotate(45deg) translate(-35px, 35px);
}

@media(max-width: 870px){
    #navbar-btn {
        display: block;
        visibility: visible;
    }

    #navbar-btn:hover {
        transform: scale(1.1);
    }

    .nav-links {
        box-sizing: border-box;
        width: 0;
        height: calc(100vh - var(--header-height));
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        margin-top: var(--header-height);
        background-color: var(--header-color);
        backdrop-filter: blur(15px) grayscale(100%);
        overflow: hidden;
        transition: all 225ms ease-in-out;
        overflow: hidden;
    }

    .nav-links.open {
        width: 75%;
        padding-right: 60px;
    }

    .nav-links a{
        font-size: large;
        margin: 20px;
        text-align: right;
        transform: translateX(500px);
        transition: all 225ms ease-in-out;
    }

    .nav-links.open a {
        transform: translateX(0);
    }

    nav{
        padding-bottom: 0;
        height: unset;
    }
}

@media(max-width: 730px){
    .logo_header{
        width: 150px;
    }
}

@media(max-width: 380px){
    .logo_header{
        width: 100px;
    }
}


/*footer*/

footer{
    background-color: rgb(49, 49, 49);
    color: white;
    padding: 0 40px;
}

.width{
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 150px;
    margin: auto;
}

.legal a{
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.legal a:hover{
    text-decoration: underline;
}

@media(max-width: 450px){
    .width{
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: 40px;
    }
}

