@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.container {
    max-width: 800px;
    margin: 2rem auto;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    animation: fadeIn 0.5s ease-in;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.nav-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    background-color: #f8f9fa;
    color: #0033A0;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: #D52B1E;
    color: white;
}

.nav-button.active {
    background-color: #0033A0;
    color: white;
}

.section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section.active {
    display: block;
    opacity: 1;
}

.currency-description {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    text-align: center;
}

.currency-boxes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.currency-box {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.conversion-icon {
    font-size: 2rem;
    color: #0033A0;
}

.currency-code {
    font-weight: bold;
    color: #0033A0;
}

.currency-value {
    font-size: 1.2rem;
}

.flag {
    width: 40px;
    height: auto;
}

.chart-container {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem auto;
    max-width: 700px;
}

.last-update {
    text-align: center;
    color: #666;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.about-content {
    padding: 1rem;
    text-align: center;
}

.about-content h3 {
    color: #0033A0;
    margin: 1.5rem 0 1rem;
}

.about-content ul {
    list-style: none;
    margin: 1rem 0;
}

.developer-info {
    margin-top: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    text-align: center;
}

.developer-info a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0033A0;
    text-decoration: none;
    transition: color 0.3s ease;
    justify-content: center;
}

.developer-info a:hover {
    color: #D52B1E;
}

.linkedin-icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 600px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }

    nav {
        flex-direction: column;
    }

    .nav-button {
        width: 100%;
    }

    .currency-boxes {
        flex-direction: column;
        gap: 1rem;
    }

    .currency-box {
        width: 100%;
        justify-content: center;
    }

    .conversion-icon {
        transform: rotate(90deg);
    }
}