/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3rem;

    /*========== Colors ==========*/
    --hue: 174;
    --sat: 63%;

    --first-color: hsl(var(--hue), var(--sat), 40%);
    --first-color-alt: hsl(var(--hue), var(--sat), 36%);
    --title-color: hsl(var(--hue), 12%, 15%);
    --text-color: hsl(var(--hue), 8%, 35%);
    --body-color: hsl(var(--hue), 100%, 99%);
    --container-color: #fff; /* เปลี่ยนสีพื้นหลังของ container ตามที่ต้องการ */
    --nav-color: #0f0f19; /* เปลี่ยนสีพื้นหลังของ nav_menu ตามที่ต้องการ */

    /*========== Font and typography ==========*/
    --body-font: 'Open Sans', sans-serif;

    --h1-font-size: 1.5rem;
    --normal-font-size: .938rem;
    --tiny-font-size: .625rem;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 968px) {
    :root {
        --h1-font-size: 2.25rem;
        --normal-font-size: 1rem;
    }
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

.nav_menu ul {
    margin: 0;
    padding-left: 0;
    
}

.nav_menu {
    position: fixed;
    bottom: 0;
    background-color: #25396f;
    max-width: 540px;
    width: 100%;
    height: 4rem;
    padding: 0 1rem;
    display: grid;
    align-content: center;
    border-radius: 1.25rem 1.25rem 0 0;
    transition: .4s;
}

.nav__list,
.nav__link {
    display: flex;
}

.nav__link {
    flex-direction: column;
    align-items: center;
    row-gap: .25rem;
    color: #cecece;
    font-weight: 800;
}

.nav__list {
    justify-content: space-around;
}

.nav__name {
    font-size: var(--tiny-font-size);
}

.nav__icon {
    font-size: 1.5rem;
}

.nav__link:hover {
    text-decoration: none; /* ปิดเส้นใต้ */
    color: #fff;
}

.active-link {
    position: relative;
    color: #ffffff; /* สีที่จะใช้เมื่อเลือก active-link */
    transition: .3s;
    opacity: 1;
    transform: scaleX(1);
}



