﻿/* Elegant Birthday Card - Additional Styles with Blue Sky Theme */

/* Enhances name styling */
.recipient-name {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #4682B4;
    margin: 0.5rem 0;
    text-shadow: 0 2px 10px rgba(135, 206, 235, 0.6);
    position: relative;
    display: inline-block;
    animation: name-glow 3s infinite alternate;
}

.recipient-highlight {
    font-family: 'Dancing Script', cursive;
    color: #4682B4;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.recipient-highlight:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #87CEEB, #1E90FF, #87CEEB, transparent);
    animation: underline-shimmer 3s infinite;
}

/* Animations for name elements */
@keyframes name-glow {
    0% {
        text-shadow: 0 0 5px rgba(135, 206, 235, 0.6);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 15px rgba(135, 206, 235, 0.9), 0 0 20px rgba(30, 144, 255, 0.7);
        transform: scale(1.03);
    }
}

@keyframes underline-shimmer {
    0% {
        background-position: -100px;
    }
    100% {
        background-position: 100px;
    }
}

/* Enhanced message section styling */
.message-section {
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.main-message, .sub-message {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #4682B4;
    text-align: center;
    margin-bottom: 0.5rem;
}

.main-message {
    font-family: "Dancing Script", cursive;
    font-size: 1.5rem;
    font-weight: 700;
}


.sub-message {
    font-size: 1.2rem;
}

.message-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1) 0%, transparent 50%, rgba(30, 144, 255, 0.1) 100%);
    pointer-events: none;
}

.main-message {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.sub-message {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #4682B4;
    margin-top: 1rem;
}

/* Refined button styling */
.control-btn, .elegant-btn {
    background: linear-gradient(135deg, #4682B4 0%, #87CEEB 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0.5rem;
    position: relative;
    overflow: hidden;
}

.control-btn:hover, .elegant-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #5a9bc7 0%, #a7dff8 100%);
}

.control-btn:active, .elegant-btn:active {
    transform: translateY(1px);
}

/* Celebrate button specific styling */
.celebrate-btn {
    background: linear-gradient(135deg, #1E90FF 0%, #87CEEB 100%);
}

.celebrate-btn.celebrating {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff9e7d 100%);
    animation: celebrating-pulse 1.5s infinite;
}

/* Blow candles button specific styling */
#blowCandles {
    background: linear-gradient(135deg, #6495ED 0%, #87CEEB 100%);
}

#blowCandles.wish-active {
    background: linear-gradient(135deg, #ffd700 0%, #ffeb7a 100%);
    color: #333;
}

/* Send wishes button specific styling */
#sendWishes {
    background: linear-gradient(135deg, #4682B4 0%, #87CEEB 100%);
    min-width: 150px;
}

#sendWishes.sent {
    background: linear-gradient(135deg, #32CD32 0%, #90EE90 100%);
}

/* Button animations */
@keyframes celebrating-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(135, 206, 235, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(135, 206, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(135, 206, 235, 0);
    }
}

/* Card active state */
.card.celebrate-active {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
}
