
#weather-container {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    width: 100%;
    justify-items: center;
    align-items: start;
}

.weather-date {
    font-size: 30px;
}

.weather-location {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.weather-location h2 {
    text-align: center;
    margin-bottom: -20px;
}

.weather-row {
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 20px;
}

.weather-row:not(:last-child) {
    position: relative;
}

.weather-row:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 1px;
    width: 100%;
    background-color: #ddd;
}

.weather-row .details {
    line-height: 1.2;
    font-size: 1.1rem;
}

.weather-row .details h3 {
    font-size: 1.2rem;
}

.weather-row .details .precipitation {
    color: #42a3f1;
    font-size: 0.9rem;
    padding-top: 10px;
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    min-width: 100px;
    max-width: 100px;
}

.weather-map {
    width: 350px;
    height: 530px;
    position: relative;
}

.weather-map img {
    width: 100%;
    user-select: none;
}

.weather-map-description {
    padding: 0 20px;
    max-width: 350px;
}

.weather-today-icon {
    width: 120px;
    height: 120px;
    background: white;
    position: absolute;
    border-radius: 10px;
    border: 2px solid #ddd;
    transform: scale(0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.weather-today-icon .icon-container img {
    width: 100px;
}

#weather-today-lugano {
    bottom: 40px;
    right: 40px;
}

#weather-today-bellinzona {
    bottom: 170px;
    right: 60px;
}

#weather-today-faido {
    bottom: 345px;
    right: 100px;
}

@media (min-width: 768px) {
    .weather-location:not(:last-child) {
        position: relative;
    }

    .weather-location:not(:last-child)::after {
        content: "";
        position: absolute;
        right: -20px;
        width: 1px;
        height: 100%;
        background-color: #ddd;
    }
}