.tomorrow-medium {
  font-family: PetroSans, sans-serif;

  font-weight: 500;
  font-style: normal;
}
/* *{
    margin: 0;

}

  body {
    font-family: "Tomorrow", sans-serif;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    cursor: default;
    overflow: hidden;
    height: 100%;
    font-size: 5rem;
  } */

.icon {
  display: inline-block;
  font-size: inherit;
  overflow: visible;
  vertical-align: -0.125em;
  preserveaspectratio: none;
}

.range {
  position: relative;
  width: 14em;
  z-index: 1;
  opacity: 0;
}
.range:not(:last-child) {
  margin-bottom: 2em;
}
.range__label {
  position: relative;
  font-size: 0.9em;
  line-height: 0.75em;
  padding-bottom: 0.5em;
  z-index: 2;
}
.range__track {
  position: relative;
  height: 1em;
  margin-left: 0.5em;
  margin-right: 0.5em;
  z-index: 3;
}
.range__track-line {
  position: absolute;
  background: rgba(0, 0, 0, 0.2);
  height: 2px;
  top: 50%;
  margin-top: -1px;
  left: -0.5em;
  right: -0.5em;
  transform-origin: left center;
}
.range__handle {
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  left: 0;
  cursor: pointer;
  z-index: 1;
}
.range__handle div {
  transition: background 500ms ease;
  position: absolute;
  left: 0;
  top: 0;
  width: 0.9em;
  height: 0.9em;
  border-radius: 0.2em;
  margin-left: -0.45em;
  margin-top: -0.45em;
  background: #41aac8;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}
.range.is-active .range__handle div {
  transform: scale(1.25);
}
.range__handle:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3em;
  height: 3em;
  margin-left: -1.5em;
  margin-top: -1.5em;
}
.range__list {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  position: relative;
  padding-top: 0.5em;
  font-size: 0.55em;
  color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.range--type-color:not(:last-child) {
  margin-bottom: 1em;
}
.range--type-color .range__list {
  display: none;
}
.range--type-color .range__handle > div {
  background: currentColor !important;
}
.range--type-color .range__track-line {
  background: transparent;
}
.range--type-color .range__track-line:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  opacity: 0.5;
}
.range--color-hue .range__handle {
  color: red;
}
.range--color-hue .range__track {
  color: red;
}
.range--color-hue .range__track-line:after {
  background: linear-gradient(
    to right,
    red,
    yellow,
    lime,
    cyan,
    blue,
    magenta,
    red
  );
}
.range--color-saturation .range__handle {
  color: red;
}
.range--color-saturation .range__track {
  color: red;
}
.range--color-saturation .range__track-line:after {
  background: linear-gradient(to right, gray, currentColor);
}
.range--color-lightness .range__handle {
  color: red;
}
.range--color-lightness .range__track {
  color: red;
}
.range--color-lightness .range__track-line:after {
  background: linear-gradient(to right, black, currentColor, white);
}

.stats {
  position: relative;
  width: 14em;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  opacity: 0;
}
.stats:not(:last-child) {
  margin-bottom: 1.5em;
}
.stats > i {
  display: block;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.9em;
}
.stats > b {
  display: block;
  font-size: 0.9em;
}
.stats > b > i {
  font-size: 0.75em;
}
.stats[name="worst-time"] {
  display: none;
}

.text {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  line-height: 0.75;
  perspective: 100rem;
  opacity: 0;

}
.text i {
  display: inline-block;
  opacity: 0;
  white-space: pre-wrap;
}
.text--title {
  bottom: 75%;
  font-size: 4.4em;
  height: 1.2em;
}
.text--title span {
  display: block;
}
.text--title span:first-child {
  font-size: 0.5em;
  margin-bottom: 0.2em;
}
.text--note {
  top: 87%;
  font-size: 1em;
}
.text--timer {
  font-family: Anton, sans-serif;

  bottom: 78%;
  font-size: 3.5em;
  line-height: 1;
}
.text--complete,
.text--best-time {
  font-size: 1.5em;
  top: 80%;
  line-height: 1em;
  padding-bottom: 20px;
}

.text--complete span,
.text--best-time span {
  font-family: Anton, sans-serif;

  font-size: 2em;
  /* top: 75%; */
  line-height: 2em;
}
.text--complete p,
.text--best-time p {
  font-size: 1em;
  /* top: 83%; */
  line-height: 1em;
}


.btn {
  font-family: PetroSans, sans-serif;

  /* font-weight: 600; */

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border-radius: 0;
  border-width: 0;
  position: absolute;
  pointer-events: none;
  font-size: 16px;

  color: rgb(0, 0, 0);
  opacity: 0;
}
.btn:after {
  position: absolute;
  content: "";
  width: 3em;
  height: 3em;
  left: 50%;
  top: 50%;
  margin-left: -1.5em;
  margin-top: -1.5em;
  border-radius: 100%;
}
.btn--bl {
  top: 0.8em;
  left: 0.8em;
}
.btn--br {
  top: 0.8em;
  right: 0.8em;
}
.btn--bc {
  top: 0.8em;
  left: calc(50% - 0.5em);
}
.btn svg {
  display: block;
}
.btn--cancel {
  display: none !important;
}
@media screen and (max-width: 767px) {

  .text--timer {
    font-family: Anton, sans-serif;
  
    bottom: 78%;
    font-size: 36px;
    line-height: 1;
  }
  .text--complete,
  .text--best-time {
    font-size: 1.5em;
    top: 80%;
    line-height: 1em;
  }
  
  .text--complete span,
  .text--best-time span {
    font-family: Anton, sans-serif;
  
    font-size: 24px;
    /* top: 75%; */
    line-height: 32px;
  }
  .text--complete p,
  .text--best-time p {
    font-size: 12px;
    /* top: 83%; */
    line-height: 26px;
  }
  .btn {
    font-family: PetroSans, sans-serif;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border-radius: 0;
    border-width: 0;
    position: absolute;
    pointer-events: none;
    font-size: 14px;
    color: rgb(0, 0, 0);
    opacity: 0;
  }

}

.ui {
  pointer-events: none;
  color: #070d15;
}
.ui,
.ui__background,
.ui__game,
.ui__texts,
.ui__prefs,
.ui__theme,
.ui__stats,
.ui__buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.ui__background {
  z-index: 1;
  /* background: rgba(236, 234, 229, 1); */
  transition: background 500ms ease;
}
.ui__background:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  background: rgba(236, 234, 229, 1);

  /* background-image: linear-gradient(to bottom, rgb(230, 18, 18) 50%, rgba(234, 39, 39, 0) 100%); */
}
.ui__game {
  pointer-events: all;
  z-index: 2;
}
.ui__game canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.ui__texts {
  z-index: 3;
}
.ui__prefs,
.ui__stats,
.ui__theme {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 4;
}
.ui__theme {
  padding-top: 15em;
}
.ui__buttons {
  z-index: 5;
}

.mainoverlay {
  /* position: relative; */
  z-index: 100;
  /* width: 100vw; */
  /* height: 100vh; */
  /* background-color: #41aac8; */
  /* opacity: 0.5; */
  /* transition: all 1s ease-out; */
}
