/* 
 * START - Weather Box 
 * 01: 晴天 clear sky
 * 02: 少雲 few clouds
 * 03: 多雲 scattered clouds
 * 04: 陰天 broken clouds
 * 09: 小雨 shower rain
 * 10: 大雨 rain
 * 11: 雷雨 thunderstorm
 * 13: 雪 snow
 * 50: 霧 mist
 */
.weather-box {
    position: relative;
    margin-bottom: 30px;
    border-radius: 10px;
    max-width: 480px;
    background: #a2e0e7;
    background: -webkit-linear-gradient(-225deg, #FFFEFF 0%, #a2e0e7 100%);
    background: linear-gradient(-225deg, #FFFEFF 0%, #a2e0e7 100%);
    color: #007ea7;
    box-shadow:  4px 4px 8px rgba(0, 0, 0, .1), -4px -4px 8px rgba(255, 255, 255, .5);
    overflow: hidden;
    text-shadow: 0 0 1px rgba(0, 0, 0, .05);
}
.weather-box::before,
.weather-box::after {
    content: '';
    display: block;
    position: absolute;
    z-index: 1;
}
.weather-box::before {
    top: 5px;
    left: -15px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #fff;
}
.weather-box::after {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    overflow: hidden;
}
.weather-box__temp-scale-f {
    display: none;
}

/* 切換 °C °F */
.weather-box__switch-temp-scale-input,
.weather-box__switch-temp-scale-label {
    position: absolute;
    top: 15px;
    right: 15px;
    margin: 0;
    display: block;
}
.weather-box__switch-temp-scale-input {
    z-index: 4;
    width: 60px;
    height: 30px;
    cursor: pointer;
    opacity: 0;
}
.weather-box__switch-temp-scale-label {
    z-index: 3;
    background-color: rgba(255, 255, 255, .15);
    border-radius: 300px;
    font-size: 0;
}
.weather-box__switch-temp-scale-label::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    display: block;
    border-radius: 13px;
    width: 30px;
    height: 26px;
    background-color: rgba(255, 255, 255, .5);
    transition: left .3s linear;
}
.weather-box__switch-temp-scale-label span{
    position: relative;
    z-index: 2;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 1.4rem;
    cursor: pointer;
}
.weather-box__switch-temp-scale-label span:last-child {
    opacity: .5;
}
.weather-box__switch-temp-scale-input:checked ~ .weather-box__switch-temp-scale-label span:first-child {
    opacity: .5;
}
.weather-box__switch-temp-scale-input:checked ~ .weather-box__switch-temp-scale-label span:last-child {
    opacity: 1;
}
.weather-box__switch-temp-scale-input:checked ~ .weather-box__switch-temp-scale-label::before {
    left: 28px;
}
.weather-box__switch-temp-scale-input:checked ~ .weather-box__today .weather-box__temp-scale-f,
.weather-box__switch-temp-scale-input:checked ~ .weather-box__next-days .weather-box__temp-scale-f {
    display: inline;
}
.weather-box__switch-temp-scale-input:checked ~ .weather-box__today .weather-box__temp-scale-c,
.weather-box__switch-temp-scale-input:checked ~ .weather-box__next-days .weather-box__temp-scale-c {
    display: none;
}

/* 今天天氣icon */
.weather-box__today-weather-icon {
    position: absolute;
    top: 10px;
    right: 5px;
    z-index: 2;
    width: 120px;
}
.weather-box__today-weather-icon img {
    display: block;
    width: 100%;
}

/* 01: 晴天 clear sky */
.weather-box.type-01 {
    background: #F7C242;
    background: -webkit-linear-gradient(-225deg, #FFFEFF 0%, #F7C242 100%);
    background: linear-gradient(-225deg, #FFFEFF 0%, #F7C242 100%);
    color: #82633f;
}
/* 02: 少雲 few clouds */
.weather-box.type-02 {
    background: #79c5ce;
    background: -webkit-linear-gradient(-225deg, #FFFEFF 0%, #79c5ce 100%);
    background: linear-gradient(-225deg, #FFFEFF 0%, #79c5ce 100%);
    color: #007ea7;
}
/* 03: 多雲 scattered clouds */
.weather-box.type-03 {
    background: #a7bfc1;
    background: -webkit-linear-gradient(-225deg, #FFFEFF 0%, #a7bfc1 100%);
    background: linear-gradient(-225deg, #FFFEFF 0%, #a7bfc1 100%);
    color: #4281a4;
}
.weather-box.type-03::before {
    opacity: .7;
}
/* 04: 陰天 broken clouds */
.weather-box.type-04 {
    background: #5c8189;
    background: -webkit-linear-gradient(-225deg, #FFFEFF 0%, #5c8189 100%);
    background: linear-gradient(-225deg, #FFFEFF 0%, #5c8189 100%);
    color: #343e47;
}
.weather-box.type-04::before {
    opacity: .5;
}
/* 09: 小雨 shower rain */
.weather-box.type-09 {
    background: #486b74;
    background: -webkit-linear-gradient(-225deg, #e1e8f3 0%, #486b74 100%);
    background: linear-gradient(-225deg, #e1e8f3 0%, #486b74 100%);
    color: #5a5d60;
}
.weather-box.type-09::before {
    opacity: .15;
}
.weather-box.type-09::after {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
/* 10: 大雨 rain */
.weather-box.type-10 {
    background: #2c4d55;
    background: -webkit-linear-gradient(-225deg, #788e9a 0%, #2c4d55 100%);
    background: linear-gradient(-225deg, #788e9a 0%, #2c4d55 100%);
    color: #fff;
}
.weather-box.type-10::before {
    opacity: 0;
}
.weather-box.type-10::after {
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
}
/* 11: 雷雨 thunderstorm */
.weather-box.type-11 {
    background: #2c4d55;
    background: -webkit-linear-gradient(-225deg, #bac68d 0%, #2c4d55 100%);
    background: linear-gradient(-225deg, #bac68d 0%, #2c4d55 100%);
    color: #fff;
}
.weather-box.type-11::before {
    opacity: 0;
}
.weather-box.type-11::after {
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
}
/* 13: 雪 snow */
.weather-box.type-13 {
    background: #accbce;
    background: -webkit-linear-gradient(-225deg, #FFFEFF 0%, #accbce 100%);
    background: linear-gradient(-225deg, #FFFEFF 0%, #accbce 100%);
    color: #71a0ba;
}
.weather-box.type-13::before {
    opacity: .5;
}
/* 50: 霧 mist */
.weather-box.type-50 {
    background: #beced4;
    background: -webkit-linear-gradient(-225deg, #e9ecec 0%, #beced4 100%);
    background: linear-gradient(-225deg, #e9ecec 0%, #beced4 100%);
    color: #6c7b7d;
}
.weather-box.type-50::before {
    opacity: .15;
}
.weather-box.type-50::after {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* start - 天氣動畫 */
.weather-box__weather-icon img {
    animation-direction: alternate;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-duration: 1.5s;
}
/* 01: 晴天 clear sky */
.weather-box__weather-icon.icon-01 img {
    animation-name: weatherSunScale;
}
/* 50: 霧 mist */
.weather-box__weather-icon.icon-50 img {
    animation-duration: 2.5s;
    animation-name: weatherMist;
}
/* 03: 多雲 scattered clouds
 * 04: 陰天 broken clouds
 * 09: 小雨 shower rain
 * 10: 大雨 rain
 */
.weather-box__weather-icon.icon-02 img,
.weather-box__weather-icon.icon-03 img,
.weather-box__weather-icon.icon-04 img,
.weather-box__weather-icon.icon-09 img,
.weather-box__weather-icon.icon-10 img {
    animation-name: weatherCloudFlow;
}
/* 11: 雷雨 thunderstorm */
.weather-box__weather-icon.icon-11 img {
    animation-name: weatherThunderstorm;
}
/* 13: 雪 snow */
.weather-box__weather-icon.icon-13 img {
    animation-direction: normal;
    animation-duration: 4s;
    animation-name: weatherSnowRotate;
}
.weather-box__weather-icon.weather-box__today-weather-icon.icon-13 img {
    animation-duration: 6s;
}
@keyframes weatherSunScale {
    0% {
        transform: scale(1);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.1);
    }
}
@keyframes weatherMist {
    0% {
        opacity: .5;
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}
@keyframes weatherCloudFlow {
    0% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(1px);
    }
}
@keyframes weatherThunderstorm {
    0% {
        opacity: .7;
    }
    50% {
        opacity: 1;
    }
    55% {
        opacity: 0;
    }
    60% {
        opacity: 1;
    }
    65% {
        opacity: .3;
    }
    75% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}
@keyframes weatherSnowRotate {
    100% {
        transform: rotate(360deg);
    }
}

/* start - today */
.weather-box__today {
    position: relative;
    padding-top: 45px;
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
}
.weather-box__today-temp,
.weather-box__today-temp-feels-like {
    position: relative;
    z-index: 3;
}
.weather-box__today-temp {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 3.2rem;
    letter-spacing: 1px;
}
.weather-box__today-temp-feels-like {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.6rem;
    letter-spacing: 1px;
    opacity: .75;
}

/* start - next days */
.weather-box__next-days {
    padding-top: 5px;
    padding-bottom: 20px;
}
.weather-box__next-days-list {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    padding-left: 10px;
    padding-right: 10px;
    list-style: none;
    overflow-y: none;
    overflow-x: scroll;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.weather-box__next-days-list::-webkit-scrollbar {
    display: none;
}
.weather-box__next-days-list > .weather-box__day:not(:first-child) {
    margin-left: 5px;
}
.weather-box__day { 
    padding: 20px 5px;
    width: calc(20% - 5px);
    min-width: 60px;
    text-align: center;
    background-color: rgba(255, 255, 255, .15);
    border-radius: 300px;
    overflow: hidden;
}
.weather-box__day-name {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.6rem;
    letter-spacing: 1px;
}
.weather-box__day-weather-icon {
    margin-top: 10px;
    margin-bottom: 10px;
}
.weather-box__day-weather-icon img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 30px;
}
.weather-box__day-min-max-temp {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.2rem;
    opacity: .75;
}
/* 
 * CLOSE - Weather Box 
 */