/* Estilos generales */
body,
html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
}

.container {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100vh;
    width: 100%;

}

h1{
    text-align: center;
}

#AEMET{
    display: flex;
    justify-content: center;
    align-items: center;
}

header {
    background-color: #ffffff;
    color: #333333;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #007bff;
    font-size: 20px;
}

main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.chart-section {
    background-color: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
}

.chart {
    width: 100%;
    height: 100%;
}

.chart-description {
    text-align: center;
    margin-top: 10px;
    color: #666;
}

.input-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px;
    text-align: center;
}

input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    width: calc(100% - 20px);
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

#container1 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 70vh; /* Establece la altura al 100% del viewport */
}

#mapid {
    align-items: center;
    width: 100%;
    height: 100%;
}

#info{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1px;
    text-align: left;
    padding: 20px;
}

footer a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
}

/* Estilos específicos para dispositivos móviles */
@media only screen and (max-width: 768px) {
    .container {
        display: block;
        width: 100%;
    }

    main {
        display: block;
    }

    .chart-section {
        width: 100%;
        margin-bottom: 20px;
    }

    .input-section {
        width: 100%;
    }

    input[type="text"],
    button {
        width: 100%;
    }

    #mapid {
        width: 100%;
        height: 300px;
    }
}
