html {
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

article, aside, footer, header, nav, section {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

figcaption, figure, main {
  display: block;
}

figure {
  margin: 1em 40px;
}

hr {
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
  -webkit-text-decoration-skip: objects;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

b, strong {
  font-weight: inherit;
}

b, strong {
  font-weight: bolder;
}

code, kbd, samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

dfn {
  font-style: italic;
}

mark {
  background-color: #ff0;
  color: #000;
}

small {
  font-size: 80%;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

audio, video {
  display: inline-block;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

img {
  border-style: none;
}

svg:not(:root) {
  overflow: hidden;
}

button, input, optgroup, select, textarea {
  font-family: sans-serif;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button, input {
  overflow: visible;
}

button, select {
  text-transform: none;
}

button, html [type=button], [type=reset], [type=submit] {
  -webkit-appearance: button;
}

button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  display: inline-block;
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type=checkbox], [type=radio] {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  padding: 0;
}

[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button {
  height: auto;
}

[type=search] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details, menu {
  display: block;
}

summary {
  display: list-item;
}

canvas {
  display: inline-block;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: "";
  clear: both;
  height: 0;
}

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

*, *:before, *:after {
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  -webkit-clip-path: inset(100%);
          clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

html {
  font-size: 125%;
  font-family: "Press Start 2P", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-image: url(../assets/wallpaperbetter.jpg);
  background-position: center;
}

h1,
h2,
h3,
h4,
p {
  text-align: center;
  display: block;
}

main {
  background-color: white;
  margin: 50px auto;
  max-width: 90%;
  min-height: 80vh;
  border-radius: 25px;
  -webkit-box-shadow: 0px 0px 50px 25px black;
          box-shadow: 0px 0px 50px 25px black;
  padding: 20px;
  border: 5px solid #f7df1e;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.scorep,
.next,
.playAgainMsg,
.playAgain {
  display: none;
}

h1 {
  font-size: 2.2rem;
  text-align: center;
  margin: 20px auto;
}

legend {
  margin: 10px auto 35px;
}

h2,
h3 {
  font-size: 1rem;
  margin: 10px auto;
}

h3 {
  font-family: "Play", sans-serif;
  font-size: 1.2rem;
}

h4 {
  font-size: 1.2rem;
  max-width: 80%;
  margin: 0 auto;
  overflow-x: hidden;
}

button {
  font-family: inherit;
  margin: 0 auto;
  display: block;
  cursor: pointer;
}

.start,
.next,
.playAgain {
  text-align: center;
  padding: 12px 30px 10px;
  border: 3px solid black;
  border-radius: 18px;
  background-color: #f7df1e;
  margin-top: 150px;
}
.start:hover, .start:focus,
.next:hover,
.next:focus,
.playAgain:hover,
.playAgain:focus {
  -webkit-box-shadow: 0px 0px 20px 1px black;
          box-shadow: 0px 0px 20px 1px black;
  scale: 1.1;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.playAgain {
  margin: 0 auto;
}

.next {
  margin: 70px auto;
}

.playAgainMsg {
  margin: 10px auto 100px;
}

.scorep {
  font-size: 0.6rem;
  text-align: center;
  padding: 10px 20px;
  border: 3px solid black;
  border-radius: 18px;
  background-color: #f7df1e;
  margin: 20px auto;
  width: 150px;
}

form {
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 90%;
}

fieldset {
  border: none;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
}

label {
  font-family: "Play", sans-serif;
  font-size: 1.2rem;
  text-align: center;
  padding: 10px 20px;
  border: 3px solid black;
  border-radius: 18px;
  background-color: #f7df1e;
  margin: 20px auto;
  max-width: 100%;
  word-break: break-word;
}
label:hover, label:focus {
  -webkit-box-shadow: 0px 0px 20px 1px black;
          box-shadow: 0px 0px 20px 1px black;
  scale: 1.1;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  font-weight: bold;
  cursor: pointer;
}
label:active {
  color: #f7df1e;
  border-color: #f7df1e;
  background-color: black;
}

input[type=radio] {
  opacity: 0;
}

footer {
  background-color: black;
  padding: 2px 0;
  max-width: 100%;
  margin-top: 50px;
}
footer p {
  font-family: "Play", sans-serif;
  color: white;
  font-size: 0.7rem;
  margin: 0 auto;
}
footer a {
  color: #f7df1e;
}

.h4-animation {
  -webkit-animation: pulse 1s ease 0s 1 normal forwards;
          animation: pulse 1s ease 0s 1 normal forwards;
}

@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    -webkit-transform: scale(3);
            transform: scale(3);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    -webkit-transform: scale(3);
            transform: scale(3);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@media (max-width: 725px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 0.8rem;
  }

  legend {
    margin: 10px auto 15px;
  }

  fieldset {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .start {
    margin-top: 100px;
  }

  .next {
    margin: 40px auto 50px;
  }

  .playAgainMsg {
    font-size: 0.7rem;
    margin: 10px auto 50px;
  }

  label {
    margin: 10px auto;
  }

  @-webkit-keyframes pulse {
    50% {
      -webkit-transform: scale(2);
              transform: scale(2);
    }
  }

  @keyframes pulse {
    50% {
      -webkit-transform: scale(2);
              transform: scale(2);
    }
  }
}
@media (max-width: 605px) {
  h1 {
    font-size: 1.2rem;
  }

  h4 {
    margin: 5px auto;
  }

  legend {
    margin: 20px auto;
  }

  button {
    font-size: 0.7rem;
  }
}
@media (max-width: 425px) {
  html {
    font-size: 100%;
  }

  main {
    margin: 50px auto;
    padding: 0;
    max-width: 90%;
  }

  legend {
    margin: 10px auto;
  }

  form {
    width: auto;
  }

  label {
    font-size: 1rem;
    padding: 10px;
  }
  label:hover, label:focus {
    font-weight: normal;
  }

  h2 {
    font-family: "Play", sans-serif;
    font-size: 1.2rem;
  }

  h3 {
    max-width: 90%;
  }

  h4 {
    font-size: 1rem;
  }

  @-webkit-keyframes pulse {
    50% {
      -webkit-transform: scale(1.3);
              transform: scale(1.3);
    }
  }

  @keyframes pulse {
    50% {
      -webkit-transform: scale(1.3);
              transform: scale(1.3);
    }
  }
  footer p {
    font-size: 0.7rem;
  }
}