* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  background: #0a0a0a;
  color: #fff;
  font-family: arial, helvetica, sans-serif;
}

.container {
  margin: auto;
  width: 94%;
  max-width: 500px;
}

#masthead {
  padding-top: 1rem;
}
#masthead .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
#masthead .container .left, #masthead .container .right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
#masthead #logo {
  font-weight: 700;
  margin-right: 1rem;
  background: purple;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
}
#masthead a {
  color: #fff;
}
#masthead img {
  width: 32px;
}
#masthead button {
  outline: none;
  border: none;
  background: transparent;
  cursor: pointer;
}
#masthead button.stats {
  border: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-left: 0;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
}
#masthead button.stats span {
  display: block;
  background: transparent;
  padding: 0px 3px;
  border: 2px solid white;
  height: 12px;
}
#masthead button.stats span:first-child {
  height: 16px;
  margin-right: -2px;
}
#masthead button.stats span:last-child {
  height: 20px;
  margin-left: -2px;
}
#masthead button.whatisit {
  border: 2px solid white;
  background: transparent;
  color: #fff;
  margin-left: 0.5rem;
  width: 20px;
  height: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 20px;
  font-weight: 700;
}
#masthead button.howplay {
  font-weight: 700;
  border: 2px solid white;
  background: transparent;
  color: #fff;
  margin-left: 0.75rem;
  width: 20px;
  height: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 20px;
}

#game .container {
  text-align: center;
}
#game #input {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
#game #input input {
  border-radius: 6px;
  outline: none;
  border: none;
}
#game #input input[type=text] {
  width: calc(100% - 110px);
  padding: 0.5rem;
  border: 1px solid white;
}
#game #input input[type=submit] {
  width: 100px;
  padding: 0.5rem 0;
  background: purple;
  color: white;
  border: 1px solid white;
  cursor: pointer;
  -webkit-transition: 200ms ease background;
  transition: 200ms ease background;
}
#game #input input[type=submit]:hover {
  background: transparent;
}

#artwork {
  position: relative;
  margin: 1rem 0;
}
#artwork #base {
  position: relative;
  background: purple;
  background: white;
  width: 100%;
  aspect-ratio: 1;
}
#artwork #base img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: top;
     object-position: top;
  max-width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
}
#artwork > .square {
  position: absolute;
  height: 20%;
  width: 20%;
  background: #dedede;
  top: 0;
  left: 0;
  -webkit-transition: 500ms ease opacity;
  transition: 500ms ease opacity;
  opacity: 1;
}
#artwork > .square.reveal {
  opacity: 0;
}
#artwork > .square2 {
  top: 0;
  left: 20%;
}
#artwork > .square3 {
  top: 0;
  left: 40%;
}
#artwork > .square4 {
  top: 0;
  left: 60%;
}
#artwork > .square5 {
  top: 0%;
  left: 80%;
}
#artwork > .square6 {
  top: 20%;
  left: 0%;
}
#artwork > .square7 {
  top: 20%;
  left: 20%;
}
#artwork > .square8 {
  top: 20%;
  left: 40%;
}
#artwork > .square9 {
  top: 20%;
  left: 60%;
}
#artwork > .square10 {
  top: 20%;
  left: 80%;
}
#artwork > .square11 {
  top: 40%;
  left: 0%;
}
#artwork > .square12 {
  top: 40%;
  left: 20%;
}
#artwork > .square13 {
  top: 40%;
  left: 40%;
}
#artwork > .square14 {
  top: 40%;
  left: 60%;
}
#artwork > .square15 {
  top: 40%;
  left: 80%;
}
#artwork > .square16 {
  top: 60%;
  left: 0%;
}
#artwork > .square17 {
  top: 60%;
  left: 20%;
}
#artwork > .square18 {
  top: 60%;
  left: 40%;
}
#artwork > .square19 {
  top: 60%;
  left: 60%;
}
#artwork > .square20 {
  top: 60%;
  left: 80%;
}
#artwork > .square21 {
  top: 80%;
  left: 0%;
}
#artwork > .square22 {
  top: 80%;
  left: 20%;
}
#artwork > .square23 {
  top: 80%;
  left: 40%;
}
#artwork > .square24 {
  top: 80%;
  left: 60%;
}
#artwork > .square25 {
  top: 80%;
  left: 80%;
}

#input {
  position: relative;
}

#gameResults {
  position: absolute;
  height: 100px;
  top: -100px;
  overflow: auto;
  background: white;
  border: 1px solid #111;
  left: 0;
  width: 100%;
  padding: 0.25rem;
}
#gameResults .result-row {
  text-align: left;
  padding: 0.25rem;
  color: #111;
  cursor: pointer;
  -webkit-transition: 100ms ease background;
  transition: 100ms ease background;
}
#gameResults .result-row span.highlight {
  background: yellow;
}
#gameResults .result-row:hover {
  background: rgba(0, 0, 0, 0.15);
}

#guesses > div {
  display: none;
}
#guesses > div.active {
  display: block;
  margin-top: 0.5rem;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 0.25rem 0.25rem 0.25rem 1.5rem;
  text-align: left;
  font-weight: 700;
}
#guesses > div.active.incorrect {
  background: url("../images/wrong.svg") 5px 5px no-repeat;
  background-size: 14px;
}

footer#sitebase {
  padding: 1rem 0 0 0;
  color: #fff;
  line-height: 1.6;
  font-size: 0.8rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: 400;
}
footer#sitebase a {
  color: #fff;
}

.modal-outter {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
}
.modal-outter .modal-inner {
  width: 90%;
  max-width: 768px;
  padding: 3rem;
  background: white;
  height: auto;
  color: #111;
  position: relative;
}
.modal-outter .modal-inner .badge {
  margin: 1rem 0 0 0;
  text-align: center;
}
.modal-outter .modal-inner .badge img {
  margin: auto;
  display: block;
  max-height: 90px;
  width: auto;
  max-width: 100%;
}
.modal-outter .modal-inner .badge span {
  display: block;
  margin: 0.25rem auto 0;
  font-weight: 700;
}
.modal-outter .modal-inner h1, .modal-outter .modal-inner h3 {
  margin: 0;
}
.modal-outter .modal-inner h2 {
  margin: 1rem 0;
  font-size: 2rem;
}
.modal-outter .modal-inner p {
  margin: 1rem;
}
.modal-outter .modal-inner p.copied {
  position: absolute;
  top: -100px;
  background: #eee;
  padding: 0.7rem;
  border-radius: 5px;
  left: calc(50% - 200px);
  width: 400px;
  font-size: 20px;
  font-weight: 700;
}
.modal-outter .modal-inner button {
  background: purple;
  padding: 1rem 2rem;
  border: none;
  outline: none;
  border-radius: 5px;
  margin: 0.5rem 0 0 0;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  -webkit-transition: 300ms ease all;
  transition: 300ms ease all;
}
.modal-outter .modal-inner button:hover {
  background: #570257;
}

#close-modal {
  padding: 0;
  background: transparent;
  font-weight: 700;
  color: purple;
  display: block;
  margin: 0 auto 2rem;
}