/* Reset some default styles */
body, h1, button, div {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to right, #ffafbd, #ffc3a0);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    color: #333;
}

/* Container styles */
.container {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: white;
    max-width: 600px;
    width: 90%;
}

/* Headline styles */
.headline {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6f61;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

/* Button styles */
#surpriseBtn {
    background-color: #ff6f61;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 30px;
    transition: background-color 0.3s, transform 0.3s;
}

#surpriseBtn:hover {
    background-color: #e55b50;
    transform: scale(1.05);
}

/* Gift box styles */
.gift-container {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.gift-box {
    position: relative;
    width: 150px;
    height: 150px;
}

.box {
    width: 100%;
    height: 100%;
    background-color: #ff6f61;
    position: absolute;
    top: 20px;
    left: 0;
    border-radius: 10px;
}

.lid {
    width: 100%;
    height: 20px;
    background-color: #e55b50;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px 10px 0 0;
    transition: transform 0.5s ease-in-out;
}

.ribbon {
    width: 30px;
    height: 100%;
    background-color: #ffc3a0;
    position: absolute;
    top: 0;
    left: 60px;
    z-index: 1;
    border-radius: 10px;
}

/* Message styles */
.message {
    font-size: 1.5rem;
    margin-top: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
    margin-right: 5px;
}

.space {
    width: 10px; /* Adjust width for desired space size */
    display: inline-block;
}

/* Heart icon */
.heart {
    color: #ff6f61;
    margin-right: 5px;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes openLid {
    to {
        transform: rotateX(-150deg);
    }
}
