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

.hide {
  display: none;
  width: 0;
  height: 0;
}

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin: 1.5rem;
  margin-top: 0;
}

@media screen and (max-width: 500px) {
  body {
    margin: 0.6rem;
  }
}

p#user-messages {
  margin-top: 3rem;
  text-align: center;
  color: red;
  font-size: 1.2rem;
}

#settings {
  margin: 0 auto;
}

@media screen and (max-width: 500px) {
  #settings {
    width: 100%;
  }
}

h1 {
  text-align: center;
  font-size: 2.5rem;
}

h1:hover {
  color: gold;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

p {
  margin: 0 auto 1.5rem;
  width: 80%;
}

form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
  margin: 0 0 2rem 0;
  border: 1px solid #ccc;
  padding: 1rem 2rem 2rem 2rem;
  background: linear-gradient(40deg, #1976d2, #2196f3, #0097a7);
  border-radius: 5px;
  color: white;
}

@media screen and (max-width: 500px) {
  form {
    width: 100%;
  }
}

form label {
  margin: 1rem 0 0.2rem 0;
  font-size: 20px;
}

form input,
form select {
  height: 2.2rem;
  font-size: inherit;
  background: #fff;
}

form input {
  width: 100%;
  border-radius: 3px;
}

form input[type='submit'] {
  margin-top: 1.8rem;
}

form input[type='submit']:hover {
  cursor: pointer;
  color: #ccad00;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

button {
  padding: 12px 15px;
  margin: 4px;
  border: 1px solid #0284c0;
  border-radius: 3px;
  font-size: inherit;
  background-color: #02a6f2;
  color: #fff;
}

@media screen and (max-width: 500px) {
  button {
    width: 30%;
  }
}

#quiz div:first-of-type {
  background-color: #08c482;
  padding: 1rem;
  color: white;
  text-align: center;
  font-size: 1.2rem;
  font-family: 'Times New Roman', Times, serif;
}

#quiz h1 {
  margin: 3rem 0;
  font-size: 2.3rem;
  text-align: left;
}

@media screen and (max-width: 500px) {
  #quiz h1 {
    font-size: 1.8rem;
    margin-left: 0.6rem;
  }
}

#choices {
  list-style: none;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-padding-start: 0;
          padding-inline-start: 0;
}

@media screen and (max-width: 500px) {
  #choices {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}

#choices li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 18px;
  margin: 4px;
  border: 1px solid #135ca4;
  border-radius: 3px;
  background-color: #1975d2;
  color: #fff;
  text-align: center;
}

@media screen and (max-width: 500px) {
  #choices li {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}

#quiz,
div > button {
  display: none;
}

.alert {
  display: none;
  padding: 20px;
  color: white;
}

.closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.closebtn:hover {
  color: black;
}

.correct {
  background-color: #54c059 !important;
  border-color: #3da442 !important;
}

.incorrect {
  background-color: #e91b0c !important;
  border-color: #b8150a !important;
}

.show {
  display: block !important;
}

.ignore {
  -webkit-filter: opacity(0.5) blur(3px);
          filter: opacity(0.5) blur(3px);
}

@-webkit-keyframes spinner {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes spinner {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

.spinner:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  margin-left: -30px;
  border-radius: 50%;
  border: 2px solid #ccc;
  border-top-color: #000;
  -webkit-animation: spinner 1s linear infinite;
          animation: spinner 1s linear infinite;
}
