@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('/mnt/data/09B9B0AE-A309-45A6-AF07-18BBA1C74AC2.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    color: #FFB6C1; /* Light pink color */
}

.header {
    font-size: 1.5em;
    margin-top: 20px;
    font-family: 'Playfair Display', serif;
    align-self: flex-start;
    margin-left: 20px;
    color: #FFB6C1; /* Light pink color */
}

.footer {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-family: 'Playfair Display', serif;
    color: #FFB6C1; /* Light pink color */
}

.card-container {
    position: relative;
    width: 90%;
    max-width: 300px;
    height: 60%;
    max-height: 400px;
    perspective: 1000px;
    margin-top: 50px;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 228, 225, 0.8); /* Misty rose with transparency */
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 5px solid transparent;
    transition: transform 0.5s ease-in-out, top 0.5s ease-in-out, opacity 0.5s ease-in-out;
    font-family: 'Playfair Display', serif; /* Matching font */
    padding: 20px; /* Padding for text */
    box-sizing: border-box;
    font-size: 0.9em; /* Adjusted font size */
    display: none; /* Hide initially */
    overflow-y: auto; /* Scroll if content overflows */
}

.card-1 {
    top: 0;
    z-index: 6;
    border-color: #FFB6C1;
    animation: float 2s infinite ease-in-out;
    display: block; /* Show the first card */
    color: #FFB6C1; /* Pastel pink */
}

.card-2 {
    top: 10px;
    z-index: 5;
    border-color: #FFC0CB;
    color: #FFC0CB; /* Pastel pink */
}

.card-3 {
    top: 20px;
    z-index: 4;
    border-color: #FF69B4;
    color: #FFB6D1; /* Pastel pink */
}

.card-4 {
    top: 30px;
    z-index: 3;
    border-color: #FF1493;
    color: #FFB7C5; /* Pastel pink */
}

.fly-in-card {
    position: absolute;
    top: 200%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 228, 225, 0.8); /* Misty rose with transparency */
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease-in-out;
    border: 5px solid #FF69B4; /* Hot pink color */
    font-family: 'Playfair Display', serif; /* Matching font */
    padding: 20px; /* Padding for text */
    box-sizing: border-box;
    font-size: 0.9em; /* Adjusted font size */
    color: #FF69B4; /* Pastel pink */
}

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

@media (max-width: 600px) {
    .header {
        font-size: 1.2em;
        margin-left: 10px;
    }

    .footer {
        font-size: 0.8em;
        bottom: 10px;
        right: 10px;
    }

    .card-container {
        width: 100%;
        max-width: none;
        height: 70%;
        max-height: none;
    }

    .card {
        font-size: 0.7em;
        padding: 10px;
    }

    .fly-in-card {
        font-size: 0.7em;
        padding: 10px;
    }
}