body {
  font-family: Arial, sans-serif;
  padding: 0;
  margin: 0;
  background-color: hsl(0,0%,98%);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

footer a {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  color: #6e5967;
}
footer a:hover {
  color: #84087e;
}

#logo {
  background: url("../img/logo_databizz.png") no-repeat center;
  height: 61px;
  margin-bottom: 15px;
}

#timer {
  width: 400px;
  margin: 20px auto;
  background: #fefefe;
  padding: 20px;
  border: 2px solid #eee;
}

.clean {
  border: none;
  margin: auto;
}

.box {
  margin: 0 auto;
  height: 100px;
  margin-bottom: 30px;
  position: relative;
  clear: both;
}

#time-inputs,
#difference {
  width: 100%;
  height: 100%;
  color: #6e5967;
  padding: 0;
  position: absolute;
  font-size: 90px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0px;
  text-shadow: 1px 1px 1px #b1bea9;
}
#time-inputs input {
  font-size: 90px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0px;
  text-shadow: 1px 1px 1px #b1bea9;
  color: #6e5967;
  border: none;
  width: 100px;
  background: none;
  padding: 0;
  margin: 0;
}
#time-inputs input:focus {
  outline: none;
}
#time-inputs .minutes {
  text-align: right;
}
#time-inputs .seconds {
  text-align: left;
}

#difference {
  visibility: hidden;
}

.timer-ended {
  color: #e43232 !important;
}

#actions {
  height: 95px;
}
#actions button {
  width: 150px;
  display: block;
  float: left;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-size: 22px;
  padding: 20px 0;
  border-radius: 3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  letter-spacing: 1px;
  border: 1px solid #84087e;
  cursor: pointer;
}
#actions button:disabled {
  opacity: 0.3;
  cursor: default;
}
#actions #start_button,
#actions #pause_button {
  background: #84087e;
  margin: 0 20px 0 30px;
}
#actions button:hover:enabled {
  opacity: 0.7;
}
#actions #reset_button,
#actions #stop_button {
  background: #fff;
  color: #84087e;
  margin: 0 30px 0 20px;
}

.started #time-inputs,
.restarted #time-inputs {
  visibility: hidden;
  opacity: 0;
  transition: all 0 ease 0;
}
.started #difference,
.restarted #difference {
  visibility: visible;
  opacity: 1;
  transition: all 0 ease 0;
}

.stoped #time-inputs {
  visibility: visible;
  opacity: 1;
  transition: all 0 ease 0;
}

.stoped #difference {
  visibility: hidden;
  opacity: 0;
  transition: all 0 ease 0;
}

.paused #difference {
  visibility: visible;
  opacity: 1;
  transition: all 0 ease 0;
}
.paused #time-inputs {
  visibility: hidden;
  opacity: 0;
  transition: all 0 ease 0;
}

.paused #time-inputs {
  visibility: hidden;
  opacity: 0;
  transition: all 0 ease 0;
}

@media only screen and (max-width: 600px) {
  #timer {
    width: 300px;
  }

  .box {
    margin-bottom: 15px;
  }

  #time-inputs,
  #difference {
    font-size: 70px;
  }

  #time-inputs input {
    font-size: 70px;
    width: 78px;
  }

  #actions {
    height: 85px;
  }

  #actions button {
    width: 100px;
    font-size: 20px;
    padding: 15px 0;
  }
}

.container {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 1060px;
  min-height: 100vh;
}

@media (min-width: 1060px) {
  .container {
    display: grid;
    grid-template-columns: 484px 1fr;
    grid-template-rows: 1fr;
  }

  #timer {
    position: fixed;
    margin-left: 20px;
  }

  main {
    padding-top: 20px;
  }
}

main {
  flex: 1;
}