/* Main Section */
main {
    margin: 2% 15vw;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: #34495e;
    font-size: 2.5em;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #34495e, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: slideIn 1s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

h2 {
    color: #3498db;
    font-size: 2em;
    margin-bottom: 15px;
    animation: slideIn 1s ease-in-out 0.2s;
    animation-fill-mode: both;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    margin: 0 auto;
    margin-bottom: 10vh;
    background:  #f1f1f1;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-in-out 0.4s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: white;
    overflow: hidden;
    width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
    animation-fill-mode: both;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-image {
    height: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.card-content {
    padding: 15px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #34495e;
    animation: fadeIn 0.5s ease-in-out 0.6s;
    animation-fill-mode: both;
}

.card p {
    font-size: 1em;
    color: #666;
    animation: fadeIn 0.5s ease-in-out 0.8s;
    animation-fill-mode: both;
}

.actions {
    margin-top: 10px;
    animation: fadeIn 0.5s ease-in-out 1s;
    animation-fill-mode: both;
}

.edit-button, .delete-button {
    display: inline-block;
    padding: 5px 15px;
    margin: 5px;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s, transform 0.3s;
}

.edit-button {
    background-color: #007bff;
}

.edit-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.delete-button {
    background-color: #dc3545;
}

.delete-button:hover {
    background-color: #a71d2a;
    transform: translateY(-2px);
}

.member-card h3 {
    margin-bottom: 5px;
    font-size: 1.1em;
}

.member-card p {
    font-size: 0.9em;
    color: #3498db;
    font-style: italic;
}

.president-card {
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    width: 700px;
    padding: 10px;
    background: #ffffff;
    animation: fadeIn 0.5s ease-in-out 0.6s;
    animation-fill-mode: both;
}

.president-card img {
    width: 150px;
    height: 100%;
    border-radius: 10px;
}

.president-card .card-content {
    margin: 0 auto;
    width: 100%;
}


@media (max-width: 768px) {
    main {
        margin: 2% 10%;
    }

    .container {
        gap: 10px;
    }

    .card {
        display: flex;
        flex-direction: row;
        width: 100%;
    }

    .card img {
        width: 150px;
        height: 100%;
    }
    .card-content, .president-card .card-content{
        width: 80%;
    }
}

@media (max-width: 480px) {
    main {
        margin: 2% 5%;
    }

    .card img {
        width: 75px;
        height: 100%;
    }

    .card {
        min-height: 120px;
    }

    .member-card h3 {
        margin-bottom: 5px;
        font-size: 0.9em;
    }

    .member-card p {
        font-size: 0.6em;
        color: rgb(26, 137, 255);
        font-style: italic;
    }

    .president-card h3 {
        margin-bottom: 5px;
        font-size: 0.9em;
    }

    .president-card p {
        font-size: 0.8em;
    }
}