@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=Noto+Sans+Thai:wght@100..900&display=swap');

body {
    font-family: "Noto Sans Thai", sans-serif !important;
}

.mainLayout {
    position: relative;

    width: 100%;
    min-height: 100dvh;
    padding: 20px;
    padding-top: 60px;

    background: url("../images/BG-main.png");
    background-position: top center;
    background-size: cover;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.logo_ros {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 550px;

    margin: 0 auto;
}

.title_ros {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 680px;
    margin: 0 auto;

}

.logo_ros img,
.title_ros img,
.btnGotoWeb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.date_ros {
    position: relative;
    z-index: 5;

    background: #fff2d0;
    background: radial-gradient(circle, #fff2d0 0%, #da9835 45%, #da9835 65%, rgba(255, 255, 255, 0) 100%);
    padding: 10px 50px;
}

.date_ros p {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 16px;
    color: #614320;
    text-shadow: 1px 1px 0px #472f14;
}

.btnGotoWeb {
    position: relative;
    z-index: 5;

    width: 200px;
    filter: drop-shadow(1px 1px 1px transition);
    transition: all .5s;
}

.btnGotoWeb:hover {
    filter: drop-shadow(1px 1px 5px #fff);
}

.object_stone {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    animation: floatUpDown 4s ease-in-out infinite;
    animation-delay: 3s;
}

.object_stone2 {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    animation: floatUpDown 3s ease-in-out infinite;
    animation-delay: 2s;
}

.object_razer {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
}

.object_chars {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: -20px;
    width: 100%;
    height: 100%;
    animation: floatUpDown 5s ease-in-out infinite;
}

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


@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
        /* ขยับขึ้น 15px */
    }

    100% {
        transform: translateY(0);
    }
}

/* popup  */
.popupLayout {
    position: absolute;
    z-index: 10;
    top: 80px;
    left: 50px;
    filter: drop-shadow(1px 1px 1px transition);
    transition: all .5s;
}

.popupLayout.first {
    top: 80px;
    left: 50px;
}

.popupLayout.second {
    top: 230px;
    left: 50px;
}


.popupLayout.third {
    top: 380px;
    left: 50px;
}

.popupLayout.first img {
    width: 150px
}

.popupLayout.second img {
    width: 150px
}

.popupLayout.third img {
    width: 150px
}

.popupLayout:hover {
    filter: drop-shadow(1px 1px 15px #fff);
}

@keyframes zoomInOut {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.zoom-loop {
    animation: zoomInOut 3s ease-in-out infinite;
}


/* animation  */
.zoom-in-image {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease-in-out;
}

.zoom-in-image.show {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 1190px) {

    .object_razer img,
    .object_stone img,
    .object_stone2 img {
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .date_ros p {
        font-size: 13px;
    }

    .title_ros {
        max-width: 500px;
    }

    .logo_ros {
        max-width: 500px;
    }

    .popupLayout.first img {
        width: 120px
    }

    .popupLayout.second img {
        width: 120px
    }

    .popupLayout.third img {
        width: 120px
    }

    .popupLayout.first {
        top: 80px;
        left: 20px;
    }

    .popupLayout.second {
        top: 200px;
        left: 20px;
    }

    .popupLayout.third {
        top: 300px;
        left: 20px;
    }
}

@media (max-width: 450px) {
    .date_ros p {
        font-size: 12px;
    }

    .object_stone2,
    .object_stone,
    .object_razer {
        display: none;
    }

    .object_chars {
        animation: none;
    }

    .popupLayout.first img {
        width: 90px
    }

    .popupLayout.second img {
        width: 90px
    }

    .popupLayout.third img {
        width: 90px
    }

    .popupLayout.first {
        top: 70px;
        left: 20px;
    }

    .popupLayout.second {
        top: 70px;
        left: 125px;
    }

    .popupLayout.third {
        top: 70px;
        left: 225px;
    }
}