* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos básicos para la aplicación */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: white;
    transition: background-color 0.5s ease;
    /* Suave transición para el cambio de color */
}

.weather-app {
    text-align: center;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(90deg, #c1c4fb 0%, #E8E9FF 100%);
    height: 95vh;
    width: 90vh;
}

h1,
h2 {
    color: white;
    font-size: 40px;
}

/* Hero image (imagen de fondo por defecto) */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('NewYork.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.6);
}


/* Search Bar Styles */
.search-container {
    margin-bottom: 20px;
    padding: 10px;
}

#city-input {
    padding: 10px 10px;
    width: 250px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    color: blue;
}

#search-button {
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
}

#search-button:hover {
    background-color: #0056b3;
}

/* Weather Info Styles */
#weather-info {
    margin-top: 20px;

}

/* Estilo del ícono del clima */
#weather-icon img {
    width: 100px;
    height: 100px;
    margin: 10px 0;
}


/* Forecast Container Styles */
#forecast-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* Cambios de color del forecast container basados en el clima */
#forecast-container.rainy {
    background-color: #4f4f4f;
    /* Gris para lluvia */
}

#forecast-container.sunny {
    background-color: rgb(236, 236, 144);
    /* Azul claro para soleado */
}

#forecast-container.cloudy {
    background-color: #4682B4;
    /* Azul más oscuro para intervalos de nubes */
}

.forecast-day {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: lightslategray;
}


@media (max-width: 600px) {
    #forecast-container {
        gap: 10px;
        /* Ajustar espaciado para pantallas pequeñas */
    }
}








.main-weather {
    position: relative;
    color: white;
    /* Default color for main weather info */
    text-align: left;
}