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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #f8e1e6 0%, #fdf0f0 50%, #f4d2d7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entrance-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 60px 50px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(244, 210, 215, 0.4);
    border: 2px solid rgba(248, 225, 230, 0.6);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.heart-decoration {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: heartbeat 2s infinite;
}

.main-title {
    color: #c7627c;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(199, 98, 124, 0.1);
}

.subtitle {
    color: #d4849c;
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-style: italic;
}

.question-section {
    margin-bottom: 30px;
}

.question {
    color: #a85772;
    font-size: 1.4rem;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 300;
}

.answer-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #f4d2d7;
    border-radius: 25px;
    font-size: 1.1rem;
    background: rgba(253, 240, 240, 0.8);
    color: #a85772;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    outline: none;
}

.answer-input:focus {
    border-color: #d4849c;
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
}

.answer-input::placeholder {
    color: #d4849c;
    opacity: 0.7;
}

.submit-btn {
    background: linear-gradient(135deg, #d4849c, #c7627c);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 132, 156, 0.4);
    background: linear-gradient(135deg, #c7627c, #b54e6b);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.message {
    color: #c7627c;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 15px;
    font-size: 1.1rem;
}

.message.show {
    opacity: 1;
}

.message.success {
    color: #4CAF50;
}

.message.error {
    color: #c7627c;
}

.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.loading.show {
    display: flex;
}

.heart-spinner {
    font-size: 2rem;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float 8s infinite linear;
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    font-size: 1.5rem;
}

.heart:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    font-size: 2.5rem;
}

.heart:nth-child(3) {
    left: 80%;
    animation-delay: 4s;
    font-size: 1.8rem;
}

.heart:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
    font-size: 2rem;
}

.heart:nth-child(5) {
    left: 90%;
    animation-delay: 8s;
    font-size: 1.2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Music toggle button */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(225, 112, 85, 0.5);
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.music-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.music-toggle.playing {
    animation: musicPulse 2s ease-in-out infinite;
}

.music-toggle.muted .music-icon {
    opacity: 0.5;
    text-decoration: line-through;
}

@keyframes musicPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(225, 112, 85, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(225, 112, 85, 0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .entrance-card {
        padding: 40px 30px;
        margin: 20px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .question {
        font-size: 1.2rem;
    }
    
    .answer-input {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
}