Changed around line 1
+ :root {
+ --primary-color: #d32f2f;
+ --secondary-color: #ffcdd2;
+ --accent-color: #ffeb3b;
+ --text-color: #fff;
+ }
+
+ body {
+ margin: 0;
+ padding: 0;
+ min-height: 100vh;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background: linear-gradient(135deg, #1a237e, #0d47a1);
+ font-family: 'Segoe UI', sans-serif;
+ color: var(--text-color);
+ }
+
+ .card-container {
+ perspective: 1000px;
+ }
+
+ .card {
+ width: 300px;
+ height: 400px;
+ position: relative;
+ transform-style: preserve-3d;
+ transition: transform 1s;
+ cursor: pointer;
+ }
+
+ .card:hover {
+ transform: rotateY(180deg);
+ }
+
+ .card-front, .card-back {
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ backface-visibility: hidden;
+ border-radius: 20px;
+ padding: 20px;
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ box-shadow: 0 10px 30px rgba(0,0,0,0.3);
+ }
+
+ .card-front {
+ background: var(--primary-color);
+ }
+
+ .card-back {
+ background: var(--secondary-color);
+ transform: rotateY(180deg);
+ color: #000;
+ }
+
+ .chinese {
+ font-size: 3rem;
+ margin: 0;
+ text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
+ }
+
+ .spanish {
+ font-size: 2rem;
+ margin: 1rem 0;
+ text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
+ }
+
+ .message {
+ text-align: center;
+ line-height: 1.6;
+ }
+
+ .fireworks {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ }
+
+ .firework {
+ position: absolute;
+ width: 10px;
+ height: 10px;
+ background: var(--accent-color);
+ border-radius: 50%;
+ animation: fireworks 2s infinite;
+ }
+
+ .firework:nth-child(1) {
+ top: 10%;
+ left: 20%;
+ animation-delay: 0s;
+ }
+
+ .firework:nth-child(2) {
+ top: 30%;
+ left: 70%;
+ animation-delay: 0.5s;
+ }
+
+ .firework:nth-child(3) {
+ top: 50%;
+ left: 40%;
+ animation-delay: 1s;
+ }
+
+ @keyframes fireworks {
+ 0% { transform: scale(0); opacity: 1; }
+ 100% { transform: scale(3); opacity: 0; }
+ }
+
+ .hearts {
+ position: absolute;
+ bottom: 20px;
+ }
+
+ .heart {
+ width: 20px;
+ height: 20px;
+ background: var(--secondary-color);
+ position: relative;
+ transform: rotate(-45deg);
+ margin: 5px;
+ display: inline-block;
+ }
+
+ .heart::before,
+ .heart::after {
+ content: '';
+ width: 20px;
+ height: 20px;
+ background: var(--secondary-color);
+ border-radius: 50%;
+ position: absolute;
+ }
+
+ .heart::before {
+ top: -10px;
+ left: 0;
+ }
+
+ .heart::after {
+ left: 10px;
+ top: 0;
+ }
+
+ .lanterns {
+ position: absolute;
+ bottom: 20px;
+ display: flex;
+ gap: 20px;
+ }
+
+ .lantern {
+ width: 30px;
+ height: 50px;
+ background: var(--primary-color);
+ position: relative;
+ border-radius: 15px;
+ }
+
+ .lantern::before {
+ content: '';
+ width: 40px;
+ height: 10px;
+ background: var(--primary-color);
+ position: absolute;
+ top: -10px;
+ left: -5px;
+ border-radius: 5px;
+ }
+
+ @media (max-width: 480px) {
+ .card {
+ width: 250px;
+ height: 350px;
+ }
+
+ .chinese {
+ font-size: 2.5rem;
+ }
+
+ .spanish {
+ font-size: 1.5rem;
+ }
+ }