@import url('font-awesome/css/font-awesome.min.css');
html, body {
  font-family: "Roboto", sans-serif;
  height: 100%;
  margin: 0px;
  overflow: hidden;
  padding: 0px;
  width: 100%;
  background: #1e1e1e;
}

.scroll-bar::-webkit-scrollbar {
  background-color: #3c3c3c;
  width: 2px;
}
.scroll-bar::-webkit-scrollbar-thumb {
  background-color: #1a237e;
}

.blink {
  animation: blink 1s ease-in-out infinite;
}

#wrapper {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
}

#type-screen {
  margin: auto;
  overflow: hidden;
  position: relative;
  user-select: none;
  width: 825px;
  padding-bottom: 100px;
}
#type-screen #title {
  background: linear-gradient(to right, #1a237e 33%, #03a9f4 33%, #03a9f4 66%, #4a148c 66%);
  border-radius: 2px;
  margin-top: 20px;
  overflow: hidden;
  padding-bottom: 2px;
}
#type-screen #title h1 {
  background-color: #1e1e1e;
  color: white;
  font-family: "Source Code Pro", monospace;
  font-weight: 300;
  margin: 0px;
  padding: 10px;
}
#type-screen #top-bar {
  height: 80px;
  overflow: hidden;
  position: relative;
}
#type-screen #top-bar #time-box, #type-screen #top-bar #speed-box {
  border-radius: 2px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 10px, rgba(0, 0, 0, 0.23) 0px 3px 10px;
  display: inline-block;
  margin: 20px 0px;
  position: absolute;
  top: 0px;
}
#type-screen #top-bar #time-box .icon, #type-screen #top-bar #speed-box .icon {
  color: white;
  display: inline-block;
}
#type-screen #top-bar #time, #type-screen #top-bar #speed {
  background-color: #1e1e1e;
  border-radius: 2px;
  color: white;
  display: inline-block;
  font-weight: 100;
  height: 36px;
  margin: 2px;
  padding: 10px 20px;
}
#type-screen #top-bar #time-box {
  background: linear-gradient(to right, #1a237e, #03a9f4, #4a148c);
  left: 0px;
}
#type-screen #top-bar #time-box #time {
  font-size: 2em;
  text-align: center;
  white-space: nowrap;
}
#type-screen #top-bar #time-box #time #time-value {
  display: inline-block;
  width: 70px;
}
#type-screen #top-bar #speed-box {
  background: linear-gradient(to left, #1a237e, #03a9f4, #4a148c);
  right: 0px;
}
#type-screen #top-bar #speed-box #speed {
  font-size: 1.5em;
  position: relative;
  white-space: nowrap;
  width: 102px;
}
#type-screen #top-bar #speed-box #speed #wpm {
  display: inline-block;
  height: 22px;
  line-height: 22px;
  text-align: center;
  vertical-align: top;
  width: 40px;
}
#type-screen #top-bar #speed-box #speed #wpm .val {
  animation: alternate-wpm 250ms ease-in-out;
}
#type-screen #top-bar #speed-box #speed .label {
  display: inline-block;
  height: 22px;
  line-height: 22px;
  vertical-align: top;
}
#type-screen #top-bar #speed-box #speed #average {
  bottom: 10px;
  display: inline-block;
  font-size: 0.5em;
  height: 10px;
  left: 20px;
  line-height: 10px;
  position: absolute;
  text-align: right;
  width: 102px;
}
#type-screen #prompt {
  background-color: #1e1e1e;
  border-radius: 2px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 10px, rgba(0, 0, 0, 0.23) 0px 3px 10px;
  height: 40px;
  margin: auto;
  margin-top: 20px;
  overflow: hidden;
  position: relative;
  width: 0px;
  z-index: 2;
}
#type-screen #prompt:after, #type-screen #prompt:before {
  content: "";
  position: absolute;
}
#type-screen #prompt:before {
  background: linear-gradient(45deg, #4a148c, #1a237e, #03a9f4);
  height: 100%;
  left: 0px;
  top: 0px;
  width: 100%;
  z-index: 1;
}
#type-screen #prompt:after {
  background-color: #1e1e1e;
  height: calc(100% - 4px);
  left: 2px;
  top: 2px;
  width: calc(100% - 4px);
  z-index: 2;
}
#type-screen #prompt #prompt-number {
  background: linear-gradient(45deg, #4a148c, #1a237e, #03a9f4);
  border-radius: 100px;
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 5;
}
#type-screen #prompt #prompt-number h1#prompt-number-value {
  background-color: #1e1e1e;
  border-radius: 100px;
  color: white;
  font-family: "Source Code Pro", monospace;
  font-size: 0.8em;
  font-weight: 200;
  height: 15px;
  line-height: 15px;
  margin: 2px;
  padding: 5px;
  text-align: center;
  width: 15px;
}
#type-screen #prompt #prompt-letters {
  margin: 40px auto;
  position: relative;
  z-index: 3;
}
#type-screen #prompt #prompt-cursor {
  background-color: #03a9f4;
  height: 40px;
  left: 24px;
  position: absolute;
  top: 40px;
  width: 1px;
  z-index: 10;
}
#type-screen #prompt #prompt-cursor #prompt-cursor-trail {
  height: 90%;
  left: 0px;
  overflow: hidden;
  position: absolute;
  top: 5%;
  transform: translateX(-100%);
  width: 20px;
}
#type-screen #prompt #prompt-cursor #prompt-cursor-trail .trail {
  animation: cursor-trail 200ms ease-in-out infinite;
  color: white;
  font-size: 0.4em;
  height: 8px;
  line-height: 8px;
  opacity: 0;
  right: 0px;
  position: absolute;
  text-align: right;
  width: 8px;
}
#type-screen #prompt .letter {
  color: white;
  font-weight: 200;
  position: absolute;
}
#type-screen #prompt .letter.complete {
  animation: letter-complete 0.25s ease-in-out;
  color: #cddc39;
}
#type-screen #prompt .letter.success {
  animation: letter-success 0.25s ease-in-out;
  color: #2e7d32;
}
#type-screen #prompt .letter.error {
  animation: letter-error 0.25s ease-in-out;
  color: #d32f2f;
}
#type-screen #prompt .letter.error:after {
  background-color: #d32f2f;
  bottom: -2px;
  content: "";
  height: 1px;
  left: 0px;
  position: absolute;
  width: 100%;
}
#type-screen #prompt .letter.ignore {
  display: none;
}
#type-screen #author {
  color: #1a237e;
  font-family: "Source Code Pro", monospace;
  font-size: 1.5em;
  margin-top: 10px;
  text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.4);
}
#type-screen #input-field {
  height: 40px;
  margin: auto;
  margin-top: 100px;
  position: relative;
  text-align: center;
  width: 825px;
  z-index: 10;
}
#type-screen #input-field:after {
  background-color: black;
  bottom: -4px;
  content: "";
  height: 1px;
  left: 0px;
  position: absolute;
  width: 100%;
  z-index: -1;
}
#type-screen #input-field #input-field-letters {
  display: inline-block;
  height: 100%;
  left: 50%;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
}
#type-screen #input-field #input-field-letters:after {
  background: linear-gradient(to right, #ab47bc, #03a9f4);
  bottom: -2px;
  content: "";
  height: 1px;
  left: 0px;
  position: absolute;
  width: 100%;
}
#type-screen #input-field #input-field-letters .letter {
  animation: zoom-in 0.25s ease-in-out;
  color: white;
  font-weight: 200;
}
#type-screen #bottom-bar {
  margin-top: 24px;
  position: relative;
  width: 100%;
}
#type-screen #bottom-bar .button {
  border-radius: 2px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 10px, rgba(0, 0, 0, 0.23) 0px 3px 10px;
  display: inline-block;
  transition: all 0.4s;
}
#type-screen #bottom-bar .button:hover {
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 30px, rgba(0, 0, 0, 0.23) 0px 6px 10px;
}
#type-screen #bottom-bar .button:hover h1 {
  background-color: transparent;
}
#type-screen #bottom-bar .button h1 {
  background-color: #1e1e1e;
  color: white;
  cursor: pointer;
  font-size: 1em;
  font-weight: 300;
  margin: 2px;
  padding: 10px 20px;
  text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.4);
  transition: all 0.4s;
}
#type-screen #bottom-bar #reset {
  background: linear-gradient(to left, #1a237e, #03a9f4);
}
#type-screen #bottom-bar #nav-buttons {
  position: absolute;
  right: 0px;
  top: 0px;
}
#type-screen #bottom-bar #nav-buttons #next, #type-screen #bottom-bar #nav-buttons #prev {
  display: inline-block;
}
#type-screen #bottom-bar #nav-buttons #next.disabled, #type-screen #bottom-bar #nav-buttons #prev.disabled {
  opacity: 0.5;
  pointer-events: none;
}
#type-screen #bottom-bar #nav-buttons #prev {
  background: linear-gradient(to right, #1a237e, #03a9f4);
}
#type-screen #bottom-bar #nav-buttons #next {
  background: linear-gradient(to left, #1a237e, #03a9f4);
  margin-left: 15px;
}
#type-screen #history {
  margin: 60px 0px;
}
#type-screen #history .title {
  background: linear-gradient(to left, #1a237e 33%, #03a9f4 33%, #03a9f4 66%, #4a148c 66%);
  padding-bottom: 2px;
}
#type-screen #history .title h1 {
  background-color: #1e1e1e;
  color: white;
  font-size: 1.25em;
  font-family: "Source Code Pro", monospace;
  font-weight: 200;
  margin: 0px;
}
#type-screen #history .labels {
  border-bottom: 1px solid #3c3c3c;
  font-size: 0px;
  margin-top: 5px;
  padding: 5px 0px;
  position: relative;
  width: 100%;
}
#type-screen #history .labels .label {
  color: #5a5a5a;
  display: inline-block;
  font-family: "Source Code Pro", monospace;
  font-size: 16px;
  font-weight: 300;
  margin-left: 10px;
}
#type-screen #history .labels .label.l1 {
  width: 50px;
}
#type-screen #history .labels .label.l2 {
  width: 150px;
}
#type-screen #history .labels .label.l3 {
  width: 150px;
}
#type-screen #history #history-items {
  font-size: 0px;
}
#type-screen #history #history-items .item {
  color: white;
  padding: 5px 0px;
}
#type-screen #history #history-items .item:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.05);
}
#type-screen #history #history-items .item .item-no, #type-screen #history #history-items .item .test-no, #type-screen #history #history-items .item .wpm {
  color: white;
  display: inline-block;
  font-size: 16px;
  font-weight: 300;
  margin-left: 10px;
}
#type-screen #history #history-items .item .item-no {
  width: 50px;
}
#type-screen #history #history-items .item .test-no, #type-screen #history #history-items .item .wpm {
  width: 150px;
}
#type-screen .letter {
  display: inline-block;
  font-size: 2em;
  font-weight: 300;
  height: 40px;
  text-align: center;
  text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.6);
  width: 25px;
}
#type-screen .letter.flying {
  color: #2e7d32;
  position: absolute;
  transition: all 250ms;
  transition-timing-function: ease-in-out;
  z-index: 100;
}

@keyframes zoom-in {
  from {
    color: black;
    opacity: 0;
    transform: scale(0.25);
  }
  50% {
    transform: scale(1.5);
  }
  to {
    color: white;
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes alternate-wpm {
  from {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  to {
    transform: scale(1);
  }
}
@keyframes letter-complete {
  from, to {
    color: #cddc39;
    transform: scale(1);
  }
  50% {
    color: #2e7d32;
    transform: scale(1.5);
  }
}
@keyframes letter-success {
  from {
    color: white;
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  to {
    color: rgba(205, 220, 57, 0.6);
    transform: scale(1);
  }
}
@keyframes letter-error {
  from {
    color: white;
    transform: translateX(0%) scale(1);
  }
  20% {
    transform: translateX(-20%) scale(1.1);
  }
  40% {
    transform: translateX(20%) scale(1.2);
  }
  50% {
    transform: translateX(20%) scale(1.5);
  }
  60% {
    transform: translateX(-10%) scale(1.2);
  }
  80% {
    transform: translateX(10%) scale(1.1);
  }
  to {
    color: #d32f2f;
    transform: translateX(0%) scale(1);
  }
}
@keyframes blink {
  0%, 24%, 76%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0;
  }
}
@keyframes cursor-trail {
  0% {
    color: white;
    right: 0px;
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  100% {
    right: 100%;
    opacity: 0;
    transform: translateX(100%);
  }
}
@media (max-width: 767px) {
  #wrapper {padding: 0 12px; width: auto;}
  #type-screen {width: 100%;}
  #type-screen #prompt {width: 100% !important;}
  #type-screen #prompt #prompt-letters {width: calc(100% - 50px) !important;}
}