@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&display=swap');

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Gloria Hallelujah', cursive;
background-color: #f5f1fa;
    background-image: url(../images/png-1.png), url(../images/png-2.png), url(../images/png-3.jpg), url(../images/png-3.jpg), url(../images/png-4.jpg);
    background-position: 3% 2%, 98% 2%, 0 100%, 50% 15%, 95% 95%;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-size: 350px, 200px, 400px, 300px, 300px;
}

.envelope {
    background: white;
    width: 90%;
    max-width: 800px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    animation: openEnvelope 0.5s ease-out;
}

.letter {
    background: #fff9f9;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #ffb6c1;
    background-image: linear-gradient(#ffb6c1 1px, transparent 1px);
    background-size: 100% 2em;
}

.child-writing {
    line-height: 2;
    color: #333;
}

.question-container {
    margin: 20px 0;
    text-align: center;
}

input {
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #ffb6c1;
    border-radius: 5px;
    font-family: 'Gloria Hallelujah', cursive;
    width: 200px;
}

button {
    background-color: #ff8fab;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-family: 'Gloria Hallelujah', cursive;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: scale(1.05);
}

.error-message {
    color: #ff4466;
    display: none;
}

.coupon {
    font-size: 1.2em;
    color: #ff4466;
    text-align: center;
    padding: 10px;
    border: 2px dashed #ff4466;
    margin: 20px 0;
}

.photos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.photos img {
    max-width: 200px;
    border: 10px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transform: rotate(-3deg);
    object-fit: cover;
}

.photos img:nth-child(2) {
    transform: rotate(3deg);
}

.photos img:nth-child(3) {
    transform: rotate(0deg);
}

@keyframes openEnvelope {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
} 

