@import url(/css/base/color.css);
@import url(/css/base/font.css);

.header{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    height: 5rem;
    max-width: 1400px;
    align-items: center;
    position: sticky;
    position: -webkit-sticky;
    background: transparent;
    top: 0;
    z-index: 1000;
    transition: background 0.4s ease;
    margin-bottom: -80px;
}

.navbar--scrolled{
    background: var(--color-bg-alt);
    margin-bottom: 0;
}

.logo{
    width: 5rem;
    margin-left: 1rem;
    height: 100%;
}

.logo img{
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.nav-bar{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2em;
    list-style: none;
}

.nav-bar a{
    text-decoration: none;
    color: var(--color-text-title);
}

.search-input{
    margin-left: auto;
    padding-right: 1rem;
}

.search-container{
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    min-height: 40px;
    padding-left: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#search-field{
    width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: none;
    padding: 0;
    font-size: 14px;
    right: 40px;
    color: var(--color-text-title);
    transition: all 0.4s ease;
    cursor: pointer;
    pointer-events: none;
}

.search-icon{
    width: 40px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-nav-link-base);
    transition: all 0.4 ease;
    z-index: 2;
}

.search-container:hover #search-field,
#search-field:focus{
    width: 250px;
    padding: 0 10px 0 35px;
    pointer-events: auto;
    border-bottom: 1px solid black;
}

footer{
    width: 100%;
    padding: 0 1rem;
    display: flex;
    background: var(--color-footer-bg);
    justify-content: center;
    align-items: center;
}

footer div{
    margin-right: auto;
    display: flex;
    gap: 10px;
}

footer p{
    margin-left: auto;
    color: var(--color-tag-base);
}