* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

:root {
    font-size: 20px;
    --kanit: 'Kanit', sans-serif;
    --roboto: 'Roboto', sans-serif;
    --sarabun: 'Sarabun', sans-serif;
    /* font-family: 'Kanit', sans-serif;
    font-family: 'Modak', cursive;
    font-family: 'Roboto', sans-serif;
    font-family: 'Sarabun', sans-serif; */
}

.head-text {
    background-color: #fff;
}



.nav-menu-flex {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
}

.nav-left {
    font-family: 'Kanit', sans-serif;
    font-weight: 200;
    font-size: 1rem;
    max-width: 540px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.menu-items {
    width: 160px;
    margin: 0 5px;
    text-align: center;
    padding-top: 10px;
    position: relative;
    cursor: pointer;
}

.menu-items:hover::before {
    width: 87px;
}

.menu-items::before {
    content: " ";
    width: 0;
    height: 2px;
    position: absolute;
    background-color: black;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    transition: 0.5s;
}

.nav-right {
    font-size: 2rem;
    font-family: 'Modak', cursive;
    -webkit-text-stroke: 2px black;
    -webkit-text-fill-color: white;
    letter-spacing: 8px;
}

.center {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.none {
    display: none !important;
}

.block {
    display: block;
}


/* sound */

.play {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
}

.volume {
    position: relative;
    z-index: 30;
    /* bottom: 20px;
    left: 20px; */
}

#rangeSound {
    z-index: 20;
    position: absolute;
    top: 0;
    transform: translateY(-100%);
    bottom: 0;
}

input[type=range][orient=vertical] {
    writing-mode: bt-lr;
    /* IE */
    -webkit-appearance: slider-vertical;
    /* WebKit */
    width: 40px;
    height: 0;
}

input[type=range] {
    /* width: 100%; */
    margin: 7.3px 0;
    background-color: transparent;
    -webkit-appearance: none;
}

.hidden {
    width: 0;
    visibility: hidden;
}

.hide {
    visibility: hidden;
}
/*.bg-home{*/
/*    width: 100%;*/
/*    height: 350px;*/
/*    background-image: url(../image/bottom-bg\ 1.svg);*/
/*    background-size: cover;*/
/*    background-repeat: no-repeat;*/
/*    background-position: center;*/
/*}*/

#bg-botton {
    width: 100%;
    height: 350px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-image: url(../image/bottom-bg\ 1.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    z-index: 0;
}

#overlay {
    width: 100%;
    height: 400px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 64.06%);
    z-index: 2;
}

.btn-click {
    bottom: 120px;
    left: 50%;
    z-index: 3;
}

#first-page {
    position: relative;
    height: calc(100% - 60px - 53px);
}

#frist-con {
    position: relative;
    z-index: 4;
}

#frist-con a {
    text-decoration: none;
    font-size: 30px;
    color: black;
}

#frist-con path {
    fill: black;
}

#first-page .container span {
    font-family: var(--kanit);
    font-size: 1rem;
}

#first-page .container h1 {
    font-family: var(--kanit);
    font-size: 2.5rem;
    font-weight: 900;
}

#first-page .container p {
    font-family: var(--kanit);
    font-size: 1.5rem;
}

.section-two {
    width: 100%;
    height: calc(100% - 140px - 60px);
}

.section-two img {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    margin-top: -50px;
    z-index: 1;
}

.click-in {
    width: 160px;
    height: 160px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.btn-b {
    text-decoration: none;
    background-color: black;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    border: 2px solid white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.mySwiper .swiper-slide:nth-child(1) .btn-b {
    background-color: rgb(6, 175, 101);
}

.mySwiper .swiper-slide:nth-child(2) .btn-b {
    /*background-color: rgb(56, 86, 166);*/
    background-color: rgb(253, 128, 138);
}

.mySwiper .swiper-slide:nth-child(3) .btn-b {
    /*background-color: rgb(109, 188, 204);*/
    background-color: rgb(255, 140, 64);
}

.mySwiper .swiper-slide:nth-child(4) .btn-b {
    /*background-color: rgb(249, 193, 26);*/
    background-color: rgb(230, 0, 46);
}

.mySwiper .swiper-slide:nth-child(5) .btn-b {
    /*background-color: rgb(230, 0, 46);*/
    background-color: rgb(56, 86, 166);
}

.mySwiper .swiper-slide:nth-child(6) .btn-b {
    /*background-color: rgb(255, 140, 64);*/
    background-color: rgb(109, 188, 204);
}

.mySwiper .swiper-slide:nth-child(7) .btn-b {
    background-color: rgb(249, 193, 26);
    /*background-color: rgb(253, 128, 138);*/
}

.mySwiper .swiper-slide:nth-child(1) .btn-b:hover {
    border: 2px solid rgb(6, 175, 101);
    color: rgb(6, 175, 101);
}

.mySwiper .swiper-slide:nth-child(2) .btn-b:hover {
    border: 2px solid rgb(253, 128, 138);
    color: rgb(253, 128, 138);
}

.mySwiper .swiper-slide:nth-child(3) .btn-b:hover {
    border: 2px solid rgb(255, 140, 64);
    color: rgb(255, 140, 64);
}

.mySwiper .swiper-slide:nth-child(4) .btn-b:hover {
    border: 2px solid rgb(230, 0, 46);
    color: rgb(230, 0, 46);
}

.mySwiper .swiper-slide:nth-child(5) .btn-b:hover {
    border: 2px solid rgb(56, 86, 166);
    color: rgb(56, 86, 166);
}

.mySwiper .swiper-slide:nth-child(6) .btn-b:hover {
    border: 2px solid rgb(109, 188, 204);
    color: rgb(109, 188, 204);
}

.mySwiper .swiper-slide:nth-child(7) .btn-b:hover {
    border: 2px solid rgb(249, 193, 26);
    color: rgb(249, 193, 26);
}

.btn-b:hover {
    color: black;
    background-color: white !important;
    border: 2px solid black;
    transition: 0.5s;
}

.btn-b>p {
    font-family: var(--roboto);
    font-weight: 400;
    font-size: 0.7rem;
}

.modal-body .btn:focus {
    box-shadow: none;
}

.btn-b>h3 {
    font-family: var(--roboto);
    font-weight: 400;
    font-size: 1.5rem;
}

#black {
    width: 210px;
    height: 210px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
}

#black p {
    font-size: 0.75rem;
    font-family: var(--roboto);
    font-weight: 900;
}


/* model */

.modal-content {
    border: 2px solid black;
    border-radius: 24px;
}

.text-end button {
    outline: none;
}

.content-model h1 {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--roboto);
}

.content-model h5 {
    font-size: 1rem;
    font-family: var(--sarabun);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.content-model p {
    font-size: 1rem;
    font-family: var(--sarabun);
    font-weight: 200;
    margin-bottom: 1.5rem;
}

.box-slide {
    width: 500px;
    height: 500px;
}

.gif-slide {
    width: 100%;
    height: 100%;
    border: 2px solid #808080;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gif-slide img {
    width: 75%;
}

.mySwiper {
    position: relative;
    z-index: 6;
}

.click-slide {
    width: 150px;
    height: 150px;
    position: absolute;
    bottom: 0;
    right: 0;
}

footer {
    margin-top: -10px;
    position: relative;
    z-index: 7;
}

.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
    bottom: 0;
    width: auto;
}

.swiper-button-next,
.swiper-rtl .swiper-button-prev {
    right: 10%;
    left: auto;
}

.swiper-button-prev,
.swiper-rtl .swiper-button-next {
    left: 10%;
    right: auto;
}

.swiper-pagination-bullet-active {
    color: #fff;
    border-radius: 30px;
    background: black;
    width: 30px;
    transition: 0.3s;
}

.swiper-button-next,
.swiper-button-prev {
    width: calc(65px / 44 * 27);
    height: 65px;
}

.swiper-button-next {
    background: url('https://api.iconify.design/bi/arrow-left-circle.svg?flip=horizontal') no-repeat center center / contain;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center;
}

.swiper-button-next::after {
    display: none;
}

.swiper-button-prev {
    background: url('https://api.iconify.design/bi/arrow-left-circle.svg') no-repeat center center / contain;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center;
}

.swiper-button-prev::after {
    display: none;
}

.swiper-pagination {
    position: relative;
    z-index: 30;
}

.pager-box {
    display: flex;
    justify-content: center;
}

.pager-box .pager-index {
    position: relative;
    font-size: 1rem;
    font-family: var(--kanit);
}

.modal-backdrop {
    background: #faf1e7;
}

.icon {
    font-size: 1.5rem;
    color: black;
}

.boxred {
    z-index: 10;
}



.boxSwiper {
    height: 100%;
    z-index: 3;
}

#main-body {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.swiper-slide p {
    font-family: var(--kanit);
    font-size: 1.5rem;
}

.footer-logo .logo {
    display: none;
}

.footer-logo img {
    width: 190px;
}

.logo {
    cursor: default;
}

.menu {
    display: none;
    font-size: 2.5rem;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 31;
}

.hide-nav {
    left: -100%;
}

.show-nav {
    left: 0;
}

nav {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgb(255, 252, 250, 0.95);
    top: 0;
    left: 0;
    z-index: 30;
    transition: 0.5s ease;
}

.respon {
    width: 250px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 5rem;
}

.respon-items {
    font-size: 1.8rem;
    font-family: var(--kanit);
    font-weight: 200;
    margin-bottom: 0.5rem;
}

.respon-items:hover {
    font-weight: 400;
    text-decoration: underline;
}

.share {
    z-index: 3;
    bottom: 20px;
    left: 0;
    width: 100%;
}

.share .iconify {
    font-size: 2rem;
}

.box-category {
    border: 2px solid #000;
    border-radius: 24px;
    padding: 5px 15px;
    text-align: center;
    transition: 0.3s ease;
}

.box-category:hover {
    background-color: #EDE3D9;
}

.box-category img {
    height: 149px;
    margin-bottom: 5px;
}

.box-category p {
    font-size: 1rem;
    font-family: var(--roboto);
    font-weight: 700;
    margin-bottom: 0;
}

.mt--3 {
    margin-top: -20px;
}

#exampleModal3 .text-end .iconify {
    font-size: 2rem;
}

h5 {
    font-family: 'Kanit', sans-serif !important;
}

h3 {
    font-family: 'Kanit', sans-serif !important;
}

h2 {
    font-family: 'Kanit', sans-serif !important;
}

p {
    font-family: 'Kanit', sans-serif !important;
}


/* width */

::-webkit-scrollbar {
    width: 8px;
}


/* Track */

 ::-webkit-scrollbar-track {
    background: #EAE7E6;
}


/* Handle */

 ::-webkit-scrollbar-thumb {
    background: #C5B5AB;
    border-radius: 20px;
}


/* Handle on hover */

 ::-webkit-scrollbar-thumb:hover {
    background: #D7B9A7;
}

.show-s {
    height: 100px !important;
    display: block;
    transition: 0.3s ease;
}

.text-head {
    font-weight: 700;
    font-family: var(--kanit);
}

@media screen and (max-width:1024px) {
    .section-two img {
        margin-top: 0;
    }
    footer {
        margin-top: 0;
        position: relative;
        z-index: 7;
    }
    #bg-botton {
        height: 950px;
    }
    .box-slide {
        width: 700px;
        height: 700px;
    }
    #first-page {
        height: calc(100% - 120px);
    }
}

@media screen and (max-width:768px) {
    .logo {
        /* width: 168px;
        font-size: 1.5rem;
        height: 90px; */
        font-size: 2rem;
        font-family: 'Modak', cursive;
        -webkit-text-stroke: 2px black;
        -webkit-text-fill-color: white;
        letter-spacing: 8px;
        line-height: 1;
    }
    .socail {
        display: none !important;
    }
    #first-page {
        height: calc(100% - 60px);
    }
    .box-slide {
        width: 500px;
        height: 500px;
    }
    #overlay {
        height: 600px;
    }
    #bg-botton {
        height: 650px;
    }
    .nav-left {
        width: 320px;
    }
    .menu-items {
        width: 100px;
    }
    .modal-dialog {
        max-width: 700px;
    }
    .btn-click {
        bottom: 200px;
    }
    .footer-logo img {
        width: 180px;
    }
    .box-slide {
        margin-bottom: 80px;
    }
    .swiper-button-next,
    .swiper-button-prev {
        top: auto;
        bottom: 0;
        transform: translateY(0);
    }
    .pager-box {
        margin-bottom: 20px;
    }
    .swiper-pagination {
        display: none;
    }
    .click-slide {
        width: 120px;
        height: 120px;
        right: 50%;
        transform: translate(50%, 50%);
    }
    .swiper-slide {
        /* margin-bottom: 1rem; */
    }
}

@media screen and (max-width:414px) {
    .box-slide {
        width: 360px;
        height: 360px;
    }
    #bg-botton {
        height: 400px;
    }
    .menu-items {
        width: 5px;
    }
}

@media screen and (max-width:375px) {
    .box-slide {
        width: 350px;
        height: 350px;
        margin-bottom: 80px;
    }
    /* .swiper-button-next,
    .swiper-button-prev {
        top: auto;
        bottom: 0;
        transform: translateY(0);
    }
    .pager-box {
        margin-bottom: 20px;
    }
    .swiper-pagination {
        display: none;
    }
    .click-slide {
        width: 120px;
        height: 120px;
        right: 50%;
        transform: translate(50%, 50%);
    }
    .swiper-slide p {
        order: 0;
    } */
    #bg-botton {
        height: 520px;
    }
    .footer-logo .logo {
        letter-spacing: 5px;
        display: block;
        line-height: 1;
        font-size: 1.5rem;
    }
    .footer-logo img {
        display: none;
    }
    footer {
        margin-top: 0;
    }
    /* .boxSwiper {
        height: calc(100% - 60px);
    } */
    .nav-right .logo {
        line-height: 0.8;
        text-align: end;
        margin-top: 10px;
    }
    .nav-left {
        display: none;
    }
    .nav-menu-flex {
        justify-content: flex-end;
    }
    h3 {
        font-size: 24px !important;
    }
}

@media screen and(max-width:220px) {
    .box-slide {
        width: 200px;
        height: 200px;
    }
    #bg-botton {
        height: 220px;
    }
}
