* {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #222;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0px;
  height: 100%;
}

#letter-grid {
  position: relative;
  width: 300px;
  height: 300px;
  margin: auto;
  margin-bottom: 30px;
}
.letter-item {
  text-transform: uppercase;
  border-radius: 100%;
  font-size: 24px;
  color: black;
  position: absolute;
  background-color: #eee;
  height: 48px;
  max-height: 48px;
  width: 48px;
  max-width: 48px;
  margin-left: 2px;
  margin-top: 2px;
  text-align: center;
  line-height: 48px;
  border: 4px solid transparent;
  box-shadow: 4px 4px 0px 0px #888;
  transition: all 0.1s ease-in-out, top 0.4s ease-in-out, left 0.4s ease-in-out;
  animation: slideFromTop 0.5s ease-in-out;
  cursor: pointer;
  user-select: none;
}
.on {
  border: 4px solid #6d6;
  box-shadow: 4px 4px 0px 0px #3a3;
}

@keyframes rotateBlob {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideFromTop {
  from {
    transform: translateY(-200px);
  }
  to {
    transform: translateY(0px);
  }
}

@keyframes popIn {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rejected {
  0% {
    transform: translateX(0px);
  }
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(8px);
  }
  100% {
    transform: translateX(0px);
  }
}

#word-input-wrapper {
  text-align: center;
  min-height: 80px;
}

.letter-typed {
  text-transform: uppercase;
  border-radius: 20px;
  background: #eee;
  box-shadow: 4px 4px 0px 0px #888;
  font-size: 44px;
  line-height: 60px;
  display: inline-block;
  width: 60px;
  height: 60px;
  margin: 2px;
  cursor: pointer;
}

.added {
  animation: popIn 0.1s;
}

.rejected {
  animation: rejected 0.2s;
  animation-iteration-count: 2;
}

#score-wrapper {
  display: inline-block;
  border-radius: 20px;
  padding: 10px;
  background: #eee;
  text-align: center;
  position: relative;
  z-index: 1;
  font-size: 34px;
  line-height: 34px;
  box-shadow: 4px 4px 0px 0px #888;
  min-width: 300px;
  height: 100;
  transform: translate(0px, -50px);
  margin: 0px auto -25px auto;
}
#score,
#timer {
  display: inline-block;
  padding-left: 50px;
  transform: translateY(41px);
  font-size: 28px;
}

@keyframes slideInAndOut {
  0% {
    transform: translateY(100px);
    color: rgba(0, 0, 0, 0);
  }
  25% {
    transform: translateY(48px);
    color: rgba(0, 0, 0, 1);
  }
  75% {
    transform: translateY(48px);
    color: rgba(0, 0, 0, 1);
  }
  100% {
    transform: translateY(20px);
    color: rgba(0, 0, 0, 0);
  }
}

#score-add {
  display: inline-block;
  color: rgba(0, 0, 0, 0);
}
.slide-up-score {
  animation: slideInAndOut 0.7s linear;
}

#keyboard {
  text-align: center;
}
.keyboard-row {
  display: flex;
  justify-content: center;
}
.keyboard-row-key {
  text-transform: capitalize;
  min-width: 26px;
  height: 26px;
  display: inline-block;
  background: #eee;
  box-shadow: 4px 4px 0px 0px #888;
  margin: 3px 3px;
  font-size: 26px;
  line-height: 26px;
  padding: 16px 12px;
  border-radius: 18px;
  cursor: pointer;
  user-select: none;
}
#links {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  margin-bottom: 5px;
}
#mode-link {
  color: inherit;
  text-decoration: none;
  text-align: center;
  width: 118px;
  background-color: #ddf;
  box-shadow: 4px 4px 0px 0px #888;
  margin: 2px 8px;
  font-size: 16px;
  line-height: 16px;
  padding: 12px 8px;
  border-radius: 18px;
  cursor: pointer;
}

#mode {
  font-size: 16px;
  transform: translateY(45px);
  line-height: 13px;
}
#title {
  font-weight: bold;
  font-size: 18px;
  transform: translateY(45px);
  line-height: 13px;
}

@keyframes slideLoggerIn {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0%);
  }
}
@keyframes slideLoggerOut {
  from {
    transform: translateY(0%);
  }
  to {
    transform: translateY(200%);
  }
}
.logger {
  display: none;
  position: fixed;
  margin: 20px auto;
  background: rgba(240, 240, 240, 0.95);
  max-width: 313px;
  border-radius: 20px;
  padding: 20px;
  z-index: 2;
  bottom: 75px;
  top: 55px;
  left: 0px;
  right: 0px;
  box-shadow: 4px 4px 0px 0px #888;
  animation: slideLoggerIn 1s;
  overflow: auto;
}
.seed-link {
  width: calc(100% - 68px);
  display: inline-block;
  text-align: center;
  background: #fff;
  padding: 10px 0px;
  margin-top: 0px;
  margin-left: 0px;
  margin-right: 1px;
  margin-bottom: 16px;
  border-radius: 10px;
  box-shadow: 2px 2px #888;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
  user-select: none;
}
.seed-link:active {
  margin-top: 1px;
  margin-left: 1px;
  margin-right: 0px;
  margin-bottom: 15px;
  box-shadow: 0px 0px #888;
}
.copy-text {
  font-size: 12px;
}
.close-logger {
  width: 30px;
  display: inline-block;
  position: absolute;
  text-align: center;
  background: #f88;
  padding: 10px 0px;
  border-radius: 10px;
  transition: all 0.1s ease-in-out;
  box-shadow: 2px 2px #d55;
  top: 22px;
  right: 20px;
  cursor: pointer;
}
.close-logger:active {
  box-shadow: 0px 0px #d55;
  top: 24px;
  right: 18px;
}
.open-logger {
  width: 30px;
  display: inline-block;
  position: absolute;
  text-align: center;
  background: #88f;
  padding: 10px 0px;
  border-radius: 10px;
  box-shadow: 2px 2px #55d;
  bottom: 40px;
  right: 20px;
  cursor: pointer;
}
.open-logger:active {
  box-shadow: 0px 0px #55d;
  bottom: 38px;
  right: 18px;
}
.open-instructions {
  width: 30px;
  display: inline-block;
  position: absolute;
  text-align: center;
  background: #6d6;
  padding: 10px 0px;
  border-radius: 10px;
  box-shadow: 2px 2px #3a3;
  bottom: 40px;
  left: 20px;
  cursor: pointer;
}
.open-instructions:active {
  box-shadow: 0px 0px #3a3;
  bottom: 38px;
  left: 18px;
}

.logger > * div {
  text-transform: initial;
}
.logger-leave {
  animation: slideLoggerOut 0.5s;
  transform: translateY(200%);
}
footer {
  margin-top: auto;
  color: #aaa;
  font-size: 10px;
  align-self: center;
  text-transform: initial;
  margin-bottom: 5px;
}
a {
  color: inherit;
  text-decoration: none;
}
#instructions {
  text-transform: initial !important;
  display: none;
  position: fixed;
  background: rgba(240, 240, 240, 1);
  border-radius: 20px;
  padding: 54px 20px 0px 20px;
  z-index: 2;
  bottom: 24px;
  top: 16px;
  left: 16px;
  right: 16px;
  box-shadow: 4px 4px 0px 0px #888;
  transition: all 0.5s ease-in-out;
  animation: slideLoggerIn 1s;
  overflow: auto;
  max-width: 400px;
  margin: auto;
}
#instructions > * p {
  width: 180px;
  font-weight: normal;
  text-align: center;
}
.instruction-paragraphs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-top: 20px;
}
@keyframes spinIn {
  0% {
    transform: rotate(-1200deg);
  }
  70% {
    transform: rotate(400deg);
  }
  90% {
    transform: rotate(340deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes spinInSnap {
  0% {
    transform: rotate(-4800deg);
  }
  99% {
    transform: rotate(380deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.squircle-icon {
  background: white;
  padding: 4px;
  border-radius: 7px;
  box-shadow: 2px 2px #888;
  min-width: 17.4px;
  display: inline-block;
  animation: spinIn;
}
.squircle-icon:nth-child(1) {
  animation-duration: 2s;
}
.squircle-icon:nth-child(2) {
  animation-duration: 2.2s;
}
.squircle-icon:nth-child(3) {
  animation-duration: 2.4s;
}
.squircle-icon:nth-child(4) {
  animation-duration: 2.6s;
}
.squircle-icon:nth-child(6) {
  animation-duration: 2.8s;
}
.squircle-icon:nth-child(7) {
  animation-duration: 3s;
}
.squircle-icon:nth-child(8) {
  animation-duration: 3.2s;
}
.squircle-icon:nth-child(9) {
  animation: spinInSnap;
  animation-duration: 4s;
}
.squircle-tiny {
  background: white;
  border-radius: 5px;
  box-shadow: 2px 2px #888;
  padding: 2px 4px;
  text-align: center;
  display: inline-block;
  font-size: 12px;
  transform: translateY(-4px);
}
.word-icon {
  background: white;
  padding: 4px;
  margin: 2px;
  border-radius: 7px;
  box-shadow: 2px 2px #888;
  display: inline-block;
}
a.word-icon {
  background: #ddf;
}
.spacer-icon {
  width: 8px;
  display: inline-block;
}
.instructions-title {
  text-align: center;
}
.subtitle {
  letter-spacing: 4px;
  padding: 2px 32px;
  padding-left: 42px;
  text-align: center;
  display: block;
  margin: 12px auto 0px;
  width: 110px;
  background: white;
  border-radius: 7px;
  box-shadow: 2px 2px #888;
}
.log-copy-button {
  background: white;
  padding: 4px;
  border-radius: 7px;
  margin-left: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
  margin-right: 0px;
  box-shadow: 2px 2px #888;
  text-align: center;
  cursor: pointer;
  transform: translate(0px, 0px);
  user-select: none;
}
.log-copy-button:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px #888;
}
.new-game-button,
.restart-button {
  display: block;
  background: #6d6;
  padding: 4px;
  border-radius: 7px;
  margin-left: 0px;
  margin-top: 16px;
  margin-bottom: 0px;
  margin-right: 0px;
  box-shadow: 2px 2px #3a3;
  text-align: center;
  cursor: pointer;
  transform: translate(0px, 0px);
  user-select: none;
}
.new-game-button:active,
.restart-button:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px #888;
}
.mock-close-button {
  width: 30px;
  display: inline-block;
  margin-right: 3px;
  background: #f88;
  padding: 10px 0px;
  border-radius: 10px;
  transition: all 0.1s ease-in-out;
  box-shadow: 2px 2px #d55;
  transform: translateY(2px) scale(0.8);
}
.mock-instruction-button {
  width: 30px;
  display: inline-block;
  margin-right: 3px;
  background: #6d6;
  padding: 10px 0px;
  border-radius: 10px;
  transition: all 0.1s ease-in-out;
  box-shadow: 2px 2px #3a3;
  transform: translateY(2px) scale(0.8);
}
.mock-logger-button {
  width: 30px;
  display: inline-block;
  margin-right: 3px;
  background: #88f;
  padding: 10px 0px;
  border-radius: 10px;
  transition: all 0.1s ease-in-out;
  box-shadow: 2px 2px #55d;
  transform: translateY(2px) scale(0.8);
}
.how-to-play-gifs {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.how-to-play-gif-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 8px;
  font-weight: normal;
  text-align: center;
}
.how-to-play-gif-item > img {
  margin-top: 12px;
}

.letter-removed {
  left: 120px !important;
  top: -200px !important;
  transform: scale(0.5);
}
.log-list > div {
  font-family: monospace;
}
.highscore:before {
  content: "HIGHSCORE: ";
}
.streak:before {
  content: "STREAK: ";
}
.streak,
.highscore {
  font-family: monospace;
  color: #333;
}
