* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    text-align: center;
    background-color: #f5f5f5;
}

.header-container {
    background-color: #0288d1;
    color: white;
    padding: 1rem;
    text-align: center;
}

header p {
    font-size: 0.9rem;
}

header h1 {
    margin-bottom: 0.5rem;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.2rem;
    display: inline-block;
    padding: 0.5rem;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #0277bd;
    border-radius: 5px;
}

main {
    padding: 2rem;
}

h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.8rem;
}

.content {
    margin-bottom: 2rem;
}

.image-container {
    margin: 1rem 0;
    text-align: center;
}

.dynamic-image {
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease, border-radius 0.5s ease;
}

.dynamic-image:hover {
    transform: scale(1.1);
    border-radius: 50%;
}

.animated-image {
    animation: fadeInUp 1s ease-out;
}

.explanatory-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.card {
    background-color: #e1f5fe;
    padding: 1.5rem;
    width: 30%;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    border-radius: 10px;
}

.card:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    background-color: #81d4fa;
}

footer {
    background-color: #0288d1;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

footer p {
    margin: 0.5rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .explanatory-cards {
        flex-direction: column;
    }

    .card {
        width: 100%;
        margin-bottom: 1rem;
    }
}
