/* colors */
:root {
  --bodyText: #3f3f3f;
  --accentColor: #283866;
  --accentColor2: #e38c00;
  --lighterBodyText: #8f8f8f;
  --background: #dedede;
  --lighterBackground: #f6f6f6;
  --border-radius: 3px;
  --danger: #af0000;
}
/* add reset */
* {
  margin: 0;
  box-sizing: border-box;
  font-family: sans-serif;
  scroll-behavior: smooth;  
  line-height: 1.4;
  word-wrap: break-word;
}
/* add my global styles */
h1, h2, h3, h4, h5, h6, p {
  margin-bottom: 1em;
}
h1, h2, h3, h4 {
  color: var(--accentColor);
}
a:link, a:visited  {
  text-decoration: none;
  color: var(--accentColor);
}
a:hover, a:active {
  color: var(--accentColor2);
}
/* body responsive layout */
body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px;
  font-size: 20px;
  color: var(--bodyText);
}
body > * {
  padding: 20px;
  /* outline: solid gray 1px; */
  border-radius: 10px;
  margin-bottom: 7px;
  background-color: var(--lighterBackground);
}
/* header */
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;

}
header > * {
  margin: 10px;
}
header div {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 15px;
}
main section {
  margin-bottom: 50px;
}
/* questions */
.result {
  padding: 20px;
  background-color: var(--background);
  border-radius: var(--border-radius);
}
.result h3, .result p{
  color: var(--lighterBodyText);

}
#done h2 {
  color: var(--accentColor2);
}
/* options */
#options {
  display: flex;
  flex-direction: column;
  /* gap: 20px; */
  padding: 20px 0;
  /* border-bottom: solid 1px var(--accentColor); */
}
#questions hr {
  margin-bottom: 20px;
}
/* buttons */
button {
  width: auto;
  min-height: 30px;
  text-align: center;
  padding: 15px;
  margin: 10px;
  font-size: 18px;
  color: #ffffff;
  background-image: linear-gradient(to  right,#00487a, #175a88, #00487a);
  border: 0;
  border-radius: var(--border-radius);
  line-height: 1.5;
  transition: all ease-in-out .25s;
}
button:hover, button:active, button:focus {
  background-image: linear-gradient(to right, #005699,#186da8, #005699);
  transition: all  .25s;
}
button[data-correct] {
  width: 450px;
  max-width: 100%;
}
#scoreButtonsDiv {
  /* display: flex; */
}
input {
  width: 75px;
  height: 40px;
  font-size: 16px;
  color: inherit;
  text-align: center;
  text-transform: uppercase;
}
input:focus {
  background-color: #d9eeff;
}
input:focus::placeholder {
  color: transparent;
}
#done button{
  transform: translateY(2px);
  margin: 7px;

}
/* scores */
#highScoresList {
  margin-bottom: 20px;
  outline: 1px solid var(--accentColor2);
  border-radius: var(--border-radius);
}
.hsEntry {
  padding: 15px;
  background: #ffffff;
  border-bottom: dashed 1px var(--accentColor2)
} 
.hsEntry:nth-child(odd) {
  background: var(--background);
}
.hsEntry:last-child {
  border-bottom: none;
}
/* classes for JS functions */
.d-block {
  display: block;
}
.d-none {
  display: none;
}
#explanation {
    color: var(--lighterBodyText);
    /* font-weight: bold; */
    font-style: italic;

}
#time-left {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  text-align: center;
  color: var(--lighterBackground);
  padding: 5px 5px 2px;
}
.accent {
  background-color: var(--accentColor2);
}
.red {
  background-color: var(--danger);
}
