/* Base setup */
body {
  font-family: 'Poppins', sans-serif;
  background: #fff0f5;
  margin: 0;
  padding: 0;
}

/* Hero banner */
.hero {
  height: 100vh;
  background: url('images/bg.jpg') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overlay {
  background: rgba(255, 182, 193, 0.7);
  padding: 3rem;
  border-radius: 20px;
}

.hero h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: rgb(15, 14, 14);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: rgb(29, 26, 26);
}

/* Message form and wall styling */
.message-form, .message-wall {
  padding: 3rem 1rem;
  text-align: center;
}

.message-form h2,
.message-wall h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: #c2185b;
}

.message-form form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-form input,
.message-form textarea {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

.message-form button {
  background: #ff69b4;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.message-form button:hover {
  background: #e75480;
}

/* Message container */
#messageBoard {
  max-width: 100%;
  margin: auto;
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  padding: 1rem;
}

/* Individual card style */
.msg-card {
  min-width: 300px;
  flex: 0 0 auto;
  background: #ffeef2 !important;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.6s ease both;
  color: #333 !important;
}

.msg-card:hover {
  transform: translateY(-3px);
}

.msg-card p {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.msg-card p strong {
  color: #c2185b;
}

.msg-card small {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #666;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  font-style: italic;
  color: #555;
}

/* Fade-in animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.tribute-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.tribute-photo img {
  max-width: 100%;
  width: 1000px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#welcome-screen {
  height: 100vh;
  background-color: #fff0f5;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
}


.welcome-content h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #c2185b;
  margin-bottom: 2rem;
}

.welcome-content button {
  background-color: #ff69b4;
  border: none;
  color: white;
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.welcome-content button:hover {
  background-color: #e75480;
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .welcome-content h2 {
    font-size: 1.8rem;
    padding: 0 1rem;
  }

  .welcome-content button {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }
}

.welcome-content {
  max-width: 90%;
  word-wrap: break-word;
}
@media (max-width: 768px) {
  /* Resize tribute banner */
  .hero {
    height: auto;
    padding: 2rem 1rem;
    background-size: cover;
  }

  .overlay {
    padding: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Scale image in the middle */
  .tribute-photo img {
    width: 90%;
    height: auto;
  }

  /* Fix message form */
  .message-form form {
    width: 90%;
  }

  /* Improve button spacing */
  .message-form button {
    width: 100%;
  }

  /* Fix message carousel */
  #messageBoard {
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
  }

  .msg-card {
    width: 90%;
  }
}

.wishes {
  padding: 3rem 1rem;
  text-align: center;
}

.wishes h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #c2185b;
  margin-bottom: 2rem;
}

.wish-columns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1000px;
  margin: auto;
}

.wish-card {
  background: #ffeef2;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 1.5rem;
  width: 100%;
  max-width: 300px;
  text-align: left;
  transition: transform 0.3s ease;
}

.wish-card:hover {
  transform: translateY(-5px);
}

.wish-card h3 {
  font-size: 1.2rem;
  color: #c2185b;
  margin-bottom: 0.5rem;
}

.wish-card p {
  font-size: 1rem;
  color: #444;
}

/* Mobile Friendly */
@media (max-width: 768px) {
  .wish-columns {
    flex-direction: column;
    align-items: center;
  }

  .wish-card {
    width: 90%;
  }
}

.typing-container {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
}

.typing-text {
  display: inline-block;
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #c2185b;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #c2185b;
  animation: typing 3.5s steps(30, end), blink 0.75s step-end infinite;
}

/* Typing animation */
@keyframes typing {
  from { width: 0 }
  to { width: 240px }
}

/* Cursor blinking */
@keyframes blink {
  50% { border-color: transparent; }
}

#welcome-screen {
  transition: opacity 0.8s ease;
}

.music-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background-color: #ff69b4;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 999;
  transition: background 0.3s ease;
}

.music-btn:hover {
  background-color: #e75480;
}
