html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif; /* Menggunakan Montserrat */
  font-weight: 500; /* Menggunakan varian Medium */
  overflow-x: hidden;
  background-image: url('assets/JB-BG.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.parallax-bg {
  background-image: url('assets/JB-BG.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 15px;
}

/* Parallax Effect for Background */
.parallax-container {
  position: relative;
}

/* Invitation Container with Parallax Background */
.invitation-container {
  max-width: 700px;
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  margin: 0px auto 20px auto;
  background: #fff;
  overflow: hidden;
}

/* Header Gambar */
.card-header-image {
  height: 170px;
  background-image: url('assets/left-image.jpeg');
  background-position: 90% 60%; /* Posisikan tengah horizontal dan vertikal */
  background-size: cover; /* Biar gambar tidak terpotong */
  background-repeat: no-repeat; /* Jangan diulang */
}

/* Body Card */
.card-body {
  background: white; /* Gradasi kuning ke krem */
  text-align: center;
  padding: 40px 30px;
}

.card-body h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}

.card-body .greeting,
.card-body .description,
.card-body .day,
.card-body .date {
  margin: 10px 0;
  font-size: 1rem;
  color: #333;
}

.card-body .date {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #7b5e57;
}

.invitation-container h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin: 0;
  color: #333;
}

.invitation-container .greeting,
.invitation-container .description,
.invitation-container .day,
.invitation-container .date {
  margin: 15px 0;
  font-size: 1rem;
}

.invitation-container .date {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #7b5e57;
  margin-bottom: 20px;
}

.logo {
  width: 120px;
  margin-bottom: 20px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin: 0 0 10px 0;
  color: #333;
}

.greeting, .description, .note {
  margin: 10px 0;
  font-size: 1rem;
  color: #333;
}

.day {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 20px;
}

.date {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #7b5e57;
  margin-bottom: 20px;
}

h2 {
  margin-top: 30px;
  font-family: 'Playfair Display', serif;
  color: #333;
}

/* Animasi dan desain untuk Susunan Acara */
.agenda {
  list-style-type: none;  /* Menghilangkan default bullet list */
  padding-left: 0;  /* Menghilangkan padding kiri */
}

.agenda li {
  position: relative;
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-left: 30px;
  line-height: 1.6;
  font-weight: 500;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Menambahkan ikon kecil pada setiap item list */
.agenda li::before {
  content: "✔";  /* Ikon check untuk setiap item */
  position: absolute;
  left: 0;
  top: 0;
  color: #ff7f50;  /* Warna oranye agar lebih menonjol */
  font-size: 1.5rem;
}

/* Efek animasi saat agenda muncul */
.agenda li:hover {
  transform: translateX(10px);  /* Efek geser sedikit ke kanan */
  color: #ff7f50;  /* Warna berubah saat hover */
}

/* Untuk bagian "note" */
.note {
  font-size: 1.1rem;
  color: #555;
  margin-top: 30px;
  text-align: center;
  line-height: 1.8;
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards 0.5s;  /* Efek animasi fade-in */
}

/* Animasi fadeInUp untuk note */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animasi untuk judul */
h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards 0.3s;
}

/* Efek animasi untuk seluruh section ketika masuk */
section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

section.appear {
  animation: fadeInUp 1s forwards;
}

/* Animasi untuk teks dalam agenda-rsvp-container */
.agenda-rsvp-container {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

/* Tambahkan kelas ini setelah scroll selesai */
.agenda-rsvp-container.animate-text {
  opacity: 1;
  transform: translateY(0);
}

.checkbox-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0;
}

.checkbox-group label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #5c4033;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #7b5e57;
}

/* Styling untuk container Susunan Acara dan RSVP */
.agenda-rsvp-container {
  background: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  margin-bottom: 60px; /* Memberikan jarak bawah pada container ini */
}

/* Styling untuk agenda */
.agenda {
  text-align: left;
  display: inline-block;
  margin: 10px auto 20px auto;
  padding-left: 20px;
  color: #333;
}

#carouselExampleSlidesOnly .carousel-item img {
  object-fit: cover; /* Menjaga gambar tetap proporsional */
  object-position: 90% 60%; /* Posisi gambar: 90% dari horizontal dan 60% dari vertikal */
  height: 250px; /* Mengatur tinggi gambar di carousel */
}

.carousel-item {
  transition: transform 0.5s ease-in-out; /* Menambahkan durasi transisi */
}

#timer {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
}

#timer span {
  padding: 5px 10px;
  border: 2px solid #222220; /* Border hitam */
  border-radius: 10px; /* Sudut border sedikit melengkung */
  margin: 0 5px; /* Memberi jarak antar jam, menit, dan detik */
  display: inline-block; /* Agar span berada di sebelah satu sama lain */
}

#days {
  border-color: #FFD700; /* Border hari */
}

#hours {
  border-color: #FF6347; /* Border jam */
}

#minutes {
  border-color: #32CD32; /* Border menit */
}

#seconds {
  border-color: #1E90FF; /* Border detik */
}
