@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,700');
.hide {
  display: none;
}
.absolute_center {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}
.transform_center {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}
.unselectable {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 62.5%;
}
body {
  min-width: 320px;
  padding: 0 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 1.8rem;
  line-height: 1.2em;
  color: #111111;
}
label {
  cursor: pointer;
}
div {
  overflow: hidden;
}
main,
header,
footer {
  display: block;
}
main {
  max-width: 100%;
  width: 800px;
  margin: 0 auto;
  padding-top: 20px;
}
table {
  border-collapse: collapse;
}
input {
  display: none;
}
h1 {
  margin-bottom: 20px;
  font-size: 8rem;
  line-height: 0.9em;
  text-align: center;
}
.sw_wrap {
  width: 400px;
  height: 466px;
  margin: auto;
  margin: 0 auto 40px;
}
.sw_wrap .sw_strap_top,
.sw_wrap .sw_strap_bottom {
  width: 40%;
  height: 12.5%;
  background: #9e9e9e;
  margin: auto;
}
.sw_wrap .sw_body {
  position: relative;
  width: 70%;
  height: 75%;
  border-radius: 20px;
  background: #111111;
  margin: auto;
  text-align: center;
}
.sw_wrap .sw_time_wrap {
  position: absolute;
  top: 16%;
  width: 100%;
  color: #fff;
  font-weight: bold;
  font-size: 0;
  line-height: 0;
}
.sw_wrap .sw_time_wrap .sw_minutes,
.sw_wrap .sw_time_wrap .sw_seconds {
  display: inline-block;
  vertical-align: middle;
}
.sw_wrap .sw_time_wrap .num {
  position: relative;
  display: inline-block;
  font-size: 10rem;
  line-height: 0.9em;
  text-align: center;
}
.sw_wrap .sw_time_wrap .num .strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.sw_wrap .sw_time_wrap .num .strip span {
  display: block;
}
.sw_wrap .sw_time_wrap .sw_minutes,
.sw_wrap .sw_time_wrap .sw_seconds {
  width: 100%;
  height: 90px;
}
.sw_wrap .sw_time_wrap .sw_minutes span,
.sw_wrap .sw_time_wrap .sw_seconds span {
  display: block;
  height: 90px;
}
.sw_wrap .sw_time_wrap .sw_minutes .num,
.sw_wrap .sw_time_wrap .sw_seconds .num {
  width: 53px;
  height: 100%;
}
.sw_wrap .sw_time_wrap .sw_minutes .third_num,
.sw_wrap .sw_time_wrap .sw_seconds .third_num {
  height: 72px;
  margin-right: -53px;
  font-size: 6rem;
  line-height: 1.2em;
  vertical-align: bottom;
}
.sw_wrap .sw_time_wrap .sw_minutes .third_num span,
.sw_wrap .sw_time_wrap .sw_seconds .third_num span {
  height: 72px;
}
.sw_wrap .sw_btns_wrap {
  position: absolute;
  bottom: 7%;
  width: 100%;
}
.sw_wrap .sw_btns_wrap .btn {
  position: relative;
  display: inline-block;
  margin: 0 5%;
  padding: 0 20% 20% 0;
  border-radius: 50%;
}
.sw_wrap .sw_btns_wrap .btn:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}
.sw_wrap .sw_btns_wrap .sw_btn_reset {
  background: #f44336;
}
.sw_wrap .sw_btns_wrap .sw_btn_reset:before {
  width: 40%;
  height: 40%;
  background: #b71c1c;
}
.sw_wrap .sw_btns_wrap .sw_btn_play {
  display: none;
  background: #4caf50;
}
.sw_wrap .sw_btns_wrap .sw_btn_play:before {
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent transparent transparent #1b5e20;
  border-width: 15px 0 15px 22px;
}
.sw_wrap .sw_btns_wrap .sw_btn_pause {
  background: #2196f3;
}
.sw_wrap .sw_btns_wrap .sw_btn_pause:before {
  height: 40%;
  width: 40%;
  border-left: 8px solid #0d47a1;
  border-right: 8px solid #0d47a1;
}
#reset:checked ~ .sw_time_wrap .sw_seconds .third_num .strip {
  -webkit-animation: 1s watch10_1 infinite steps(10);
  animation: 1s watch10_1 infinite steps(10);
}
#reset:checked ~ .sw_time_wrap .sw_seconds .second_num .strip {
  -webkit-animation: 10s watch10_1 infinite steps(10);
  animation: 10s watch10_1 infinite steps(10);
}
#reset:checked ~ .sw_time_wrap .sw_seconds .first_num .strip {
  -webkit-animation: 60s watch6_1 infinite steps(6);
  animation: 60s watch6_1 infinite steps(6);
}
#reset:checked ~ .sw_time_wrap .sw_minutes .second_num .strip {
  -webkit-animation: 600s watch10_1 infinite steps(10);
  animation: 600s watch10_1 infinite steps(10);
}
#reset:checked ~ .sw_time_wrap .sw_minutes .first_num .strip {
  -webkit-animation: 6000s watch10_1 infinite steps(10);
  animation: 6000s watch10_1 infinite steps(10);
}
#reset:not(:checked) ~ .sw_time_wrap .sw_seconds .third_num .strip {
  -webkit-animation: 1s watch10_2 infinite steps(10);
  animation: 1s watch10_2 infinite steps(10);
}
#reset:not(:checked) ~ .sw_time_wrap .sw_seconds .second_num .strip {
  -webkit-animation: 10s watch10_2 infinite steps(10);
  animation: 10s watch10_2 infinite steps(10);
}
#reset:not(:checked) ~ .sw_time_wrap .sw_seconds .first_num .strip {
  -webkit-animation: 60s watch6_2 infinite steps(6);
  animation: 60s watch6_2 infinite steps(6);
}
#reset:not(:checked) ~ .sw_time_wrap .sw_minutes .second_num .strip {
  -webkit-animation: 600s watch10_2 infinite steps(10);
  animation: 600s watch10_2 infinite steps(10);
}
#reset:not(:checked) ~ .sw_time_wrap .sw_minutes .first_num .strip {
  -webkit-animation: 6000s watch10_2 infinite steps(10);
  animation: 6000s watch10_2 infinite steps(10);
}
#reset:checked + #pause:checked ~ .sw_time_wrap .sw_seconds .third_num .strip,
#reset:not(:checked) + #pause:checked ~ .sw_time_wrap .sw_seconds .third_num .strip,
#reset:checked + #pause:checked ~ .sw_time_wrap .sw_seconds .second_num .strip,
#reset:not(:checked) + #pause:checked ~ .sw_time_wrap .sw_seconds .second_num .strip,
#reset:checked + #pause:checked ~ .sw_time_wrap .sw_seconds .first_num .strip,
#reset:not(:checked) + #pause:checked ~ .sw_time_wrap .sw_seconds .first_num .strip,
#reset:checked + #pause:checked ~ .sw_time_wrap .sw_minutes .second_num .strip,
#reset:not(:checked) + #pause:checked ~ .sw_time_wrap .sw_minutes .second_num .strip,
#reset:checked + #pause:checked ~ .sw_time_wrap .sw_minutes .first_num .strip,
#reset:not(:checked) + #pause:checked ~ .sw_time_wrap .sw_minutes .first_num .strip {
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}
#reset:checked + #pause:checked ~ .sw_btns_wrap .sw_btn_pause,
#reset:not(:checked) + #pause:checked ~ .sw_btns_wrap .sw_btn_pause {
  display: none;
}
#reset:checked + #pause:checked ~ .sw_btns_wrap .sw_btn_play,
#reset:not(:checked) + #pause:checked ~ .sw_btns_wrap .sw_btn_play {
  display: inline-block;
}
@keyframes watch10_1 {
  100% {
    top: -1000%;
  }
}
@keyframes watch10_2 {
  100% {
    top: -1000%;
  }
}
@keyframes watch6_1 {
  100% {
    top: -600%;
  }
}
@keyframes watch6_2 {
  100% {
    top: -600%;
  }
}
@-webkit-keyframes watch10_1 {
  100% {
    top: -1000%;
  }
}
@-webkit-keyframes watch10_2 {
  100% {
    top: -1000%;
  }
}
@-webkit-keyframes watch6_1 {
  100% {
    top: -600%;
  }
}
@-webkit-keyframes watch6_2 {
  100% {
    top: -600%;
  }
}
@media all and (max-width: 700px) {
  h1 {
    margin-bottom: 40px;
    font-size: 6rem;
  }
}
@media all and (max-width: 480px) {
  h1 {
    font-size: 4.5rem;
  }
  .sw_wrap {
    width: 300px;
    height: 350px;
  }
  .sw_wrap .sw_time_wrap .sw_minutes,
  .sw_wrap .sw_time_wrap .sw_seconds {
    height: 72px;
  }
  .sw_wrap .sw_time_wrap .sw_minutes .num,
  .sw_wrap .sw_time_wrap .sw_seconds .num {
    width: 49px;
    font-size: 8rem;
  }
  .sw_wrap .sw_time_wrap .sw_minutes .num span,
  .sw_wrap .sw_time_wrap .sw_seconds .num span {
    height: 72px;
  }
  .sw_wrap .sw_time_wrap .sw_minutes .third_num,
  .sw_wrap .sw_time_wrap .sw_seconds .third_num {
    width: 24px;
    height: 48px;
    margin-right: -24px;
    font-size: 4rem;
  }
  .sw_wrap .sw_time_wrap .sw_minutes .third_num span,
  .sw_wrap .sw_time_wrap .sw_seconds .third_num span {
    height: 48px;
  }
  .sw_wrap .sw_btns_wrap .sw_btn_play:before {
    border-width: 10px 0 10px 15px;
  }
  .sw_wrap .sw_btns_wrap .sw_btn_pause:before {
    border-width: 0 6px;
  }
}
