@charset "UTF-8";
:root {
  --nav: #0bf;
  --bg: #a3a3a3;
  --border: #d2d2d2;
  
  background: var(--bg);

}

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

[hidden] {
  display: none;
}

body {
  font-family: 'Rubik', sans-serif;
}

header {
  border-bottom: 1px solid var(--border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}
header .title {
  text-align: center;
  padding: 0.5em;
  color: white;
  background-color: var(--nav);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  height: 44px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-weight: 900;
}
header h1 {
  margin: auto;
  font-size: 1.5em;
}

.row {
  display: grid;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-bottom: 1px solid var(--border);
  background: white;
  text-align: center;
  background: var(--border);
  grid-gap: 1px;
  overflow: hidden;
}
.row > div {
  padding: 1em 0;
  background: white;
}
.row > div:not(:last-of-type) {
  position: relative;
  text-align: center;
  -ms-flex-item-align: stretch;
      align-self: stretch;
}
.row.disabled {
  background: #f0f0f0;
  opacity: 0.5;
}
.row .submit > * {
  padding: 0.25em 0.5em;
  margin: auto;
  display: block;
  line-height: 1.2;
  border: 0;
}
.row .submit button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border-radius: 5px;
  background: var(--nav);
  color: white;
}

.input {
  height: 100%;
}
.input:after {
  content: '';
  display: inline-block;
  height: 1em;
  width: 1em;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

button {
  font-family: 'Rubik', sans-serif;
  min-width: 0;
}

dialog {
  max-width: 30em;
  margin: auto;
  text-align: center;
  border: none;
  background: none;
  top: 0 !important;
  display: grid;
  position: fixed;
  height: 100vh;
  width: 100vw;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.2em;
  -webkit-animation: flyIn 0.2s ease-out;
          animation: flyIn 0.2s ease-out;
}
dialog > div {
  margin: 20% auto 0;
}
dialog button {
  background: var(--nav);
  color: white;
  padding: 0.5em 1em;
  border: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border-radius: 5px;
  font-size: 1.2em;
  text-transform: uppercase;
  font-weight: bold;
}
dialog .graphic {
  font-size: 50vmin;
  -webkit-animation: pop 1.2s ease-out infinite;
          animation: pop 1.2s ease-out infinite;
}

#board .row:last-of-type .input:first-of-type:not(.tapped):before {
  content: '☝️';
  position: absolute;
  z-index: 100;
  -webkit-animation: poprotate 1s infinite;
          animation: poprotate 1s infinite;
  right: 20%;
  top: 40%;
  font-size: 2em;
}

@-webkit-keyframes flyIn {
  0% {
    -webkit-transform: translateY(33%) scale(0.1);
            transform: translateY(33%) scale(0.1);
  }
  100% {
    -webkit-transform: translateY(0%) scale(1);
            transform: translateY(0%) scale(1);
  }
}

@keyframes flyIn {
  0% {
    -webkit-transform: translateY(33%) scale(0.1);
            transform: translateY(33%) scale(0.1);
  }
  100% {
    -webkit-transform: translateY(0%) scale(1);
            transform: translateY(0%) scale(1);
  }
}
@-webkit-keyframes pop {
  0% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  50% {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
  100% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
}
@keyframes pop {
  0% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  50% {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
  100% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
}
@-webkit-keyframes poprotate {
  0% {
    -webkit-transform: scale(0.9) rotate(-45deg);
            transform: scale(0.9) rotate(-45deg);
  }
  50% {
    -webkit-transform: scale(1.1) rotate(-45deg);
            transform: scale(1.1) rotate(-45deg);
  }
  100% {
    -webkit-transform: scale(0.9) rotate(-45deg);
            transform: scale(0.9) rotate(-45deg);
  }
}
@keyframes poprotate {
  0% {
    -webkit-transform: scale(0.9) rotate(-45deg);
            transform: scale(0.9) rotate(-45deg);
  }
  50% {
    -webkit-transform: scale(1.1) rotate(-45deg);
            transform: scale(1.1) rotate(-45deg);
  }
  100% {
    -webkit-transform: scale(0.9) rotate(-45deg);
            transform: scale(0.9) rotate(-45deg);
  }
}
