@charset "UTF-8";

#header {
    display: flex;
    position: relative;
    z-index: 10;
    overflow-x: hidden;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    padding: 0 10px;
    gap: 10px;
    width: 100%;
    height: 150px;
    background-color: var(--default-bg-color);
    box-shadow: 0px 5px 20px 5px #00000080;
    -webkit-box-shadow: 0px 5px 20px 5px #00000080;
}
#logoContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: max-content;
}
#logoImage {
    height: 80px;
    width: auto;
}
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: auto;
    height: 100% - padding;

}
#chkBoxHamMenuToggle {
    display: none;
}
#navbar .hamburger {
    display: none;
    font-size: 24px;
    user-select: none;
}
.hamMenu {
    height: 50px;
    width: 35px;
    position: relative;
    cursor: pointer;
}
.hamMenu span {
    height: 4.5px;
    width: 100%;
    background-color: var(--default-dark-color);
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s ease;
}
.hamMenu span:nth-child(1) {
    top: 25%;
}
.hamMenu span:nth-child(3) {
    top: 75%;
}
.hamMenu.active span:nth-child(2) {
    opacity: 0;
}
.hamMenu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.hamMenu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}
#navbar li {
    list-style: none;
}
#navbar .nav-links a {
    font-size: 2rem;
    color: var(--tertiary-color);   
    transition: all 0.3s ease;
}
#navbar .logo {
    font-size: 32px;
}
#navbar .menu {
    display: flex;
    gap: 1em;
    z-index: 10;
    font-size: 18px;
    animation: navMenu 0.3s ease 0s 1 normal;
}
@keyframes navMenu {
    0% {
      animation-timing-function: ease-in;
      opacity: 0;
    }
    100% {
      opacity: 100%;
    }
}
#navbar .menu li {
    display: inline-block;
    position: relative;
    padding: 5px 14px;
    transition: 0.3s ease;
}
.underline {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 0;
    height: 3px;
    background-color: var(--tertiary-color);
    border-radius: 1.5px;
    transition: all 0.3s ease;
}
.navLink:hover ~ .underline,
.navLink:focus ~ .underline {
    width: calc(100% - 20px);
}

@media (max-width: 1400px) {
    #header {
        position: static;
    }
    #navbar .menu {
        display: none;
        position: absolute;
        background-color: var(--default-bg-color);
        top: 150px;
        right: 0;
        left: 0;
        text-align: center;
        padding: 16px 0;
        -webkit-box-shadow: 0px 25px 50px -8px rgba(0,0,0,0.75);
        -moz-box-shadow: 0px 25px 50px -8px rgba(0,0,0,0.75);
        box-shadow: 0px 25px 50px -8px rgba(0,0,0,0.75);
    }
    #navbar .menu li:hover {
        display: inline-block;
        transition: 0.3s ease;
    }
    #navbar .menu li + li {
        margin-top: 12px;
    }
    #navbar input[type="checkbox"]:checked ~ .menu {
        display: block;
    }
    #navbar .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    #navbar .menu {
        display: none;
        flex-direction: row;
        position: absolute;
        background-color: #ffffff;
        top: 150px;
        right: 0;
        left: 0;
        text-align: center;
        padding: 16px 0;
        -webkit-box-shadow: 0px 25px 50px -8px rgba(0,0,0,0.75);
        -moz-box-shadow: 0px 25px 50px -8px rgba(0,0,0,0.75);
        box-shadow: 0px 25px 50px -8px rgba(0,0,0,0.75);
    }
    #navbar .menu li:hover {
        display: inline-block;
        transition: 0.3s ease;
    }
    #navbar .menu li + li {
        margin-top: 12px;
    }
    #navbar input[type="checkbox"]:checked ~ .menu {
        display: flex;
        flex-direction: column;
    }
    #navbar .hamburger {
        display: block;
    }
}

/*adjusting header layout for really small screen-width*/
@media (max-width: 480px) {
    #header {
        gap: 0;
    }
    #logoContainer {
        margin-right: 20px;
    }
    #logoImage {
        width: 70vw;
        height: auto;
    }
}