@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap');

:root {
    --full-size: 1920px;
    --full-minisize: 1200px;
    --fit-height: 1080px;
    --bg_santa_main: #b20000;
    --santa_main: #b20000;
    --santa_2main: #cf2e2e;
}

body {
    display: flex;
    max-width: 1920px;
    margin: 0px;
    font-family: "Noto Sans Thai", serif;
    background-color: rgb(255 255 255);
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
    align-items: center;
}

.banner {
    width: var(--full-minisize);
    height: auto;
}

.banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

#sec1 {
    width: var(--full-minisize);
}

.row_sec1 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row_sec1 h1 {
    font-size: 38px;
}

.row_sec1 h2 {
    font-size: 28px;
    color: var(--santa_main);
}

.mobile {
    display: none;
}
.book-section {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-section>.containersd {
    height: 500px;
    width: 1000px;
    position: relative;
    left: 0;
    border-radius: 2%;
    margin-bottom: 30px;
    perspective: 1200px;
}

.containersd>.right {
    position: absolute;
    height: 100%;
    width: 50%;
    transition: 0.7s ease-in-out;
    transform-style: preserve-3d;
}

.book-section>.containersd>.right {
    right: 0;
    transform-origin: left;
    border-radius: 10px 0 0 10px;
}

.right>figure {
    margin: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    backface-visibility: hidden;
    background-color: white;
    overflow: hidden;
    border: 10px solid #CF2E2E;
    /* เพิ่มกรอบสีแดงขนาด 10px */
    box-sizing: border-box;
    /* เพื่อให้กรอบไม่ล้นออกจากขนาดของ figure */
}

.right>figure.front,
.right>figure.back {
    margin: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-size: cover;
    background-repeat: no-repeat;
    backface-visibility: hidden;
    background-color: white;
    overflow: hidden;
}

.right>figure.front {
    background-position: center;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 2px 15px -2px rgba(0, 0, 0, 0.2);
}

.right>figure.back {
    background-position: center;
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 2px 15px -2px rgba(0, 0, 0, 0.2);
    transform: rotateY(180deg);
}

.right>figure::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}


.flip {
    transform: rotateY(-180deg);
}

.flip::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    border-radius: 0 10px 10px 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.container_button>button {
    border: 2px solid transparent;
    background-color: transparent;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.container_button>button:hover {
    transform: scale(1.1);
}

.container_button>button:focus,
.container_button>button:active {
    outline: none;
}

.container_button>p {
    color: rgba(0, 0, 0, 0.7);
    font-family: "Noto Sans Thai", sans-serif;
    font-size: 24px;
}

.container_button>p>a {
    text-decoration: none;
    color: #B20000;
}

.container_button>button:hover {
    color: #fff;
}

.front#cover,
.back#back-cover {
    font-family: "Noto Sans Thai", sans-serif;
    text-align: center;
    padding: 0 30px;
}

.front#cover h1 {
    color: #fff;
}

.front#cover h2 {
    color: #fff;
    font-size: 20px;
}


.front#cover p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 14px;
}

.container_button {
    display: flex;
    flex-direction: row;
    justify-content: center;

}

.container_button img {
    width: 50px;
    height: 50px;
    cursor: pointer;

}

.right_1 {
    display: flex;
    /* transform: translateY(-300px); */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100%;
    /* background-color: #ffffff;
    border-radius: 10px 0px 0px 10px;
    border: 10px solid #CF2E2E;
    box-shadow: 2px 2px 15px -2px rgba(0, 0, 0, 0.2); */

}

.cover {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover h1 {
    font-size: 38px;
    color: #000;
    margin: 10px;
}
.save
{
      font-size: 30px;
    color: #000;
    margin: 10p
}

.cover h2 {
    font-size: 28px;
    color: #B20000;
    margin: 10px;
}
#sec2 {
    width: var(--full-minisize);
    height: auto;
}
.all{
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}
.content_allphoto {
    display: flex;
    height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.content_photo {
    display: flex;
    width: 100%;
    height: 95%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    /* สำหรับ Firefox */
    scrollbar-color: #888 #f0f0f0;
}

/* สำหรับ Chrome, Edge และ Safari */
.content_photo::-webkit-scrollbar {
    width: 8px;
}

.content_photo::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

.content_photo::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.content_photo::-webkit-scrollbar-track {
    background-color: #f0f0f0;
    border-radius: 10px;
}

/* .content_photo img {
    display: inline-block;
    width: 100px;
    height: auto;
    margin: 5px;
} */
.row {
    display: none;
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: row;
    justify-content: center;

}

.row.show {
    display: flex;
}

.col {
    width: 50%;
    display: flex
;
    justify-content: flex-start;
}

.col img {
    width: 280px;
    height: 265px;
    object-fit: cover;
    margin: 10px;
    border-radius: 10px;
    transition: all 0.3s ease, filter 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    filter: grayscale(0%);
}

.col img:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    filter: grayscale(0%);
    cursor: pointer;
}



@media (min-width:1101px) and (max-width: 1919px) {
    .banner {
        width: 100%;
    }
    #sec1 {
        width: 100%;
    }
    #sec2 {
        width: 100%;
    }


}

@media (max-width:1100px) {
    .banner {
        width: 100%;
    }
    .book-section{
        display: none;
    }
    .mobile {
        width: 100%;
        display: block;
    }
    #sec1{
        width: 100%;
    }
    .row_sec1 h1{
        font-size: 28px;
    }
    .row_sec1 h2{
        font-size: 20px;
    }
    .container_allinone {
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 0;
        flex-direction: column;
    }
    
    .container {
        width: 90%;
        height: 450px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        background-color: #CF2E2E;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        flex-direction: column;
        border:20px #ffffff;
        margin: 0px 0px 20px 0px;
    }
    
    .slideshow {
        width: 90%;
        height: 300px;
        border-radius: 10px;
        user-select: none;
        object-fit: cover;
        border: 5px solid #ffffff;
    }
    
    .santa {
        width: 100px;
        height: 100px;
        transform: translateY(30px);
    }
    .container_text{
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 120px;
    
    }
    .container_text h2{
        margin-left: 10px;
        font-size: 16px;
        color: #ffffff;
    }
    .icon {
        width: 100px;
        height: 100px;
        object-fit: scale-down;
        filter: invert(1); 
    }
    #sec2 {
        width: 100%;
    }
    .content_allphoto {
        height: 60vh;
    }

    .content_photo {
        width: 90%;
    }

    .row {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        height: 340px;
    }

    .col {
        width: 50%;
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        align-items: center;
    }

    .col img {
        width: 90%;
        height: 150px;
    }
}