:root {
  --bg-color: #E8E8E8;
  --accent-green: #748462;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: #dcdcdc;
  background-image: url(/img/pattern.png);
  background-repeat: repeat;
  background-size: 200px;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  display: flex;
  justify-content: center; 
  min-height: 100vh;
}

.mobile-container {
  background-color: var(--bg-color);
  width: 100%;
  max-width: 450px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  position: relative;
  padding-bottom: 40px;
  overflow-x: hidden;
}

.hero-wrapper {
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.music-btn {
  cursor: pointer;
  transition: transform 0.2s;
}
.music-btn:active { transform: scale(0.99); }
.play-icon { font-size: 1.2rem; color: var(--text-dark); }
.playing .play-icon { color: var(--accent-green); }

.cursive-title {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  text-align: center;
  color: var(--text-light);
  margin: 10px 0 5px 0;
  line-height: 1.2;
  font-weight: 400;
}

.intro-text {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  padding: 0 10px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 150px 150px;
  gap: 10px;
  margin: 20px 0;
}
.grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background-color: #ccc;
}
.grid-img:nth-child(1) { grid-row: span 2; }

.timeline {
  position: relative;
  margin-top: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 70px;
  top: 10px;
  bottom: 50px;
  width: 2px;
  background-color: #999;
  opacity: 0.5;
}

.event-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 90px; 
  min-height: 60px;
}

.event-dot {
  position: absolute;
  left: 65px;
  top: 6px;
  width: 12px;
  height: 12px;
  background-color: var(--accent-green);
  border-radius: 50%;
  border: 2px solid var(--bg-color);
  z-index: 2;
}

.event-time {
  position: absolute;
  left: 0;
  width: 60px;
  text-align: right;
  top: 0;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.event-title {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: var(--text-dark);
  display: block;
  line-height: 1;
  margin-bottom: 5px;
  margin-top: -5px; 
}

.event-location {
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 0 0 10px 0;
}

.btn-location {
  background-color: var(--accent-green);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.rsvp-section {
  text-align: center;
  margin-top: 30px;
}
.rsvp-text { font-size: 0.8rem; color: var(--text-light); margin-bottom: 15px; }

.input-group {
  background: white;
  border-radius: 25px;
  padding: 5px;
  display: flex;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.input-name {
  border: none;
  flex-grow: 1;
  padding: 10px 15px;
  border-radius: 25px;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

.btn-confirm {
  background-color: var(--accent-green);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
}

.calendar-container {
  width: 100%;
  padding: 0 20px;
  margin-bottom: 30px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 5px;
}

.cal-header {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 5px;
}

.cal-date {
  font-size: 1rem;
  color: var(--text-light);
  position: relative;
  padding: 5px 0;
  z-index: 1;
}

.heart-scribble {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45px;
  height: 45px;
  z-index: -1;
  pointer-events: none;
}

.date-highlight {
  color: #b91c1c;
  font-weight: 700;
}

.header-container {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 5px;
}

.header-subtitle {
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: -5px;
}

.header-name {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: var(--accent-green);
  line-height: 1.2;
  font-weight: 400;
}

.calendar-card {
  margin: 0 20px 0 20px;
  padding: 0 20px;
}

.month-header {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 15px;
  border-bottom: 0.5px solid var(--accent-green);
  padding-bottom: 10px;
}

#playPauseBtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 15px;
  border-radius: 50px;
  background-color: rgba(255,255,255,0.6);
  margin-top: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  width: fit-content;
  margin-left: auto; margin-right: auto;
}

.play-icon svg {
  display: block;
  color: var(--text-dark);
}

.playing .play-icon svg {
  color: var(--accent-green);
}


@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.content > * {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}
.content > *:nth-child(1) { animation-delay: 0.1s; }
.content > *:nth-child(2) { animation-delay: 0.2s; }
.content > *:nth-child(3) { animation-delay: 0.3s; }
.content > *:nth-child(4) { animation-delay: 0.4s; }
.content > *:nth-child(5) { animation-delay: 0.5s; }