.climate-table {
    width: 100%;
    max-width: 920px;
    margin: 0;
    padding: 0;
    table-layout: auto;
    border-spacing: 10px;
    border-collapse: separate;
    margin: 20px -10px 0 -10px;
}

.climate-table th {
    font-size: 16px;
}

.climate-table td {
    width: 48px;
    min-width: 48px;
    height: 48px;
    text-align: center;
    vertical-align: middle;
    background: #f5f5f5;
    font-size: 16px;
}

.climate-table th.subject,
.climate-table td.subject {
    width: auto;
    padding: 0 10px 0 0;
    text-align: left;
    background: #fff;
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 2;
    white-space: nowrap;
}
.climate-table td.subject.wrap {
    white-space: normal;
    text-wrap: balance;
}
.climate-table td.subject::before {
    display: block;
    content: "";
    background: transparent;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    position: absolute;
    z-index: 1;
    top: -1px;
    left: 0;
    right: 0;
    bottom: -1px;
}

.climate-table td.value {
    width: auto;
    max-width: max-content;
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
    background: #f5f5f5;
    color: #fff;
}

.climate-table td.temp-min-20 { background: #48b7ff; color: #212427; }
.climate-table td.temp-min-19 { background: #4ac0fe; color: #212427; }
.climate-table td.temp-min-18 { background: #51c3fe; color: #212427; }
.climate-table td.temp-min-17 { background: #56c9fe; color: #212427; }
.climate-table td.temp-min-16 { background: #5accfe; color: #212427; }
.climate-table td.temp-min-15 { background: #5fcdfe; color: #212427; }
.climate-table td.temp-min-14 { background: #68d6fd; color: #212427; }
.climate-table td.temp-min-13 { background: #6edeff; color: #212427; }
.climate-table td.temp-min-12 { background: #72e0fd; color: #212427; }
.climate-table td.temp-min-11 { background: #76e6fd; color: #212427; }
.climate-table td.temp-min-10 { background: #7be8fd; color: #212427; }
.climate-table td.temp-min-9 { background: #82ecfd; color: #212427; }
.climate-table td.temp-min-8 { background: #8cf2fd; color: #212427; }
.climate-table td.temp-min-7 { background: #95f9fd; color: #212427; }
.climate-table td.temp-min-6 { background: #9dfcfd; color: #212427; }
.climate-table td.temp-min-5 { background: #a3fdfe; color: #212427; }
.climate-table td.temp-min-4 { background: #aefefe; color: #212427; }
.climate-table td.temp-min-3 { background: #b8fefe; color: #212427; }
.climate-table td.temp-min-2 { background: #c2fffe; color: #212427; }
.climate-table td.temp-min-1 { background: #cdfdfe; color: #212427; }
.climate-table td.temp-0 { background: #d3fffe; color: #212427; }
.climate-table td.temp-1 { background: #defefd; color: #212427; }
.climate-table td.temp-2 { background: #e3ffed; color: #212427; }
.climate-table td.temp-3 { background: #ecffe2; color: #212427; }
.climate-table td.temp-4 { background: #f4ffd6; color: #212427; }
.climate-table td.temp-5 { background: #fffec6; color: #212427; }
.climate-table td.temp-6 { background: #fffdb5; color: #212427; }
.climate-table td.temp-7 { background: #fffaaa; color: #212427; }
.climate-table td.temp-8 { background: #fff77a; color: #212427; }
.climate-table td.temp-9 { background: #fff25e; color: #212427; }
.climate-table td.temp-10 { background: #fff055; color: #212427; }
.climate-table td.temp-11 { background: #ffeb4a; color: #212427; }
.climate-table td.temp-12 { background: #ffdf47; color: #212427; }
.climate-table td.temp-13 { background: #ffda42; color: #212427; }
.climate-table td.temp-14 { background: #ffd038; color: #212427; }
.climate-table td.temp-15 { background: #fcb831; color: #212427; }
.climate-table td.temp-16 { background: #fca02c; }
.climate-table td.temp-17 { background: #fd9628; }
.climate-table td.temp-18 { background: #fd8020; }
.climate-table td.temp-19 { background: #fd711b; }
.climate-table td.temp-20 { background: #fe5013; }
.climate-table td.temp-21 { background: #ff430f; }
.climate-table td.temp-22 { background: #ff340b; }
.climate-table td.temp-23 { background: #ff2708; }
.climate-table td.temp-24 { background: #ff2005; }
.climate-table td.temp-25 { background: #ff0e03; }
.climate-table td.temp-26 { background: #fc0d03; }
.climate-table td.temp-27 { background: #f90d03; }
.climate-table td.temp-28 { background: #ef0d03; }
.climate-table td.temp-29 { background: #e80d03; }
.climate-table td.temp-30 { background: #e60d03; }
.climate-table td.temp-31 { background: #dd0c02; }
.climate-table td.temp-32 { background: #db0c02; }
.climate-table td.temp-33 { background: #d40b02; }
.climate-table td.temp-34 { background: #d00b02; }
.climate-table td.temp-35 { background: #cc0b02; }
.climate-table td.temp-36 { background: #c30a02; }
.climate-table td.temp-37 { background: #c00a02; }
.climate-table td.temp-38 { background: #b60a02; }
.climate-table td.temp-39 { background: #b30902; }
.climate-table td.temp-40 { background: #b30a02; }
.climate-table td.temp-41 { background: #ad0902; }
.climate-table td.temp-42 { background: #a10802; }
.climate-table td.temp-43 { background: #9e0802; }
.climate-table td.temp-44 { background: #9a0802; }
.climate-table td.temp-45 { background: #990802; }
.climate-table td.temp-46 { background: #940702; }
.climate-table td.temp-47 { background: #8f0702; }
.climate-table td.temp-48 { background: #880702; }
.climate-table td.temp-49 { background: #860702; }
.climate-table td.temp-50 { background: #800702; }

.climate-table td.precip-0 { background: #f5f5f5; color: #212427; }
.climate-table td.precip-20 { background: #abe3ff; color: #212427; }
.climate-table td.precip-50 { background: #6dcefe; }
.climate-table td.precip-100 { background: #2eb9fe; }
.climate-table td.precip-200 { background: #29a7e5; }
.climate-table td.precip-300 { background: #2594cb; }

.climate-table td.snow-0 { background: #f5f5f5; color: #212427; }
.climate-table td.snow-5 { background: #fcceff; color: #212427; }
.climate-table td.snow-20 { background: #fea5e9; color: #212427; }
.climate-table td.snow-50 { background: #fb82c9; color: #212427; }
.climate-table td.snow-100 { background: #f56abb; color: #212427; }
.climate-table td.snow-200 { background: #e438a6; color: #212427; }

.climate-table td.uv-0 { background: #f5f5f5; color: #212427; }
.climate-table td.uv-1 { background: #9dbd00; }
.climate-table td.uv-2 { background: #9dbd00; }
.climate-table td.uv-3 { background: #ffbc01; }
.climate-table td.uv-4 { background: #ffbc01; }
.climate-table td.uv-5 { background: #ff9000; }
.climate-table td.uv-6 { background: #ff9000; }
.climate-table td.uv-7 { background: #f55023; }
.climate-table td.uv-8 { background: #f55023; }
.climate-table td.uv-9 { background: #c52b26; }
.climate-table td.uv-10 { background: #c52b26; }
.climate-table td.uv-11 { background: #9e47cc; }

.climate-table td.storm-inactive {
    background: #8db600;
}
.climate-table td.storm-active {
    background: #ff0000;
}
    .climate-table td.storm-active img {
        display: block;
        margin: 0 auto;
    }

.climate-table td.best-red {
    background: #ff0000;
}
.climate-table td.best-orange {
    background: #ffa500;
}
.climate-table td.best-green {
    background: #8db600;
}
    .climate-table td.best-month img {
        display: block;
        margin: 0 auto;
    }

@media only screen and (max-width: 600px) {
    .climate-table {
        border-spacing: 6px;
    }
        .climate-table th,
        .climate-table td {
            font-size: 14px;
        }
        .climate-table td {
            width: 36px;
            min-width: 36px;
            height: 36px;
        }
        .climate-table td.value {
            width: auto;
        }
        .climate-table td.value {
            font-size: 12px;
        }
        .climate-table td.storm-active img {
            width: 12px;
            height: 12px;
        }
        .climate-table td.best-month img {
            width: 10px;
            height: 10px;
        }
}