@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:wght@300;400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins";
}

.home {
  background: url("hero1.jpg") no-repeat center center/cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.home button {
  font-size: 3rem;
}

button {
  font-family: "Great Vibes", cursive;
  padding: 15px 40px;
  font-size: 20px;
  color: white;
  background: linear-gradient(to right, #ff416c, #ff4b2b);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 65, 108, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  font-weight: bold;
}

/* Add a glowing effect */
button:hover {
  background: linear-gradient(to right, #ff4b2b, #ff416c);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(255, 65, 108, 0.5);
}

/* Create a heart effect on hover */
button::before {
  content: "❤";
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: -30px;
  transform: translateY(-50%);
  opacity: 0;
  transition: 0.3s;
}

button:hover::before {
  left: 10px;
  opacity: 1;
}

/* General styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

@keyframes waveBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Page Background with Soft Glow */
.letter {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #ffdde1, #ff9a9e);
  background-size: 300% 300%;
  animation: waveBackground 10s ease infinite;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 3rem;
  text-align: center;
  margin-bottom: 100px;
}

/* Letter Box */
.letter-container {
  max-width: 50%;
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  border: 2px solid rgba(255, 182, 193, 0.5);
}
/* Adjust for tablets */
@media (max-width: 1024px) {
  .letter-container {
    max-width: 70%;
    padding: 25px;
  }
}

/* Adjust for mobile screens */
@media (max-width: 768px) {
  .letter-container {
    max-width: 90%;
    padding: 20px;
  }
}

/* Letter Text */
.letter-container h1 {
  color: darkred;
  font-family: "Great Vibes", cursive;
  font-size: 42px;
  margin-bottom: 10px;
}

.letter-container p {
  font-size: 17px;
  font-family: "Great Vibes", cursive;
  margin-top: 10px;
  text-align: justify;
  color: #333;
}

/* Signature */
.signature {
  text-align: right;
  font-style: italic;
  margin-top: 20px;
}

/* Back Button */
.back-button {
  margin-top: 15px;
  padding: 12px 25px;
  font-size: 18px;
  color: white;
  background: linear-gradient(to right, #ff416c, #ff4b2b);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 65, 108, 0.3);
  transition: all 0.4s ease;
  font-weight: bold;
}

.back-button:hover {
  background: linear-gradient(to right, #ff4b2b, #ff416c);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(255, 65, 108, 0.5);
}

/* Floating Hearts Effect */
.hearts-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes floating-hearts {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(0.5);
    opacity: 0;
  }
}

/* Generates Multiple Floating Hearts */
.hearts-container::before,
.hearts-container::after {
  content: "❤ ❤ ❤ ❤ ❤ ❤";
  position: absolute;
  font-size: 40px;
  color: rgba(255, 0, 0, 0.3);
  animation: floating-hearts 8s linear infinite;
}

.hearts-container::after {
  left: 50%;
  animation-delay: 4s;
}

/* Music Button - Right */
.music-button {
  font-size: 22px;
  border: none;
  cursor: pointer;
  color: white;
  transition: transform 0.3s ease;
}
.back-button {
  width: 170px;
}

.music-button:hover {
  transform: scale(1.2);
}
.bottom-bar {
  position: fixed;
  z-index: 10;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.2); /* Slight transparency */
  backdrop-filter: blur(10px);
}
/* Fixed Bottom Buttons */
.bottom-buttons {
  position: fixed;
  top: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

/* Fullscreen background */
/* Fullscreen background */
.video-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: white;
  overflow: hidden;
}

/* Black Phone Frame */
.phone-frame {
  width: 320px;
  height: 600px;
  background: black;
  border-radius: 30px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.phone-frame:hover {
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.4);
}

/* Video Positioned at the Top */
.tiktok-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TikTok UI Buttons */
.tiktok-ui {
  position: absolute;
  right: 10px;
  top: 55%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tiktok-ui div {
  margin: 10px 0;
  font-size: 18px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.tiktok-ui div:hover {
  transform: scale(1.2);
}

/* Profile Picture (like TikTok) */
.profile-pic {
  width: 50px;
  height: 50px;
  background: url("profile.jpg") no-repeat center/cover;
  border-radius: 50%;
  border: 2px solid white;
}

/* Bottom Video Details */
.video-details {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  font-size: 14px;
}

/* Music Text */
.music-text {
  font-size: 12px;
  opacity: 0.8;
}

.tiktok-ui div:hover {
  transform: scale(1.2);
}

/* Mobile Responsive: Make Video Fullscreen */
@media (max-width: 768px) {
  .phone-frame {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .tiktok-ui {
    right: 20px;
    top: 60%;
  }

  .video-details {
    left: 15px;
    bottom: 20px;
    font-size: 16px;
  }
}

/* Progress Bar */
.progress-container {
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom Progress Bar (Seekable) */
#progress-bar {
  width: 90%;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

/* Progress Bar Track */
#progress-bar::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: rgb(161, 161, 161);
  border-radius: 2px;
}

/* Progress Bar Thumb */
#progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  margin-top: -4px;
}
