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

@font-face {
  font-family: 'Butler';
  src: url('https://cdn.jsdelivr.net/gh/juliangarnier/butler-font/dist/fonts/Butler-UltraLight.woff2') format('woff2');
}

body {
  font-family: 'Cormorant Garamond', 'Butler', serif;
  min-height: 100vh;
  padding: 20px;
  background: transparent;
  position: relative;
  overflow-x: hidden;
  color: #ffccd5;
  letter-spacing: 0.03em;
}

.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('Image 003.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.7;
  z-index: -1;
  filter: brightness(0.7);
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.romantic-border {
  padding: 30px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 25px;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.romantic-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #ffffff, #d4af37);
  animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

h1 {
  font-family: 'Playfair Display', serif;
  text-align: center;
  color: #ffccd5;
  margin-bottom: 40px;
  font-size: 4.2em;
  text-shadow: 
    0 0 10px rgba(255,204,213,0.3),
    0 0 20px rgba(255,182,193,0.3),
    0 0 30px rgba(255,204,213,0.3);
  font-weight: 700;
  letter-spacing: 0.05em;
  position: relative;
  animation: glowingText 3s ease-in-out infinite;
  background: linear-gradient(45deg, #ffccd5, #ffb6c1, #ffccd5);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1::before, h1::after {
  display: none;
}

@keyframes glowingText {
  0%, 100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.2);
  }
}

.game-container {
  padding: 20px;
}

.theme-card {
  margin: 20px 0;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
}

.theme-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.5);
}

.theme {
  font-size: 1.8em;
  margin-bottom: 30px;
  color: #ffccd5;
  line-height: 1.8;
  font-family: 'Cormorant Garamond', serif;
  text-align: left;
  font-style: italic;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  padding: 0 20px;
}

input[type="text"] {
  width: 100%;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 204, 213, 0.2);
  border-radius: 12px;
  font-size: 1.3em;
  background: rgba(0, 0, 0, 0.15);
  color: #ffccd5;
  transition: all 0.3s ease;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.05em;
  backdrop-filter: blur(5px);
}

input[type="text"]:focus {
  outline: none;
  border-color: #ffccd5;
  box-shadow: 0 0 10px rgba(255, 204, 213, 0.2);
}

.button-group {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: center;
}

button {
  padding: 18px 35px;
  border: 1px solid rgba(255, 204, 213, 0.3);
  border-radius: 12px;
  background: rgba(255, 204, 213, 0.08);
  color: #ffccd5;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.4s ease;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3em;
  letter-spacing: 0.05em;
  backdrop-filter: blur(5px);
  text-align: center;
  justify-content: center;
}

button:hover {
  background: rgba(255, 204, 213, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 204, 213, 0.15);
}

button.secondary {
  background: rgba(255, 204, 213, 0.03);
  border-color: rgba(255, 204, 213, 0.15);
}

button.secondary:hover {
  background: rgba(255, 204, 213, 0.1);
}

.heart-icon {
  display: none;
}

#current-score {
  font-size: 2.2em;
  color: #ffccd5;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#result {
  margin-top: 20px;
  padding: 25px;
  border-radius: 12px;
  font-weight: 500;
  background: rgba(255, 204, 213, 0.08);
  text-align: center;
  font-size: 1.4em;
  letter-spacing: 0.05em;
  backdrop-filter: blur(5px);
  color: #ffccd5;
}

#result.correct {
  border-left: 4px solid #ffccd5;
  color: #ffccd5;
}

#result.incorrect {
  border-left: 4px solid rgba(220, 53, 69, 0.8);
}

#video-container {
  margin-top: 25px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

#video-container iframe {
  width: 100%;
  height: 315px;
  border: none;
}

#progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 204, 213, 0.1);
  border-radius: 10px;
  margin-bottom: 25px;
}

#progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
  border-radius: 10px;
  transition: width 0.4s ease;
}

.instructions {
  text-align: center;
  font-size: 1.8em;
  color: #ffccd5;
  margin: -20px 0 40px 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  letter-spacing: 0.05em;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .button-group {
    flex-direction: column;
  }
  
  h1 {
    font-size: 3em;
  }
  
  .theme-card {
    padding: 25px;
  }
}