@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Radio+Canada:ital,wght@0,300..700;1,300..700&display=swap');

:root {
    --header-height: 3.5rem;

    /* ระบบของสี */
    /* โหมดของสี */
    --white-color: hsl(0, 0%, 95%);
    --black-color: hsl(0, 0%, 0%);
    --first-color: hsl(0, 0%, 0%);
    --first-color-alt: hsl(252, 100%, 1%);
    --title-color: hsl(5, 15%, 15%);
    --text-color: hsl(0, 0%, 100%);
    --body-color: hsl(0, 0%, 100%);

    /* ระบบของตัวอักษร */
    /*! .5rem = 8px | 1rem = 16px ...*/
    --body-font: Kanit;
    --h1-font-size: 1.5rem;
    --normal-font-size: .938rem;

    /* ตัวหนังสือหนา */

    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;

    /* ฟอร์น */
    --font-regular: 400;
    --font-semi-bold: 600;
    --font-bold: 700;

    /*! z index */
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

@media screen and (min-width: 1150px) {
    :root {
        --normal-font-size: 1rem;
    }
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

/*=============== ระบบคลาสที่นำมาใช้ซ้ำกันได้ ===============*/
.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
}

/*=============== ระบบของ HEADER & NAV ===============*/
.header {

    width: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    z-index: var(--z-fixed);
}

.nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.containerlogo {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    margin-left: -6.7rem;
    cursor: pointer;
}

.logoimg img {
    max-width: 90px;
    margin-right: 8px;
    margin-top: 12px;
}

.contentText h1 {
    font-family: Kanit;
    color: #ffffff;
    font-size: 20px;
    margin: 0;
}

.contentText p {
    font-family: Kanit;
    color: #cccccc;
    font-size: 14px;
    margin: 0;
}

.nav__close,
.nav__toggle {
    display: flex;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
    .nav__menu {
        position: fixed;
        left: -100%;
        z-index: 1000;
        top: 0;
        background-color: var(--black-color);
        width: 100%;
        height: 100%;
        padding: 6rem 3.5rem 4.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: left .4s;

    }

    .nav__item {
        transform: translateX(-150px);
        visibility: hidden;
        transition: transform .4s ease-out, visibility .4s;
    }

    .nav__item:nth-child(1) {
        transition-delay: .1s;
    }

    .nav__item:nth-child(2) {
        transition-delay: .1s;
    }

    .nav__item:nth-child(3) {
        transition-delay: .1s;
    }

    .nav__item:nth-child(4) {
        transition-delay: .1s;
    }

    .nav__item:nth-child(5) {
        transition-delay: .1s;
    }

    .nav__item:nth-child(6) {
        transition-delay: .1s;
    }





}

.nav__list,
.nav__social {
    display: flex;
}

.nav__list {
    flex-direction: column;
    row-gap: 3rem;
}

.navacation {
    position: relative;
    color: var(--white-color);
    font-size: var(--h1-font-size);
    font-weight: var(--font-medium);
    display: inline-flex;
    align-items: center;
    transition: opacity .4s;
}

.navacation i {
    font-size: 2rem;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
}

.navacation span {
    position: relative;
    transition: margin .4s;
}

.navacation span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--white-color);
    transition: width .4s ease-out;
}

/* Animation link on hover */
.navacation:hover span {
    margin-left: 2.5rem;
}

.navacation:hover i {
    opacity: 1;
    visibility: visible;
}

.navacation:hover span::after {
    width: 100%;
}

/* Sibling fade animation */
.nav__list:has(.navacation:hover) .navacation:not(:hover) {
    opacity: .4;
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.nav__social {
    column-gap: 1rem;
}

.nav__social-link {
    color: var(--white-color);
    font-size: 1.5rem;
    transition: transform .4s;
}

.nav__social-link:hover {
    transform: translateY(-.25rem);
}

/* Show menu */
.show-menu {
    left: 0;
}

/* Animation link when displaying menu */
.show-menu .nav__item {
    visibility: visible;
    transform: translateX(0);
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (min-width: 1150px) {
    .container {
        margin-inline: auto;
    }

    .nav {
        height: calc(var(--header-height) + 2rem);
    }

    .nav__toggle,
    .nav__close {
        display: none;
    }

    .navacation {
        font-size: var(--normal-font-size);
    }

    .navacation i {
        font-size: 1.5rem;
    }

    .nav__list {
        flex-direction: row;
        column-gap: 3.5rem;
    }

    .nav__menu {
        display: flex;
        align-items: center;
        column-gap: 3.5rem;
        z-index: 1000;
    }
}











/* ปุ่ม login */






.btn-mamumi {
    position: relative;
    margin: 0;
    padding: 10px 25px;
    outline: none;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-transform: uppercase;
    background-color: #fff;
    border: 1px solid rgba(22, 76, 167, 0.6);
    border-radius: 10px;
    color: #1d89ff;
    font-weight: 400;
    font-family: inherit;
    z-index: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
}

.btn-mamumi span {
    color: #164ca7;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.7px;
}

.btn-mamumi:hover {
    animation: rotate624 0.7s ease-in-out both;
}

.btn-mamumi:hover span {
    animation: storm1261 0.7s ease-in-out both;
    animation-delay: 0.06s;
}

@keyframes rotate624 {
    0% {
        transform: rotate(0deg) translate3d(0, 0, 0);
    }

    25% {
        transform: rotate(3deg) translate3d(0, 0, 0);
    }

    50% {
        transform: rotate(-3deg) translate3d(0, 0, 0);
    }

    75% {
        transform: rotate(1deg) translate3d(0, 0, 0);
    }

    100% {
        transform: rotate(0deg) translate3d(0, 0, 0);
    }
}

@keyframes storm1261 {
    0% {
        transform: translate3d(0, 0, 0) translateZ(0);
    }

    25% {
        transform: translate3d(4px, 0, 0) translateZ(0);
    }

    50% {
        transform: translate3d(-3px, 0, 0) translateZ(0);
    }

    75% {
        transform: translate3d(2px, 0, 0) translateZ(0);
    }

    100% {
        transform: translate3d(0, 0, 0) translateZ(0);
    }
}

.btn-mamumi {
    border: 1px solid;
    overflow: hidden;
    position: relative;
}

.btn-mamumi span {
    z-index: 20;
}

.btn-mamumi:after {
    background: #38ef7d;
    content: "";
    height: 155px;
    left: -75px;
    opacity: 0.4;
    position: absolute;
    top: -50px;
    transform: rotate(35deg);
    transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
    width: 50px;
    z-index: -10;
}

.btn-mamumi:hover:after {
    left: 120%;
    transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

/* ปุ่มlogin */
.Btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition-duration: .3s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
    background-color: rgb(191, 189, 198);
}


.sign {
    width: 100%;
    transition-duration: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign svg {
    width: 17px;
}

.sign svg path {
    fill: white;
}


.text {
    position: absolute;
    right: 0%;
    width: 0%;
    opacity: 0;
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    transition-duration: .3s;
}


.Btn:hover {
    width: 125px;
    border-radius: 40px;
    transition-duration: .3s;
}

.Btn:hover .sign {
    width: 30%;
    transition-duration: .3s;
    padding-left: 20px;
}


.Btn:hover .text {
    opacity: 1;
    width: 70%;
    transition-duration: .3s;
    padding-right: 10px;
}


.Btn:active {
    transform: translate(2px, 2px);
}

.language-switch {
    position: fixed;
    top: 23px;
}