:root {
    --tmpblue: #16778d;
    --green: #16778d;
    --tmpbluea: #01589b5e;
    --tmpblue1: #004e89;
    --tmpblue2: #50b6b4;
    --tmpblue3: #50b6b4a4;
    --tmpcolor1: #0b6174cd;
    /* --tmpcolor1: #00000094; */
    --tmpcolor5: #e9e6f289;
    --tmpcolor6: #e6eaf28f;
    --tmpcolor7: #e4e6ee94;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding: 2px;
    color: white;
    background-image: url('../img/tmp/booknow.png');
    background-size: cover;
    /* ปรับขนาดภาพให้เต็มหน้าจอ */
    background-repeat: repeat;
    /* ป้องกันการวนซ้ำของภาพ */
    background-position: center;
    /* จัดตำแหน่งภาพให้อยู่ตรงกลาง */
    background-attachment: fixed;
    /* ทำให้ภาพเลื่อนตามหน้าจอ */
}

a:hover {
    color: inherit;
}

h1,
h2,
h3,
p,
td {
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.top-navbar-nav {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 0 !important;
    margin-top: 0;
}

.label-tmp {
    display: inline;
    background-color: #00000094;
    margin-left: 15px;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    padding-bottom: 7px;
    border: white solid 2px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);

}

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loader {
    border: 10px solid #f3f3f3;
    border-top: 5px solid var(--tmpcolor1);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.box {
    padding: 10px;
    background-color: #004e89;
}

.row {
    width: 100%;
    margin-left: 0 !important;
}


.nav-link {
    border: #00000004 solid 1px;
    border-radius: 3px;
    color: white;
    border-bottom: 4px solid var(--tmpcolor5);
}

.nav-link.active {
    border-color: white;
    background-color: var(--tmpcolor1);
    color: white !important;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
    border-color: white;
    color: white;
    background-color: var(--tmpcolor1);
    transition: 0.4s;
}

li {
    list-style: none;
}

nav {
    color: white;
    padding: 5px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    position: sticky !important;
    top: 0;
    z-index: 9999;
}

.card {
    height: 100% !important;
    border: white solid 1px !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3) !important;
}


.sticky-footer {
    position: sticky;
    bottom: -2px;
    justify-content: space-evenly;
    z-index: 19999;
    display: none;
}

.go-up {
    border: white solid 1px;
    border-radius: 50%;
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.3);
    padding: 2px;
    width: 35px;
    height: 35px;
}

.sticky-footer-btn {
    margin-left: 0;
}

.hero-section {
    position: absolute;
    top: -160px;
}

.gallery-container {
    margin-top: 650px;
}

.gallery-box {
    background-color: rgba(0, 0, 0, 0.6);
    border: white solid 2px;
    color: white;
    padding: 20px;
}

.gallery-box img {
    border-radius: 5px;
    box-shadow: 0 0 3px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.gallery-box img:hover {
    transform: scale(1.4);
}

.hero-container {
    display: flex;
    padding: 10px;
    margin-top: 9px;
    height: 850px;
    overflow: hidden;
    background-color: #00000094;
    border-radius: 15px;
    border: white solid 2px;
}

.navbar-toggler {
    position: absolute;
    top: 5px;
    right: 5px;
}


.bi-search {
    border-radius: 5px;
    padding: 5px;
    color: gray;
    font-size: 20px;
}

button#dropdownMenuButton.btn.btn-light.dropdown-toggle {
    margin-top: -5px;
}

.nav-logo-sec-hide1 {
    margin-top: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    height: 30px;
    padding: 0 45px 0 0;
    display: none;
}

.nav-logo-sec-hide {
    margin-top: 5px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    height: 30px;
    padding: 0 35px 0 0;
}

.lang {
    font-size: x-small;
    display: inline-block;
    border: var(--tmpblue) solid 1px;
}

.lang:hover {
    border-color: white;
    color: var(--tmpblue);
}

.lang.active {
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--tmpblue);
    border: white solid 1px;
}

.search-input {
    min-width: 100px !important;
    margin-right: 5px !important;
    font-size: medium;
    border: none;
    border-radius: 3px;
}

.box-shadow-tmp {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.sticky-bottom {
    display: none;
}

.ul-link {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    border-radius: 15px;
    background-color: var(--tmpblue);
    padding: 5px;
    margin-top: -11px;
}

.li-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: white solid 1px;
    border-radius: 50%;
}

.swiper-slide-hero {
    height: 600px !important;
}

.slide1-container {
    overflow: hidden;
    background-color: #00000094;
    border-radius: 15px;
    border: white solid 2px;
    height: 700px;
    margin-top: 200px;
}

.h3-text-warp {
    min-height: 60px !important;
    margin-left: 10px;
    position: absolute;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid black;
    animation: typing 4s steps(50, end) infinite, blink 0.7s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    from {
        border-color: transparent;
    }

    to {
        border-color: black;
    }
}

.card-img-top-slide0 {
    width: 80%;
    margin-left: 10%;
}

.card-img-top-slide1 {
    max-width: 420px;
}

@media screen and (max-width: 1280px) {
    .img-png-hero-r1 {
        height: 80%
    }

    .p-box-detail {
        margin-top: 17%;
        width: 80%;
        margin-left: 10%;
        flex-direction: column;
        align-items: center;
        display: flex;
        font-size: medium;
        padding: 0;
    }
}

.selected-flag {
    width: 20px;
    height: 10px;
}

@media screen and (max-width: 1024px) {
    .dashboard-right {
        top: 2%;
    }

    .res-p {
        font-size: xx-small;
    }

    .nav-logo-sm-hide {
        display: none;
    }

    .swiper-slide-hero {
        height: 480px !important;
    }

    .img-png-hero-l {
        left: -30px;
    }

    .img-png-hero-r1 {
        height: 70%;
        top: 15%;
    }

    .p-box-detail {
        margin-top: 15%;
        width: 90%;
        margin-left: 5%;
    }

    .slide1-container {
        height: 600px;
    }

}

@media screen and (max-width: 930px) {
    .img-logo {
        display: block;
    }

    .navbar-brand {
        font-size: xx-large;
        display: inline;
    }

    .navbar-toggler {
        margin-top: 8px;
    }

    .navbar-expand-lg {
        margin-top: 0 !important;
    }

    .nav-link {
        width: 300px;
        padding-left: 60px;
    }

    .topnav {
        display: none !important;
    }

    .top-nav-item {
        display: flex;
        justify-content: center;
    }

    .top-nav-link {
        display: flex;
        width: 90%;
        justify-content: center;
        font-size: small !important;
    }

    .top-navbar-nav {
        padding: 0 !important;
    }

    .nav-item {
        display: flex;
        justify-content: flex-end;
        flex-direction: row;
    }

    .dashboard-left {
        background-color: rgba(0, 0, 0, 0.371);
        border-radius: 30px;
        width: 90%;
        top: 1%;
        left: 5%;
    }

    .dashboard-right {
        top: 16%;
        width: 86%;
        right: 7%;
    }

    .col-12 h2 {
        font-size: large !important;
    }

    .col-12 p {
        font-size: small !important;
    }

    .hero-slide-img {
        object-fit: cover;
    }

    .nav-logo-sec {
        display: flex;
        justify-content: flex-start;
        margin-top: 0;
    }

    .card-title-product {
        font-size: small;
    }

    .card-text-product {
        font-size: x-small;
    }

    .product-btn {
        width: 100%;
        justify-content: center;
        font-size: x-small !important;
    }

    .res-h {
        font-size: x-small !important;
    }

    .res-p {
        font-size: xx-small !important;
    }

    .res-tel {
        font-size: medium !important;
    }

    .top-navbar-hide {
        display: none;
    }

    .map-vis {
        display: flex;
        justify-content: center;
    }

    .sticky-bottom {
        display: flex;

    }

    .map-hide {
        margin-top: 10px;
        padding: 10px;
    }

    .swiper-slide-hero {
        height: 380px !important;
    }

    .nav-logo-sec-hide1 {
        display: flex;
    }

    .img-png-hero-r {
        position: absolute;
        bottom: -20px;
        right: -50px;
        height: 93%
    }

    .p-box-detail {
        margin-top: 0;
    }

    .col12-p {
        font-size: medium;
    }

    .gallery-container {
        margin-top: 1500px;
    }

    .sticky-footer {
        display: flex;
    }

    .h3-text-warp {
        font-size: medium;
    }

    .card-img-top-slide0 {
        width: 70%;
        margin-left: 15%;
    }

}


@media (max-width: 768px) {
    .h3-text-warp {
        font-size: small;
    }

    .hero-container {
        height: 750px;
    }

    .gallery-container {
        margin-top: 1400px;
    }

    .card-img-top-slide1 {
        max-width: 320px;
    }
}

@media screen and (max-width: 640px) {
    .selected-lang {
        font-size: x-small;
    }


    .h3-text-warp {
        display: none;
        /* font-size: x-small;
        margin-top: 30px;
        margin-left: 20px; */
    }

    .slide1-container {
        margin-top: 40px;
        height: 500px;
    }

    .map-hide {
        display: none !important;
    }

    .top-nav-link {
        display: flex;
        font-size: xx-small !important;
        border: white solid 1px;
        margin-bottom: 3px;
    }

    .top-nav-item {
        padding: 0;
    }

    .swiper-slide-hero {
        height: 280px !important;
    }

    .hero-section {
        top: 0px;
    }

    .hero-container {
        height: 600px;
    }

    .gallery-container {
        padding: 0;
        margin-top: 1050px;
    }

    .slide1-container {
        height: 400px;
    }

    .gallery-box {
        padding: 3px;
    }

    .card-img-top-slide0 {
        width: 80%;
        margin-left: 10%;
    }

    .card-img-top-slide1 {
        max-width: 260px;
    }
}