* {
  font-family: "Trebuchet MS", sans-serif;
  color: white;
}

body {
  background-color: #131313;
  position: relative;
}

h1 {
  margin: 0;
}

h4 {
  margin: 0 0 1em 0;
}

.outer {
  width: 18em;
  height: auto;
  margin: 0 auto;
}

.container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 0.2em 0;
}

.container > div {
  border: 3px solid gray;
  height: 3em;
  width: 3em;
  text-align: center;
}

p {
  margin: 0.4em;
  user-select: none;
  font-size: 1.5em;
  color: white;
  font-weight: bold;
  height: 60%;
}

p[data-selected] {
  cursor: pointer;
}

p[data-selected="true"] {
  outline: 5px solid rgb(71, 71, 71);
  outline-offset: 5px;
  transition: outline ease 0.1s;
}

.flip {
  transition: all 0.5s;
  perspective: 1000px;
  transform: rotateX(-360deg);
}

input {
  color: white;
  border: 3px solid gray;
  border-radius: 6px;
  padding: 1em;
  margin: 1em auto;
  font-weight: bold;
}

.center {
  margin: 0 auto;
  text-align: center;
}

#type {
  position: fixed;
  z-index: -100;
  transform: translateY(20em);
}

#start {
  width: 6em;
}

.pop-container {
    position: fixed;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: max-content;
    top: 2.5%;
}

.pop {
  visibility: hidden;
  background-color: white;
  width: max-content;
  color: #292929;
  padding: 1em;
  border-radius: 1em;
  user-select: none;
  margin: 0.5em 0;
}

.vanish {
  transition: opacity 4s ease-out;
  opacity: 0;
}

.examples {
  max-width: 40em;
  text-align: left;
  margin: 1em auto;
  overflow: auto;
  word-wrap: break-word;
  inline-size: 100%;
}

.guide {
  overflow: auto;
  word-wrap: break-word;
}

.example {
  border: 3px solid gray;
  height: 5em;
  width: 5em;
  text-align: center;
  display: inline-block;
  transform: scale(0.75);
}

.example p {
  font-size: 2em;
  padding: 0;
  transform: translate(0, 25%);
  height: max-content;
}

.correct {
  background-color: #0c8f00;
  border: 3px solid #0c8f00;
}

.misplaced {
  background-color: #bf9600;
  border: 3px solid #bf9600;
}

.incorrect {
  background-color: gray;
}

.keyboard {
  margin: 1em auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 30em;
}

.row {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.half {
  flex: 0.5;
}

.row .extra {
  flex: 1.5;
}

.row button {
  background-color: transparent;
  max-width: 20%;
  border: 3px solid gray;
  margin: 0.5%;
  text-transform: uppercase;
  font-size: 1em;
  overflow: hidden;
  cursor: pointer;
  flex: 1;
  transition: all 0.8s;
  padding: 2%;
}

.row .half-size {
  font-size: 40%;
}

.tips {
  cursor: default;
}

.tips p {
  font-style: italic;
  font-size: 8px;
  color: transparent;
  user-select: unset;
}

::selection {
  color: gray;
  background-color: white;
}

::-moz-selection {
  color: gray;
  background-color: white;
}

.shake {
  animation: shake linear 0.3s;
}

.vertical-shake {
  animation: vertical-shake linear 0.3s 2;
}

.no-border {
  border: 0;
}

#next {
  font-size: 1.2em;
}

#timer {
  font-size: 2em;
  padding: 0;
  margin-bottom: 0.5em;
}

.fade {
  animation: fade linear 0.1s forwards;
}

.examples > div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.toggle {
    width: 3.5em;
    height: 1.75em;
    background-color: gray;
    border-radius: 1em;
    position: relative;
}

.toggle::after {
    content: "";
    width: 45%;
    display: inline-block;
    padding-bottom: 45%;
    transform: translate(10%, 5%);
    background-color: #353535;
    border-radius: 50%;
    transition: 0.4s;
}

.toggle[data-on="true"]::after {
    transform: translateX(110%);
}

@keyframes shake {
  0% {
    transform: translateX(0.2em);
  }
  50% {
    transform: translateX(-0.2em);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes vertical-shake {
  0% {
    transform: translateY(0.2em);
  }
  50% {
    transform: translateY(-0.2em);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fade {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* @media only screen and (min-width: 650px) {
  .keyboard {
    width: 50%;
  }
}

@media only screen and (min-width: 800px) {
  .keyboard {
    width: 60%;
  }
}

@media only screen and (min-width: 1000px) {
  .keyboard {
    width: 40%;
  }
} */
