* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Animated Background */
.background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(2px 2px at 10% 40%, white, transparent),
        radial-gradient(1px 1px at 40% 20%, white, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: sparkle 3s linear infinite;
    opacity: 0.8;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.hearts-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.heart-float {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: floatUp 8s infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Main Content */
.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    gap: 30px;
    padding: 100px 20px 40px;
}

/* Anniversary Card */
.anniversary-card {
    perspective: 1000px;
    width: 400px;
    height: 500px;
    max-width: 100%;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    animation: cardFloat 3s ease-in-out infinite;
}

.anniversary-card:hover .card-inner {
    transform: rotateY(180deg);
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    overflow: hidden;
}

.back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

.heart-icon {
    font-size: 80px;
    animation: heartbeat 1.5s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.title {
    font-size: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: titleSlide 1s ease-out;
    font-weight: 700;
}

@keyframes titleSlide {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 20px;
    color: #666;
    animation: subtitleFade 1s ease-out 0.3s both;
    font-weight: 300;
    letter-spacing: 2px;
}

@keyframes subtitleFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.message-text {
    font-size: 18px;
    color: #fff;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.date {
    font-size: 24px;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#anniversary-date {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Floating Hearts */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

.floating-heart {
    position: absolute;
    font-size: 30px;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.floating-heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.floating-heart:nth-child(2) {
    left: 30%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.floating-heart:nth-child(3) {
    left: 50%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.floating-heart:nth-child(4) {
    left: 70%;
    animation-delay: 1.5s;
    animation-duration: 7.5s;
}

.floating-heart:nth-child(5) {
    left: 90%;
    animation-delay: 0.5s;
    animation-duration: 8.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1);
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* Sparkles */
.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px white;
    animation: sparkleMove 3s linear infinite;
}

@keyframes sparkleMove {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(100px, 100px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(200px, 200px) scale(0);
        opacity: 0;
    }
}

/* Countdown Timer */
.countdown-container {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: countdownFadeIn 1s ease-out;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes countdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.countdown-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-number {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
    margin-bottom: 5px;
    animation: numberPulse 1s ease-in-out;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.countdown-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.countdown-separator {
    font-size: 36px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: separatorBlink 1s ease-in-out infinite;
    margin: 0 5px;
}

@keyframes separatorBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.countdown-date {
    margin-top: 15px;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Dancing Couple */
.card-and-dance-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

.dancing-couple {
    position: relative;
    width: 200px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    animation: coupleFloat 3s ease-in-out infinite;
}

@keyframes coupleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.dance-floor {
    position: absolute;
    bottom: 0;
    width: 180px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.couple-container {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    z-index: 1;
}

.person {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Person 1 (Left) */
.person-1 {
    animation: dancePerson1 1.2s ease-in-out infinite;
}

@keyframes dancePerson1 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(-5deg);
    }
    25% {
        transform: translateX(-8px) translateY(-5px) rotate(5deg);
    }
    50% {
        transform: translateX(0) translateY(-8px) rotate(-3deg);
    }
    75% {
        transform: translateX(8px) translateY(-5px) rotate(5deg);
    }
}

/* Person 2 (Right) */
.person-2 {
    animation: dancePerson2 1.2s ease-in-out infinite;
}

@keyframes dancePerson2 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(5deg);
    }
    25% {
        transform: translateX(8px) translateY(-5px) rotate(-5deg);
    }
    50% {
        transform: translateX(0) translateY(-8px) rotate(3deg);
    }
    75% {
        transform: translateX(-8px) translateY(-5px) rotate(-5deg);
    }
}

/* Head */
.head {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffdbac 0%, #f4c2a1 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 3;
    animation: headBob 1.2s ease-in-out infinite;
}

@keyframes headBob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.head-1 {
    animation: headBob 1.2s ease-in-out infinite 0.1s;
}

.head-2 {
    animation: headBob 1.2s ease-in-out infinite 0.6s;
}

/* Body */
.body {
    width: 45px;
    height: 60px;
    border-radius: 20px 20px 15px 15px;
    position: relative;
    margin-top: -5px;
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    z-index: 2;
}

.body-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    animation: bodySway1 1.2s ease-in-out infinite;
}

.body-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.4);
    animation: bodySway2 1.2s ease-in-out infinite;
}

@keyframes bodySway1 {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

@keyframes bodySway2 {
    0%, 100% {
        transform: rotate(3deg);
    }
    50% {
        transform: rotate(-3deg);
    }
}

/* Arms */
.arm {
    position: absolute;
    width: 8px;
    border-radius: 4px;
    top: 10px;
}

.arm-left {
    left: -12px;
    transform-origin: top center;
}

.arm-right {
    right: -12px;
    transform-origin: top center;
}

.arm-left-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 40px;
    animation: armSwingLeft1 1.2s ease-in-out infinite;
}

.arm-right-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 40px;
    animation: armSwingRight1 1.2s ease-in-out infinite;
}

.arm-left-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    height: 40px;
    animation: armSwingLeft2 1.2s ease-in-out infinite;
}

.arm-right-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    height: 40px;
    animation: armSwingRight2 1.2s ease-in-out infinite;
}

@keyframes armSwingLeft1 {
    0%, 100% {
        transform: rotate(-45deg);
    }
    50% {
        transform: rotate(45deg);
    }
}

@keyframes armSwingRight1 {
    0%, 100% {
        transform: rotate(45deg);
    }
    50% {
        transform: rotate(-45deg);
    }
}

@keyframes armSwingLeft2 {
    0%, 100% {
        transform: rotate(45deg);
    }
    50% {
        transform: rotate(-45deg);
    }
}

@keyframes armSwingRight2 {
    0%, 100% {
        transform: rotate(-45deg);
    }
    50% {
        transform: rotate(45deg);
    }
}

/* Legs */
.legs {
    display: flex;
    gap: 5px;
    margin-top: -5px;
    position: relative;
    z-index: 1;
}

.leg {
    width: 12px;
    border-radius: 6px;
}

.leg-left-1, .leg-right-1 {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    height: 50px;
}

.leg-left-2, .leg-right-2 {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    height: 50px;
}

.leg-left-1 {
    animation: legKickLeft1 1.2s ease-in-out infinite;
}

.leg-right-1 {
    animation: legKickRight1 1.2s ease-in-out infinite;
}

.leg-left-2 {
    animation: legKickLeft2 1.2s ease-in-out infinite;
}

.leg-right-2 {
    animation: legKickRight2 1.2s ease-in-out infinite;
}

@keyframes legKickLeft1 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(-10deg);
    }
    50% {
        transform: translateX(-5px) translateY(-8px) rotate(15deg);
    }
}

@keyframes legKickRight1 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(10deg);
    }
    50% {
        transform: translateX(5px) translateY(-8px) rotate(-15deg);
    }
}

@keyframes legKickLeft2 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(10deg);
    }
    50% {
        transform: translateX(-5px) translateY(-8px) rotate(-15deg);
    }
}

@keyframes legKickRight2 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(-10deg);
    }
    50% {
        transform: translateX(5px) translateY(-8px) rotate(15deg);
    }
}

/* Dance Hearts */
.dance-hearts {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    animation: heartFloat 2s ease-in-out infinite;
    z-index: 4;
}

@keyframes heartFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-50%) translateY(-15px) scale(1.2);
        opacity: 1;
    }
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Responsive Design */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    .content {
        padding: 80px 20px 30px;
        gap: 25px;
    }

    .anniversary-card {
        width: 90%;
        max-width: 380px;
        height: auto;
        min-height: 450px;
        aspect-ratio: 4 / 5;
    }

    .countdown-container {
        padding: 18px 25px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .content {
        padding: 60px 15px 25px;
        gap: 25px;
    }

    .countdown-container {
        padding: 15px 20px;
        width: 95%;
        max-width: 500px;
    }

    .countdown-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .countdown-number {
        font-size: 36px;
    }

    .countdown-label {
        font-size: 11px;
    }

    .countdown-separator {
        font-size: 30px;
    }

    .countdown-date {
        font-size: 15px;
        margin-top: 12px;
    }

    .countdown-wrapper {
        gap: 8px;
    }

    .countdown-item {
        min-width: 60px;
    }

    .card-and-dance-wrapper {
        gap: 25px;
        width: 100%;
        max-width: 100%;
    }

    .anniversary-card {
        width: 90%;
        max-width: 380px;
        height: auto;
        min-height: 450px;
        aspect-ratio: 4 / 5;
    }

    .front, .back {
        padding: 35px 30px;
    }

    .title {
        font-size: 40px;
    }

    .subtitle {
        font-size: 18px;
    }

    .heart-icon {
        font-size: 70px;
    }

    .message h2 {
        font-size: 32px;
    }

    .message-text {
        font-size: 17px;
    }

    .dancing-couple {
        width: 180px;
        height: 160px;
    }

    .head {
        width: 32px;
        height: 32px;
    }

    .body {
        width: 40px;
        height: 55px;
    }

    .arm-left-1, .arm-right-1, .arm-left-2, .arm-right-2 {
        height: 36px;
    }

    .leg-left-1, .leg-right-1, .leg-left-2, .leg-right-2 {
        height: 45px;
    }

    .dance-floor {
        width: 160px;
    }
}

/* Small tablets and large phones */
@media (max-width: 600px) {
    .content {
        padding: 50px 10px 20px;
        gap: 20px;
    }

    .countdown-container {
        padding: 12px 15px;
        width: 95%;
    }

    .countdown-title {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .countdown-number {
        font-size: 28px;
    }

    .countdown-label {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .countdown-separator {
        font-size: 24px;
        margin: 0 3px;
    }

    .countdown-date {
        font-size: 13px;
        margin-top: 10px;
    }

    .countdown-wrapper {
        gap: 5px;
    }

    .countdown-item {
        min-width: 50px;
    }

    .card-and-dance-wrapper {
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }

    .anniversary-card {
        width: 95%;
        max-width: 100%;
        height: auto;
        min-height: 400px;
        aspect-ratio: 4 / 5;
    }

    .front, .back {
        padding: 30px 25px;
        border-radius: 15px;
    }

    .title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .heart-icon {
        font-size: 60px;
        margin-bottom: 15px;
    }

    .message h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .message-text {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .date {
        font-size: 20px;
    }

    .dancing-couple {
        width: 150px;
        height: 140px;
    }

    .head {
        width: 28px;
        height: 28px;
    }

    .body {
        width: 35px;
        height: 50px;
    }

    .arm {
        width: 6px;
    }

    .arm-left-1, .arm-right-1, .arm-left-2, .arm-right-2 {
        height: 32px;
    }

    .leg-left-1, .leg-right-1, .leg-left-2, .leg-right-2 {
        width: 10px;
        height: 40px;
    }

    .dance-floor {
        width: 140px;
    }

    .dance-hearts {
        font-size: 20px;
    }

    .floating-heart {
        font-size: 24px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .content {
        padding: 40px 10px 15px;
        gap: 15px;
    }

    .countdown-container {
        padding: 10px 12px;
        border-radius: 15px;
    }

    .countdown-title {
        font-size: 11px;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
    }

    .countdown-number {
        font-size: 24px;
    }

    .countdown-label {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .countdown-separator {
        font-size: 20px;
        margin: 0 2px;
    }

    .countdown-date {
        font-size: 11px;
        margin-top: 8px;
    }

    .countdown-wrapper {
        gap: 3px;
    }

    .countdown-item {
        min-width: 42px;
    }

    .card-and-dance-wrapper {
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }

    .anniversary-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 360px;
        aspect-ratio: 4 / 5;
    }

    .front, .back {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .heart-icon {
        font-size: 50px;
        margin-bottom: 12px;
    }

    .message h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .message-text {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .date {
        font-size: 18px;
    }

    .dancing-couple {
        width: 130px;
        height: 120px;
    }

    .head {
        width: 24px;
        height: 24px;
    }

    .body {
        width: 30px;
        height: 42px;
    }

    .arm {
        width: 5px;
    }

    .arm-left-1, .arm-right-1, .arm-left-2, .arm-right-2 {
        height: 28px;
    }

    .leg-left-1, .leg-right-1, .leg-left-2, .leg-right-2 {
        width: 8px;
        height: 35px;
    }

    .dance-floor {
        width: 120px;
    }

    .dance-hearts {
        font-size: 18px;
        top: -15px;
    }

    .floating-heart {
        font-size: 20px;
    }

    .heart-float {
        font-size: 16px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .content {
        padding: 35px 8px 12px;
        gap: 12px;
    }

    .countdown-container {
        padding: 8px 10px;
    }

    .countdown-title {
        font-size: 10px;
    }

    .countdown-number {
        font-size: 20px;
    }

    .countdown-label {
        font-size: 7px;
    }

    .countdown-separator {
        font-size: 18px;
    }

    .countdown-date {
        font-size: 10px;
    }

    .countdown-item {
        min-width: 38px;
    }

    .anniversary-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 340px;
        aspect-ratio: 4 / 5;
    }

    .front, .back {
        padding: 20px 15px;
    }

    .title {
        font-size: 24px;
    }

    .subtitle {
        font-size: 12px;
    }

    .heart-icon {
        font-size: 45px;
    }

    .message h2 {
        font-size: 20px;
    }

    .message-text {
        font-size: 12px;
    }

    .date {
        font-size: 16px;
    }

    .dancing-couple {
        width: 110px;
        height: 100px;
    }
}

/* Landscape orientation for phones */
@media (max-height: 600px) and (orientation: landscape) {
    .content {
        padding: 20px 15px;
        gap: 15px;
        min-height: auto;
    }

    .countdown-container {
        padding: 10px 15px;
    }

    .countdown-title {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .countdown-number {
        font-size: 24px;
    }

    .countdown-label {
        font-size: 9px;
    }

    .countdown-separator {
        font-size: 20px;
    }

    .countdown-date {
        font-size: 12px;
        margin-top: 8px;
    }

    .anniversary-card {
        width: 90%;
        max-width: 300px;
        height: auto;
        min-height: 360px;
        aspect-ratio: 4 / 5;
    }

    .front, .back {
        padding: 25px 20px;
    }

    .title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 14px;
    }

    .heart-icon {
        font-size: 50px;
        margin-bottom: 10px;
    }

    .dancing-couple {
        width: 120px;
        height: 110px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .anniversary-card {
        cursor: default;
    }

    .anniversary-card:active .card-inner {
        transform: rotateY(180deg);
    }
}
