/* https://codepen.io/adrusi/pen/GRrGxzX */

:root {
  font-family: "Cormorant", Baskerville, "Libre Baskerville", serif;
  font-size: 16px;
}

body {
  position: relative;
}
body::before, body::after {
  content: '';
  mask: url("https://upload.wikimedia.org/wikipedia/commons/4/40/Floral_heart.svg") 0 0/30px 30px;
  background-size: 30px 30px;
  background-repeat: no-repeat;
  display: block;
  width: 30px;
  height: 30px;
  background: #d00;
  margin: 0 auto;
}

body::before {
  margin-top: 30px;
}

body::after {
  margin-bottom: 40px;
}

#app-container {
  max-width: 48em;
  margin: 0 auto 3em auto;
  line-height: 1.3;
  padding: 0 10px;
}

h1 {
  font-family: "Cormorant SC", Baskerville, "Libre Baskerville", serif;
  font-size: 2.5em;
  font-weight: 600;
  text-align: center;
  margin: 0.5em 0;
}

h2 {
  font-size: 1.5em;
  font-weight: 600;
  line-height: .7;
  margin: 1.2em auto 0.7em auto;
  width: 24em;
  text-align: right;
  border-bottom: 1px solid #d004;
}

p {
  text-align: justify;
  margin: 1em auto;
  font-size: 0.9em;
  width: 40em;
}
p i {
  font-style: italic;
}
p b {
  font-weight: bold;
}
p a {
  color: #d00;
  text-decoration: inherit;
  border-bottom: 1px dashed #d00;
  font-family: inherit;
  margin-bottom: -1px;
}
p a:hover {
  border-bottom-style: solid;
}

button {
  font-family: 'IBM Plex Sans', system-ui;
  font-size: 0.6em;
  padding: 5px 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  background: white;
}

table tr:nth-child(2n) td {
  background: rgba(0, 0, 0, 0.1);
}

.question-section {
  width: 100%;
  margin: 1em 0;
}
.question-section td {
  padding: 10px 0;
  vertical-align: middle;
}
.question-section th {
  font-family: 'IBM Plex Sans', system-ui;
  font-size: 0.6em;
  padding: 5px 0;
}
.question-section td input[type=radio] {
  vertical-align: -12%;
}
.question-section .question-text {
  padding-left: 0.75em;
  padding-right: 0.75em;
}
.question-section .answer label {
  display: inline-block;
  padding-left: 0.1em;
  padding-right: 0.75em;
}
.question-section .confidence {
  width: 1.5em;
}
.question-section .reset {
  width: 3em;
  text-align: center;
  padding-left: 0.5em;
}
.question-section .reset button {
  visibility: hidden;
}
.question-section .resetable .reset button {
  visibility: visible;
}
.question-section .errormsg {
  width: 6em;
  font-family: 'IBM Plex Sans', system-ui;
  font-size: 0.6em;
  text-align: center;
  padding: 0 5px;
}

.scores {
  margin: 1em auto;
}
.scores th {
  font-family: 'IBM Plex Sans', system-ui;
  font-size: 0.6em;
  padding: 5px 10px;
}
.scores td {
  padding: 10px;
  text-align: center;
}
.scores .level {
  text-align: right;
}
.scores .score {
  text-align: left;
}
.scores caption {
  caption-side: bottom;
  text-align: right;
  font-family: 'IBM Plex Sans', system-ui;
  font-size: 0.6em;
}

.flagged, .incorrect {
  background: rgba(255, 127, 127, 0.8);
}

.correct {
  background: rgba(127, 255, 127, 0.8);
}

.banners {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.banner {
  font-family: 'IBM Plex Sans', system-ui;
  font-size: 0.8em;
  background: rgba(255, 127, 127, 0.8);
  padding: 10px;
}

footer {
  margin-top: 100px;
}
footer p {
  text-align: center;
}
footer .heart {
  color: red;
}