@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Pacifico&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Soft animated pastel gradient */
    background: linear-gradient(-45deg, #fee9f7, #e8f5fe, #fef2e8, #f0ffe8);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: 'Quicksand', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Custom Cursor */
.cursor {
    width: 25px;
    height: 25px;
    background: rgba(255, 105, 180, 0.6); /* Soft pink */
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: multiply;
}

.cursor.click {
    transform: scale(0.5);
    background: rgba(255, 20, 147, 0.8);
}

.container {
    text-align: center;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-family: 'Pacifico', cursive;
    font-size: 4rem;
    color: #ff69b4;
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.4);
    margin-bottom: 1.5rem;
    animation: floatTitle 3s ease-in-out infinite;
}

h2 {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: #ff85c0;
    text-shadow: 0 0 10px rgba(255, 133, 192, 0.4);
    margin-bottom: 2rem;
}

.message-text, .typewriter-text {
    font-size: 1.6rem;
    color: #6a4c93; /* Soft purple/dark pink */
    margin-bottom: 2.5rem;
    min-height: 3rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Buttons */
.cute-btn {
    padding: 15px 35px;
    font-size: 1.3rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    background: linear-gradient(45deg, #ff85c0, #ffb3d9);
    border: none;
    border-radius: 50px;
    color: white;
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
}

.cute-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.5);
}

/* Floating Elements (Hearts) */
.floating-heart {
    position: absolute;
    pointer-events: none;
    color: #ffb3d9;
    font-size: 24px;
    z-index: 1;
    animation: floatUp 8s linear infinite;
    opacity: 0.6;
}

/* Memories Grid */
.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.memory-card {
    background: white;
    padding: 12px 12px 35px 12px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    position: relative;
    transform: rotate(calc(-3deg + 6deg * var(--rand))); 
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

.memory-card:nth-child(1) { animation-delay: 0.1s; }
.memory-card:nth-child(2) { animation-delay: 0.2s; }
.memory-card:nth-child(3) { animation-delay: 0.3s; }
.memory-card:nth-child(4) { animation-delay: 0.4s; }
.memory-card:nth-child(5) { animation-delay: 0.5s; }
.memory-card:nth-child(6) { animation-delay: 0.6s; }
.memory-card:nth-child(7) { animation-delay: 0.7s; }

.memory-card:hover {
    transform: scale(1.08) rotate(0deg);
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.2);
    z-index: 20;
}

.memory-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
}

.memory-caption {
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    font-family: 'Pacifico', cursive;
    color: #ff69b4;
    font-size: 1.1rem;
    left: 0;
}

/* Finale Page - Letter */
.finale-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.9);
    word-break: break-word;
    overflow-wrap: break-word;
}

.finale-box p {
    font-size: 1.4rem;
    color: #5a3c73;
    line-height: 1.8;
    margin-bottom: 20px;
}

.signature {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    color: #ff69b4;
    text-align: right;
    margin-top: 30px;
}

.promise-list {
    list-style-type: none;
    margin-top: 25px;
    padding-left: 0;
    text-align: left;
}

.promise-list li {
    font-size: 1.2rem;
    color: #6a4c93;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    line-height: 1.5;
}

.promise-list li::before {
    content: "🤍";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1rem;
}

/* Checklist UI */
.checklist-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    margin-top: 25px;
    box-shadow: 0 10px 25px rgba(161, 140, 209, 0.2);
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.checklist-box h3 {
    font-family: 'Quicksand', sans-serif;
    color: #6a4c93;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.adulting-list {
    list-style: none;
}

.adulting-list li {
    font-size: 1.2rem;
    color: #4a4a4a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.adulting-list li:hover {
    transform: translateX(5px);
    color: #a18cd1;
}

.adulting-list input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #ff69b4;
    cursor: pointer;
}

/* Forgive Section (Runaway Button) */
#forgive-section h1 {
    margin-bottom: 50px;
    margin-top: 50px;
}

.forgive-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    width: 100%;
}

#btn-yes {
    z-index: 10;
}

#btn-no {
    background: linear-gradient(45deg, #ff4d4d, #ff6b81);
    z-index: 20;
    transition: left 0.3s ease, top 0.3s ease;
}

/* Mini Game UI */
.game-hud {
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #5a3c73;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.falling-kiss {
    position: absolute;
    font-size: 3rem;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    z-index: 51;
    transition: transform 0.1s;
}

.falling-kiss:active {
    transform: scale(0.8);
}

/* Interactive Gift Box */
#gift-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

#gift-instruction {
    font-size: 2.5rem;
    margin-bottom: 40px;
    animation: pulseText 2s infinite;
}

.gift-box {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gift-box:hover {
    transform: scale(1.05);
}

#hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.gift-body {
    position: absolute;
    bottom: 0;
    width: 180px;
    height: 160px;
    background: linear-gradient(135deg, #ff85c0, #ffb3d9);
    left: 10px;
    border-radius: 8px;
    box-shadow: inset -10px -10px 20px rgba(0,0,0,0.1), 0 10px 25px rgba(255, 105, 180, 0.3);
    overflow: hidden;
}

.gift-lid {
    position: absolute;
    top: 20px;
    width: 200px;
    height: 40px;
    background: linear-gradient(135deg, #ff99cc, #ffcce6);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 2;
    transition: transform 0.5s ease-in-out;
}

.gift-ribbon-v, .gift-ribbon-h {
    position: absolute;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.gift-ribbon-v {
    width: 30px;
    height: 100%;
    left: 75px;
}

.gift-ribbon-h {
    width: 100%;
    height: 30px;
    top: 60px;
}

/* Shake classes */
.shake-1 { animation: shakeSoft 0.4s ease-in-out; }
.shake-2 { animation: shakeHard 0.4s ease-in-out; }

/* Open Box Class */
.gift-box.open .gift-lid {
    transform: translateY(-80px) rotate(15deg) scale(1.1);
    opacity: 0;
}
.gift-box.open .gift-body {
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

/* Animations */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatTitle {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseText {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; text-shadow: 0 0 15px rgba(255,105,180,0.8); }
    100% { transform: scale(1); opacity: 0.9; }
}

@keyframes shakeSoft {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes shakeHard {
    0% { transform: rotate(0deg) scale(1.05); }
    20% { transform: rotate(-10deg) scale(1.05); }
    40% { transform: rotate(10deg) scale(1.05); }
    60% { transform: rotate(-10deg) scale(1.05); }
    80% { transform: rotate(10deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1.05); }
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(-20vh) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

@keyframes popIn {
    0% { opacity: 0; transform: translateY(50px) scale(0.8); }
    100% { opacity: 1; transform: rotate(calc(-3deg + 6deg * var(--rand))); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .message-text, .typewriter-text { font-size: 1.2rem; }
    .cute-btn { font-size: 1.1rem; padding: 12px 25px; }
    .finale-box { padding: 25px; }
    .finale-box p { font-size: 1.1rem; }
    .memories-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .memory-card img { height: 150px; }
}

@media (max-width: 480px) {
    .memories-grid { grid-template-columns: 1fr; max-width: 280px; }
    .memory-card img { height: 200px; }
}
