body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #ffffff; 
    /* background-color: #f4f4f4; #f2dccd*/
    /* background-color: #f8f0ee;
    background-image: url('/public/pattern-10.svg');
    background-repeat: repeat;
    background-size: 75px 75px; */
}

@media (max-width: 647px) {
    body {
        /* background-color: #f8f0ee; */
        background-image: none;
    }
}

@font-face {
    font-family: 'Amalfi Coast';
    font-style: normal;
    font-weight: 400;
    src: local('Amalfi Coast'), url('/public/Amalfi Coast.woff') format('woff');
}

@font-face {
    font-family: 'Hatolie';
    font-style: normal;
    font-weight: 500;
    src: local('Hatolie'), url('/public/Hatolie.woff') format('woff');
}

/* ==========================================================================
   Scroll To Top
   ========================================================================== */
   #scroll-to-top {
    background-color: #000000;
    display: none;
    width: 32px;
    height: 32px;
    text-align: center;
    font-size: 20px;
    border-radius: 50%;
    line-height: 33px;
    color: #fff;
    position: fixed;
    bottom: 93px;
    right: 31px;
    z-index: 999;
    outline: 11px solid #ffffff;
    box-shadow: 4px 4px 0px 11px rgba(190, 190, 190, 0.56);
    -webkit-box-shadow: 4px 4px 0px 11px rgba(190, 190, 190, 0.56);
    -moz-box-shadow: 4px 4px 0px 11px rgba(190, 190, 190, 0.56);
}
#scroll-to-top:hover {
    background-color: #d3d3d3;
    color: #fff;
}

.container {
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 33px;
    max-width: 600px;
}

.corner-image {
    width: 150px;
    height: auto;
}

.text-container {
    position: relative;
    z-index: 10; /* Memastikan teks tetap di atas */
    text-align: center;
    padding: 72px 20px 25px 20px;
}

.background-img {
    position: absolute; /* Memastikan gambar berada di belakang teks */
    width: 100%; /* Membuatnya responsif */
    max-width: 175px; /* Sesuaikan ukuran maksimum */
    opacity: 0.3; /* Efek transparan agar tidak mengganggu teks */
    top: 50%; /* Posisi tengah */
    left: 50%;
    transform: translate(-50%, -50%); /* Pusatkan gambar */
    z-index: -1; /* Pastikan gambar berada di belakang teks */
    opacity: 0.3;
    /* background-color: rgba(255, 0, 0, 0.3); */
}

@media only screen and (max-width: 600px) {
    .container {
        background: #fff;
        box-shadow: none;
        /* border-radius: 0; */
        padding: 0px 20px;
    }
    
    body {
      background-color: #fff;
    }
}

section.s1 {
    width: 100%;
    height: 100vh; /* Set tinggi menjadi satu layar penuh */
    display: flex;
    flex-direction: column; /* Pastikan kontennya tersusun dengan baik */
    justify-content: center; /* Pusatkan secara vertikal */
    align-items: center; /* Pusatkan secara horizontal */
    text-align: center; /* Pastikan teks di tengah */
    
    /* background-image: url('https://placehold.co/1920x1080?text=...'); */
    background-image: url('/public/img/header-background.jpg');
    background-size: cover; /* Pastikan gambar menutupi seluruh area */
    background-position: center; /* Pusatkan gambar */
    background-repeat: no-repeat; /* Hindari pengulangan gambar */
    color: white; /* Warna teks agar lebih kontras */
}

/* img {
    max-width: 100%;
    height: auto;
} */

/* Tambahan untuk mobile */
@media (max-width: 768px) {
    section.s1 {
        padding: 20px; /* Tambahkan padding agar konten tidak terlalu rapat */
    }
}

.label-morpishm {
    backdrop-filter: blur(23px); /* blur(7px) */
    -webkit-backdrop-filter: blur(20px); /* blur(5px) */
    padding: 25px 20px;
    border-radius: 7px;
    border: 3px solid #ffffff;
    max-width: 85%;
}

h1 {
    color: #333;
}
.countdown {
    font-size: 24px;
    color: #555;
}
img {
    max-width: 100%;
    border-radius: 10px;
}
.map {
    margin-top: 20px;
}
.maps-pin {
    background-color: #e04646;
    color: white;
    padding: 7px 15px;
    border-radius: 15px;
    font-size: 14px;
}
.maps-pin:hover {
    background-color: #e04646;
    color: white;
}

.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}
.music-button img {
    width: 30px;
    height: 30px;
}
button.music-button {
    display: flex;
    background-color: #ffffff;
    color: white;
    border: none;
    border-radius: 17px;
    cursor: pointer;
    padding: 11px;
    box-shadow: 7px 6px 0px -2px rgba(190, 190, 190, 0.56);
    -webkit-box-shadow: 7px 6px 0px -2px rgba(190, 190, 190, 0.56);
    -moz-box-shadow: 7px 6px 0px -2px rgba(190,190,190,0.56);
}

/* Countdown Event */
.countdown {
    text-align: center;
    margin: 40px auto;
}

.timer-box {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.time-unit {
    /* background-color: #ff6600; */
    color: white;
    padding: 10px;
    border-radius: 15px;
    width: 80px;
    text-align: center;
    background: #e35656;
    box-shadow: 20px 10px 31px #ee6666, -8px -9px 1px #ffd4d4;
    -webkit-box-shadow: 20px 10px 31px #ee6666, -8px -9px 1px #ffd4d4;;
    -moz-box-shadow: 20px 10px 31px #ee6666, -8px -9px 1px #ffd4d4;;
}

.time-unit span {
    font-size: 24px;
    font-weight: bold;
}

.time-unit p {
    margin: 5px 0 0;
    font-size: 14px;
    text-transform: uppercase;
}
/* End Countdown Event */

.monteserrat {
    font-family: 'Montserrat', sans-serif; /* Font modern dan elegan */
    letter-spacing: 0.2vw; /* Spasi antar huruf responsif */
}

/* Style untuk wedding-title */
.wedding-title {
    font-family: 'Montserrat', sans-serif; /* Font modern dan elegan */
    font-size: 1.7vw; /* Responsif berdasarkan lebar layar */
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.2vw; /* Spasi antar huruf responsif */
    text-transform: uppercase;
    text-shadow: 3px 3px 0 #0000006e, -1px -1px 0 #e25574, 1px -1px 0 #d2546f, -1px 1px 0 #c15b71, 1px 1px 0 #e25574;
    /* text-shadow: 3px 3px 0 #0000006e, -1px -1px 0 #9a4f5f, 1px -1px 0 #d2546f, -1px 1px 0 #c15b71, 1px 1px 0 #9a4f5f; */
    font-weight: 700;
    /* text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); */
    /* margin-bottom: 2vh;
    margin-top: 3vh; */
}
.wedding-greeting {
    font-family: 'Amalfi Coast', Sans-serif; /* Font modern dan elegan */
    font-size: small; /* Responsif berdasarkan lebar layar */
    font-weight: 600;
    color: #282828;
    letter-spacing: 0.2vw; /* Spasi antar huruf responsif */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    margin-top: 4vh;
    margin-bottom: 3vh;
}
.wedding-initial {
    font-family: 'Hatolie', Sans-serif; /* Font modern dan elegan */
    font-size: xxx-large; /* Responsif berdasarkan lebar layar */
    font-weight: 600;
    color: #282828;
    letter-spacing: 0.2vw; /* Spasi antar huruf responsif */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    margin-top: 4vh; /* Margin bawah yang responsif terhadap tinggi layar */
    margin-bottom: 3vh; /* Margin bawah yang responsif terhadap tinggi layar */
}

/* Style untuk wedding-names */
.wedding-names-1 {
    font-family: 'Playfair Display', serif; /* Font klasik untuk nama */
    font-size: 2.4vw; /* Ukuran lebih besar dan responsif */
    font-style: italic;
    color: #6b4226;
}

.wedding-names-2 {
    font-family: 'Playfair Display', serif; /* Font klasik untuk nama */
    font-size: 3.8vw; /* Ukuran lebih besar dan responsif */
    font-style: italic;
    color: #e35656; /* #944455 */
    text-shadow: 2px 0px 0 #ffffff, 4px 0px 0 #d7cece, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff, 1px 1px 0 #ffffff;
    margin-top: 8vh;
    margin-bottom: -8vh;
}

.wedding-names-3 {
    font-family: 'Playfair Display', serif; /* Font klasik untuk nama */
    font-size: 1.8vw; /* Ukuran lebih besar dan responsif */
    font-style: italic;
    color: #6b4226;
}

/* Responsif untuk ukuran layar kecil */
@media screen and (max-width: 768px) {
    .wedding-title {
        font-size: 20px; /* Ukuran lebih kecil untuk layar kecil */
    }

    .wedding-names-1, .wedding-names-3 {
        font-size: 26px; /* Nama tetap lebih besar */
    }

    .wedding-names-2 {
        font-size: 36px; /* Nama tetap lebih besar */
    }
}

@media screen and (max-width: 480px) {
    .wedding-title {
        font-size: 16px; /* Ukuran lebih kecil untuk layar sangat kecil */
    }

    .wedding-names-1, .wedding-names-3 {
        font-size: 22px; /* Nama tetap terlihat besar dan elegan */
    }

    .wedding-names-2 {
        font-size: 33px; /* Nama tetap terlihat besar dan elegan */
    }
}

.wedding-group {
    margin: 20px auto;
    max-width: 800px;
}

.wedding-group h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: #6b4226;
}

/* Wedding Gift */
.bank-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    background: #f7f7f7;
    box-shadow: 7px 6px 0px -2px rgba(190, 190, 190, 0.56);
    -webkit-box-shadow: 7px 6px 0px -2px rgba(190, 190, 190, 0.56);
    -moz-box-shadow: 7px 6px 0px -2px rgba(190,190,190,0.56);
}

.bank-info {
    text-align: left;
}

.bank-info p {
    margin: 5px 0;
    color: #333;
}

.bank-logo img {
    width: 100px;
    height: auto;
    border-radius: 5px;
}

.copy-btn {
    margin-top: 10px;
    background-color: #6b4226;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.copy-btn:hover {
    background-color: #4a2c1c;
}
/* End Wedding Gift */

/* Couple */
.couple {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.person {
    text-align: center;
    max-width: 220px;
    justify-items: center;
}

.photo-frame {
    width: 190px;
    height: 190px;
    position: relative; /* Memastikan posisi relatif untuk layering */
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-frame .frame {
    width: 190px;
    height: 190px;
    position: absolute; /* Frame selalu berada di depan */
    z-index: 2; /* Pastikan lebih tinggi dari foto */
}

.photo-frame .photo {
    width: 150px;
    border-radius: 50%;
    position: absolute;
    z-index: 1; /* Foto berada di bawah frame */
    top: 7%;
}

.person h3 {
    /* margin: 15px 0; */
    font-size: 19px;
    text-transform: uppercase;
}

.social-icons a {
    margin: 3px;
    font-size: 23px;
    color: #333;
    text-decoration: none;
    background-color: #f3f3f3;
    padding: 5px 5px 3.5px 5px;
    border-radius: 7px;
}

.social-icons a:hover {
    color: #007BFF;
}

/* Responsiveness */
@media (max-width: 600px) {
    .couple {
        flex-direction: column;
        align-items: center;
    }
}
/* End Couple */

/* Gallery */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    justify-content: center;
}

.gallery-container img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.gallery-container img:hover {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .gallery-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Menampilkan 2 gambar per baris */
        gap: 12px; /* Jarak antar gambar */
    }
}

/* Modal Popup */
.modal {
    display: none;
    justify-content: center; /* Pusatkan secara horizontal */
    align-items: center; /* Pusatkan secara vertikal */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 89%);
}

.modal-content {
    max-width: 75%;
    margin-top: 60px;
    margin-right: auto;
    margin-left: auto;
    max-height: 75vh;
    background-color: transparent;
    padding: 0px 7px;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 25px; /* Atur jarak dari atas */
    right: 25px; /* Atur jarak dari kanan */
    font-size: 27px;
    color: white;
    cursor: pointer;
    background: rgb(255 55 55 / 93%); /* Background agar lebih terlihat */
    padding: 2px 7px;
    border-radius: 5px;
    opacity: .7;
}

/* Responsiveness */
@media (max-width: 600px) {
    .gallery-container {
        flex-direction: column;
        align-items: center;
    }
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}
/* End Gallery */

/* Wedding event  */
.wedding-details {
    text-align: center;
    padding: 0px 20px 20px 20px;
    font-family: "Playfair Display", serif; /* Font elegan */
}

.wedding-details h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #D291BC;
}

.details-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.detail-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.detail-item h3 {
    font-size: 1.1rem;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.detail-item p {
    font-size: 1.2rem;
    color: #666;
    margin-top: 1rem;
    font-family: 'Montserrat', sans-serif;
}

/* Responsif untuk layar kecil */
@media (max-width: 600px) {
    .details-container {
        grid-template-columns: 1fr;
    }

    .wedding-details h2 {
        font-size: 1.8rem;
    }
}
/* Wedding event  */

/* Slide Photo Footer */
.image-slider {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    background-color: #f9f9f9;
}

.slider-track {
    display: flex;
    gap: 10px;
    animation: slide 60s linear infinite;
    width: calc(100px * 9); /* Sesuaikan jumlah gambar */
}

/* Gambar tetap berbentuk persegi */
.slider-track img {
    width: 100px; /* Ukuran gambar tetap */
    aspect-ratio: 1 / 1; /* Membuat gambar berbentuk persegi */
    object-fit: cover; /* Menyesuaikan gambar dalam kotaknya */
    border-radius: 8px;
}

/* Mobile: 4 gambar terlihat */
@media (max-width: 600px) {
    .image-slider {
        width: 100%;
    }
}

/* Desktop: 6 gambar terlihat */
@media (min-width: 601px) {
    .image-slider {
        width: 100%;
    }
}

/* Animasi agar slider terus berjalan */
@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); } /* Geser penuh seluruh track */
}
/* End Slide Photo Footer */