@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,400;0,700;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 100%);
    font-family: 'Comic Neue', cursive;
    padding: 20px;
    overflow-x: hidden;
    opacity: 0;
    position: relative;
    animation: fadeIn 0.5s ease forwards;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ffc8dd;
    color: #ff4d82;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #fffafb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2; 
}

.floating-hearts {
    position: fixed;
    font-size: 25px;
    opacity: 0.2;
    z-index: 1;
    color: #ff4d82;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

.love-text {
    font-size: 5em;
    font-weight: bold;
    letter-spacing: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.love-letter {
    display: inline-block;
    color: #ff4d82;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.love-letter:hover {
    transform: scale(1.3) rotate(-5deg);
    color: #e03568;
}

.love-letter.heart {
    color: #66bb6a;
    font-size: 1.2em;
}

.days-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: white;
    border: 4px solid #ff4d82;
    border-radius: 50%;
    font-size: 2em;
    font-weight: bold;
    color: #ff4d82;
    box-shadow: 0 5px 20px rgba(255, 77, 130, 0.3);
    animation: heartbeat 1.6s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}
.days-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 77, 130, 0.5);
    animation: heartbeat 0.9s ease-in-out infinite;
}
@keyframes heartbeat {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(255, 77, 130, 0.3);
    }
    14% {
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(255, 77, 130, 0.4);
    }
    28% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(255, 77, 130, 0.3);
    }
    42% {
        transform: scale(1.10);
        box-shadow: 0 10px 30px rgba(255, 77, 130, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(255, 77, 130, 0.3);
    }
}
.days-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ff4d82;
    animation: ripple 1.6s ease-out infinite;
    z-index: -1;
}
@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.subtitle {
    font-size: 1.5em;
    color: #666;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.proposal-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 3px 3px 0px #c8e6c9;
    border: 3px solid #ffc8dd;
    margin: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.proposal-title {
    font-size: 2.5em;
    color: #ff4d82;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.proposal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    position: relative;
    z-index: 3;
}

.proposal-btn {
    padding: 15px 40px;
    font-size: 1.3em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    z-index: 100;
}

.yes-btn {
    background: linear-gradient(135deg, #66bb6a, #81c784);
    color: white;
}

.yes-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 187, 106, 0.5);
}

.no-btn {
    background: linear-gradient(135deg, #ff4d82, #ff8fab);
    color: white;
    position: relative;
}

.no-btn:hover {
    animation: shake 0.5s ease;
}

.moments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
    position: relative;
    z-index: 2;
}

.moment-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #ffc8dd;
    box-shadow: 3px 3px 0px #c8e6c9;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    position: relative;
    z-index: 2;
}

.moment-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 5px 5px 0px #c8e6c9;
}

.moment-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.moment-title {
    font-size: 1.2em;
    color: #ff4d82;
    font-weight: bold;
    margin-bottom: 10px;
}

.moment-text {
    color: #666;
    font-size: 0.95em;
}

.countdown-wrapper {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 3px 3px 0px #c8e6c9;
    border: 3px solid #ffc8dd;
    margin: 30px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.countdown-title {
    font-size: 1.8em;
    color: #ff4d82;
    margin-bottom: 25px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.countdown-box {
    background: linear-gradient(135deg, #fffafb, #fff5f7);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #ffc8dd;
    transition: all 0.3s ease;
}

.countdown-box:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 77, 130, 0.3);
}

.countdown-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff4d82;
    display: block;
}

.countdown-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.game-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 3px 3px 0px #c8e6c9;
    border: 3px solid #ffc8dd;
    margin: 30px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.game-title {
    font-size: 2em;
    color: #ff4d82;
    margin-bottom: 20px;
}

.hearts-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.game-heart {
    font-size: 3em;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.3;
    position: relative;
    z-index: 2;
}

.game-heart.clicked {
    filter: grayscale(0%);
    opacity: 1;
    animation: heartPop 0.5s ease;
}

.game-message {
    font-size: 1.2em;
    color: #66bb6a;
    margin-top: 20px;
    min-height: 30px;
    font-weight: bold;
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.video-modal.show {
    display: flex;
}

.video-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    animation: videoAppear 0.8s ease;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(255, 77, 130, 0.5);
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: #ff4d82;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    z-index: 3001;
}

.video-close:hover {
    background: #e03568;
    transform: scale(1.1) rotate(180deg);
}

.video-title {
    text-align: center;
    color: white;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@keyframes videoAppear {
    0% { 
        opacity: 0;
    }
    100% { 
        opacity: 1;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #ff4d82;
    max-width: 500px;
    text-align: center;
    animation: modalPop 0.5s ease;
    position: relative;
    z-index: 2001;
}

.modal-title {
    font-size: 2.5em;
    color: #ff4d82;
    margin-bottom: 20px;
}

.modal-text {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-btn {
    background: linear-gradient(135deg, #ff4d82, #ff8fab);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2em;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 77, 130, 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes modalPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .love-text {
        font-size: 3em;
        gap: 10px;
    }
    
    .days-circle {
        width: 90px;
        height: 90px;
        font-size: 1.5em;
    }
    
    .proposal-title {
        font-size: 2em;
    }
    
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        margin: 20px;
        padding: 30px;
    }
}

::selection {
    background: #ff4d82;
    color: white;
}
::-moz-selection {
    background: #ff4d82;
    color: white;
}