body {
  /* 爱心跳动,抖音ID:不吃蟹黄 作品参考bootstrapmb,引入three基于canvas制作 */
  /* background: rgb(0, 0, 0); */
  overflow: hidden;
  margin: 0;
  background-color: #ff1e7c;

  background: linear-gradient(rgba(255, 255, 255, 0.77), rgba(255, 39, 125, 0.84)), url('./img/background.jpg');

  
}

canvas {
  background: transparent !important;
  display: block;   /* canvas को पूरे स्क्रीन पर फैलाने के लिए */
}


.title {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  text-shadow: 0 0 20px white;
  text-shadow: 0 0 20px white;
  letter-spacing: 4px;
  padding-bottom: 67px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 2.2rem;
  color: #29181d;
}



#copy {
  position: fixed;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
}

#copy a {
  text-decoration: none;
  color: #191919d7;
}

  #copy p {
  color: #fff6f9;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  }

/* Letter Modal Styles */
#letter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#letter-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.letter-content {
  background: white;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 80%;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.letter-content h2 {
  color: #ff1e7c;
  margin-bottom: 15px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.letter-content p {
  color: #333;
  font-size: 1.2rem;
  line-height: 1.5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #ff1e7c;
}

@keyframes popIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .title {
    font-size: 1.5rem;
    padding-bottom: 40px;
    letter-spacing: 2px;
    width: 100%;
    text-align: center;
  }

  .letter-content {
    max-width: 95%;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .letter-content h2 {
    font-size: 1.3rem;
  }

  .letter-content p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  #copy {
    font-size: 0.8rem;
  }
}
