/* Aplicar fuente sans-serif a todo el documento */
* {
    font-family: sans-serif;
    background-color: black;
}

/* Estilos para la etiqueta <main> */
main {
    text-align: center;
    color: white;
    background-color: black;
}

/* Estilos para la tabla */
table {
    border-collapse: collapse;
    margin: auto;
}

/* Borde para la tabla, celdas, filas y encabezados */
table, th, td {
    border: 1px solid white;
}

/* Padding para las celdas y encabezados */
th, td {
    padding: 5px;
}

/* Padding para el título */
h1 {
    padding: 1em;
}

button {
      background-color: lightgray;
}

/* Estilos para contenedores #datos y #tablas */
#datos, #tablas {
    display: flex;
    margin: 1em;
    padding: 1em;
    background-color: black;
    justify-content: center;
}

/* Estilos para elementos #maximo, #minimo, y #medio */
#maximo p {
    color: red;
    font-size: 1.5em;
    font-weight: bold;
}

#minimo p {
    color: green;
    font-size: 1.5em;
    font-weight: bold;
}

#medio p {
    color: yellow;
    font-size: 1.5em;
    font-weight: bold;
}

/* Estilos para las tablas individuales y otros contenedores */
#tabla1, #tabla2, #tabla3, {
    width: 100%; /* Asegura que ocupen todo el ancho disponible */
    display: flex;
    justify-content: center; /* Centrar las tablas horizontalmente */
    margin-bottom: 1em; /* Añade espacio entre las tablas */
}

#maximo, #minimo, #medio {
    float: left;
    width: 20%;
}

/* Centrar texto dentro de las tablas */
#tabla1 table, #tabla2 table, #tabla3 table {
    text-align: center;
}

/* Establecer un ancho fijo para las celdas dentro de las tablas */
#tabla1 table td, #tabla2 table td, #tabla3 table td {
    width: 100px;
}

/* Estilo para el gráfico */
#grafico {
    width: 50%;
    margin: auto;
    display: block;
}

/* Estilo para el botón de WhatsApp */
.botonw {
    background-image: url("../img/whatsapp1_opt.jpg");
    background-repeat: no-repeat;
    height: 56px;
    width: 75px;
    background-position: center;
}

/* Estilo para el elemento <canvas> */
canvas {
    height: 400px;
    width: 600px;
    border: 1px solid white;
}

/* Estilos básicos para las pestañas */
.tabs {
    overflow: hidden;
    background-color: black;
    /*border-bottom: 2px solid #ccc;*/
    display: flex;
    border-radius: 4px 4px 0 0;
    justify-content: center;
}

.tab-link {
    background-color: gray;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.tab-link:hover {
    background-color: #d4d4d4;
}

.tab-link.active {
    background-color: #ffffff;
    color: #333;
    font-weight: bold;
    border-bottom: 2px solid #ffffff;
}

/* Estilos para el contenido de las pestañas */
.tab-content {
    padding: 20px;
    /*border: 1px solid #ccc;*/
    border-radius: 0 0 4px 4px;
    border-top: none;
    background-color: black;
}

/* Agregar un espacio al contenido para que no esté pegado a los bordes */
.tab-content h3 {
    margin-top: 0;
}

/* latin-ext */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 100;
    src: url(https://fonts.gstatic.com/s/lato/v22/S6uyw4BMUTPHjxAwXjeu.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 100;
    src: url(https://fonts.gstatic.com/s/lato/v22/S6uyw4BMUTPHjx4wXg.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
