@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: #fff5f7;
    font-family: 'Comic Neue', cursive;
    padding: 20px;
    line-height: 1.5;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    position: relative;
}

.title {
    font-size: 32px;
    color: #ff4d82;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    font-size: 16px;
    color: #66bb6a;
    margin-bottom: 30px;
    font-weight: bold;
}

.phrase-box {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 3px 3px 15px #c8e6c9;
    min-height: 180ox;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}
.phrase-box:hover {
    transform: translateY(-3px);
}
.phrase {
    font-size: 20px;
    color: #555;
    line-height: 1.6;
    text-align: center;
}
.pink-accent {
    color: #ff4d82;
    font-weight: bold;
}
.green-accent {
    color: #66bb6a;
    font-weight: bold;
}

.button-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

button {
    background-color: white;
    border: 2px solid #ffc8dd;
    color: #ff4d82;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 18px;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

button:hover {
    background-color: #fffafb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

.hearts-container {
    text-align: center;
    font-size: 20px;
    margin: 20px 0;
}

.counter-box {
    text-align: center;
    background-color: #fffafb;
    border-radius: 10px;
    border: 2px dashed #ffc8dd;
    padding: 15px;
    font-size: 18px;
}

.hearts {
    position: fixed;
    font-size: 20px;
    opacity: 0.5px;
    z-index: -1;
    pointer-events: none;
}

.back-button {
    display: inline-block;
    background: white;
    border: 2px solid #ffc8dd;
    color: #ff4d82;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 20px;
    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);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes floatHeart {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-40px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-70px) scale(0.8);
    }
}

.floating-heart {
    position: fixed;
    font-size: 24px;
    pointer-events: none;
    z-index: 100;
    animation: floatHeart 2s ease-out forwards;
}

@media (max-width: 650px) {
    .container {
        padding: 10px;
        margin: 20px auto;
    }
    .title {
        font-size: 26px;
    }
    .phrase {
        font-size: 18px;
    }
    button {
        font-size: 16px;
        padding: 10px 20px;
    }
}

::selection {
    background-color: #ff4d82;
    color: white;
}
::-moz-selection {
    background: #ff4d82;
    color: white;
}