@charset "UTF-8";
* {
  position: relative;
  font-family: "Hind Vadodara", "微軟正黑體";
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #222;
}

label {
  cursor: pointer;
}

input {
  display: none;
}

.daybox {
  width: 50%;
  max-width: 400px;
  background-color: #f3f3f3;
  box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.6);
  border-radius: 5px;
}
.daybox:hover .bottom {
  height: 100px;
}
.daybox:hover .dayweather {
  opacity: 1;
  transform: translateY(0px);
}

.top {
  height: 330px;
  border-radius: 5px 5px 0px 0px;
  background: linear-gradient(20deg, #19283D, #1D678F);
  background-size: 100% 300%;
  animation: daylight 20s infinite;
}
@keyframes daylight {
  0% {
    background-position: 100% 30%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 100% 30%;
  }
}
.top .text_area {
  display: inline-block;
  position: absolute;
  bottom: 30px;
  left: 27px;
  color: #f3f3f3;
}
.top .text_area .temper {
  font-size: 75px;
  font-weight: 100;
  margin-bottom: -15px;
}
.top .text_area .address, .top .text_area .time {
  margin-top: 0px;
  font-size: 13px;
  letter-spacing: 1px;
  opacity: 0.7;
}
.top .moon {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  box-shadow: 10px 10px;
  position: absolute;
  top: 80px;
  left: 60px;
  animation: moonmove 4s infinite;
}
.top .temsvg {
  width: 100%;
}
.top .temsvg polyline {
  fill: none;
  stroke: #f3f3f3;
  stroke-width: 1px;
  opacity: 0.1;
}
.top .temsvg text {
  transform: translateX(2px) translateY(20px);
  font-size: 12px;
  fill: #f3f3f3;
  opacity: 0;
}
.top .temsvg circle {
  fill: #f3f3f3;
  opacity: 0.1;
}
@keyframes moonmove {
  0% {
    box-shadow: 10px -10px #FFD633;
    transform: translateX(-10px) translateY(10px);
  }
  100% {
    box-shadow: -10px 10px #FFD633;
    transform: translateX(10px) translateY(-10px);
  }
}
.cloud {
  width: 100px;
  height: 36px;
  position: absolute;
  bottom: 50px;
  left: 240px;
  border-radius: 20px;
  animation: floating 5s infinite;
  background-color: #f3f3f3;
  box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.6);
}
.cloud::before, .cloud::after {
  content: "";
  width: 50px;
  height: 50px;
  position: absolute;
  background-color: #f3f3f3;
  display: block;
  border-radius: 100%;
  top: -18px;
  left: 36px;
}
.cloud::after {
  top: -30px;
  left: 12px;
}
.cloud .rain {
  width: 2px;
  height: 10px;
  position: absolute;
  left: 25px;
  bottom: -14px;
  border-radius: 100%;
  animation: raindrop 1s infinite linear;
  animation-delay: -1s;
  background-color: #f3f3f3;
}
.cloud .rain2 {
  left: 50px;
  bottom: -10px;
  animation-delay: -0.7s;
}
.cloud .rain3 {
  left: 75px;
  bottom: -20px;
  animation-delay: -0.3s;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(3px);
  }
  100% {
    transform: translateY(0px);
  }
}
@keyframes raindrop {
  0% {
    transform: translateY(-13px);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateY(15px);
  }
}
.bottom {
  height: 10px;
  display: flex;
  justify-content: center;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition-duration: 1.5s;
}
.bottom .dayweather {
  display: inline-block;
  width: calc(100% / 7 - 5px);
  height: 80px;
  padding: 2px;
  text-align: center;
  opacity: 0;
  transition-duration: 0.5s;
  transform: translateY(10px);
}
.bottom .dayweather h3 {
  font-size: 13px;
  margin-top: 2px;
  color: rgba(34, 34, 34, 0.7);
  font-weight: 500;
}
.bottom .dayweather svg {
  margin-bottom: 12px;
  width: 100%;
  height: 40px;
  max-width: 40px;
}
.bottom .dayweather svg .sun {
  fill: #ffd633;
  stroke: rgba(255, 214, 51, 0.3);
  stroke-width: 30px;
  stroke-dasharray: 5px;
}
.bottom .dayweather svg .cloud {
  fill: #ccc;
}
.bottom .dayweather svg .rain {
  stroke: #4DACFF;
  stroke-width: 2px;
  animation: raindrop 1s infinite;
}

.dayweather:nth-child(1) {
  transition-delay: 0.2s;
}

.dayweather:nth-child(2) {
  transition-delay: 0.4s;
}

.dayweather:nth-child(3) {
  transition-delay: 0.6s;
}

.dayweather:nth-child(4) {
  transition-delay: 0.8s;
}

.dayweather:nth-child(5) {
  transition-delay: 1s;
}

.dayweather:nth-child(6) {
  transition-delay: 1.2s;
}

.dayweather:nth-child(7) {
  transition-delay: 1.4s;
}

#switchnight:checked + .top .temsvg circle, #switchnight:checked + .top .temsvg text, #switchnight:checked + .top .temsvg polyline {
  opacity: 1;
}
#switchnight:checked + .top .cloud {
  opacity: 0.3;
}
#switchnight:checked + .top .moon {
  opacity: 0.3;
}

.moon {
  transition: 0.5s 0.3s;
}

.cloud {
  transition: 0.5s 0.5s;
}

.temsvg circle {
  transition: 0.5s 0.2s;
}
.temsvg polyline {
  transition: 0.5s 0.4s;
}
.temsvg text {
  transition: 0.5s 0.6s;
}
