/* Import a stylish font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

.calendar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f0f4f8, #e2e6ea);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: gradientShift 10s ease infinite, fadeIn 2s ease-in-out;
    font-family: 'Roboto', sans-serif; /* Apply the new font */
    flex-direction: row; /* Ensure items are in a row */
}

.calendar-date {
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center items vertically */
}

.calendar-day,
.calendar-month,
.calendar-year {
    margin: 0 10px; /* Space between elements */
}

.calendar-day {
    font-size: 30px;
    font-weight: bold;
    color: #333;
    animation: bounceIn 1s ease-out;
}

.calendar-month,
.calendar-year {
    font-size: 30px;
    color: #5e0202;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.calendar-month {
    animation-delay: 0.5s;
}

.calendar-year {
    animation-delay: 1s;
}

@keyframes gradientShift {
    0% {
        background: linear-gradient(135deg, #f5f8d0, #fffed3);
    }
    50% {
        background: linear-gradient(135deg, #f2ffcd, #e5e4db);
    }
    100% {
        background: linear-gradient(135deg, #edffb2, #f7f3a7);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
