body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #ff0000;
}

.image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.responsive-image {
    display: none;
    width: 100%;
    height: auto;
}
/* กำหนด container สำหรับปุ่ม */
.button-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 11%;
    position: absolute;
    z-index: 10;
    left: 12%;
    top: 73%;
}
.image-button {

       height: 100vh; /* ความสูงเต็มหน้าจอ */
    width: 100%; /* ความกว้างเต็มหน้าจอ */
    background-image: url('images/button_normal_mac.png'); /* ภาพปุ่มปกติสำหรับ Mac */
    background-size: contain; /* ปรับภาพให้ครอบคลุมพื้นที่ปุ่ม */
    background-repeat: no-repeat;
    transition: background-image 0.3s ease; /* เพิ่มเอฟเฟกต์ smooth */
}
.image-button:hover {
    background-image: url('images/button_hover_mac.png'); /* ภาพปุ่มเมื่อวางเมาส์สำหรับ Mac */
}

/* PC (กว้างสุด 1920px) */
@media (min-width: 476px) and (max-width: 1920px) {
    .responsive-image.pc {
        display: block;
    }
}

/* Mac (กว้างสุด 2560px) */
@media (max-width: 2560px) and (min-width: 1921px) {
    .responsive-image.mac {
        display: block;
    }
}
/* Mobile (กว้างสุด 475px) */
@media (min-width: 289px) and (max-width: 475px) {
    .responsive-image.mobile {
        display: block;
    }

    .button-container{
        left: auto;
        top: 85%;
        width: auto;
        justify-content: center;
    }
    .image-button {
        width: 140px; /* ขนาดปุ่มสำหรับ Mobile */
        height: 55px;
        background-image: url('images/button_normal_mobile.png'); /* ภาพปุ่มปกติสำหรับ Mac */
    }
    .image-button:hover {
        background-image: url('images/button_hover_mobile.png'); /* ภาพปุ่มเมื่อวางเมาส์สำหรับ Mac */
    }
}
@media (max-width: 288px) {
    .responsive-image.mobile {
        display: block;
    }
    .image-button {
        width: 150px;
    }
    .button-container{
        left: auto;
        top: 38%;
        width: auto;
        justify-content: center;
    }
}
