.weather-accordion {
    display: flex;
    gap: 15px;
}

.weather-item {
    flex: 1 1 0;
    background: #D7E3E7;
    color: #3F502C;
    border-radius: 2em;
    overflow: hidden;
    transition: flex 1.3s ease, background 1.0s ease;
}

.weather-header {
    font-family: lora;
    display: flex;
    align-items: center;
}

.weather-header img {
    width: 100px;
}

.weather-temp {
    text-align: center;
}

.weather-temp-max {
    text-align: center;
    font-family: lora;
    font-weight: bold;
}

.weather-content {
    display: flex;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.weather-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.weather-details {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 20px;
}

.weather-details p {
    margin: 0;
}


.time-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.time-column {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3px;

}

.time-column:not(:last-child) {
    border-right: 1px solid rgba(63, 80, 44, 0.2);
}


.time-column p {
    margin: 0;
}


.metric {
    display: flex;
    flex-direction: auto;
    align-items: center;
    margin-bottom: 10px;
}

.metric-description {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.metric-description p {
    text-align: center;
    word-break: break-word;
}


/* DESKTOP AND LAPTOP VIEW */
@media (min-width: 1200px) {
    .weather-accordion {
        flex-direction: row;
    }

    .weather-accordion .weather-item:hover {
        flex: 3;
    }

    .weather-item {
        height: 40em;
        padding: 10px;
    }

    .weather-item:hover .weather-content {
        opacity: 1;
        transform: translateY(0);
    }

    .weather-header {
        font-size: 2em;
        font-family: lora;
        display: flex;
        align-items: center;
    }

    .weather-temp {
        margin-bottom: 20px;
    }

    .weather-temp-max {
        font-size: 2.5em;
    }

    .weather-details {
        font-size: 1em;
        margin-bottom: 3em;
    }

    .time-column {
        font-size: 1.1em;
    }

    .metric-temp {
        font-size: 1.5em;
    }
}

/* TABLET VIEW */
@media (max-width: 1199px) {
    .weather-accordion {
        flex-direction: column;
    }

    .weather-item {
        flex: unset;
        width: 100%;
        height: auto;
    }

    .weather-header {
        font-size: 2rem;
    }

    .weather-header img {
        width: 70px;
    }

    .weather-day {
        flex-direction: column;
    }

    .weather-temp {
        margin-bottom: 10px;
    }

    .weather-temp-max {
        font-size: 3em;
    }


    .weather-content {
        max-height: 0;
    }

    .time-column {
        font-size: 1em;
    }

    .metric-temp {
        font-size: 2em;
    }

    .weather-item.active .weather-content {
        max-height: 1000px;
        opacity: 1;
        transform: translateY(0);
    }

}

/* MOBILE VIEW */
@media (max-width: 500px) {
    .weather-accordion {
        flex-direction: column;
    }

    .weather-item {
        flex: unset;
        width: 100%;
        height: auto;
    }

    .weather-header {
        font-size: 20px;
    }

    .weather-header img {
        width: 70px;
    }

    .weather-temp {
        margin-bottom: 10px;
    }

    .weather-temp-max {
        font-size: 2em;
    }


    .weather-day {
        flex-direction: column;
    }

    .weather-content {
        max-height: 0;
    }

    .time-column {
        font-size: 12px;
    }

    .metric {
        flex-direction: column;
    }

    .metric-temp {
        font-size: 18px;
    }

    .weather-item.active .weather-content {
        max-height: 1000px;
        opacity: 1;
        transform: translateY(0);
    }
}
