body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #fffaf5;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

/* COVER */
#cover {
  position: fixed;
  width: 100%;
  height: 100vh;
  background:
    linear-gradient(rgba(138, 91, 90, 0.8), rgba(0, 0, 0, 0.9)),
    url("img/Wedding Photo Crystal Keepsake Create a Timeless Memory.jpg")
      center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 9999;
  font-size: medium;
  color: #ffffff;
  font-family: cursive;
}

#openBtn {
  margin-top: 20px;
  padding: 12px 35px;
  border-radius: 50px;
  border: none;
  background: #fc1d0d;
  color: white;
  transition: 0.3s;
}

#openBtn.clicked {
  background: #333;
}

/* MAIN */
#main {
  display: none;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(26, 23, 23, 0.7), rgba(255, 240, 240, 0.9)),
    url("img/download.jpg")
      center/cover;
}

.title {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  color: #ffffff;
}

/* SECTION */
section {
  padding: 80px 20px;
}

.section-light {
  background: #f7efe5;
}

/* NAVBAR */
#bottomNav {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: none;
  justify-content: space-around;
  background: #ffffff;
  border-top: 1px solid #eee;
  padding: 10px;
}

.nav-link {
  color: #aaa;
  font-size: 20px;
}

.nav-link.active {
  color: #c9a96e;
}

/* ANIMASI */
.fade {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(41, 38, 38, 0.9)),
    url("img/download.jpg")
      center/cover;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* tombol utama */
.btn-gift {
  background: #c9a96e;
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  border: none;
}

/* tombol copy */
.copy-btn {
  margin-top: 10px;
  padding: 5px 15px;
  border-radius: 20px;
  border: none;
  background: #c9a96e;
  color: white;
}

.event-box {
  background: white;
  padding: 20px;
  border-radius: 15px;
  margin-top: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* gambar */
.story-img {
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  stroke: #eee;
  box-shadow: #eee;
}

/* caption lebih jelas */
.carousel-caption {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 10px;
}
table {
  background: white;
  border-radius: 10px;
  overflow: hidden;
}

th {
  background: #ffffff !important;
}
.welcome-text {
  font-size: 16px;
  letter-spacing: 2px;
  color: #ffffff;
}

.sub-text {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 10px;
}

.event-text {
  font-size: 14px;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 5px;
}

.event-date {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #ff0000;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

#countdown {
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gift-title {
  font-size: 40px;
  margin-bottom: 5px;
}

.gift-sub {
  font-size: 14px;
  color: #8c6b3f;
  letter-spacing: 2px;
}

.gift-action {
  margin-top: 10px;
}

.gift-action button {
  margin: 5px;
  padding: 6px 15px;
  border-radius: 20px;
  border: none;
  background: #c9a96e;
  color: white;
}

.gift-card img {
  width: 60px;
  margin: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.gift-card img:hover {
  transform: scale(1.1);
}

/* SECTION */
#comment {
  padding: 80px 20px;
  background: #faf7f2;
  font-family: Arial, sans-serif;
}

/* JUDUL */
#comment h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #8c6b3f;
}

/* FORM */
#comment form {
  max-width: 500px;
  margin: auto;
  text-align: center;
}

#comment input,
#comment textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;
}

#comment textarea {
  height: 80px;
}

/* BUTTON */
#comment button {
  background: #c9a96e;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

#comment button:hover {
  background: #b08955;
}

/* BOX KOMENTAR */
.comment-box {
  max-width: 600px;
  margin: 30px auto;
}

/* CARD KOMENTAR */
.comment-item {
  background: white;
  padding: 15px;
  margin-bottom: 12px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.comment-item b {
  color: #8c6b3f;
}

.comment-item p {
  margin-top: 5px;
  color: #555;
}

.admin-btn {
  position: fixed;
  right: 20px;
  background: #c9a96e;
  color: white;
  padding: 10px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.admin-btn:hover {
  background: #b08955;
}

.admin-top {
  position: fixed;
  top: 15px;
  right: 15px;
  background: rgba(201, 169, 110, 0.9);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-family: Arial, sans-serif;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  z-index: 999;
  transition: 0.3s;
}

.admin-top:hover {
  background: #b08955;
  transform: scale(1.05);
}

body {
  font-family: Arial;
  background: #faf7f2;
  text-align: center;
}

.comment-box {
  max-width: 600px;
  margin: auto;
}

.comment-item {
  background: white;
  padding: 15px;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

input, textarea {
  width: 80%;
  padding: 10px;
  margin: 5px;
}

button {
  padding: 10px 20px;
  background: #c9a96e;
  color: white;
  border: none;
  cursor: pointer;
}

.logout {
  display: inline-block;
  margin-bottom: 10px;
  color: red;
  text-decoration: none;
}

.card {
  background: white;
  padding: 15px;
  margin: 10px auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.delete {
  color: red;
  text-decoration: none;
}

.comment-box {
  max-width: 600px;
  margin: auto;
}

/* KARTU KOMENTAR RESPONSIVE */
.comment-item {
  background: white;
  padding: 15px;
  margin: 10px 0;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);

  /* INI KUNCI UTAMA */
  width: fit-content;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* BIAR TIDAK MELEBAR KE KANAN */
.comment-item b {
  display: block;
  margin-bottom: 5px;
  color: #8c6b3f;
}

.comment-item {
  transition: 0.3s;
}

.comment-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}
.comment-box {
  max-width: 600px;
  margin: auto;
}

/* KARTU KOMENTAR (PAKAI DI INDEX & ADMIN) */
.comment-item {
  background: #fff;
  padding: 15px;
  margin: 10px 0;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);

  width: fit-content;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* NAMA */
.comment-item b {
  display: block;
  margin-bottom: 5px;
  color: #8c6b3f;
}

.mb-4{
  color: #ffffff;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.mb-5{
  color: #ffffff;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.mb-6{
  color: #ffffff;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.mb-7{
  color: #ffffff;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.detail{
  color: #ffffff;
  background:
    linear-gradient(rgba(26, 23, 23, 0.7), rgba(255, 240, 240, 0.9)),
    url("img/Regional SEO Strategies_ Unlocking Local Search Potential.jpg")
      center/cover;
}

.gif{
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 240, 240, 0.9)),
    url("img/Download premium image of White gift box with gold ribbon background white background celebration_ by Gifty Gifty Gifty Gifty about white background, background, gift box, golden, and confetti 15465685.jpg")
      center/cover;
}

.acara{
  background:
    linear-gradient(rgba(26, 23, 23, 0.7), rgba(255, 240, 240, 0.9)),
    url("img/1.jpg")
      center/cover;
}

.com{
  background:
    linear-gradient(rgba(26, 23, 23, 0.7), rgba(255, 240, 240, 0.9)),
    url("img/1.jpg")
      center/cover;
}