body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Estilos para Light Mode */
body.light-mode {
    background-color: #f8f8f8;
    color: rgb(0, 0, 0);
}

body.light-mode .gauge-container,
body.light-mode .charts-container {
    background-color: #fff;
}

/* Estilos para Dark Mode */
body.dark-mode {
    background-color: #1d2122;
    color: white;
}

body.dark-mode .gauge-container,
body.dark-mode .charts-container {
    background-color: #333;
}

body.dark-mode .gauge-title,
body.dark-mode .gauge-value {
    color: white;
}

body.dark-mode footer {
    background-color: #1d2122;
    color: white;
}


/* Estilos para el botón */
#dark-mode-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 10px;
    background-color: #6200ea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.5s ease;
}

#dark-mode-toggle:hover {
    transform: translateY(-5px);
}

.container {
    max-width: 1200px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
    margin: 0 auto;
    padding: 20px;
}

.gauge-container {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px;
    max-width: 100%;
}




.gauge-container canvas {
    width: 100%;
    height: 200px;
}

.charts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gauge-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
}

.gauge-value {
    text-align: center;
    font-size: 1.2em;
    margin-top: 10px;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f1f1f1;
    text-align: center;
    padding: 10px;
    border-top: 1px solid #ddd;
}

footer p {
    margin: 0;
    font-size: 14px;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {

    .gauges-container,
    .charts-container {
        flex-direction: column;
        align-items: center;
    }

    .gauge-container,
    .charts-container canvas {
        max-width: 100%;
        width: 100%;
    }
}