/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Kalam", cursive;
  line-height: 1.6;
  color: #5a4a4a;
  background: #faf5f0;
  min-height: 100vh;
}

.invitation-container {
  max-width: 600px;
  margin: 0 auto;
  background: #faf5f0;
  padding: 20px;
  overflow: hidden;
}

/* Main Header Section */
.main-header {
  text-align: center;
  padding: 40px 20px 30px;
  background: #faf5f0;
  position: relative;
  overflow: hidden;
}

.chinese-title {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #8b4513;
  margin-bottom: 10px;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

.english-title {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #d4a574;
  margin-bottom: 25px;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

.fun-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  padding: 15px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  text-align: center;
}

.quote-mark {
  font-family: "Dancing Script", cursive;
  font-size: 3rem;
  color: #e8a87c;
  font-weight: 700;
  line-height: 1;
  display: inline-block;
  height: 40px;
  overflow: hidden;
}

.quote-text {
  font-family: "Kalam", cursive;
  font-size: 1.2rem;
  color: #8b4513;
  font-weight: 500;
  margin: 0;
  text-align: center;
  letter-spacing: 1px;
  padding: 0 10px;
  line-height: 1.5;
}

/* Header Section */
.header-section {
  background: #faf5f0;
  color: #4a4a4a;
  padding: 30px 40px;
}

.date-time-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.event-date {
  font-size: 1.1rem;
  font-weight: 500;
  color: #6b6b6b;
}

.slide-indicator {
  font-size: 0.9rem;
  color: #999;
}

.proposal-story {
  padding: 25px 0;
}

.story-text {
  font-family: "Caveat", cursive !important;
  font-size: 0.7rem;
  line-height: 1.3;
  color: #5a5a5a;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 20px;
  background: #faf5f0;
}

/* Main hero card styles */
.hero-card {
  margin: 0 auto;
  max-width: 90%;
  padding: 20px;
  border: none;
}

.hero-card img {
  width: 100%;
  max-width: 800px;
  height: 500px;
  object-fit: contain;
  border-radius: 0;
  margin-bottom: 20px;
  border: none;
  box-shadow: none;
}

.hero-content h1 {
  font-family: "Caveat", cursive;
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: #d4a574;
  text-shadow: none;
}

.hero-content p {
  font-family: "Kalam", cursive;
  font-size: 1.1rem;
  margin-bottom: 0;
  color: #7a6b5d;
}

.welcome-section {
  text-align: center;
  margin-top: 20px;
  padding: 15px 0;
}

.chinese-welcome {
  font-family: "Dancing Script", cursive;
  font-size: 1.8rem;
  font-weight: 600;
  color: #8b4513;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.english-welcome {
  font-family: "Caveat", cursive;
  font-size: 1.8rem;
  color: #d4a574;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Photo Container */
.photo-container {
  position: relative;
  overflow: visible;
  border: none;
  box-shadow: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Play Button */
#playBtn {
  display: block;
  margin: 12px auto;
  font-size: 18px;
  background: #e0d6c6;
  color: #5a4a3b;
  padding: 6px 14px;
  border: 2px solid #a49682;
  border-radius: 4px;
  cursor: pointer;
}

#playBtn:hover {
  background: #d4c7b4;
}

/* Progress Range */
#progressRange {
  display: block;
  width: 80%;
  margin: 10px auto;
}

/* About Us Section */
.about-us-section {
  padding: 80px 20px 0px 20px;
  background: #faf5f0;
  text-align: center;
}

/* Timeline Section */
.timeline-section {
  padding: 40px 20px 80px 20px;
  background: #faf5f0;
  position: relative;
  overflow: hidden;
}

.timeline-section::before {
  content: "♡ ♡ ♡";
  position: absolute;
  top: 20px;
  right: 50px;
  font-size: 1.5rem;
  color: rgba(165, 42, 42, 0.1);
  animation: floatDecorative 4s ease-in-out infinite;
}

.timeline-section::after {
  content: "♡ ♡";
  position: absolute;
  bottom: 30px;
  left: 30px;
  font-size: 1.2rem;
  color: rgba(255, 107, 157, 0.1);
  animation: floatDecorative 4s ease-in-out infinite 2s;
}

@keyframes floatDecorative {
  0%,
  100% {
    transform: translateY(0px);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-10px);
    opacity: 0.2;
  }
}

.couple-intro {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.person-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #a52a2a;
  box-shadow: 0 8px 25px rgba(165, 42, 42, 0.2);
  transition: transform 0.3s ease;
}

.person-photo:hover {
  transform: scale(1.05);
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-info h3 {
  font-family: "Kalam", cursive;
  font-size: 1.3rem;
  color: #2c3e50;
  margin: 0;
  font-weight: 600;
}

@media (max-width: 768px) {
  .fun-quote {
    flex-direction: column;
    gap: 0;
  }
  
  .quote-mark {
    font-size: 2.5rem;
    height: 30px;
  }
  
  .quote-text {
    font-size: 1.2rem !important;
  }
  
  .couple-intro {
    gap: 40px;
  }

  .person-photo {
    width: 120px;
    height: 120px;
  }

  .person-info h3 {
    font-size: 1.1rem;
  }
}

.section-title {
  font-family: "Caveat", cursive;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 30px;
  color: #d4a574;
  font-weight: 700;
}

.timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px;
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  padding-left: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 50px;
  bottom: -30px;
  width: 2px;
  background: #000000;
  z-index: 1;
}

.timeline-heart {
  position: absolute;
  left: -45px;
  top: 0;
  width: 35px;
  height: 35px;
  z-index: 2;
  animation: heartPulse 2s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-heart img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 15px rgba(165, 42, 42, 0.3));
}

@keyframes heartPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.timeline-content {
  margin-left: 30px;
  position: relative;
  padding: 15px 0;
}

.timeline-date {
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.2rem;
  color: #a52a2a;
  font-weight: 500;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  display: block;
  letter-spacing: 1px;
}

.timeline-text {
     font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
       Roboto, "Helvetica Neue", Arial, sans-serif;
     font-size: 0.8rem;
     line-height: 1.4;
     color: #2c3e50;
     font-weight: 400;
     margin-bottom: 25px;
     text-align: left;
     letter-spacing: 0.8px;
   }

.timeline-photo {
  border-radius: 0;
  overflow: hidden;
  margin-top: 20px;
  background: transparent;
  border: none;
  padding: 0;
}

.timeline-photo img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  padding: 0;
  margin: 0;
  display: block;
}

.timeline-photo:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 40px;
    max-width: 100%;
  }

  .timeline-item::before {
    left: -20px;
    top: 35px;
    bottom: -25px;
  }

  .timeline-heart {
    left: -35px;
    width: 30px;
    height: 30px;
    top: 0;
  }

  .timeline-content {
    padding: 20px;
    margin-left: 10px;
  }

  .timeline-text {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .timeline-date {
    font-size: 1.2rem;
  }
}

/* Photo Gallery Section */
.gallery-section {
  padding: 40px 20px 80px 20px;
  background: #faf5f0;
}

.photo-story-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.photo-story-item {
  display: flex;
  align-items: center;
  gap: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  background: transparent;
}

.photo-story-item.reverse {
  flex-direction: row-reverse;
}

.story-photo {
  flex: 1;
  max-width: 350px;
  background: transparent !important;
  overflow: hidden;
  border-radius: 0;
  border: none;
  padding: 0;
  margin: 0;
}

.story-photo img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  padding: 0;
  margin: 0;
}

.story-photo img:hover {
  transform: scale(1.02);
}

.story-text {
  flex: 1;
  padding: 15px 0;
  background: transparent;
}

.story-text h3 {
  font-family: "Kalam", cursive;
  font-size: 1.4rem;
  color: #a52a2a;
  margin-bottom: 15px;
  font-weight: 600;
}

.story-text p {
  font-family: "Caveat", cursive;
  font-size: 0.7rem;
  line-height: 1.3;
  color: #2c3e50;
  margin: 0;
}

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

@media (max-width: 768px) {
  .photo-story-item,
  .photo-story-item.reverse {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .story-photo {
    max-width: 100%;
  }

  .story-photo img {
    height: auto;
    max-height: 400px;
    width: 100%;
    object-fit: contain;
    border-radius: 0;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0;
    margin: 0;
  }

  .story-text {
    padding: 10px;
  }

  .story-text h3 {
    font-size: 1.2rem;
  }

  .story-text p {
    font-size: 0.7rem;
    line-height: 1.3;
}

  .add-story-placeholder {
    padding: 30px 20px;
  }

  .add-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Illustration Section */
.illustration-section {
  background: #faf5f0;
  padding: 40px 40px;
  text-align: center;
}

.wedding-illustration {
  margin-bottom: 30px;
}

.wedding-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  animation: gentle-sway 3s ease-in-out infinite;
}

@keyframes gentle-sway {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.for-you {
  font-family: "Noto Serif", serif;
  font-size: 1.1rem;
  color: #6b6b6b;
  letter-spacing: 2px;
  margin-top: 20px;
  font-weight: 300;
}

/* Wedding Details Section */
.details-section {
  padding: 80px 20px;
  background: #faf5f0;
  text-align: center;
}

/* Wedding Calendar */
.wedding-calendar {
  max-width: 400px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border: 2px solid #8b4513;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  font-family: "Caveat", cursive;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
  color: #8b4513;
  font-weight: 600;
}

.calendar-month {
  font-size: 3rem;
  font-weight: 700;
  color: #8b4513;
}

.calendar-divider {
  margin: 0 10px;
  color: #8b4513;
}

.calendar-total {
  font-size: 1.8rem;
  color: #8b4513;
}

.calendar-year {
  margin-left: 20px;
  font-size: 1.8rem;
  color: #8b4513;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #8b4513;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 1.2rem;
  color: #8b4513;
  font-weight: 600;
  padding: 8px 0;
}

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

.calendar-day {
  text-align: center;
  padding: 10px;
  font-size: 1.1rem;
  color: #666;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.calendar-day:not(:empty):hover {
  background: #f0e6d6;
  transform: scale(1.05);
  border-radius: 8px;
}

.calendar-day.special-date {
  background: #8b4513;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  animation: heartPulse 2s ease-in-out infinite;
}

.calendar-day.special-date::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 55px;
  background: #8b4513;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: translateX(-50%) rotate(-45deg);
  z-index: -1;
}

.calendar-day.special-date::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 55px;
  background: #8b4513;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
}

@keyframes heartPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Wedding Location Map Section */
.location-map-section {
  padding: 40px 0;
  background: #faf5f0;
  text-align: center;
}

.location-map-section .section-title {
  font-family: "Caveat", cursive;
  font-size: 2.5rem;
  color: #d4a574;
  margin-bottom: 10px;
  font-weight: 600;
}

.location-map-section .venue-name {
  font-family: "Kalam", cursive;
  font-size: 1.3rem;
  color: #7a6b5d;
  margin-bottom: 30px;
  font-weight: 400;
}

.seamless-map {
  width: 100%;
  margin: 20px 0;
}

.seamless-map iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

.map-directions {
  padding: 30px 20px;
  background: #faf5f0;
  max-width: 600px;
  margin: 0 auto;
}

.direction-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-family: "Kalam", cursive;
  color: #7a6b5d;
}

.direction-item:last-child {
  margin-bottom: 0;
}

.direction-icon {
  font-size: 1.3rem;
  margin-right: 12px;
}

.direction-text {
  font-size: 1rem;
}

.wedding-date {
  font-family: "Caveat", cursive;
  font-size: 2.8rem;
  font-weight: 700;
  margin: 20px 0;
  color: #d4a574;
}

.date-subtitle {
  font-family: "Kalam", cursive;
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #7a6b5d;
  font-weight: 400;
}

.details-text {
  max-width: 500px;
  margin: 0 auto 40px;
  font-family: "Kalam", cursive;
  font-size: 1rem;
  line-height: 1.6;
  color: #7a6b5d;
}

.details-text p {
  margin-bottom: 15px;
}

.wedding-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.info-item {
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.info-item:hover {
  transform: translateY(-3px);
}

.info-item h3 {
  font-family: "Caveat", cursive;
  font-size: 1.8rem;
  color: #d4a574;
  margin-bottom: 15px;
  font-weight: 600;
}

.info-item p {
  font-family: "Kalam", cursive;
  font-size: 1.1rem;
  color: #7a6b5d;
  line-height: 1.6;
}

.info-item .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.info-item h3 {
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: #d4a574;
  margin-bottom: 10px;
  font-weight: 600;
}

.info-item p {
  font-family: "Kalam", cursive;
  font-size: 1rem;
  color: #7a6b5d;
  margin-bottom: 5px;
}

/* Couple Section - Removed as it's replaced by timeline section */

/* Calendar Section - Removed as it's replaced by details section */

/* Section Title Styling */
.section-title {
  font-family: "Caveat", cursive;
  font-size: 2.5rem;
  color: #d4a574;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
  font-family: "Kalam", cursive;
  font-size: 1.2rem;
  color: #7a6b5d;
  text-align: center;
  margin-bottom: 30px;
  font-style: italic;
}

/* RSVP Section */
.rsvp-section {
  padding: 40px 20px 80px 20px;
  background: #faf5f0;
  text-align: center;
}

.rsvp-section h2 {
  font-family: "Noto Serif", serif;
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #4a4a4a;
  font-weight: 500;
}

.rsvp-section > p {
  font-size: 1rem;
  color: #6b6b6b;
  margin-bottom: 40px;
}

.rsvp-form {
  max-width: 500px;
  margin: 40px auto 0;
  padding: 30px;
  text-align: left;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: "Kalam", cursive;
  font-weight: 600;
  color: #d4a574;
  font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid #f4e4d6;
  border-radius: 12px;
  font-size: 1rem;
  font-family: "Kalam", cursive;
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e8a87c;
  box-shadow: 0 4px 15px rgba(232, 168, 124, 0.2);
  transform: translateY(-1px);
}

.custom-guest-input {
  margin-top: 15px;
  padding: 15px;
  background: #f9f6f2;
  border-radius: 10px;
  border: 1px solid #e8a87c;
  transition: all 0.3s ease;
}

.custom-guest-input label {
  font-size: 0.9rem;
  color: #d4a574;
  margin-bottom: 8px;
}

.custom-guest-input input {
  margin-top: 5px;
  position: relative;
  z-index: 1; /* Ensure the input is on top and can receive focus */
}

.custom-guest-input input:focus {
  outline: none;
  border-color: #e8a87c;
  box-shadow: 0 4px 15px rgba(232, 168, 124, 0.2);
  transform: translateY(-1px);
}

.submit-btn {
  background: linear-gradient(135deg, #e8a87c 0%, #d4a574 100%);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-family: "Caveat", cursive;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 25px;
  width: 100%;
  box-shadow: 0 6px 20px rgba(232, 168, 124, 0.3);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #d4a574 0%, #c19660 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 168, 124, 0.4);
}

.response-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  display: none;
}

.response-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.response-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Chinese Font Support with Larger Sizes */
.chinese-title {
  font-family: "Times New Roman", Times, serif !important;
  font-size: 1.75rem !important;
  font-weight: 400;
}

.quote-text {
  font-family: "Ma Shan Zheng", "ZCOOL XiaoWei", cursive;
  font-size: 1.6rem !important;
  font-weight: 400;
  color: #8b4513;
  margin: 0;
  text-align: center;
  letter-spacing: 1px;
}

.groom-name-chinese,
.bride-name-chinese {
  font-family: "Ma Shan Zheng", "ZCOOL XiaoWei", cursive;
  font-size: 1.8rem !important;
  font-weight: 400;
  border: none;
  box-shadow: none;
}

.chinese-welcome {
  font-family: "Qing Song Shou Xie Ti", "Ma Shan Zheng", "ZCOOL XiaoWei", cursive;
  font-size: 2.2rem !important;
  font-weight: 400;
}

.section-title {
  font-family: "Ma Shan Zheng", "ZCOOL XiaoWei", cursive;
  font-size: 2.8rem !important;
  font-weight: 400;
}

.timeline-date {
  font-family: "Times New Roman", Times, serif !important;
  font-size: 1.2rem !important;
  font-weight: 500;
  letter-spacing: 1px;
}

.timeline-text {
  font-family: "Caveat", cursive;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.story-text h3 {
  font-family: "Caveat", cursive !important;
  font-size: 1.8rem !important;
  font-weight: 400;
}

.story-text p {
  font-family: "Caveat", cursive;
  font-size: 1.2rem;
  line-height: 1.8;
  font-weight: 400;
}

/* Footer Section */
.footer-section {
  background: #faf5f0;
  color: #4a4a4a;
  text-align: center;
  padding: 40px 20px;
}

.thank-you {
  font-family: "Caveat", cursive;
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: #d4a574;
}

.hashtag {
  font-family: "Kalam", cursive;
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: #7a6b5d;
  font-style: italic;
}

.footer-hearts {
  font-size: 2.2rem;
  color: #e8a87c;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .invitation-container {
    margin: 0;
    padding: 10px;
  }

  .date-time-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  /* Media query override for hero-card */
  .hero-card {
    max-width: 95%;
    padding: 15px;
    margin: 0 auto;
    border: none;
  }

  /* Media query styles for hero-card img */
  .hero-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 500px;
    border: none;
  }

  /* Media query override for hero-content h1 */
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .timeline-container {
    max-width: 100%;
    gap: 20px;
  }

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

  .timeline-photo-card img {
    max-width: 100%;
    height: 250px;
  }

  .wedding-date {
    font-size: 2.2rem;
  }

  .wedding-info {
    max-width: 100%;
    gap: 15px;
  }

  .info-item {
    margin: 0 10px;
    padding: 20px;
  }

}

/* ===========================
   Music Player & Cassette Tape
   =========================== */

.music-player {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 10px;
}

.cassette-player {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

/* Cassette body */
.cassette {
  position: relative;
  width: 280px;
  height: 180px;
  background: linear-gradient(to bottom, #f7f0e6 0%, #eadfce 100%);
  border: 3px solid #a88f72;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  transform: perspective(600px) rotateX(5deg);
  visibility: visible;        /* make sure it shows */
  opacity: 1;                 /* make sure it shows */
  transition: opacity .5s ease, visibility .5s ease;
  margin: 0 auto;
}

/* Label */
.cassette-label {
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 40px;
  background: #fff8f0;
  border: 2px solid #d4b48a;
  padding: 8px;
  box-sizing: border-box;
}

.label-top { 
  font-size: .7rem; 
  color: #7a6b5d; 
}

.tape-title { 
  font-size: .9rem; 
  font-weight: 700; 
  color: #a87c52; 
}

/* Window */
.tape-window {
  position: relative;
  height: 50px;
  margin: 8px 0;
  background: #c2b49f;
  box-shadow: inset 0 0 8px rgba(0,0,0,.25), 0 0 2px rgba(255,255,255,.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.tape-window::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1.5px;
  background: rgba(0,0,0,.15);
  box-shadow: 0 1px 1px rgba(255,255,255,.2);
}

/* Reels (HTML uses .tape-reel plus .left-reel/.right-reel) */
.tape-reel {
  width: 42px; 
  height: 42px;
  border: 3px solid #5c4a3d;
  border-radius: 50%;
  position: relative;
  animation: spin 4s linear infinite;
  animation-play-state: paused; /* start paused; JS toggles .spinning */
}

.tape-reel::after {
  content:"";
  position:absolute; 
  top:50%; 
  left:50%;
  width: 28px; 
  height: 4px;
  background:#5c4a3d;
  transform: translate(-50%,-50%);
}

/* when playing (JS adds .spinning) */
.tape-reel.spinning { 
  animation-play-state: running; 
}

/* Bottom holes */
.cassette-holes {
  position: absolute; 
  bottom: 8px; 
  left: 0; 
  right: 0;
  height: 25px; 
  display: flex; 
  justify-content: space-around; 
  align-items: center;
}

.hole { 
  width: 12px; 
  height: 12px; 
  background:#5c4a3d; 
  border-radius: 50%; 
}

/* Controls */
.player-controls {
  width: 100%; 
  max-width: 280px;
  margin: 20px auto 0;
  display: flex; 
  flex-direction: column; 
  align-items: center;
}

.control-wheel { 
  width: 60px; 
  height: 60px; 
  display:flex; 
  justify-content:center; 
  align-items:center; 
}

.control-buttons { 
  display:flex; 
  gap:10px; 
  justify-content:center; 
  margin-top:10px; 
}

.control-btn {
  width:35px; 
  height:30px; 
  font-size:.9rem; 
  border-radius:4px;
  background:#f7f0e6; 
  border:1px solid #bfa88c;
  box-shadow: 0 1px 3px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.7);
  cursor:pointer;
}

.play-btn { 
  width:45px; 
  height:45px; 
  font-size:1.1rem; 
  background:#d4a574; 
  color:#fff; 
}

/* Progress */
.progress-container { 
  width:100%; 
  max-width:280px; 
  margin:15px auto 0; 
  cursor:pointer; 
}

.progress-bar { 
  width:100%; 
  height:6px; 
  background:#e6d8c4; 
  border-radius:3px; 
  position:relative; 
}

#progressFill { 
  height:100%; 
  background:#d4a574; 
  width:0; 
  border-radius:3px; 
}

.time-display { 
  display:flex; 
  justify-content:space-between; 
  width:100%; 
  margin-top:5px; 
  font-size:.8rem; 
  color:#7a6b5d; 
}

/* Song info */
.song-info { 
  margin:15px auto 0; 
  text-align:center; 
  width:100%; 
  max-width:280px; 
}

.song-info h3 { 
  font-size:1.6rem; 
  margin-bottom:8px; 
  color:#d4a574; 
}

.song-info p { 
  font-size:1.1rem; 
  color:#7a6b5d; 
  margin-bottom:10px; 
}

/* Reel animation */
@keyframes spin { 
  from { transform: rotate(0); } 
  to   { transform: rotate(360deg); } 
}