:root {
    --primary-color: #241F27;
    --nav-color: #ADADB6;
    --prata-font: "Prata", serif;
    --poppins-font: "Lato", sans-serif;
    --great-vibes-font: "Great Vibes", cursive;
    --playwrite-font: "Playwrite SK", cursive;
    --amiri-font: "Amiri", serif;
    --cover-mobile: url('/assets/wedding-couples/fajrul-laeli/gallery4.jpeg');
    --cover-desktop: url('/assets/wedding-couples/fajrul-laeli/share.jpeg');
}

body {
    font-family: var(--poppins-font);
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* COVER */

#invitationCover {
    background-image: var(--cover-desktop);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    color: white;
}

#invitationCover .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#invitationCover > *:not(.overlay) {
    position: relative;
    z-index: 2;
}

#invitationCover h1 {
    font-size: 1em;
    margin-bottom: 20px;
    font-family: var(--poppins-font);
    font-weight: 300;
    font-style: normal;
}

#invitationCover h2 {
    font-family: var(--great-vibes-font);
    font-weight: 700;
    font-style: normal;
    margin: 5px 0;
    font-size: 3em;
}

#invitationCover p {
    font-size: 0.8em;
    margin: 0;
    font-family: var(--poppins-font);
}

.couple-name-container {
    margin: 15px 0;
}

#guestName {
    font-size: 1em;
    margin: 15px 0;
}

.invite-text {
    font-size: 0.8em;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.1;
    padding: 0 20px;
}

#openButton {
    margin-top: 30px;
    padding: 10px 10px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--poppins-font);
    font-weight: 400;
    font-style: normal;
}

#openButton i {
    font-size: 20px;
}

.transparentButton {
    padding: 10px 20px; /* Mengatur padding untuk tombol */
    font-size: 16px; /* Mengatur ukuran font */
    cursor: pointer; /* Mengubah kursor saat hover */
    border: 2px solid white; /* Mengatur border tombol */
    background: transparent; /* Mengatur latar belakang tombol menjadi transparan */
    color: white; /* Mengatur warna teks tombol */
    border-radius: 5px; /* Mengatur sudut tombol */
    transition: background-color 0.3s, color 0.3s; /* Menambahkan efek transisi */
}

.transparentButton:hover {
    background-color: var(--nav-color); /* Mengatur latar belakang saat hover */
    color: white; /* Mengatur warna teks saat hover */
}


/* NAVIGASI */
nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-color);
    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: 20px; /* Ukuran ikon */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f2f2f2; /* Warna teks saat hover */
}


/* SECTION */

#invitationContent {
    display: none;
    flex-direction: column;
}

section {
    overflow-x: hidden;
}

section h2 {
    margin-top: 0;
    font-size: 2em;
    text-align: center;
    font-family: var(--prata-font);
    font-weight: 400;
    font-style: normal;
}

/* SECTION 1 HOME*/

#section1 {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto; /* Mengatur tinggi section agar memenuhi viewport */
    padding: 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    font-family: var(--poppins-font);
    font-weight: 400;
    font-style: normal;
    overflow-y: hidden;
}

#section1 > * {
    z-index: 2;
}

#section1 h1 {
    margin-bottom: 30px;
    font-size: 1em;
}

#section1 h2 {
    font-family: var(--great-vibes-font);
    font-weight: 700;
    font-style: normal;
    margin: 5px 0;
    font-size: 3em;
}

#section1 h3 {
    font-family: var(--poppins-font);
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 1.6em;
}

#section1 p {
        font-family: var(--playwrite-font);
        font-optical-sizing: auto;
        font-weight: 300;
        font-style: normal;
}

#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: 1; /* Pastikan di atas elemen lain */
    opacity: 30%;
}

.invited {
    font-size: 0.7em;
}

.info {
    flex: 1; /* Membiarkan konten info mengisi ruang yang tersisa */
}

.photo-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.photo {
    width: 230px; /* Atur ukuran foto sesuai kebutuhan */
    height: auto;
    border-radius: 50px;
    /* border-top-right-radius: 80px;
    border-bottom-left-radius: 80px; */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#countdown {
    font-family: var(--playwrite-font);
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 0.6em;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Jarak antar item countdown */
}

.unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unit div {
    padding: 2px;
}

.unit #days,
.unit #hours,
.unit #minutes,
.unit #seconds {
    font-size: 1.6em; /* Ukuran angka */
}

.unit .label {
    font-size: 1em; /* Ukuran keterangan */
    color: white;
}

#raguCount {
    display: none;
}

/* SECTION 2 PROFILE*/

#section2 {
    padding: 40px 20px;
    text-align: center;
    background-image: url('background2.jpeg');
    background-size: cover;
    background-position: center;
    height: auto;
    color: var(--primary-color);
}

#section2 h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.role {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 2.2em;
    font-weight: bold;
    font-family: var(--playwrite-font);
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.info2 {
    text-align: right;
}

.initial-circle {
    font-family: var(--great-vibes-font);
    font-weight: 400;
    font-style: normal;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 7em;
    font-weight: bold;
    margin-bottom: 10px; /* Beri jarak antara inisial dan nama */
}

.name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.name-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-end;
}

.name-container a {
    color: var(--primary-color);
    font-size: 1.3em;
}

.parents {
    font-size: 0.8em;
    line-height: 1.4;
}

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

.separator::before, 
.separator::after {
    content: '';
    background-color: var(--primary-color);
}

.separator span {
    margin: 0 10px;
    font-size: 1em;
    color: var(--primary-color);
}

/* Vertikal untuk layar besar (desktop) */
@media (min-width: 768px) {
 
    /* SECTION 2 */
    .separator {
        flex-direction: column;
        height: 100px; /* Atur tinggi sesuai kebutuhan */
    }

    .separator::before, 
    .separator::after {
        width: 1px; /* Membuat garis vertikal */
        flex-grow: 1;
        height: auto;
    }

    .separator span {
        margin: 10px 0; /* Jarak antara teks dan garis */
    }

}

/* SECTION 3 AYAT AL-QUR'AN*/
#section3 {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    height: auto;
}

#section3 h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.verse-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.verse {
    font-size: 1.2em;
    margin-bottom: 20px;
    direction: rtl; /* Mengatur teks Arab agar tampil dari kanan ke kiri */
    font-family: var(--amiri-font);
    font-weight: 400;
    font-style: normal;
    line-height: 3;
}

.translation {
    font-size: 0.7em;
    font-style: italic;
    line-height: 1.5;
}

.namasurah {
    margin-top: 10px;
    font-size: 0.8em;
}

/* SECTION 4 ACARA*/
#section4 {
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
    height: auto;
    background-image: url('background2.jpeg');
    background-size: cover;
}

#section4 h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.event-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    gap: 0;
}

.event {
    /* flex: 1; */
    display: flex;
    align-items: stretch;
    gap: 0;
}

.event-type {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 3em;
    font-style: normal;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100px;
    background-color: var(--primary-color);
    border-radius: 100px 0 0 0; /* Hanya sudut kiri atas */
}

.event-type p {
    font-family: var(--playwrite-font);
    font-optical-sizing: auto;
    padding: 5px;
}

.type2 {
    border-radius: 0 100px 0 0; /* Hanya sudut kiri atas */
}

.event-details {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0;
    background-color: #f9f9f9;
    flex-grow: 1;
    color: black;
    padding-bottom: 20px;
}

.event-details img {
    width: 300px;
    height: 400px;
    object-fit: cover;
}

.details {
    text-align: left;
    line-height: 1;
    padding: 15px;
}

.date-section {
    display: flex;
    align-items: center;
}

.day-date {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.day {
    font-size: 0.9em;
}

.date {
    font-size: 2.8em;
    font-weight: bold;
}

.month-year {
    margin-left: 20px;
    font-size: 0.9em;
    line-height: 1.3;
}

.month {
    font-weight: bold;
}

.time {
    margin-bottom: 10px;
}

.time-location-section {
    margin-top: 20px;
}

.location strong {
    font-weight: bold;
}

.location {
    font-size: 0.8em;
    line-height: 1.5;
}

.map-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8em;
}

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

/* Section 6: Gallery like Pinterest */
#gallery-section {
    text-align: center;
    padding: 50px 20px;
    text-align: center;
}
  
  
#gallery-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}
  
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 15px;
    justify-items: center;
}
  
.gallery-item {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s;
}
  
.gallery-item:hover {
    transform: scale(1.05);
}

.full-span {
    grid-column: 1 / -1; /* Membuat elemen kelima span ke semua kolom */
  }
  
/* ..............Style for the modal............. */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content, #caption {  
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 50px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    font-weight: bold;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    user-select: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* SECTION 5 PESAN*/
#section5 {
    padding: 40px 20px; 
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    height: auto;
}

#section5 h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

input, textarea, select {
    width: 100%;
    max-width: 350px;
    padding: 10px;
    margin: 10px 0;
    font-size: 1em; /* Atau gunakan 16px jika lebih konsisten */
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

select {
    font-family: var(--poppins-font);
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
}


button {
    font-family: var(--poppins-font);
    font-weight: 400;
    font-style: normal;
    padding: 10px 20px;
    font-size: 0.8em;
    color: black;
    background-color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

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

/* TAMPILAN PESAN*/
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    padding: 20px;
    gap: 10px;
}

.message-box, .attendance-box {
    width: 100%;
    max-width: 350px;
    max-height: 400px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--secondary-color);
    overflow-y: auto; /* Tambahkan scroll vertikal */
}

.message-box h3, .attendance-box h3 {
    font-family: var(--playwrite-font);
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
    color: white;
}

.message-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--nav-color);
    border-radius: 5px;
    background-color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

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

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

.attendance-status {
    font-size: 10px;
    color: #b8b8b8;
    margin: 0;
}

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

.message-item h4 {
    font-family: var(--prata-font);
    margin: 0 0 5px 0;
    font-size: 14px;
}

.message-content {
    font-size: 12px;
    text-align: left;
}


.profile-icon {
    font-size: 20px;
    color: white;
}

.attendance-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    text-align: center;
    flex-wrap: wrap;
}

.attendance-item {
    width: 60px;
    height: 60px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.attendance-number {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.attendance-label {
    font-size: 10px;
    margin-top: 5px;
}


/* CSS untuk mengganti font placeholder */
#name::placeholder,
#message::placeholder {
    font-family: var(--poppins-font);
    font-weight: 400;
    font-style: normal;
    font-size: 12px; /* Ganti dengan ukuran font yang diinginkan */
    color: #888; /* Ganti dengan warna yang diinginkan */
}
/* CSS untuk mengganti font input */
#name,
#message {
    font-family: var(--poppins-font);
    font-weight: 400;
    font-style: normal;
    font-size: 12px; /* Ganti dengan ukuran font yang diinginkan */
    color: #333; /* Ganti dengan warna yang diinginkan */
}

/* SECTION 6 HADIAH*/
/* ...........SECTION 8............. */
#section8 {
    font-family: var(--poppins-font);
    font-weight: 400;
    font-style: normal;
    background-image: url('background2.jpeg'); /* Mobile background image */
    background-size: cover;
    background-position: center;
    text-align: center;
    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-x: hidden;
}

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

.gift-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
    padding: 20px;
    max-width: 350px;
    border-radius: 30px;
}

.gift-details h2 {
    font-family: var(--prata-font);
    font-weight: 400;
    font-style: normal;
    font-size: 2.5em;
    color: var(--primary-colors);
}

.gift-details p {
    font-size: 13px;
    color: var(--primary-colors);
}


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

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

.bank-logo2 {
    width: 100px;
    height: auto;
    position: absolute;
    top: 20px;
    right: 20px;
}

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

.account-name {
    color: black;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    position: absolute;
    top: 70px;
    left: 20px;
}

.bank-number {
    color: black;
    font-size: 12px;
    letter-spacing: 2px;
    position: absolute;
    top: 90px;
    left: 20px;
}

.copyButton {
    font-size: 12px;
    padding: 8px 18px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: absolute;
    bottom: 10px;
    right: 20px;
}

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


/* SECTION 7 TERIMAKASIH*/
#section7 {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    height: auto;
}

#section7 h2 {
    font-family: var(--great-vibes-font);
    font-weight: 400;
    font-style: normal;
    font-size: 5em;
    margin-bottom: 20px;
    margin-top: 50px;
}

#section7 p {
    max-width: 60ch;
    margin-inline: auto;
    font-size: 0.7em;
    line-height: 1.3;
    margin: 10px 0;
}

#section7 h3 {
    font-family: var(--prata-font);
    font-weight: 400;
    font-style: normal;
    font-size: 1.7em;
}


/* 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 */
}


/* SEPERATOR 2 */

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

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

/* .....................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(--primary-color);           /* Warna ikon */
    background-color: var(--nav-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 */
}

/* .......................ANIMATION ........................... */
/* Fade In & Fade Out */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-out {
    opacity: 1;
    transition: opacity 0.6s ease-in, transform 0.6s ease-in;
}

.fade-out.hide {
    opacity: 0;
    transform: translateY(-20px);
}

/* Slide In & Slide Out */
.slide-in {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in.show {
    opacity: 1;
    transform: translateX(0);
}

.slide-out {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease-in, transform 0.6s ease-in;
}

.slide-out.hide {
    opacity: 0;
    transform: translateX(100%);
}

/* Zoom In & Zoom Out */
.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.zoom-in.show {
    opacity: 1;
    transform: scale(1);
}

.zoom-out {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1s ease-in, transform 1s ease-in;
}

.zoom-out.hide {
    opacity: 0;
    transform: scale(0.8);
}

/* Rotate In & Rotate Out */
.rotate-in {
    opacity: 0;
    transform: rotate(-45deg);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.rotate-in.show {
    opacity: 1;
    transform: rotate(0deg);
}

.rotate-out {
    opacity: 1;
    transform: rotate(0deg);
    transition: opacity 0.6s ease-in, transform 0.6s ease-in;
}

.rotate-out.hide {
    opacity: 0;
    transform: rotate(45deg);
}

/* Flip In & Flip Out */
.flip-in {
    opacity: 0;
    transform: rotateY(90deg);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.flip-in.show {
    opacity: 1;
    transform: rotateY(0);
}

.flip-out {
    opacity: 1;
    transform: rotateY(0);
    transition: opacity 0.6s ease-in, transform 0.6s ease-in;
}

.flip-out.hide {
    opacity: 0;
    transform: rotateY(90deg);
}



/* MEDIA QUERIES */

@media (max-width: 767px) {

    /* COVER */
    #invitationCover {
        background-image: var(--cover-mobile);
    }

    /* SECTION 1 */
    #section1 {
        height: auto;
    }

    /* SECTION 2 */
    #section2 {
        background-image: url('/assets/background/fajrul-laeli/mobile-background.jpeg');
        background-size: cover;
    }

    .separator {
        flex-direction: row;
        width: 100%; /* Atur lebar sesuai kebutuhan */
    }

    .separator::before, 
    .separator::after {
        height: 1px; /* Membuat garis horizontal */
        flex-grow: 1;
        width: auto;
    }

    .separator span {
        margin: 0 10px; /* Jarak antara teks dan garis */
    }

    /* SECTION 4 */
    #section4 {
        height: auto;
        background-image: url('/assets/background/fajrul-laeli/mobile-background.jpeg');
        background-size: cover;
    }

    .event-container {
        gap: 30px;
        flex-direction: column;
    }

    .event {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    .event-type {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-size: 2.7em;
        font-weight: bold;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 70px;
        background-color: var(--primary-color);
        flex-shrink: 0;
        border-radius: 100px 0 0 0; /* Hanya sudut kiri atas */
    }

    .type2 {
        border-radius: 0 100px 0 0; /* Hanya sudut kiri atas */
    }

    .event-details {
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-color: #f9f9f9;
        flex-grow: 1;
    }

    .event-details img {
        width: 100%;
        height: 470px;
        object-fit: cover;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di perangkat mobile */
      }
      
      .gallery-item {
        width: 100%; /* Pastikan gambar tetap 100% dari kolom yang tersedia */
      }
    
      .corner-image {
        width: 220px;
      }

    /*SECTION 5*/
    /* TAMPILAN PESAN*/
    .container {
        flex-direction: column;
    }
    /* SECTION 6 */
    #section6 {
        background-image: url('/assets/background/fajrul-laeli/mobile-background.jpeg');
    }

    /* SECTION 8 */
    #section8 {
        background-image: url('/assets/background/fajrul-laeli/mobile-background.jpeg');
    }

}
