

/*GLOBAL============================================================================*/

* {
  user-select: none;
}



/*RESET============================================================================*/

p {
  width: auto;
  padding: 0;
  margin: 0;
}



/*AUDIO PRELOAD============================================================================*/

audio {
    display: none;
}



/*BACKGROUND============================================================================*/

.heroImage {
  min-width: 100%;
  min-height: 100vh;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: grayscale(100%) brightness(35%) contrast(100%);

  opacity: 100%;
  transition: opacity 3s;
}

.heroFade {
  min-width: 100%;
  min-height: 100vh;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: grayscale(100%) brightness(35%) contrast(100%);
  
  opacity: 0%;
}

.vignette {
  min-width: 100%;
  min-height: 100vh;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  background: radial-gradient(rgba(0,0,0,0), rgba(0,0,0,80%));
}



/*DATA============================================================================*/

#timer_data {
  display: none;
  overflow: hidden;
}

/*@media (hover: hover) and (pointer: fine) {
    a h3:hover {
        opacity: 100%; 
    }
}*/

.instructions {
  overflow: hidden;
  text-align: left;
  position: fixed;
  bottom: 5px;
  left: 20px;
}

.timer_round_heading {
  color: grey;
  font-size: 40px;
  line-height: 1em;
  text-align: left;
  position: fixed;
  top: 30px;
  left: 30px;
}

.timer_round_data {
  color: white;
  font-size: 140px;
  line-height: 1em;
  text-align: left;
  position: fixed;
  top: 75px;
  left: 27px;
}

.timer_elapsed_heading {
  color: grey;
  font-size: 40px;
  line-height: 1em;
  text-align: left;
  position: fixed;
  bottom: 165px;
  left: 30px;
}

.timer_elapsed_data {
  color: white;
  font-size: 140px;
  line-height: 1em;
  text-align: left;
  position: fixed;
  bottom: 20px;
  left: 27px;
}

.timer_setup {
  color: grey;
  font-size: 40px;
  line-height: 1em;
  text-align: right;
  position: fixed;
  bottom: 30px;
  right: 30px;
}

.timer_mode {
  font-size: 80px;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 25%;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}



/*INPUTS============================================================================*/

label {
  display: inline-block;
  width: 100%;
  padding-top: 10px;
}

input {
  background: none;
  border: none;
  color: white;
  display: inline-block;
  font-size: 30px;
  font-weight: 400;
  /*line-height: 30px;*/
  height: 40px;
  margin: 0;
  outline: none;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  width: 80px;
  max-width: 40%;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
  -moz-appearance:textfield; /* Firefox */
}

#inputCenter {
  height: auto;
  width: auto;
  overflow: hidden;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.inputButton {
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  opacity: 50%;
  height: 40px;
  width: 40px;
  padding: 10px;
  vertical-align: middle;
}

@media (hover: hover) and (pointer: fine) {
  .inputButton:hover {
    opacity: 100%;
  }
}

.inputSecondaryLabel {
  width: 40%;
}

.inputSecondary{
  color: grey;
  font-size: 20px;
  height: 30px;
  /*line-height: 10px;*/
}



/*CONTROLLER============================================================================*/

#timerController{
  height: auto;
  width: auto;
  overflow: hidden;
  position: fixed;
  top: 50%;
  right: 0%;
  transform: translate(0%, -50%);
}

.timerButton {
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  height: 60px;
  width: 60px;
  padding: 10px;
  vertical-align: middle;
  opacity: 50%;
  /*filter: brightness(200%);*/
}

@media (hover: hover) and (pointer: fine) {
  .timerButton:hover {
    opacity: 100%;
  }
}



/*RESPONSIVE============================================================================*/

@media screen and (orientation: landscape) {
  
  .timerText {
    color: white;
    font-size: 32vh;
    font-weight: 400;
    margin: 0;
    text-align: center;
    overflow: hidden;
    position: fixed;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
  }
  
  #timerCircle {
    height: 75vh;
    width: 75vh;
    overflow: hidden;
    position: fixed;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    stroke-dasharray: 314.159px;
    stroke-dashoffset: 0px;
  }
  
}

@media screen and (orientation: portrait) {
  
  .timerText {
    color: white;
    font-size: 32vw;
    font-weight: 400;
    margin: 0;
    text-align: center;
    overflow: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  #timerCircle {
    height: 75vw;
    width: 75vw;
    overflow: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    stroke-dasharray: 314.159px;
    stroke-dashoffset: 0px;
  }   
  
}

@media screen and ((max-width: 968px) or (max-height: 668px)) {
  
  .timer_round_heading {
    font-size: 20px;
    top: 20px;
    left: 20px;
  }
  
  .timer_round_data {
    font-size: 70px;
    top: 40px;
    left: 17px;
  }  
  
  .timer_elapsed_heading {
    font-size: 20px;
    bottom: 80px;
    left: 20px;
  }
  
  .timer_elapsed_data {
    font-size: 70px;
    bottom: 10px;
    left: 17px;
  }
  
  .timer_setup {
    font-size: 20px;
    bottom: 20px;
    right: 20px;
  }
  
  .timer_mode {
    font-size: 30px;
    top: 80%;
    left: 50%;
  }
  
  .instructions {
    text-align: center;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 0%);
    width: 100%;
  }
  
}
