@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Lato:ital,wght@0,300;0,400;1,300&display=swap");
@keyframes reveal {
  0% {
    margin: 0;
    max-width: 0;
  }
  45% {
    margin: 0 1em;
    max-width: 5em;
  }
  60% {
    margin: 0;
  }
  70% {
    margin: 0 0.5em;
  }
  80% {
    margin: 0;
  }
  85% {
    margin: 0 0.25em;
  }
  90% {
    margin: 0;
  }
  93% {
    margin: 0 0.13em;
  }
  96% {
    margin: 0;
  }
  98% {
    margin: 0 0.05em;
  }
  100% {
    margin: 0;
    max-width: 5em;
  }
}
@keyframes invalid {
  0% {
    color: #f00;
    transform: translateX(0);
  }
  5% {
    color: #f00;
    transform: translateX(5px);
  }
  10% {
    color: #f00;
    transform: translateX(-5px);
  }
  15% {
    color: #f00;
    transform: translateX(5px);
  }
  20% {
    color: #f00;
    transform: translateX(-5px);
  }
  25% {
    color: #f00;
    transform: translateX(0);
  }
  100% {
    color: #fff;
  }
}
@keyframes notify {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}
@keyframes slide {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0%);
  }
}
@keyframes flip {
  0% {
    transform: perspective(200px) rotateY(-90deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: perspective(200px) rotateY(0deg);
    opacity: 1;
  }
}
:root {
  --padding: 30px;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 18px;
}

body {
  background: #111;
  color: #fff;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  user-select: none;
}

#container {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100%;
}

#container > header {
  padding: var(--padding);
  text-align: center;
}
#container > header h1 > span {
  display: inline-block;
  text-align: center;
  overflow: hidden;
  vertical-align: bottom;
  animation: reveal 1500ms 500ms both ease-in-out;
}
#container > header p {
  animation: notify 500ms 1s both ease-in-out;
}

main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--padding);
}
main ul {
  padding: 2px;
  border: 1px solid transparent;
  transform-style: preserve-3d;
}
main ul.complete li {
  background: #666;
}
main ul.invalid {
  animation: invalid 2s;
}
main ul li {
  width: 2em;
  height: 2em;
  line-height: 2em;
  font-family: "Cinzel", serif;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid #666;
  opacity: 0;
}
main ul li.active {
  box-shadow: inset 0 -10px 5px rgba(255, 255, 255, 0.2);
}
main ul.animate li {
  animation: flip 500ms both ease-in-out;
}
main ul.animate li:nth-child(2) {
  animation-delay: 100ms;
}
main ul.animate li:nth-child(3) {
  animation-delay: 200ms;
}
main ul.animate li:nth-child(4) {
  animation-delay: 300ms;
}
main ul.animate li:nth-child(5) {
  animation-delay: 400ms;
}
main ul.animate li:nth-child(6) {
  animation-delay: 500ms;
}
main ul.animate li:nth-child(7) {
  animation-delay: 600ms;
}
main ul.animate li:nth-child(8) {
  animation-delay: 700ms;
}
main ul.animate li:nth-child(9) {
  animation-delay: 800ms;
}
main ul:last-child li {
  border: none;
  background: none;
  animation: none;
  transition: opacity 3s;
}
main ul:last-child.show li {
  opacity: 1;
}

#container > footer {
  flex: 0 1 200px;
  display: flex;
  flex-direction: column;
  padding: var(--padding);
  box-sizing: border-box;
  animation: slide 500ms 1s both ease-in-out;
}
#container > footer ul {
  flex: 1 1 auto;
  grid-template-columns: repeat(20, 1fr);
}
#container > footer ul li {
  grid-column-end: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5em;
  min-height: 3em;
  text-align: center;
  font-weight: 400;
  background: #999;
  cursor: pointer;
  user-select: none;
}
#container > footer ul li:nth-child(11) {
  grid-column-start: 2;
}
#container > footer ul li#enter, #container > footer ul li#backspace {
  grid-column-end: span 3;
}
#container > footer ul li:hover {
  background-color: rgba(153, 153, 153, 0.8);
}
#container > footer ul li.disabled {
  background: #333;
}
#container > footer ul li svg {
  width: 2em;
  height: 1.5em;
}

#container > aside {
  position: fixed;
  left: 50%;
  margin-left: -300px;
  width: 600px;
  bottom: 0;
  padding: var(--padding);
  background: #666;
  text-align: center;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 500ms, opacity 500ms;
  z-index: 10;
  border-radius: 10px 10px 0 0;
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.5);
}
#container > aside.show {
  opacity: 1;
  transform: translateY(0%);
}
#container > aside ul {
  grid-template-columns: repeat(4, 1fr);
  max-width: 500px;
  margin: 0 auto;
  padding: var(--padding);
}
#container > aside ul li b {
  display: block;
  font-size: 2rem;
}
#container > aside footer {
  padding: var(--padding);
}
#container > aside footer > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding-bottom: var(--padding);
}
#container > aside footer small {
  display: block;
  font-size: 0.8rem;
  line-height: 1.25em;
  margin-top: 10px;
  color: #fff;
}

#shade {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #000;
  z-index: 9;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 500ms, transform 0ms 500ms;
  z-index: 9;
}
#shade.show, #loading + #shade {
  opacity: 0.5;
  transform: translateY(0%);
  transition: opacity 500ms, transform 0ms;
}

h1, h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 400;
  line-height: 1.25em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

p {
  margin: 0 0 0.5em;
}

b {
  font-weight: 400;
}

a {
  font-weight: 400;
  color: #afa;
  text-decoration: none;
}
a:hover {
  color: #999;
}

ul {
  list-style: none;
  position: relative;
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
}
ul li {
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 5px;
  transition: background-color 500ms;
}
ul li.valid-letter {
  background: #aa2 !important;
  border-color: #aa2;
}
ul li.valid-position {
  background: #094 !important;
  border-color: #094;
}

.close, #stats-btn, #grid-toggle-btn {
  position: absolute;
  top: 10px;
  padding: 10px;
  cursor: pointer;
  transition: opacity 500ms;
}
.close.disabled, #stats-btn.disabled, #grid-toggle-btn.disabled {
  pointer-events: none;
  opacity: 0.25;
}

.close {
  right: 10px;
}
.close svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
}

.close svg {
  stroke-width: 5px;
}

#grid-toggle-btn svg, #stats-btn svg {
  width: 20px;
  height: 20px;
  stroke: none;
  fill: currentColor;
}

#grid-toggle-btn {
  left: 10px;
}
#grid-toggle-btn:not(.random) svg:first-child {
  display: none;
}
#grid-toggle-btn.random svg:last-child {
  display: none;
}

#stats-btn {
  right: 10px;
}

img {
  display: block;
}

.btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin: 10px;
  padding: 0 25px;
  height: 50px;
  line-height: 50px;
  border-radius: 25px;
  font-weight: 400;
  color: #fff;
  cursor: pointer;
}
.btn svg, .btn img {
  width: auto;
  height: 1.25em;
  margin-right: 10px;
}
.btn svg {
  fill: currentColor;
  stroke: none;
}
.btn.github {
  background: #000;
  color: #fff;
}
.btn.github:hover {
  background: #222;
}
.btn.share {
  background: #094;
}
.btn.share:hover {
  background: #00a349;
}
.btn.dice {
  position: relative;
  top: 3px;
  margin: 0 10px;
  padding: 0 15px;
  background: #333;
}
.btn.dice:hover {
  background: #555;
}
.btn.dice svg {
  width: 1.5em;
  margin-right: 0;
}

.notify {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  margin: -25px 0 0 -150px;
  padding: 0 30px;
  background: #666;
  border-radius: 25px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  z-index: 11;
  box-sizing: border-box;
  animation: notify 250ms;
}

@media (max-width: 700px) {
  :root {
    --padding: 10px;
  }
  html, body {
    font-size: 14px;
  }
  #container > aside {
    left: 5px;
    right: 5px;
    width: auto;
    margin-left: 0;
  }
}
@media (max-width: 550px) {
  #container > footer {
    width: 100%;
    padding: var(--padding) 2px;
  }
}
@media (max-width: 400px) {
  #container > footer ul li#enter {
    grid-column-end: span 4;
  }
  #container > footer ul li#backspace {
    grid-column-end: span 2;
  }
}
@media (max-width: 380px) {
  html, body {
    font-size: 12px;
  }
}

/*# sourceMappingURL=index.css.map */
