/* Nathan Kanigsberg
Project 2 - Juno College JavaScript Course
August 12, 2020 */
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: .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: -.25em;
}

sup {
  top: -.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: .35em .75em .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;
}

h1,
h2,
h3,
h4,
p,
button {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

select {
  font-family: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

img {
  width: 100%;
  max-width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
}

.wrapper {
  max-width: 1000px;
  width: 85%;
  margin: 0 auto;
}

body {
  background: #353939;
  font-family: "Barlow", sans-serif;
}

.content-box {
  background: #fafdff;
  border: 8px solid #65b5ce;
  border-radius: 2rem;
  margin: 2rem;
  padding: 2rem;
}

button {
  background: #466fd1;
  color: #fafdff;
  padding: 1.2rem 3rem;
  border-radius: 1rem;
  font-size: 1.6rem;
}

button:hover, button:focus {
  background: #5a7fd6;
}

h1 {
  font-size: 3.8rem;
  padding: 3rem 0 1.4rem;
  text-align: center;
  color: #fafdff;
}

.loading-bar,
.loading-bar:before {
  height: 3px;
  width: 100%;
  margin: 0;
}

.loading-bar {
  background-color: #b3d4fc;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-top: 1rem;
}

.loading-bar:before {
  background-color: #3f51b5;
  content: "";
  -webkit-animation: running-progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
          animation: running-progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@-webkit-keyframes running-progress {
  0% {
    margin-left: 0px;
    margin-right: 100%;
  }
  50% {
    margin-left: 25%;
    margin-right: 0%;
  }
  100% {
    margin-left: 100%;
    margin-right: 0;
  }
}

@keyframes running-progress {
  0% {
    margin-left: 0px;
    margin-right: 100%;
  }
  50% {
    margin-left: 25%;
    margin-right: 0%;
  }
  100% {
    margin-left: 100%;
    margin-right: 0;
  }
}

div.trivia {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

label {
  font-size: 1.8rem;
  padding: 0.5rem 1rem;
}

div.setup {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: calc(70% - 4rem);
}

div.setup-option {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 2rem 0;
}

div.setup-option span {
  margin-left: 2rem;
  font-size: 2rem;
  padding: 0 1rem;
  border: 1px solid grey;
}

div.setup select {
  width: 25rem;
}

div.score-timer {
  text-align: center;
  width: calc(30% - 4rem);
}

div.score-timer .score {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

div.score-timer .score-correct {
  color: #45c245;
}

div.score-timer .score-incorrect {
  color: #f44;
}

div.score-timer .score-item {
  margin: 0.5rem 0;
}

div.score-timer .score span {
  font-size: 2rem;
  font-weight: bold;
}

div.score-timer .timer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  border-top: 1px solid grey;
  padding-top: 2rem;
  margin-top: 2rem;
}

div.score-timer .timer-value {
  font-size: 3rem;
  font-weight: bold;
  padding: 1rem;
}

div.score-timer .timer-value.green {
  color: #45c245;
}

div.score-timer .timer-value.yellow {
  color: #f1cd2a;
}

div.score-timer .timer-value.red {
  color: #f44;
}

div.question-answer {
  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%;
}

div.question-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

div.question-container h3 {
  margin-right: 1.4rem;
}

div.question-container p {
  font-size: 1.8rem;
}

.message {
  padding: 1rem;
  border-radius: 1rem;
}

.message.correct {
  background: #45c245;
}

.message.incorrect {
  background: #f44;
}

div.answer-options {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

div.answer-button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

div.answer button {
  margin: 1rem 1rem 0 0;
}

div.answer form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

div.answer span.answer-option {
  border: 1px solid grey;
  border-radius: 1rem;
  width: calc(50% - 0.4rem);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  margin: 0.2rem;
  background: #f2f8fb;
}

div.answer span.answer-option:hover, div.answer span.answer-option:focus {
  background: #d4f1ff;
}

div.answer span.answer-option.correct {
  background: #45c245;
}

div.answer span.answer-option.incorrect {
  background: #f44;
}

div.answer label {
  width: 100%;
  height: 100%;
  cursor: pointer;
  padding: 1.5rem;
}

div.answer input[type="radio"] {
  cursor: pointer;
  margin-left: 1rem;
}

div.answer h4 {
  font-size: 2rem;
}

div.answer p {
  font-size: 1.8rem;
}

.game-over .correct {
  font-size: 2rem;
  color: #45c245;
}

.game-over .incorrect {
  font-size: 2rem;
  color: #f44;
}

footer {
  padding: 10rem 0 1rem;
  color: #fafdff;
}

footer a {
  text-decoration: underline;
}

footer a:hover, footer a:focus {
  color: rgba(250, 253, 255, 0.6);
}

.by {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

@media (max-width: 1024px) {
  div.setup {
    width: 100%;
  }
  div.question-answer {
    width: 70%;
  }
}

@media (max-width: 768px) {
  div.setup-option {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  div.setup input,
  div.setup select {
    margin: 0 1rem 1rem;
  }
  div.score-timer {
    width: 100%;
  }
  div.question-answer {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .wrapper {
    width: 90%;
  }
  div.setup {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: center;
  }
  div.setup select {
    width: 18rem;
  }
  div.question-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  div.question-container h3 {
    margin-bottom: 0.6rem;
  }
  div.answer h3 {
    text-align: center;
    margin-bottom: 0.6rem;
  }
  div.answer span.answer-option {
    width: 100%;
  }
  div.answer div.answer-button {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}
/*# sourceMappingURL=styles.css.map */