* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #ffe0f0 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

header {
    text-align: center;
    padding: 30px 0;
}

h1 {
    font-family: 'Mochiy Pop One', sans-serif;
    font-size: 2.5rem;
    color: #ff6b9d;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.japanese-title {
    font-size: 1.5rem;
    color: #ff6b9d;
    margin-bottom: 20px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.countdown-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin: 30px auto;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.2);
    text-align: center;
}

.countdown-title {
    color: #ff6b9d;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.time-block {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white;
    border-radius: 10px;
    padding: 15px;
    min-width: 80px;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
    transition: transform 0.3s;
}

.time-block:hover {
    transform: translateY(-5px);
}

.time {
    font-size: 2rem;
    font-weight: bold;
}

.time-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.message-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.2);
    position: relative;
    overflow: hidden;
}

.message {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.highlight {
    color: #ff6b9d;
    font-weight: bold;
}

.interactive-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.2);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 107, 157, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card-title {
    color: #ff6b9d;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.card-content {
    color: #444;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.card.active .card-content {
    max-height: 200px;
    margin-top: 10px;
}
.card:nth-child(1):hover .card-icon {
    animation: bookBounce 1s infinite;
}

.card:nth-child(2):hover .card-icon {
    animation: charmSpin 2s infinite linear;
}

.card:nth-child(3):hover .card-icon {
    animation: characterDance 1.5s infinite ease-in-out;
}

@keyframes bookBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(-5deg); }
}

@keyframes charmSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes characterDance {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-3px) scale(1.1); }
    50% { transform: translateY(0) scale(1); }
    75% { transform: translateY(-3px) scale(0.9); }
}

.card:nth-child(1):hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 15px 30px rgba(255, 107, 157, 0.3);
}

.card:nth-child(2):hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
}

.card:nth-child(3):hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: 0 15px 30px rgba(255, 107, 157, 0.3);
}
.card:nth-child(4) {
    animation-delay: 0.6s;
}

.card:nth-child(4):hover {
    transform: translateY(-10px) rotate(2deg);
}
.card:nth-child(5) {
    animation-delay: 0.8s;
}

.card:nth-child(5):hover {
    transform: translateY(-10px) rotate(-2deg);
}
.card:nth-child(5):hover .card-icon {
    animation: heartPulse 1s infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.fortune-cookie {
    background: linear-gradient(135deg, #ffd6e0, #ffccd5);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.fortune-cookie:hover {
    transform: scale(1.05);
}

.fortune-cookie.open {
    animation: crack 0.5s forwards;
}

@keyframes crack {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.fortune-message {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 200px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 100;
}

.fortune-message.show {
    opacity: 1;
}

.footer {
    text-align: center;
    padding: 30px 0;
    color: #ff6b9d;
    font-weight:bold;
}

.sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.sakura {
    position: absolute;
    background: #ffb7c5;
    border-radius: 150% 0 150% 0;
    animation: fall linear infinite;
    opacity: 0.8;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

.btn {
    background: linear-gradient(135deg, #ff6b9d, #ff6b9d);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.kirby {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
    margin: 20px;
    cursor: pointer;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.kirby-message {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 200px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 100;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    margin-bottom: 20px;
}

.kirby-message.show {
    opacity: 1;
}

.kirby-container {
    position: relative;
    display: inline-block;
    margin: 30px auto;
    display: flex;
    justify-content: center;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalFadeIn 0.5s;
}
.modal-content p{
    margin-bottom: 20px;
    color:#ff6b9d;
    font-weight: bold;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ff6b9d;
}
.photo-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.4), rgba(255, 142, 171, 0.4));
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: popupFadeIn 0.8s ease-out;
}

@keyframes popupFadeIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.photo-wrapper {
    position: relative;
    animation: photoEntrance 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90vw;
    max-height: 90vh;
}

@keyframes photoEntrance {
    0% { 
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: rotate(10deg) scale(1.1);
    }
    100% { 
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

.photo-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.decoration {
    position: absolute;
    font-size: 1.5rem; 
    animation: decorationFloat 3s infinite ease-in-out;
}

@keyframes decorationFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.photo-frame {
    position: relative;
    border-radius: 20px; 
    overflow: hidden;
    box-shadow: 
        0 0 0 8px white,           
        0 0 0 15px #ffb7c5,       
        0 0 0 18px white,          
        0 15px 30px rgba(255, 107, 157, 0.5); 
    background: white;
    padding: 10px; 
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.photo-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.photo {
    width: 280px; 
    max-width: 60vw; 
    height: auto;
    display: block;
    border-radius: 15px; 
    filter: brightness(1.05) contrast(1.05);
}

.photo-tape {
    position: absolute;
    width: 60px; 
    height: 25px; 
    background: rgba(255, 255, 255, 0.8);
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.photo-tape.top-left {
    top: -8px; 
    left: -8px; 
}

.photo-tape.top-right {
    top: -8px; 
    right: -8px; 
    transform: rotate(45deg);
}

.photo-message {
    color: #fff; 
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.4);
    animation: messageSlideUp 1s 0.8s forwards;
    opacity: 0;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); 
}

@keyframes messageSlideUp {
    from { 
        bottom: -60px; 
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
    to { 
        bottom: -30px; 
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-heart {
    position: absolute;
    font-size: 1.2rem; 
    color: #ff6b9d;
    animation: floatUp 4s infinite;
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(100px) scale(0);
        opacity: 0;
    }
    15% {
        transform: translateY(80px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) scale(0.3);
        opacity: 0;
    }
}

.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 3px; 
    height: 3px; 
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px white; 
    animation: sparkleAnimation 2s infinite;
}

@keyframes sparkleAnimation {
    0%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.close-photo {
    position: absolute;
    top: -45px; 
    right: -45px; 
    width: 40px; 
    height: 40px; 
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem; 
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4); 
    transition: all 0.3s ease;
    z-index: 10;
    animation: closeButtonBounce 1s 1.5s infinite;
}

@keyframes closeButtonBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.close-photo:hover {
    transform: scale(1.2) rotate(90deg);
    background: linear-gradient(135deg, #ff8fab, #ff6b9d);
}

.kawaii-border {
    position: absolute;
    width: calc(100% + 30px); 
    height: calc(100% + 30px); 
    top: -15px; 
    left: -15px; 
    border: 2px dashed #ffb7c5; 
    border-radius: 30px; 
    animation: borderRotate 20s linear infinite;
    pointer-events: none;
}

@keyframes borderRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ribbon {
    position: absolute;
    top: -25px; 
    left: 50%;
    transform: translateX(-50%);
    width: 120px; 
    height: 50px; 
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    border-radius: 25px 25px 0 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem; 
    box-shadow: 0 -4px 12px rgba(255, 107, 157, 0.3); 
    animation: ribbonWave 3s ease-in-out infinite;
}

@keyframes ribbonWave {
    0%, 100% { transform: translateX(-50%) rotate(-2deg); }
    50% { transform: translateX(-50%) rotate(2deg); }
}

.confetti {
    position: absolute;
    width: 8px; 
    height: 8px; 
    background: #ffb7c5;
    animation: confettiFall 3s linear infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}


@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .japanese-title {
        font-size: 1.2rem;
    }
    
    .card {
        width: 100%;
        max-width: 300px;
    }
    
    .time-block {
        min-width: 60px;
        padding: 10px;
    }
    
    .time {
        font-size: 1.5rem;
    }
    
    .photo {
        width: 220px; 
        max-width: 50vw;
    }
    
    .photo-message {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .decoration {
        font-size: 1.2rem; 
    }
    
    .ribbon {
        width: 100px; 
        font-size: 0.8rem; 
    }
}
#voice-btn {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    position: relative;
    overflow: hidden;
}

#voice-btn.playing {
    background: linear-gradient(135deg, #ff4757, #ff6b9d);
}

#voice-btn.playing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}
.voice-wave {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    align-items: center;
    gap: 3px;
    z-index: 1000;
}

.voice-wave.active {
    display: flex;
}

.voice-bar {
    width: 4px;
    height: 20px;
    background: linear-gradient(to top, #ff6b9d, #ff8fab);
    border-radius: 2px;
    animation: wave 1s infinite ease-in-out;
}

.voice-bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 30px;
}

.voice-bar:nth-child(3) {
    animation-delay: 0.4s;
    height: 25px;
}

.voice-bar:nth-child(4) {
    animation-delay: 0.6s;
    height: 35px;
}

.voice-bar:nth-child(5) {
    animation-delay: 0.8s;
    height: 15px;
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(0.5);
    }
    50% {
        transform: scaleY(1);
    }
}
