:root {
    --primary-color: #ff69b4;
    --secondary-color: #f8f8f8;
    --accent-color: #ff1493;
    --text-color: #333;
    --love-color: #ff4d6d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ffe5e5, #fff0f5);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.typing-container {
    text-align: center;
    margin-bottom: 2rem;
    min-height: 50px;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.cursor {
    animation: blink 1s infinite;
}

.title {
    font-size: 2.5rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.message-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.message-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.magic-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ffd1dc;
    border-radius: 25px;
    font-size: 1.1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.magic-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
}

.memory-box {
    text-align: center;
    margin: 2rem 0;
}

.memory-trigger {
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.memory-trigger:hover {
    transform: scale(1.2);
}

.memory-content {
    margin-top: 1rem;
    opacity: 0;
    transition: all 0.5s ease;
}

.memory-content.visible {
    opacity: 1;
}

.love-meter {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    overflow: hidden;
    margin: 2rem 0;
}

.love-meter-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff69b4, #ff1493);
    transition: width 1s ease;
}

.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.heart {
    position: absolute;
    animation: floatUp 4s ease-in-out infinite;
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.special-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    text-align: center;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
}

.heart-beat {
    display: inline-block;
    animation: heartBeat 1.5s ease 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); }
}