html, body {
    color: #5a3e36; /* สีน้ำตาลอ่อนนุ่มละมุน */
    font-family: "Kanit", serif; /* ฟอนต์หลักของเว็บ */
}


#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* ทำให้เต็มความกว้าง */
    height: 100vh; /* ทำให้เต็มความสูง */
    object-fit: cover; /* ป้องกันวิดีโอถูกบีบ */
    z-index: -1; /* ให้วิดีโออยู่หลังเนื้อหา */
    background-color: black; /* ป้องกันขอบดำหากวิดีโอโหลดช้า */
}

/* ✅ รองรับมือถือ (ให้เต็มจอแน่นอน) */
@media (max-width: 768px) {
    #background-video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
    }
}

/* ✅ ให้เนื้อหาอยู่ด้านหน้า */
.container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85); /* ใส่พื้นหลังโปร่งแสงให้อ่านง่าย */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

footer {
    background: #ffb6c1; /* พื้นหลังสีชมพูอ่อน */
    color: #5a3e36; /* สีน้ำตาลอ่อน */
    text-align: center;
    padding: 15px;
}


h1,
h2 {
    font-family: "Kanit", cursive;
    font-weight: 600;
    color: #ff758f; /* ชมพูพาสเทลเข้ม */
}
.card {
    background: rgba(255, 240, 245, 0.85); /* สีชมพูอ่อนพาสเทล */
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* เงานุ่มๆ */
    backdrop-filter: blur(8px); /* เพิ่มเอฟเฟกต์โปร่งแสง */
}

button {
    font-size: 18px;
}

.img-inner {
    overflow: hidden;
    position: relative;
    margin: 0px -15px 0px -15px;
}

.dark {
    color: #f1f1f1;
}
.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.img-qr {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    width: 960px;
    background-position: center;
}
.img-attach {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    width: 240px;
    background-position: center;
}
.banner-container {
    position: relative;
    overflow: hidden;
    max-height: 40vh;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.banner-container img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.card {
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #ff758f; /* ชมพูพาสเทล */
    border-color: #ff758f;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}


.wish-item {
    border-left: 3px solid #ff6b6b;
    padding: 10px 15px;
    margin-bottom: 15px;
    background-color: #fff9f9;
    border-radius: 0 8px 8px 0;
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 1rem;
    }

    .card {
        padding: 15px !important;
    }

    .banner-container {
        max-height: 30vh;
    }
}

.qr-section {
    background: rgba(255, 245, 240, 0.85);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.qr-code {
    width: 300px;
    height: auto;
    border: 5px solid #b76e79; /* กรอบสีหวาน */
    border-radius: 10px;
}

.qr-section h2 {
    font-family: "Great Vibes", cursive;
    font-size: 28px;
    color: #b76e79;
}
.fullscreen-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* พื้นหลังโปร่งแสง */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050; /* ให้สูงกว่าทุก element */
}

.card {
    background: rgba(255, 235, 230, 0.85); /* สีชมพูพาสเทลอ่อนๆ แบบโปร่งแสง */
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.wedding-img {
    max-width: 100%; /* ป้องกันไม่ให้รูปใหญ่เกินไป */
    height: auto; /* คงอัตราส่วนรูป */
    margin-top: 15px; /* เว้นระยะห่างจากหัวข้อ */
    border-radius: 10px; /* ทำให้ขอบมน */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15); /* เพิ่มเงาให้ดูสวย */
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* ทำให้ปุ่มไม่ล้นจอ */
}

.pagination-container button {
    background-color: #ffb6c1; /* ชมพูพาสเทลอ่อน */
    color: white;
    border: none;
}


.pagination-container button:disabled {
    opacity: 0.5;
}


/* ✅ Media Query: ปรับขนาดปุ่มให้เต็มจอแนวตั้งเมื่อจอเล็ก */
@media (max-width: 576px) {
    .pagination-container {
        flex-direction: column;
    }

    .pagination-container button {
        width: 100%; /* ให้ปุ่มขยายเต็ม */
        margin-bottom: 5px;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ✅ ปรับแต่งพื้นหลัง Modal ให้เข้ากับธีมเว็บ */
.modal-content {
    background: linear-gradient(135deg, #fff0f5, #ffccd5); /* โทนชมพูอ่อน + พาสเทล */
    border: none;
    border-radius: 20px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}
/* ✅ ปรับแต่งพื้นหลัง Modal */
.stylish-modal {
    background: linear-gradient(135deg, #ffdde1, #ee9ca7); /* Gradient สีชมพูอ่อน */
    border: none;
    border-radius: 20px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

/* ✅ ปรับแต่งรูปโปรไฟล์ */
.profile-image-container {
    width: 240px;
    height: 240px;
    border: 5px solid #ff6f91; /* สีชมพูพาสเทลเข้ม */
    background: white;
    box-shadow: 0px 6px 15px rgba(255, 111, 145, 0.5); /* เงาสีชมพู */
    transition: transform 0.3s ease-in-out;
}


/* ✅ ปรับแต่งรูปให้เป็นวงกลม */
.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ✅ ปรับแต่งปุ่ม Instagram */
.contact-btn {
    background-color: #ff6f91; /* สีชมพู Instagram */
    border: none;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 8px rgba(255, 111, 145, 0.5);
    color: white;
}


/* ✅ ปรับแต่งข้อความ Contact */
#modalContact p {
    font-size: 1.1rem;
    color: #5a3e36; /* สีน้ำตาลอ่อน */
    font-weight: 500;
}


/* ✅ ปรับแต่งข้อความ */
#modalMessage {
    font-style: italic;
    font-size: 1.2rem;
    color: #5a3e36; /* น้ำตาลอ่อน */
    font-weight: 500;
}

/* ✅ ปรับแต่งชื่อ */
.modal-title {
    font-size: 1.8rem;
    color: #5a3e36;
}

/* ✅ ปรับตำแหน่งปุ่มปิด */
.btn-close {
    font-size: 1.5rem;
    opacity: 0.8;
}


/* ✅ แสดงข้อความ "💖 โสด!" ที่มุมขวาบน */
.promote-text {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10; /* ให้ข้อความอยู่ด้านบนสุด */
    font-size: 1rem;
    font-weight: bold;
    color: #ff4081; /* สีชมพูพาสเทล */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ✅ ปรับปุ่มไลค์ */
.like {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #ff6f91;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    user-select: none;
}


/* ✅ จัดตำแหน่งปุ่มไลค์ชิดซ้าย */
.like-wrapper {
    text-align: left;
}

/* ============================================
   User Info Display & Authentication Styles
   ============================================ */
.user-info-display {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 117, 143, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    max-width: 300px;
    z-index: 1060 !important;
}

.user-info-display .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.user-info-display .btn:hover {
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Authentication required message */
.auth-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1070;
    text-align: center;
    max-width: 400px;
}

/* Loading states for authentication */
.auth-loading {
    opacity: 0.6;
    pointer-events: none;
}

.auth-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

/* Responsive adjustments for user info */
@media (max-width: 768px) {
    .user-info-display {
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        left: auto !important;
        margin: 0 !important;
        max-width: 250px;
        font-size: 0.8rem;
    }
    
    .user-info-display .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}

