@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 {
    font-family: 'Comic Neue', cursive;
    background: #fff5f8;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.container {
    max-width: 650px;
    width: 90%;
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    margin-top: 60px;
    box-shadow: 0 8px 25px rgba(158, 0, 58, 0.12);
    position: relative;
    z-index: 2;
}
.title {
    color: #ff4d82;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
    letter-spacing: 1px;
}
.poem {
    color: #555;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
    padding: 0 10px;
}
.love-text {
    color: #ff4d82;
    font-size: 1.3em;
    font-weight: bold;
    line-height: 1.6;
    padding: 15px;
    margin-top: 20px;
    background: #fffafb;
    border-radius: 8px;
    border: 2px solid #ffccd5;
    box-shadow: 3px 3px 0px #c8e6c9;

}
.container:hover {
    transform: translateY(-3px);
    transition: transform 0.3s ease;
    box-shadow: 0 12px 30px rgba(158, 0, 58, 0.18);
}
.heart {
    position: absolute;
    font-size: 20px;
    opacity: 0.7;
    z-index: 1;
    color: #ff4d82;
    pointer-events: none;
}

.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);
}

@media (max-width: 650px) {
    body {
        padding: 15px;
    }
    .container {
        padding: 25px 20px;
        margin: 20px auto;
        margin-top: 50px;
    }
    .title {
        font-size: 1.6em;
        margin-bottom: 20px;
    }
    .poem {
        font-size: 1.1em;
        margin-bottom: 20px;
    }
    .love-text {
        font-size: 1.2em;
        padding: 12px;
    }
    .back-button {  
        top: 10px;
        left: 10px;
        padding: 8px 15px;
        font-size: 14px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}