* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

body {
    background-image: url('@backgroundUrl');
    background-size: 98% auto;
    background-position: center;
    background-repeat: no-repeat;
}

.button-container {
    position: absolute;
    bottom: 53px; /* ปรับระยะห่างจากด้านล่าง */
    text-align: center;
    width: 100%;
}

.register-button {
    background-color: #312783; /* สีดำ */
    color: #ffffff; /* สีข้อความ */
    padding: 15px 30px;
    font-size: 16px;
    border: 1px solid #000000;
    border-radius: 10px; /* ปรับให้มีขอบโค้ง */
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.register-button:hover {
    background-color: #4a4094; /* สีดำอ่อนเมื่อ hover */
    transform: scale(1.05); /* ขยายเล็กน้อยเมื่อ hover */
    border: 1px solid #000000;
    color: #a8a8a8;
}

body {
    background-image: url('/Content/site/slides/Desktop.jpg');
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
}

/* iPhone 17 Pro Max และ iPhone ขนาดใหญ่ (Portrait: 430 x 932px) */
/* แสดง Mobile.jpg เฉพาะเมื่อหน้าจออยู่ระหว่าง 430px - 460px */
@media (max-width: 460px) and (max-height: 932px) {
    body {
        background-image: url('/Content/site/slides/Mobile.jpg');
        background-size: 98% auto;
        background-position: center;
        background-repeat: no-repeat;
    }
}