* {
    -webkit-tap-highlight-color: transparent;
}

header {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60px;
    background-color: white;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    z-index: 3;
}

.header-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container a {
    display: block;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 60%;
    width: auto;
    margin-left: 10px;
}

#burger-menu {
    background: none;
    border: none;
    font-size: 0; 
    line-height: 0;
    height: 50px;
    padding: 8px;
    width: auto;
    aspect-ratio: 1/1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    margin-right: 10px;
    border-radius: 2px;
}

.bar1, .bar2, .bar3 {
    width: 36px;
    height: 5px;
    margin: 2px 0;
    background-color: #606060;
    border-radius: 2.5px;
    transition: 0.6s;
    transform-origin: left center;
}

#burger-menu:focus-visible {
    outline: 2px solid #606060; 
    outline-offset: 2px; 
}

.burger-change:active {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.burger-change {
    background-color: rgba(48, 48, 48, 0.219);
}

.burger-change .bar1 {
    transform: translate(5.5px, 24px) rotate(-45deg);
}

.burger-change .bar2 {
    opacity: 0;
}

.burger-change .bar3 {
    transform: translate(5.5px, -24px) rotate(45deg);
}

#nav-menu {
    position: fixed;
    top: 60px;
    width: 100%;
    transform: translateX(100%);
    z-index: 3;
    background-color: white;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.6s ease, visibility 0s 0.6s;
}

.desktop-nav {
    display: none;
}

.desktop-nav ul li:hover {
    background-color: #ececec;
}

.desktop-nav ul li:hover a {
    color: #22b7e9;
}

#nav-menu.nav-active {
    transform: translateX(0%);
    visibility: visible;                                    
    pointer-events: auto;
    transition: transform 0.6s ease, visibility 0s 0s;
}

#nav-menu ul {
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

#nav-menu ul li {
    list-style: none;
    padding: 20px 0;
    background-color: white;
    height: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: solid 1px #d3d3d3;
}

.active-menu-item {
    border-left: solid 3px #1FA0CB;
    border-right: solid 3px #1FA0CB;
}

.active-menu-item a {
    color: #1FA0CB;
    font-weight: 400;
}

#nav-menu ul li a {
    text-decoration: none;
    color: #606060;
    font-size: 20px;
    font-weight: 300;
}

#nav-menu ul li a:active {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Small (landscape phones and large phones) */
@media screen and (min-width: 900px) {

    header {
        height: 70px;
    }

    .header-container {
        width: 100%;
        max-width: 1800px;
    }

    .header-container a {
        display: block;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .header-logo {
        height: 60%;
        width: auto;
        margin-left: 50px;
    }
    #burger-menu {
        display: none;
    }

    #nav-menu {
        display: none;
    }

    .nav-active {
        top: 60px;
        transform: translateX(0);
        width: 100%;
    }

    .desktop-nav {
        display: block;
        margin-right: 50px;
        height: 100%;
    }

    .desktop-nav ul {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .desktop-nav ul li {
        list-style: none;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        padding: 0;
    }

    .desktop-nav ul li a {
        text-decoration: none;
        color: #606060;
        font-size: clamp(16px, 1.2vw, 18px);
        font-weight: 300;
        height: 100%;
        display: flex;
        align-items: center;
        padding: 0 20px;
    }

    .desktop-nav .active-menu-item {
        padding-top: 4px;
        border-bottom: solid 4px #8BC6E8;
        border-left: none;
        border-right: none;
    }

    .desktop-nav .active-menu-item a {
        color: #424242;
        font-weight: 400;
    }
}