body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-image: url('images/Untitled.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

.card-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    perspective: 1000px;
}

.card {
    position: relative;
    width: 100%;
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 1s;
    cursor: pointer;
}

.card:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
}

.card-front {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
}

.card-back {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    transform: rotateY(180deg);
    color: #333;
}

h1 {
    font-size: 2.3rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

p {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 30px;
}

.name-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

input {
    padding: 10px 15px;
    border-radius: 50px;
    border: none;
    margin-bottom: 10px;
    width: 200px;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button {
    padding: 10px 25px;
    border-radius: 50px;
    border: none;
    background-color: #ff6b6b;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.personalized-greeting {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.decoration {
    position: absolute;
    z-index: -1;
}

.egg {
    width: 40px;
    height: 50px;
    background-color: #fff;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: absolute;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bunny {
    position: absolute;
    font-size: 2rem;
}

.flower {
    position: absolute;
    font-size: 1.5rem;
    color: #ff6b6b;
}

.flip-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.rotating {
    animation: rotate 10s linear infinite;
}