/* ........ROOT......... */
:root {
    /*--background-mobile: url('Mobile\ Background.jpg');  Ganti dengan path gambar kamu */
    --primary-color: #F97170;
    --secondary-color: #F8C7CE;
    --nav-hover: #C0C5D2;
    --overlay-bg-white: rgba(255, 255, 255, 0.5); /* Overlay background color */
}

/* .......ANIMASI........ */
/* Animasi pulse */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* Kelas untuk animasi pulse */
.pulse {
    animation: pulse 5s infinite; /* Durasi 1.5 detik, ulangi terus */
}

/* Animasi fade-in */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Kelas untuk animasi fade-in */
.fade-in {
    animation: fadeIn 1.5s ease-in; /* Durasi 1 detik */
}

/* Animasi fade-out */
@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Kelas untuk animasi fade-out */
.fade-out {
    animation: fadeOut 1s ease-out; /* Durasi 1 detik */
}

/* .........MUSIC......... */
/* Style untuk tombol play/pause */
.play-pause {
    position: fixed;
    top: 20px; /* Jarak dari atas */
    left: 20px; /* Jarak dari kiri */
    font-size: 20px;
    color: white; /* Warna ikon */
    padding: 9px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000; /* Agar berada di atas elemen lain */
    background-color: var(--primary-color);
    width: 35px;
    height: 35px;
}

.play-pause i {
    font-size: 20px;
    transition: transform 0.3s; /* Transisi untuk ikon */
}

.play-pause.active i {
    transform: scale(1.2); /* Efek pembesaran saat tombol aktif */
}

/* background */
#bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100vw;
    height: 100vh;
  }
    
/*...........ALL...........*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: var(--background-mobile);
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    font-family: "Old Standard TT", serif;
    font-weight: 400;
    font-style: normal;
}

h1, h2 {
    font-size: 2.5em;
    font-family: "Style Script", cursive;
    font-weight: 400;
    font-style: normal;
}

p {
    font-family: "Old Standard TT", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.8em;
}

/* .........FRAME.........*/
.frame {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 320px;
    height: 75vh;
    background-color: transparent; /* Adjust to match your design */
    border-radius: 150px;
    border: 2px solid var(--secondary-color); /* Add border with 5px width and your desired color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    perspective: 1200px;
    padding: 15px; /* Add padding to prevent content from touching the border */
    overflow: hidden;
    gap: 20px;
}

/* ........BUNGA........... */
.flower {
    position: absolute;
    width: 165px; /* Adjust based on the size you need */
    height: auto;
}

/* ........BUNGA DEPAN.......*/
.top-right {
    top: 10%;
    right: 5%;
    z-index: 2;
    /* margin-right: 35%; */
}

.bottom-left {
    bottom: 10%;
    left: 5%;
    z-index: 2;
    /* margin-left: 35%; */
}

/* ......BUNGA BELAKANG......*/
.back-right {
    top: 1;
    right: 0;
    z-index: -1;
}

.back-left {
    bottom: 1;
    left: 0;
    z-index: -1;
}

/* .....NAVIGATION........... */
nav {
    position: fixed;
    bottom: 0;
    left: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 350px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    text-align: center;
    background-color: var(--overlay-bg-white);
    z-index: 1000;
}
    
nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 6px; /* 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: 20px; /* Ukuran ikon */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    transition: color 0.3s;
}
    
nav ul li a:hover {
    color: var(--nav-hover);
}

/* HINT */
.nav-hint {
  position: fixed;
  bottom: 40px; /* posisinya di atas nav */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 20px;
  z-index: 1100;
  pointer-events: none;
  opacity: 1;
  animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
  0%, 80% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/*..........COVER......... */
.wedding-of {
    margin-bottom: 10px;
}

.yth {
    margin-top: 10px;
}

#guest-name {
    font-size: 1.2em;
    margin-top: 10px;
}

.and {
    font-family: "Style Script", cursive;
    font-weight: 400;
    font-style: normal;
}

 button {
    font-family: "Old Standard TT", serif;
    font-weight: 400;
    font-style: normal;
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 1em;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 15px;
    transition: background-color 0.3s;
    position: relative;
    z-index: 3;
}

button:hover {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}


/* .......SECTION........... */
@keyframes zoomInOut {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
}

.content-section {
    animation: zoomInOut 3s;
    transform-origin: center;
    display: none; /* Keep hidden initially */
    flex-direction: column;
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
}

.content {
    text-align: center;
    color: black;
    position: relative;
    z-index: 3;
}

/* SECTION 1 */
#section1 {
    text-align: center;
}

.bismillah img {
       max-width: 180px;
    margin-bottom: 10px;
}

/* .......QURAN........ */
.quran-verse h2 {
    font-size: 1.1em;
    margin: 10px 0;
    direction: rtl;
    line-height: 1.6;
    font-family: "Lateef", serif;
    font-weight: 300;
    font-style: normal;
}

.quran-verse p {
    font-size: 0.6em;
    margin-top: 10px;
    padding: 0 15px;
}

/*....COUNTDOWN.......*/
#countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
    
.unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}
    
.unit span:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background-color: var(--primary-color);
    padding: 10px;
    margin-bottom: 10px;
    width: 30px;
    height: 30px;
}
    
.unit span:last-child {
    font-size: 0.7rem;
}

/* ........SECTION 2............ */
#section2 {
    text-align: center;
}

.profile-section h1 {
    margin-bottom: 10px;
}

.profile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
}

.profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.profile-info {
    text-align: left;
}

.profile-name {
    display: flex;
    align-items: center;
}

.profile-info h2 {
    font-size: 1.2em;
    margin: 0;
}

.profile-info p {
    font-size: 0.9em;
    margin: 5px 0;
}

.instagram-link {
    color: #c13584;
    font-size: 1.2em;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.instagram-link:hover {
    transform: scale(1.2);
}

/*........SECTION 3.........*/
.wedding-event {
    position: relative;
    z-index: 3;
    margin-bottom: 25px;
}

.wedding-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--secondary-color);
    border-top: 1px solid var(--secondary-color);
    padding: 6px;
}

.wedding-details h1
.wedding-details h2 {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: "Old Standard TT", serif;
    font-size: 20px;
    text-align: center;
    margin-bottom: 10px;
}

.wedding-date {
    text-align: center;
    margin-right: 20px;

    padding: 6px;
}

.wedding-date .day {
    font-size: 13px;
    margin: 0;
}

.wedding-date .date {
    font-size: 30px;
    font-weight: bold;
    margin: 0;
}

.wedding-date .month-year {
    font-size: 12px;
    margin: 0;
}

.location-map {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.location-map p {
    font-size: 13px;
    margin: 0;
}

.map-button {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 13px;
}

.map-button i {
    margin-right: 6px; /* Spasi antara ikon dan teks */
}

.map-button:hover {
    color: var(--primary-color);
    background-color: white;
}

/*........SECTION 4...........*/
#section4 {
    padding: 100px 20px;
    text-align: center;
}

#section4 h1 {
    position: relative;
    z-index: 3;
}
    
#rsvpForm {
    max-width: 600px;
    margin: 0 auto;
}
    
#rsvpForm .form-group {
    margin-bottom: 5px;
}
    
#rsvpForm input, #rsvpForm textarea, #rsvpForm select {
    font-family: "Old Standard TT", serif;
    font-weight: 400;
    font-style: normal;
    width: 100%;
    padding: 8px;
    font-size: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    position: relative;
    z-index: 3;
    background-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
    
#rsvpForm button {
    padding: 6px 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}
    
#rsvpForm button:hover {
    background-color: #f3f3f3;
    color: var(--primary-color);
}
   

/* ......SECTION 5............ */
#section5 h1 {
    margin-bottom:15px;
}

.messages-box {
    width: 100%;
    max-height: 230px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(249, 113, 112, 0.5);
}

.message-item {
    width: 100%;
    max-width: 500px;
}

    
.message-item {
    background-color: transparent;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 5px;
    border-left: 2px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

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

.message-info i {
    font-size: 20px;
    color:var(--primary-color);
}
    
.message-info h4 {
    font-size: 1.1em;
    margin-bottom: 0;
    font-family: "Old Standard TT", serif;
    font-weight: 400;
    font-style: normal;
}

.attendance-status {
    margin-bottom: 4px;
    color: var(--nav-hover);
    font-style: italic;
    font-size: 0.7em;
}

.message-content {
    margin: 6px 0;
    font-family: "Old Standard TT", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.9em;
}

.message-time {
    color: var(--nav-hover);
    font-size: 0.7em;
}

/*..........SECTION 6.......... */
#section6 h2 {
    margin-bottom: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(39px, 1fr)); /* Mengurangi ukuran minimum menjadi 100px */
    gap: 8px; /* Mengurangi jarak antar-kotak jika diinginkan */
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Sesuaikan jika ingin sudut yang lebih kecil */
    cursor: pointer;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--secondary-color);
}

.gallery-item.span-2 {
    grid-column: span 2; /* Membuat item ini mengambil 2 kolom */
}


/* Lightbox styling */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10000;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

.lightbox .close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.lightbox .prev, .lightbox .next {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }

/* ...SECTION 7...... */
#section7 h2 {
    margin-bottom: 30px;
}

.bank-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.bank-item {
    text-align: center;
    margin-top: 20px;
    padding: 20px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--secondary-color);
}

.bank-item:hover {
    transform: scale(1.05);
}

.bank-item img {
    width: 100px; /* Sesuaikan ukuran logo */
    height: auto;
    margin-bottom: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

.close-bank {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: white;
}

/* SECTION 8 */
#section8 h2 {
    margin-bottom: 30px;
}

#section8 P {
    margin-bottom: 20px;
}

/* Footer */
footer {
    padding-bottom: 15px;
    padding-top: 50px;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 20px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--secondary-color);
  }
  
  .logo img {
    height: 25px; /* Atur tinggi logo */
  }
  
  .social-media {
    display: flex;
  }
  
  .social-icon {
    color: var(--primary-color); /* Warna ikon */
    font-size: 16px; /* Ukuran ikon */
    margin-left: 15px; /* Jarak antar ikon */
    text-decoration: none; /* Menghilangkan garis bawah */
  }
  
  .social-icon:hover {
    color: var(--secondary-color); /* Warna saat hover */
  }

/*.......MOBILE DISPLAY...... */
@media (max-width: 600px) {
    /* ........BUNGA DEPAN.......*/

    .quran-verse h2 {
        font-size: 1.1em;
        }

    .quran-verse p {
        font-size: 0.6em;
    }

    #section2 {
        padding: 15px;
    }

    .profile-photo {
        margin: 0 0 10px 0;
    }

    .profile-info h2 {
        font-size: 1.3em;
    }

    .profile-info p {
        font-size: 0.6em;
    }
}
