/* universal styling & vars*/
* {
  font-size: 16px;
  box-sizing: border-box;
}

:root {
  --primary: rgba(72, 50, 133);
  --secondary: #497980;
  --tertiary: rgb(192, 246, 253);
  --grey: #333;
  --light-grey: lightgrey;
  font-size: 62.5%;
}

body {
  background: #ededed;
  color: var(--grey);
  margin: 0;
  padding: 10px;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

button {
  background-color: var(--primary);
  color: white;
  align-items: center;
  padding: 0;
  border-radius: 5px;
  padding: 2px 10px;
}

/* header styling */

header {
  display: flex;
  justify-content: center;
}

h1 {
  font-size: 24px;
}

header h1 {
  flex: 1;
  font-size: 16px;
  font-weight: normal;
}

header h1 a {
  text-decoration: none;
}

/* main page styling */
#timer {
  text-align: right;
}

/* quiz styling */

#answers,
#instructions {
  text-align: center;

  padding: 0 70px;
}

#answers p,
#instructions p {
  align-self: center;
}

#view-high-scores {
  color: var(--primary);
}

#intro-content {
  text-align: center;
}

main {
  width: 75%;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

#answer-list {
  padding-inline-start: 0;
  text-align: left;
}

#answer-list li {
  text-align: left;
  list-style: none;
  width: fit-content;
}

.answer-option {
  width: auto;
  padding: 10px;
  text-align: left;
  margin-top: 5px;
}

#answers {
  text-align: center;
  align-items: center;
}

#answer-flag {
  border-top: 2px solid var(--light-grey);
  font-size: 20px;
  font-weight: normal;
  color: var(--grey);
  font-style: italic;
}

#question-text {
  text-align: center;
  padding: 0 70px;
}

.form-group {
  padding-top: 10px;
}

/* high score page styling */
#high-scores a {
  text-align: left;
  color: var(--primary);
}

.score-list-item {
  margin-top: 5px;
}

#high-scores {
  list-style: none;
}

#high-score-box .btn {
  margin: 5px;
}

/* media query for phones and smaller */
@media screen and (max-width: 575px) {
  *, header h1 {
    font-size: 14px;
  }
  main {
    width: 90%;
  }

  #instructions {
    padding: 0;
  }

  #main-title, #answer-flag {
    font-size: 18px;
  }
}
