Changed around line 1
+ :root {
+ --primary-color: #ff3366;
+ --secondary-color: #ff8fab;
+ --text-color: #333;
+ --card-bg: #fff;
+ --animation-timing: 0.5s;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ background: linear-gradient(135deg, #ffedec, #ffd1d1);
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ color: var(--text-color);
+ }
+
+ .card-container {
+ perspective: 2000px;
+ width: 90%;
+ max-width: 600px;
+ margin: 2rem auto;
+ }
+
+ .card {
+ position: relative;
+ width: 100%;
+ height: 400px;
+ transform-style: preserve-3d;
+ transition: transform var(--animation-timing) ease;
+ }
+
+ .card.opened {
+ transform: rotateY(180deg);
+ }
+
+ .card-front, .card-inside {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ backface-visibility: hidden;
+ border-radius: 20px;
+ box-shadow: 0 10px 30px rgba(0,0,0,0.1);
+ padding: 2rem;
+ background: var(--card-bg);
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .card-inside {
+ transform: rotateY(180deg);
+ background: linear-gradient(45deg, #fff1f1, #fff);
+ }
+
+ h1 {
+ text-align: center;
+ font-size: 2.5rem;
+ margin-bottom: 2rem;
+ }
+
+ .spanish, .chinese {
+ display: block;
+ margin: 0.5rem;
+ }
+
+ .spanish {
+ color: var(--primary-color);
+ font-family: 'Segoe UI', cursive;
+ }
+
+ .chinese {
+ color: var(--secondary-color);
+ font-family: 'Microsoft YaHei', sans-serif;
+ }
+
+ .message {
+ text-align: center;
+ margin: 1rem 0;
+ line-height: 1.6;
+ opacity: 0;
+ transform: translateY(20px);
+ animation: fadeIn 1s forwards;
+ }
+
+ .heart-animation {
+ width: 100px;
+ height: 100px;
+ background: var(--primary-color);
+ position: relative;
+ transform: rotate(45deg);
+ animation: heartbeat 1.5s infinite;
+ }
+
+ .heart-animation::before,
+ .heart-animation::after {
+ content: '';
+ width: 100px;
+ height: 100px;
+ background: var(--primary-color);
+ border-radius: 50%;
+ position: absolute;
+ }
+
+ .heart-animation::before {
+ left: -50%;
+ }
+
+ .heart-animation::after {
+ top: -50%;
+ }
+
+ .love-button {
+ font-size: 2rem;
+ background: none;
+ border: none;
+ cursor: pointer;
+ transition: transform 0.3s;
+ }
+
+ .love-button:hover {
+ transform: scale(1.2);
+ }
+
+ .floating-hearts {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ pointer-events: none;
+ }
+
+ @keyframes heartbeat {
+ 0% { transform: rotate(45deg) scale(1); }
+ 25% { transform: rotate(45deg) scale(1.1); }
+ 50% { transform: rotate(45deg) scale(1); }
+ 75% { transform: rotate(45deg) scale(1.1); }
+ 100% { transform: rotate(45deg) scale(1); }
+ }
+
+ @keyframes fadeIn {
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+ }
+
+ @media (max-width: 768px) {
+ .card {
+ height: 350px;
+ }
+
+ h1 {
+ font-size: 2rem;
+ }
+
+ .message {
+ font-size: 0.9rem;
+ }
+ }