@charset "utf-8";

.mod__weather__api {
    --weatherMainColor: #ebebeb;
    --weatherLightColor: #484848;
    --weatherGreyColor: #ddd;
    --weatherRadius: 1rem;
    --weatherPadding: 2rem;
}

.waether__item:first-of-type {
    margin: .5rem 0 1.5rem;
}

.waether__item .weather__inner {
    background-color: var(--weatherMainColor);
    color: var(--weatherLightColor);
    border-radius: var(--weatherRadius);
    padding: var(--weatherPadding) calc(var(--weatherPadding) / 2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.highlight__first .waether__item:not(:first-of-type) .weather__inner {
    border-radius: 0;
    position: relative;
}

.highlight__first .waether__item:not(:first-of-type):not(:last-of-type) .weather__inner::after {
    position: absolute;
    content: '';
    z-index: 5;
    top: 100%;
    left: var(--weatherPadding);
    height: 1px;
    width: calc(100% - var(--weatherPadding) * 2);
    background-color: var(--weatherLightColor);
}

.highlight__first .waether__item:nth-child(2) .weather__inner {
    border-top-left-radius: var(--weatherRadius);
    border-top-right-radius: var(--weatherRadius);
}

.highlight__first .waether__item:last-of-type .weather__inner {
    border-bottom-left-radius: var(--weatherRadius);
    border-bottom-right-radius: var(--weatherRadius);
}

.highlight__first .waether__item:first-of-type .weather__inner {
    padding: var(--weatherPadding);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.highlight__first .waether__item:first-of-type .weather__inner .weather__firstHeading {
    display: flex;
    white-space: nowrap;
    flex: 0 0 100%;
    order: 1;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--weatherLightColor);
    padding: 0 1rem .5rem;
    border-bottom: 1px solid var(--weatherLightColor);
}

.highlight__first .waether__item:first-of-type .weather__inner .weather__dayCondition {
    order: 3;
}

.highlight__first .waether__item:first-of-type .weather__inner .weather__dayCondition .weather__temp {
    margin: 4rem 0 0;
}

.highlight__first .waether__item:first-of-type .weather__inner .weather__icon {
    order: 2;
    margin: 0;
}

.highlight__first .waether__item:first-of-type .weather__inner .weather__icon svg {
    width: 6rem;
}

.weather__dayCondition p {
    margin: 0;
}

.weather__dayCondition .weekDay {
    font-weight: 800;
    font-size: 1.25rem;
    margin: .5rem;
}

.weather__icon {
    margin: 2rem 0;
}

.weather__icon svg {
    width: 4rem;
}

.weather__temp {
    font-size: 1.5rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .weather__items {
        display: grid;
        grid-gap: .5rem;
        grid-template-columns: repeat(2, 1fr);
    }
    .waether__item {
        margin: 0;
    }
    .highlight__first .weather__items {
        grid-gap: 0;
    }

    .waether__item:first-of-type {
        margin: 0;
    }
    .highlight__first .waether__item:not(:first-of-type):not(:last-of-type) .weather__inner::after {
        left: auto;
        right: 0;
        top: var(--weatherPadding);
        height: calc(100% - var(--weatherPadding) * 2);
        width: 1px;
    }
    
    .highlight__first .waether__item:first-of-type {
        margin-right: 2rem;
    }

    .highlight__first .waether__item .weather__inner {
        height: 100%;
    }

    .highlight__first .waether__item:nth-child(2) .weather__inner {
        border-top-right-radius: 0;
        border-bottom-left-radius: var(--weatherRadius);
    }
    
    .highlight__first .waether__item:last-of-type .weather__inner {
        border-top-right-radius: var(--weatherRadius);
        border-bottom-left-radius: 0;
    }
}

@media (min-width: 992px) {
    .weather__items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .weather__items {
        grid-template-columns: repeat(5, 1fr);
    }
}