@font-face {
  font-family: 'Calculator';
  src: url('https://vladgotlib.com/nowserving/Calculator.ttf');
}
@font-face {
  font-family: 'Skyfont-NonCommercial';
  src: url('Skyfont-NonCommercial.otf');
}
:root {
  --ems-start: 4.5em;
  --ems-end: 4.5em;
}

body,
html {
  margin: 0px;
}
header {
  color: gray;
  border-bottom: 1px solid lightblue;
  padding-bottom: 10px;
}
#main {
  width: 86%;
  margin: auto;
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

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

.hidden {
  display: none !important;
}
.now-serving-holder {
  position: relative;
}
.now-serving-img {
  width: 200px;
  height: 160px;
}
.now-serving-input {
  position: absolute;
  top: 58px;
  left: 18px;
  background: center;
  width: 168px;
  text-align: center;
  border: none;
  font-family: 'Skyfont-NonCommercial';
}
.hypothetical-input {
  background: center;
  width: 60px;
  text-align: center;
  margin: 0 4px;
  /* border: none; */
  font-family: 'Skyfont-NonCommercial';
  font-size: 1.1em;
}

#hypothetical-time {
  font-family: monospace;
}
.unit-of-time-display {
  margin: 0 6px;
}
#input-start {
  font-size: var(--ems-start);
}
#input-end {
  font-size: var(--ems-end);
}
.record-metric-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.btn-record {
  padding: 5px 8px;
  margin-left: 20px;
  font-size: 1em;
  appearance: button;
  backface-visibility: hidden;
  background-color: #405cf5;
  border-radius: 3px;
  border-width: 0;
  box-shadow: rgba(50, 50, 93, 0.1) 0 0 0 1px inset,
    rgba(50, 50, 93, 0.1) 0 2px 5px 0, rgba(0, 0, 0, 0.07) 0 1px 1px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  font-family: -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue',
    Ubuntu, sans-serif;
  outline: none;
  overflow: hidden;
  text-transform: none;
  transform: translateZ(0);
  transition: all 0.2s, box-shadow 0.08s ease-in;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.btn-record:hover {
  box-shadow: rgba(50, 50, 93, 0.1) 0 0 0 1px inset,
    rgba(50, 50, 93, 0.2) 0 6px 15px 0, rgba(0, 0, 0, 0.1) 0 2px 2px 0,
    rgba(50, 151, 211, 0.3) 0 0 0 4px;
}
::placeholder {
  color: rgb(230, 220, 220);
}
.unlock-btn {
  background-color: #06166e !important;
}

#results-display {
  /* border: 1px solid lightgray; */
  flex-grow: 1;
  margin-left: 20px;
}

#results-table {
  display: grid;
  align-items: center;
  grid-template-columns: auto 35%;
  grid-column-gap: 12px;
  grid-row-gap: 12px;
  font-size: 1.3em;
  font-family: monospace;
  background: whitesmoke;
  padding: 40px 10px;
}
.calculator {
  display: flex;
  flex-direction: row;
  width: 98%;
  margin: auto;
  margin-top: 10px;
  padding-top: 13px;
}

@media screen and (max-width: 1300px) {
  #main {
    width: 92%;
  }
  .calculator {
    flex-direction: column;
  }
  #results-table {
    margin-top: 40px;
  }
  #results-display {
    margin-left: 20px;
  }
}
@media screen and (max-width: 960px) {
  #main {
    width: 98%;
  }
  .btn-record {
    margin-left: 0px;
  }
  #record-end {
    margin-top: 14px;
  }
  .record-metric-container {
    flex-direction: column;
  }
  #results-table {
    display: block;
    padding: 10px;
    margin-top: 10px;
    font-size: 1.2em;
  }
  #results-display {
    margin-left: 0px;
    margin-top: 20px;
  }
  .results-item-value {
    margin: 4px 0 15px 36px;
  }
}

#snackbar {
  visibility: hidden;
  position: absolute;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;

  top: 0px;
  background-color: chocolate;
  color: #fff;
  border-radius: 2px;
  padding: 16px;
  z-index: -10;
  opacity: 0;
  font-size: 1em;
}

#snackbar.show {
  visibility: visible;
  z-index: 1;
  animation-name: slidein;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.stopped {
  animation-name: none !important;
  top: 0px !important;
  opacity: 0 !important;
}

@keyframes slidein {
  0% {
    top: 0;
    opacity: 0;
  }
  20% {
    top: 20px;
    opacity: 1;
  }
  80% {
    top: 20px;
    opacity: 1;
  }
  100% {
    top: 0;
    opacity: 0;
  }
}

.results-item-title {
  display: flex;
  justify-self: end;
  align-items: center;
  white-space: nowrap;
}

.results-item-value > span {
  background: chartreuse;
  padding: 4px;
}

select {
  font-family: monospace;
  font-size: 1em;
  background-color: #405cf5;
  background-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20448%22%20enable-background%3D%22new%200%200%20256%20448%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E.arrow%7Bfill%3A%23ffffff%3B%7D%3C%2Fstyle%3E%3Cpath%20class%3D%22arrow%22%20d%3D%22M255.9%20168c0-4.2-1.6-7.9-4.8-11.2-3.2-3.2-6.9-4.8-11.2-4.8H16c-4.2%200-7.9%201.6-11.2%204.8S0%20163.8%200%20168c0%204.4%201.6%208.2%204.8%2011.4l112%20112c3.1%203.1%206.8%204.6%2011.2%204.6%204.4%200%208.2-1.5%2011.4-4.6l112-112c3-3.2%204.5-7%204.5-11.4z%22%2F%3E%3C%2Fsvg%3E%0A);
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: auto 50%;
  border-radius: 2px;
  border: none;
  color: #ffffff;
  padding: 1px 23px 3px 5px;
  outline: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
}
select::-ms-expand {
  display: none;
}
@-moz-document url-prefix() {
  select {
    color: rgba(0, 0, 0, 0);
    text-shadow: 0 0 0 #ffffff;
  }
}