@import url('https://fonts.googleapis.com/css2?family=Delius&display=swap');
/* General Styles */
body {
    font-family: Delius, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1 {
    text-align: center;
    margin-top: 20px;
    color: #5c67f2;
    font-size: 2.5rem;
}

.main{
    font-size: 3.5rem;
    color:#6721f2;
    text-decoration: underline;
}

h2, h3 {
    text-align: center;
    color: #555;
}

.add-calendar {
    display: none;
}
/* Birthday Cards */
.birthday-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 1200px;
}

.card {
    background: #ffffff;
    width: 280px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(92, 103, 242, 0.3);
    .add-calendar {
        display: block;
    }
}

.card img {
    border-radius: 50%;
    width: 90px;
    height: 90px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #5c67f2;
    loading: lazy;
}

.card .name {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
}

.card .details {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}


/* Filter Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    margin: 20px auto;
    text-align: center;
}

.dropdown-button {
    background-color: #5c67f2;
    color: #ffffff;
    font-size: 1.5em;
    font-family: Delius, sans-serif;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dropdown-button:hover {
    background-color: #7a85f4;
    transform: scale(1.05);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 300px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 10px;
    padding: 20px;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-content.show {
    display: block;
}

.dropdown-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dropdown-content label {
    color: #555;
    font-size: 0.9em;
}

.dropdown-content select,
.dropdown-content input,
.dropdown-content button {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    color: #333;
    transition: all 0.3s ease;
    font-size: 1em;
}

.dropdown-content select:focus,
.dropdown-content input:focus,
.dropdown-content button:focus {
    outline: none;
    border-color: #5c67f2;
    box-shadow: 0 0 5px rgba(92, 103, 242, 0.5);
}

.dropdown-content button {
    background-color: #5c67f2;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.dropdown-content button:hover {
    background-color: #7a85f4;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .birthday-container {
        gap: 15px;
    }

    .card {
        width: 100%;
        max-width: 340px;
    }

    .dropdown-content {
        min-width: 100%;
    }
}

/* Center the dropdown button */
.dropdown {
    text-align: center;
    margin: 20px auto;
    display: block;
}

.add-calendar {
    margin-top: 10px;
    text-align: center;
}

.calendar-btn {
    background-color: #4285F4;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.calendar-btn img {
    height: 20px;
}

.calendar-btn:hover {
    background-color: #3367D6;
    transform: translateY(-2px);
}
