* {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  line-height: 1.44;
}

img {
  width: 100%;
}
/* end reset */


#analogue g {
    transform-origin: 50% 50%;
}
#analogue svg {
max-height: 50vh;
}
input[type=number] {
    border: none;
}


body{
  
  background-image: url(../img/brick_bg.jpg);
}
h1{
  animation: flicker 1.5s infinite alternate;  
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-size: 60px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.404);
  border: 0.2rem solid #fff;
  border-radius: 2rem;
  padding: 0.4em;
  box-shadow:
  0 0 .2rem #fff,
  0 0 .2rem #fff,
  0 0 2rem #fe1313,
  0 0 0.8rem #fe1313,
  0 0 2.8rem #fe1313,
  inset 0 0 1.3rem #fe1313; 
}
@keyframes flicker {
    
  0%, 18%, 22%, 25%, 53%, 57%, 100% {

      text-shadow:
      0 0 4px #fff,
      0 0 11px #fff,
      0 0 19px #fff,
      0 0 40px rgb(4, 0, 255),
      0 0 80px rgb(4, 0, 255),
      0 0 90px rgb(4, 0, 255),
      0 0 100px rgb(4, 0, 255),
      0 0 150px rgb(4, 0, 255);
  }
  20%, 24%, 55% {        
      text-shadow: none;
  }    
}
@keyframes flicker2 {
    
  0%, 18%, 22%, 25%, 53%, 57%, 100% {

    box-shadow:
    0 0 .2rem #fff,
    0 0 .2rem #fff,
    0 0 2rem #1a9671,
    0 0 0.8rem #1a9671;
  }
  20%, 24%, 55% {        
      box-shadow: none;
  }    
}
@keyframes fade {
  0% {
    background-color: rgba(0, 0, 0, 0.438);
  }

  100% {
    background-color: rgba(109, 38, 38, 0.438);
  }
}
@keyframes fade2 {
  0% {
    background-color: rgba(0, 0, 0, 0.438);
  }

  100% {
    background-color: rgba(38, 45, 109, 0.438);
  }
}
header{
  margin-top: 50px;
  margin-bottom: 50px;
  margin-left: 500px;
  margin-right: 500px;
  text-align: center;
}

#options{
  text-align: center;
}

#nav_clock, #nav_down, #nav_watch{
  font-weight: 400;
  font-size: 18px;
  text-transform: uppercase;
  background-color: transparent;
  border-style: solid;
  border-color: #808080;
  color: #808080;
  border-width: 4px;;
  border-radius: 25px;
  margin-left: 10px;
  margin-right: 10px;
  padding-left: 50px;
  padding-right: 50px;
  padding-top: 10px;
  padding-bottom: 10px;
}
#nav_clock:hover, #nav_down:hover, #nav_watch:hover{
  animation: flicker 1.5s infinite alternate;
  animation: flicker2 1s infinite alternate;
  border-color: #ffffff;
  box-shadow:
  0 0 .2rem #fff,
  0 0 .2rem #fff,
  0 0 2rem #1a9671,
  0 0 0.8rem #1a9671;
  color: #fff;
  text-shadow:
      0 0 4px #fff,
      0 0 11px #fff,
      0 0 19px #fff,
      0 0 40px rgb(4, 0, 255),
      0 0 80px rgb(4, 0, 255),
      0 0 90px rgb(4, 0, 255),
      0 0 100px rgb(4, 0, 255),
      0 0 150px rgb(4, 0, 255);
}
#digital{
  font-size: 30px;
  margin-top: 40px;
  text-align: center;
  color: #fff;
  text-shadow:
      0 0 4px #fff,
      0 0 11px #fff,
      0 0 19px #fff,
      0 0 40px rgb(4, 0, 255),
      0 0 80px rgb(4, 0, 255),
      0 0 90px rgb(4, 0, 255),
      0 0 100px rgb(4, 0, 255),
      0 0 150px rgb(4, 0, 255);
}
#down_form{
  text-align: center;
}
#down_m, #down_s{
  margin-top: 50px;
  margin-bottom: 50px;
  background-color: rgba(0, 0, 0, 0.438);
  border-style: solid;
  border-radius: 15px;;
  border-width: 4px;
  border-color: #ffffff;
  box-shadow:
  0 0 .2rem #fff,
  0 0 .2rem #fff,
  0 0 2rem #961a1a,
  0 0 0.8rem #961a1a;
  color: #fff;
  font-size: 18px;
  padding: 20px;
}


#down_start, #down_stop{
  font-size: 14px;
  margin-left: 5px;
  margin-right: 5px;
  background-color: rgba(0, 0, 0, 0.438);
  color: #fff;
  border-style: solid;
  border-radius: 10px;
  border-color: #ffffff;
  border-width: 2px;
  padding: 20px;
  box-shadow:
  0 0 .2rem #fff,
  0 0 .2rem #fff,
  0 0 2rem #5f0b0b,
  0 0 0.8rem #5f0b0b;
}
#down_start:hover, #down_stop:hover, #down_m:hover, #down_s:hover{
  animation: fade 0.5s forwards;
}

#watch_form{
  text-align: center;
}

#watch_m, #watch_s {
  margin-top: 50px;
  margin-bottom: 50px;
  background-color: rgba(0, 0, 0, 0.438);
  border-style: solid;
  border-radius: 15px;;
  border-width: 4px;
  border-color: #ffffff;
  box-shadow:
  0 0 .2rem #fff,
  0 0 .2rem #fff,
  0 0 2rem #1a3b96,
  0 0 0.8rem #1a3b96;
  color: #fff;
  font-size: 18px;
  padding: 20px;
}
#watch_start, #watch_stop, #watch_reset{
  font-size: 14px;
  margin-left: 5px;
  margin-right: 5px;
  background-color: rgba(0, 0, 0, 0.438);
  color: #fff;
  border-style: solid;
  border-radius: 10px;
  border-color: #ffffff;
  border-width: 2px;
  padding: 20px;
  box-shadow:
  0 0 .2rem #fff,
  0 0 .2rem #fff,
  0 0 2rem #1a3b96,
  0 0 0.8rem #1a3b96;
}

#watch_m:hover, #watch_s:hover, #watch_start:hover, #watch_stop:hover, #watch_reset:hover{
  animation: fade2 0.5s forwards;
}