body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'PT Sans', sans-serif;
  background: #eee;
}

main {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

button {
  margin: 1rem;
  font-size: large;
  padding: 1rem 2rem;
  background-color: white;
  border: 0.5px solid gray;
  box-shadow: 1px 1px 2px rgba(0,0,0,.4);
  transition: all 0.5s;
}

button:hover {
  background-color: rgba(0,0,0,.4);
  color: white;
}

p {
  color: rgba(0,0,0,.4);
  font-size: 1.2rem;
  margin: 1rem 0;
  text-align: center;
}

main figure {
  margin: 0;
  padding: 1rem;
}

main figure svg > * {
  opacity: 0;
}

main figure svg #ground             { opacity: 1; }
main figure.scaffold svg #scaffold  { opacity: 1; }
main figure.head     svg #head      { opacity: 1; }
main figure.body     svg #body      { opacity: 1; }
main figure.arms     svg #arms      { opacity: 1; }
main figure.legs     svg #legs      { opacity: 1; }

.alert {
  position: fixed;
  width: 80vw;
  height: 90vh;
  background: rgba(0,0,0,.9);
  z-index: 999;
  color: white;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: none;
}

footer {
  display: flex;
  flex-direction: column;
  font-size: 2rem;
  align-items: center;
}

footer ul.nomatch {
  display: flex;
  margin: 0;
  padding: 0;
  height: 2rem;
  font-size: 1.2rem;
  opacity: .4;
  list-style: none;
}

footer .help {
  display: none;
}

footer ul.nomatch li {
  height: 1.4rem;
  margin: 0 .25rem;
}

footer ul.word {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 1rem 0;
}

footer ul.word li {
  width: 2rem;
  height: 2rem;
  display: flex;
  padding: .5rem .25rem;
  justify-content: center;
  align-items: center;
  border-bottom: 2px solid #222;
  margin: 0 .25rem;
  background: rgba(0,0,0,.1);
}

footer ul.word li p {
  display: none;
  color: black
}

/*Visas vid vinst/förlust*/
section.game-over, section.winner {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,.9);
  z-index: 999;
  color: white;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: none;
}

section.game-over.show, section.winner.show {
  display: flex;
}

.game-over > h1, section.winner > h1 {
  font-size: 6rem;
  margin: 0;
}

.game-over > p, section.winner > p {
  font-size: 2rem;
  color: white;
  margin: 0;
}

.game-over > a, section.winner > a{
  background: white;
  color: #222;
  text-decoration: none;
  padding: 1rem 2rem;
  margin-top: 4rem;
  border-radius: .25rem;
  opacity: .8;
}

.game-over > a:hover, section.winner > a:hover {
  opacity: 1;
}


@media screen and (max-width: 500px){
  .difficulty section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}