:root {
  --bg-color: #fff8f5;
  --primary-color: #ee5d75;
  --secondary-bg: #f8dde3;
  --text-dark: #38252a;
  --text-light: #8e2f45;
  --font-heading: "Playfair Display", serif;
  --font-body: "Poppins", sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
  overflow-y: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.app-container {
  width: 100%;
  max-width: 450px;
  height: 100vh;
  height: 100dvh;
  position: relative;
  background-color: var(--bg-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.music-toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transform: translateY(20px);
  z-index: 10;
}

.screen.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.title {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.title.large {
  font-size: 3rem;
}

.title.white {
  color: white;
}

.subtitle {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 5px;
  font-style: italic;
}

p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dark);
  max-width: 90%;
}

.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 2rem;
}

button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 30px;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.primary-btn {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(238, 93, 117, 0.4);
  width: 100%;
  max-width: 280px;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 93, 117, 0.6);
}

.secondary-btn {
  background-color: var(--secondary-bg);
  color: var(--text-light);
}

.secondary-btn:hover {
  background-color: #f1c7d1;
}

.icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  backdrop-filter: blur(5px);
}

.icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.button-group {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  width: 100%;
  margin-top: 30px;
  position: relative;
  z-index: 20;
  padding: 0 10px;
}

.button-group button {
  width: auto;
  padding: 12px 15px;
  flex: 1;
  font-size: 0.9rem;
}

.moving-btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
  z-index: 50;
}

.moving-btn-msg {
  font-style: italic;
  color: var(--text-light);
  width: 100%;
  min-height: 24px;
  font-size: 0.95rem;
  pointer-events: none;
  margin-top: 20px;
}

.big-heart {
  font-size: 5rem;
  margin: 20px 0;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

.dark-screen {
  background-color: #111;
  color: white;
}

.dark-screen p,
.dark-screen .title {
  color: white;
}

.bg-photo-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/bgimg.jpeg");
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.4);
  transition:
    filter 2s ease,
    brightness 2s ease;
  z-index: 1;
}

.bg-photo-blur.clear {
  filter: blur(0px) brightness(0.8);
}

.overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}

.overlay-content p {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.photo-circle-container {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  margin: 0 auto;
}

.photo-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

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

.photo-circle-container::before,
.photo-circle-container::after {
  content: "🌸";
  position: absolute;
  font-size: 2.5rem;
  z-index: 5;
}
.photo-circle-container::before {
  bottom: -10px;
  left: 10px;
  transform: rotate(-20deg);
}
.photo-circle-container::after {
  top: 20px;
  right: -10px;
  transform: rotate(20deg);
}

.hashtag {
  font-weight: 600;
  color: var(--text-dark);
  margin: 10px 0;
  font-size: 1.2rem;
}

.date {
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 20px;
}

#hearts-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  color: rgba(238, 93, 117, 0.3);
  animation: float 10s linear infinite;
  user-select: none;
}

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0.5) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1.5) rotate(360deg);
    opacity: 0;
  }
}

.progress-dots {
  position: absolute;
  bottom: 30px;
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ddd;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--primary-color);
}
