
:root {
    --main-color: #4CAF50;
    --secondary-color: #008CBA;
    --background-color: #F5F5DC;
    --text-color: #696969;
    --hover-color: #3e8e41;
    --header-height: 80px;
    --footer-height: 60px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: white;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color var(--transition-speed) ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.main-container {
    flex: 1;
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: calc(var(--footer-height) + 20px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: opacity var(--transition-speed) ease;
}

.card:hover img {
    opacity: 1;
}

.card-content {
    padding: 20px;
}

.card h3 {
    font-size: 1.2rem;
    color: var(--main-color);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.button {
    background-color: var(--main-color);
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color var(--transition-speed) ease;
}

.button:hover {
    background-color: var(--hover-color);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    .main-container {
        grid-template-columns: 1fr;
    }
    .card img {
        height: 150px;
    }
}

footer {
    background-color: var(--main-color);
    color: white;
    text-align: center;
    padding: 15px 0;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

footer span {
    font-weight: bold;
    margin-left: 5px;
}

.chart-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

canvas {
    max-width: 100%;
    height: auto;
}

