body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
    color: #333;
    text-align: center;

}
header {
    background-color: #0066cc;
    color: white;
    padding: 20px;
    text-align: center;
}
img {
    max-width: 100%;
    height: auto;
}
.container {
    width: 90%;
    margin: auto;
    overflow: hidden;
    align-content: center;
    height: auto;
}

footer {
    background-color: #0066cc;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}
.update-time {
    padding: 10px;
    background: #f0f0f0;
    text-align: center;
    font-style: italic;
    color: #555;
    border-bottom: 1px solid #ddd;
}

.region-title {
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.storm-container {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sections-container {
    display: flex;
    flex-direction: column; /* Cambiamos a columna por defecto */
    gap: 20px;
    margin-top: 15px;
}

/* Estilos para la información de la tormenta */
.storm-basic-info {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: left;
}

.storm-basic-info p {
    margin: 5px 0;
}

.storm-intensity {
    color: #dc3545;
    font-weight: bold;
    margin-left: 10px;
}

.storm-pressure {
    color: #007bff;
    font-weight: bold;
    margin-left: 10px;
}

/* Contenedor principal para botones y iframes */
.advisories-main-container {
    margin: 10px 0;
    position: relative;
}

.storm-links {
    margin-bottom: 10px;
}

/* Botones para avisos */
.advisory-toggle {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
    padding: 10px 15px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.advisory-toggle:hover {
    background-color: #0056b3;
}

.advisory-toggle.active {
    background-color: #004a99;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.3);
}

/* Color diferente para el botón de Forecast Discussion */
.advisory-toggle[data-type="discussion"] {
    background-color: #28a745;
}

.advisory-toggle[data-type="discussion"]:hover {
    background-color: #218838;
}

.advisory-toggle[data-type="discussion"].active {
    background-color: #1e7e34;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

/* Contenedores para iframes desplegables */
.advisory-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 5px;
}

.advisory-container.active {
    max-height: 600px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.advisory-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 5px;
}

/* Estilos para sección de alertas */
.warnings-section {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.warnings-section .section-title {
    color: #856404;
    border-bottom-color: #ffeaa7;
}

/* Para pantallas grandes (más de 900px) */
@media (min-width: 900px) {
    .sections-container {
        flex-direction: row; /* Solo horizontal en pantallas grandes */
        flex-wrap: wrap;
    }
}

/* Estilos para cada sección */
.cone-section, .discussion-section, .satellite-section {
    flex: 1 1 100%; /* Ocupa todo el ancho por defecto */
    min-width: 0; /* Permite que se ajuste correctamente */
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (min-width: 900px) {
    .cone-section, .satellite-section {
        flex: 1 1 45%; /* Dos columnas para imágenes en pantallas grandes */
    }
    
    .discussion-section {
        flex: 2 1 100%; /* Toma todo el ancho debajo en pantallas grandes */
    }
}

/* Estilos para contenedores de imágenes */
.image-container {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
}

.cone-section .image-container img,
.satellite-container img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border: 1px solid #ddd;
}

/* Iframe de discusión */
.iframe-container {
    width: 100%;
    height: 400px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-top: 10px;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Títulos de sección */
.section-title {
    margin: 0 0 10px 0;
    color: #0066cc;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    font-size: 1.2rem;
}

/* Mensajes de error */
.image-error {
    color: #dc3545;
    padding: 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin: 10px 0;
}

.image-error small {
    color: #6c757d;
    display: block;
    margin-top: 5px;
    font-size: 0.8em;
}

/* fin nuevas secciones */


.container-big {
	width: 100%;
    height: 600px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-top: 10px;
}
.iframe-noaa-history {
	width: 90%;
	height: 600px;
}

/* Estilos para el historial de tormentas */
.history-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.history-toggle {
    padding: 10px 15px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.history-toggle:hover {
    background-color: #0056b3;
}

.history-toggle.active {
    background-color: #004a99;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.3);
}

.history-content {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
}

.history-item {
    display: none;
    text-align: center;
}

.history-item.active {
    display: block;
}

.history-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 600px) {
    .history-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .history-toggle {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Para pantallas móviles */
@media (max-width: 600px) {
    .advisory-toggle {
        display: block;
        margin-bottom: 10px;
        text-align: center;
        width: 100%;
    }
    
    .storm-intensity, .storm-pressure {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .advisory-container.active {
        max-height: 400px;
    }
    
    .advisory-container iframe {
        height: 350px;
    }
}