@import url("https://fonts.googleapis.com/css?family=Press+Start+2P|Lato");

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  outline: none;
}

*::-webkit-scrollbar {
  width: 15px;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.svg-container svg {
  shape-rendering: optimizeSpeed;
}

p {
  -webkit-margin-before: 0;
  -webkit-margin-after: 0;
}

body {
  height: 100vh;
  width: 100vw;
  margin: 0;
  background-color: #fafafa;
  color: #555;
  font-family: "Lato", "Roboto", sans-serif;
}

svg text {
  user-select: none;
}

[disabled] {
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slide-in-from-bottom {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes shake {
  0% {
    transform: translate(0, 3px) rotate(0deg);
  }
  33% {
    transform: translate(3px, -2px) rotate(1deg);
  }
  66% {
    transform: translate(-3px, 2px) rotate(-1deg);
  }
  100% {
    transform: translate(0, 3px) rotate(0deg);
  }
}

.error-shake {
  animation: shake 4 0.15s ease-out;
}

.flash {
  animation-name: fade-in;
  animation-iteration-count: 1;
  animation-duration: 0.5s;
  animation-timing-function: ease-in-out;
}

.large {
  width: 100%;
}

@keyframes cursor-flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#code-editor {
  height: 100%;
  width: 100%;
}

.flashing-cursor {
  animation-name: cursor-flash;
  animation-iteration-count: infinite;
  animation-duration: 1s;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(1080deg);
  }
}

.spinning {
  animation-name: spin;
  animation-iteration-count: infinite;
  animation-duration: 3s;
}

@keyframes progress {
  from {
    transform: translate(-100%);
  }
  to {
    transform: translate(120%);
  }
}
.progress-bar {
  animation-name: progress;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

/* --------------------------
  Base
--------------------------- */

svg {
  margin: auto;
  display: block;
}

/* --------------------------
  Keyframes
--------------------------- */

@keyframes grow {
  0% {
    transform: scale(0);
  }
  30% {
    transform: scale(1.1);
  }
  60% {
    transform: scale(0.9);
  }
}

@keyframes turn {
  0% {
    transform: rotate(0) scale(0);
    opacity: 0;
    height: 0;
    width: 0;
  }
  60% {
    transform: rotate(375deg) scale(1.1);
  }
  80% {
    transform: rotate(360deg) scale(0.8);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.4);
  }
}

@keyframes pixel-bg {
  from {
    background-position-y: 0px, 0;
    background-position-x: 0px, 0;
  }
  to {
    background-position-y: 384px, 0;
    background-position-x: -384px, 0;
  }
}

/* --------------------------
  SVG Styles
--------------------------- */

.badge * {
  transform-origin: 180px 180px;
}

.outer,
.inner,
.inline {
  animation: grow 1s ease-out backwards;
}

.inner {
  animation-delay: 0.1s;
}

.inline {
  animation-delay: 0.15s;
}

.star {
  animation: turn 1.1s ease-out 0.2s backwards;
}

.star circle {
  animation: pulse 0.5s linear 1.5s;
}

.star circle:nth-of-type(2) {
  animation-delay: 1.6s;
}

.star circle:nth-of-type(3) {
  animation-delay: 1.7s;
}

.star circle:nth-of-type(4) {
  animation-delay: 1.8s;
}

.star circle:nth-of-type(5) {
  animation-delay: 1.9s;
}

.task-list-item-checkbox {
  margin-left: -22px;
  margin-right: 8px;
}

code.lang-js {
  font-size: 14px;
}

#terms p {
  margin: 1em 0;
}

@media print {
  body {
    margin: 10mm 0;
  }
  body * {
    visibility: hidden;
  }
  #print-container,
  #print-container * {
    visibility: visible;
    overflow-y: visible;
    display: inline-block;
    page-break-inside: avoid;
  }
  #print-container {
    position: relative !important;
    overflow-y: visible !important;
    display: inline !important;
    width: 100vw;
  }
  pre code {
    border: 0;
    width: 100%;
  }
}


/**
 Flex Fixes
 **/

.flex-grow {
  flex-grow: 1;
}

 .flex-fill {
   flex: 1;
 }