:root {
    --primary-color: #766257;
    --secondary-color: #EDDACD;
    --third-color: #766257;
    --fourth-color: rgba(214, 204, 177, 0.5);
    --primary-font: "Updock", cursive;
    --secondary-font: "Old Standard TT", serif;
}

body {
    font-family: var(--secondary-font);
    margin: 0;
}

/* ........................COVER.................. */


.invitation-cover {
    /* position: relative; */
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('image1.jpg'); /* Desktop background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: auto;
    text-align: center;
    padding: 24px;
    overflow-y: hidden;
}

.invitation-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.65),
    rgba(255,255,255,0.3),
    rgba(255,255,255,0.0)
  );
}

.cover-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 200px;
    align-items: center;
    overflow-y: hidden;
}

.invitation-content {
    display: none;
    flex-direction: column;
    width: 100%;
}

.couple-name-cover {
  font-size: 3em;
    font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 14px 0;
  font-family: var(--primary-font);
}

.guest {
    font-size: 18px;
    font-weight: 500;
    margin: 16px 0 6px;
}

.invite-text {
font-size: 12.5px;
  line-height: 1.3;
    opacity: 0.75;
  max-width: 280px;
  margin-bottom: 22px;
}

#openButton {
background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(139,94,60,0.6);
  opacity: 0.8;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--primary-color);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

#openButton:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.cover-label {
  font-size: 9.5px;
  letter-spacing: 0.35em;
  opacity: 0.65;
  margin-bottom: 10px;
}

.cover-salutation {
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.7;
  margin-top: 22px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* NAVIGASI */
nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 999;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 20px; /* Jarak antar ikon */
    justify-content: center;
    margin: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 24px; /* Ukuran ikon */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: color 0.3s;
}


/* ................................SECTION........................ */
.section {
    font-family: var(--secondary-font);
    font-weight: 400;
    font-style: normal;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}
.section h2 {
    font-family: var(--primary-font);
    font-weight: 400;
    font-style: normal;
    font-size: 3.8em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    color: black;
    text-decoration: underline;
}
/* .......SECTION 1........... */

#section1 {
    position: relative;
    background-image: url('image1.jpg'); /* Desktop background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 90vh;
    padding: 0;
    overflow: hidden;
}

#section1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Gelap transparan */
    z-index: 1; /* Tetap di atas background */
}

#lottie-animation {
    position: absolute;
    top: 0; /* Letakkan di bagian atas */
    left: 50%;
    transform: translateX(-50%);
    width: 100%; /* Sesuaikan ukuran */
    height: auto; /* Sesuaikan ukuran */
    z-index: 99; /* Pastikan di atas elemen lain */
}

.text-container {
    position: relative; /* Pastikan teks tetap di atas */
    z-index: 2; /* Menjadikan teks lebih di atas dibanding gambar */
    margin: 20px;
    padding: 4px 20px;
    border-radius: 10px; /* Add border radius */
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.couple-name {
    font-size: 3.8em;
    color: white;
    font-family: var(--primary-font);
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 0;
}

.date-section1 {
    margin: 0;
    padding: 0;
    font-family: var(--secondary-font);
    font-weight: 400;
    font-style: normal;
    color: white;
}

.decoration {
    position: absolute;
    bottom: 0; /* Posisikan di bawah */
    left: 50%;
    transform: translateX(-50%); /* Pusatkan */
    width: 100%; /* Atur ukuran */
    opacity: 0.8;
    z-index: 1; /* Pastikan gambar di bawah teks */
}


/* ..........SECTION 2......... */
#section2 {
    background-color: var(--third-color); /* Change background color if needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Align items to the top */
    padding: 20px;
    color:white;
    position: relative; /* Add relative positioning to section */
    overflow: hidden;
}

.quran-verse {
    max-width: 700px;
    padding: 10px;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.verse {
    font-size: 24px;
    line-height: 1.6;
    font-weight: bold;
}

.translation {
    font-size: 18px;
    margin-top: 10px;
    font-style: italic;
}

.surah {
    font-size: 16px;
    margin-top: 10px;
}

/*.............. COUNTDOWN.............. */

#countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}


.unit {
    text-align: center;
    margin: 20px;
    display: inline-block;
    padding: 10px; 
}

.unit span {
    display: block;
    font-size: 24px;
}

.number {
    font-size: 36px;
    font-weight: bold;
    color: white; /* Number color */
}

.label {
    font-size: 18px;
    color: white; /* Label color */
}

#birds-animation {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: auto;
    pointer-events: none;
    z-index: 1;
}

/* .............section 4 profile........... */
#section4 {
    padding-top: 20px;
    background-image: url('background2.jpg'); /* Mobile background image */
    background-size: cover;
    background-position: center;
    color:black;
    position: relative;
    text-align: center;
}

.profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.profile {
    position: relative;
    margin: 40px;
    text-align: center;
    min-width: 350px;
}

.flower-bg1, .flower-bg2 {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; /* Sesuaikan dengan ukuran profil */
    height: auto;
    z-index: 1; /* Pastikan ada di belakang foto */
}

.flower-bg1 img {
    width: 90%;
    height: 100%;
    object-fit: cover;
}

.flower-bg2 img {
    width: 90%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.profile-img {
    position: relative;
    width: 250px; /* Sesuaikan ukuran foto */
    height: auto;
    object-fit: cover; 
}

.profile-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

.profile-info h3 {
    margin-bottom: 5px;
    font-size:1.4em;
}

.profile-info p {
    margin-bottom: 10px;
}

.instagram-button {
    padding: 8px 16px;
    background-color: var(--third-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.instagram-button:hover {
    background-color: var(--secondary-color);
    color: black;
}

/* .............SECTION 5 WEDDING DETAIL............. */
#section5 {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    padding: 50px 10px;
    background-color: var(--third-color);
    color:white;
    position: relative;
    overflow-y: hidden;
}

#section5 h2 {
    color: white;
    text-decoration: underline;
}

.wedding-detail {
    display: flex;
    justify-content: space-between;
}

.event {
    position: relative;
    flex: 1;
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.event-item {
    width:100%;
    max-width: 150px;
}

.event-item i {
    font-size: 40px;
}

.event-detail {
    display: flex;
    margin: 70px 0;
    width: 100%;
}

.event-item {
    padding: 10px;
}

.event-item:nth-child(2) {
    border-left: 2px solid white; /* Garis vertikal */
}

.event-item1 {
    font-size: 14px;
    margin-top: 30px;
    margin-bottom:  0;
}

.event-item2 {
    font-size: 12px;
    margin: 0;
    padding: 0;
}

.event h3 {
    margin-bottom: 10px;
    font-size: 2em;
    text-decoration: underline;
}

.location-button {
    margin-top: 50px;
    padding: 10px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.location-button:hover {
    background-color: var(--secondary-color);
    color: black;
}

#dot-animation {
    position: absolute;
    top: 20%; /* Letakkan di bagian atas */
    left: 50%;
    transform: translateX(-50%);
    width: 100%; /* Sesuaikan ukuran */
    height: auto; /* Sesuaikan ukuran */
    z-index: 99; /* Pastikan di atas elemen lain */
    opacity: 30%;
}



/* .............SECTION 7 MESSAGE........ */

/* General section styling */
#section7 {
    background-image: url('background2.jpg');
    color: black;
    padding: 70px 20px;
    margin: 0;
    height: auto;
}

#section7 h2 {
    color: black;
    text-align: center;
}


/* Form styling */
#rsvpForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

#rsvpForm input,
#rsvpForm textarea {
    width: 100%;
    max-width: 350px;
    margin: 10px 0;
    padding: 10px;
    font-size: 16px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#rsvpForm button {
    font-family: var(--secondary-font);
    font-weight: 400;
    font-style: normal;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    font-size: 16px;
    background-color:var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#rsvpForm button:hover {
    background-color: var(--secondary-color);
    color: black;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Message list styling */
#messages {
    margin-top: 20px;
    max-height: 400px; /* Atur tinggi maksimal, misalnya 200px */
    overflow-y: auto; /* Tambahkan scroll vertikal */
    max-width: 350px;
    margin: 20px auto;
    border: 1px solid var(--primary-color); /* Tambahkan border untuk kotak pesan */
    padding: 10px; /* Tambahkan padding */
}

.message-item {
    color: black;
    border: 1px solid white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.message-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.message-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-content {
    font-size: 12px;
    line-height: 1.5;
    text-align: justify;
}

.message-item h4 {
    /* font-family: var(--primary-font); */
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    /* text-decoration: underline; */
}

.message-time {
    font-size: 10px;
    font-style: italic;
    color: #b8b8b8;
    margin: 0;
}


/* CSS untuk mengganti font placeholder */
#formGuestName::placeholder,
#guestMessage::placeholder {
    font-family: "Old Standard TT", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px; /* Ganti dengan ukuran font yang diinginkan */
    color: #888; /* Ganti dengan warna yang diinginkan */
}
/* CSS untuk mengganti font input */
#formGuestName,
#guestMessage {
    font-family: "Old Standard TT", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px; /* Ganti dengan ukuran font yang diinginkan */
    color: #333; /* Ganti dengan warna yang diinginkan */
}

/* ...........SECTION 8............. */
#section8 {
    font-family: var(--secondary-font);
    font-weight: 400;
    font-style: normal;
    background-color: var(--third-color); /* Mobile background image */
    text-align: center;
    color: white; /* Text color */
    height: auto; /* Set height to 100% of viewport height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    gap: 50px;
    padding: 30px;
    overflow-y: hidden;
}

#section8 h2 {
    position: relative;
    z-index: 2;
    font-family: var(--primary-font);
    font-weight: 700;
    font-style: normal;
    font-size: 3.2em;
    color: white;
}

#section8 p {
    font-family: var(--secondary-font);
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
}

.bank-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 50px;
}

.gift-details p {
    margin: 10px 0;
}

.bank-item {
    position: relative;
    background-image: url('/assets/ilustrasi-1/new-background.jpeg');
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    margin: 50px 0;
    padding: 20px;
    box-shadow: 2px 2px 4px #d0d0d0, -2px -2px 4px #ffffff;
    border-radius: 20px;
    min-width: 300px;
    min-height: 180px;
}

.bank-data {
    position: absolute;
    left: 20px;
    bottom: 50px;
    color: black;
    text-align: left;
}

.bank-name {
    text-transform: uppercase;
}


.bank-logo1 {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 160px;
    height: auto;
}

.chip {
    width: 35px;
    position: absolute;
    top: 70px;
    left: 20px;
}

.copyButton {
    padding: 10px 20px;
    background-color: var(--third-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: absolute;
    bottom: 10px;
    right: 20px;
}

.copyButton:hover {
    background-color: var(--secondary-color);
    color: black;
}

/* THANK-YOU SECTION */
.thank-you {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background-image: url('image2.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    margin: 0;
    padding: 50px 20px;
    line-height: 1;
}

/* Overlay */
.thank-you::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Gelap transparan */
    z-index: 1;
}

.thank-you h2 {
    position: relative;
    z-index: 2;
    font-family: var(--primary-font);
    font-weight: 700;
    font-style: normal;
    font-size: 3.2em;
    margin-bottom: 10px;
    color: white;
}

.thank-you p {
    position: relative;
    z-index: 2;
    font-family: var(--secondary-font);
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
}

.name-decor {
    position: relative;
    z-index: 2;
    width: 250px; /* Sesuaikan ukuran foto */
    height: auto;
    object-fit: cover;
    margin: 0 0 20px 0;
}


/* Footer */

footer {
    background-color: white;
    padding-bottom: 70px;
    padding-top: 15px;
}
  
.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 20px;
}
  
.logo img {
    height: 70px;
}
  
.social-media-ncp {
    display: flex;
    gap: 20px;
    background-color: #F9F7F2;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #E8A6A6;
}
  
.social-icon {
    color: #2C3E50; /* Warna ikon */
    font-size: 24px; /* Ukuran ikon */
    margin: 0 10px;
    text-decoration: none; /* Menghilangkan garis bawah */
}
  
.social-icon:hover {
    color: #E8A6A6; /* Warna saat hover */
}


/* ...............  ANIMATION............... */
.fade-in {
    opacity: 0;
    transition: opacity 5s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

.fade-slide {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.fade-slide.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ...............  ANIMATION............... */
.fade-in {
    opacity: 0;
    transition: opacity 5s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

.fade-slide {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.fade-slide.visible {
    opacity: 1;
    transform: translateY(0);
}

/* .....................AUDIO CONTROL.................... */

.audio-controls {
    position: fixed;
    top: 60%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 999;
    text-align: center;
    display: none;
}

#playPauseButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 20px;        /* Ukuran ikon Font Awesome */
    color: var(--secondary-color);           /* Warna ikon */
    background-color: var(--primary-color); /* Latar belakang jika diinginkan */
    border-radius: 50%;     /* Membuat bentuk bulat */
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, color 0.3s;
}

.play-btn.fa-play, 
.play-btn.fa-pause {
  display: block;  /* ini penting */
}



/* SEPERATOR  */

.separator {
    flex-direction: row;
    display: flex;
    align-items: center;
    position: relative;
    margin: 20px 0;
}

.separator::before, 
.separator::after {
    content: '';
    height: 1px; /* Membuat garis horizontal */
    flex-grow: 1;
    width: 100px;
    background-color: black;
}

/* ......................MEDIA QUERY..................... */
@media (max-width: 600px) {
    /* ...........COVER.................*/
    .invitation-cover {
        overflow-y: hidden;
        background-image: url('/assets/ilustrasi-1/new3.jpeg');
    }
    .couple {
        font-size: 3.8em;
    }
    .guest {
        font-size: 1.5em;
    }

    .copyButton {
        font-size: 0.9em;
        padding: 8px 16px;
    }

    /* SECTION1 */
    #section1 {
        background-image: url('/assets/ilustrasi-1/new1.jpeg');
    }

    /* SECTION 2 */
    #section2 .quran-verse {
        max-width: 350px;
    }
    .verse {
        font-size: 20px;
        line-height: 1.8;
    }
    .translation {
        font-size: 13px;
    }
    /* SECTION3 */
    .unit {
        margin: 5px;
        max-width: 80px;
    }

    .unit span {
        font-size: 20px;
    }
    
    .number {
        font-size: 18px;
    }
    
    .label {
        font-size: 12px;
    }

    /* SECTION 4 */
    #section4 {
        background-image: url('/assets/ilustrasi-1/new-background.jpeg');
        background-position: center;
        background-size: cover;
    }

    .profile-container {
        flex-direction: column;
    }
    /* SECTION 5 */
    .wedding-detail {
        flex-direction: column;
        align-items: center;
    }
    .event {
        margin-bottom: 20px;
        margin-left: 0;
        margin-right: 0;
    }
    /* SECTION 6 */
    #section7 {
        background-image: url('/assets/ilustrasi-1/new-background.jpeg');
             background-position: center;
        background-size: cover;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    /* SECTION8 */
    .thank-you {
        padding: 10px 20px;
        line-height: 1;
        background-image: url('/assets/ilustrasi-1/new2.jpeg');
    }

    .bank-container {
        flex-direction: column;
    }

}
