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

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

body {
    min-height: 100vh;
    background: linear-gradient(-45deg, #ffe6e6, #e6e6ff, #ffebf5);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: 'Quicksand', sans-serif;
    overflow-x: hidden;
    padding: 2rem;
}

.custom-cursor {
    width: 30px;
    height: 30px;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    will-change: transform;
}

.custom-cursor.visible {
    opacity: 1;
}

/* Touch screens: no custom cursor */
@media (hover: none) {
    .custom-cursor { display: none; }
}

.custom-cursor svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 3px rgba(120, 0, 60, 0.45));
}

.custom-cursor svg path {
    stroke: #fff;
    stroke-width: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

h1 {
    font-family: 'Baloo 2', cursive;
    font-size: 3rem;
    color: #ff69b4;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
    margin-bottom: 2rem;
    animation: bounce 1s ease infinite;
}

.shuffle-button {
    background: linear-gradient(45deg, #ff69b4, #ff99cc);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: white;
    margin: 2rem 0;
    cursor: pointer;
    transition: transform 0.3s;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.shuffle-button:hover {
    transform: scale(1.1);
}

.floating {
    position: fixed;
    pointer-events: none;
    animation: float 3s ease-in-out infinite;
}

.ending-section {
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
}

.ending-text {
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    color: #ff69b4;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.teddy-hug {
    width: 300px;
    max-width: 80vw;
    margin: 0 auto 2rem;
    transform: scale(0);
}

.teddy-hug img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    border: 6px solid #fff;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.35);
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
}
.shuffle-button {
    background: linear-gradient(45deg, #ff69b4, #ff99cc);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: white;
    margin: 2rem 0;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.shuffle-button.story-mode {
    background: linear-gradient(45deg, #9b6dff, #ff6dc7);
    transform: scale(1.1);
}

.shuffle-button:hover {
    transform: scale(1.1);
}

.shuffle-button.story-mode:hover {
    transform: scale(1.2);
}

.reason-counter {
    font-size: 0.9rem;
    color: #ff69b4;
    margin-top: 1rem;
    opacity: 0.7;
}
/* Reason cards: photo beside text */
#reasons-container {
    max-width: 820px;
    margin: 0 auto;
}

.reason-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    box-shadow: 0 8px 24px rgba(255, 105, 180, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 105, 180, 0.25);
}

.reason-card.reverse {
    grid-template-columns: 1fr 240px;
}

.reason-card.reverse .reason-photo {
    order: 2;
}

.reason-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.4s;
}

.reason-card:hover .reason-photo img {
    transform: scale(1.03);
}

.reason-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #5a4a5a;
    padding: 0 0.5rem;
}

.reason-emoji {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
    .reason-card,
    .reason-card.reverse {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .reason-card.reverse .reason-photo {
        order: 0;
    }

    .reason-photo img {
        max-width: 280px;
        margin: 0 auto;
    }

    .reason-text {
        font-size: 1.05rem;
    }
}
