/** * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/) * http://cssreset.com */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}


/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1.25;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* END RESET */


/* VARIABLES, CHANGE BASED ON THEME */
:root {
  --logoColor: #02164F;
  --primaryFont: Arial;
  --primaryColor: #4466fe;
  --secondaryColor: #02164F;
  --fontColorDark: #191919;
  --fontColorLight: #f7f7f7;
  --background: url(img/bg.png);
}

/* FOUNDATIONS */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
  font-family: var(--primaryFont);
  color: var(--fontColorDark);
}

body {
  padding: 10px;
  margin: 0;
  display: flex;
  width: 100vw;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  background-image: var(--background);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

p {
  margin-bottom: 15px;
}

a {
  color: inherit;
  transition: opacity .3s;
}

a:visited {
  color: inherit;
}

a:hover {
  opacity: .5;
}

h1 {
  font-size: 2em;
  color: var(--fontColorDark);
  display: flex;
  align-items: center;
  padding: 10%;
  margin-bottom: 25px;
  border-radius: 5px 5px 0 0;
}

.logo-fill {
  fill: var(--logoColor);
}

img {
  max-height: 88vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.padding-20 {
  padding: 0 15px;
}

@media screen and (min-width: 700px) {
  .padding-20 {
    padding: 0 20px;
  }
}

#container {
  position: relative;
  width: 100%;
  max-width: 650px;
  background-color: white;
  border-radius: 5px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

#container.transition {
  transition: .8s all;
}

/* INTRODUCTION SECTION */
#intro-container form {
  margin-bottom: 25px;
}

#intro-container form label {
  font-size: .8em;
}

#intro-container form input {
  margin-bottom: 10px;
  font-size: .8em;
  color: grey;
  border-radius: 5px;
  border: 1px solid grey;
  padding: 5px;
}

#intro-container form input:last-of-type {
  margin-top: 10px;
  color: var(--fontColorLight);
  border: none;
  padding: 8px 10px;
  background-color: #191919;
}

#intro-container h2 {
  text-align: center;
  margin-bottom: 5px;
}


/* MODULES SECTION */
#modules-container {
  padding: 15px;
}

#modules-container h3 {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 15px;
}

.module-btn {
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1em;
  display: block;
  position: relative;
  margin-bottom: 10px;
  font-weight: bold;
}

.module-btn[disabled] span {
  display: none;
}

.module-btn span {
  width: 15px;
  display: inline-flex;
  align-items: center;
  margin-left: 3px;
  position: relative;
  top: 2px;
  transition: all .3s;
  opacity: .7;
}

.module-btn:hover span {
  transform: translateX(5px);
}

button.module-complete::after {
  content: 'Complete!';
  position: absolute;
  right: -100%;
  top: 2.5px;
  font-weight: normal;
  font-size: .85em;
  color: green;
}

/* TRAINING SECTION */
#image {
  margin: auto;
  text-align: center;
}

#question-container header {
  background-color: #d3d3d3;
  color: var(--fontColorDark);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: .85em;
  margin-bottom: 15px;
  padding: 15px;
  font-weight: 500;
  border-radius: 5px 5px 0 0;
}

#question-container header p {
  margin: auto 0;
}

#question {
  font-weight: 500;
}

#answer-status {
  margin-bottom: 25px;
}

#answer-status .true, #answer-status .false {
  display: none;
}

body.true #answer-status .true {
  display: block;
}

body.false #answer-status .false {
  display: block;
}

.btn-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px;
  margin: 15px 0;
}

.btn {
  background-color: var(--secondaryColor);
  color: var(--fontColorLight);
  border-radius: 5px;
  padding: 8px 10px;
  outline: none;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

a.btn {
  background-color: var(--secondaryColor);
  color: var(--fontColorLight);
  border-radius: 5px;
  padding: 8px 10px;
  outline: none;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.btn:hover {
  opacity: .6;
  transition: all .3s;
}

.btn.true {
  border: 3px solid var(--primaryColor);
  color: var(--fontColorLight);
}

.btn.false {
  background-color: #d3d3d3;
}

.modules-btn,
.next-btn,
.back-btn,
.finish-btn,
.cert-btn,
.return-btn {
  padding: 8px 15px;
  display: block;
  margin-bottom: 20px;
  margin-left: auto;
  text-decoration: none;
}

.modules-btn {
  margin-right: auto;
}

.start-btn {
  margin-right: auto;
  padding: 8px 15px;
  display: block;
  margin-bottom: 20px;
  margin-left: auto;
  text-decoration: none;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.next-btn, .back-btn {
  margin: auto;
  height: 50px;
  width: 50px;
  border-radius: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.btn.next-btn, .btn.back-btn {
  background-color: #d3d3d3;
  transition: all .3s;
}

.next-btn img, .back-btn img {
  width: 75%;
}

.back-btn img {
  transform: rotate(180deg);
}

@media screen and (min-width: 700px) {
  .next-btn, .back-btn {
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    right: -60px;
  }

  .back-btn {
    right: auto;
    left: -60px;
  }
  
  .btn.next-btn:hover {
    opacity: 1;
    transform: translateX(5px);
  }

  .btn.back-btn:hover {
    opacity: 1;
    transform: translateX(-5px);
  }
}



.hide {
  display: none;
}

.inactive {
  background-color: #d3d3d3;
  pointer-events: none;
}

/* RESOURCES SECTION */
#resources {
  max-height: 80vh;
  overflow-y: auto;
}

#resources h3 {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 15px;
}

#resources-nav {
  margin-bottom: 20px;
}

#resources-nav span {
  font-weight: 700;
}

#resources-nav button {
  border: 0;
  background-color: transparent;
  padding: 0;
  text-transform: uppercase;
  font-size: .9em;
  cursor: pointer;
  position: relative;
  margin-right: 25px;
}

button.resources-selected::after {
  content:'';
  width: 100%;
  height: 2px;
  border-bottom: 2px solid var(--primaryColor);
  position: absolute;
  bottom: -5px;
  left: 0;
  transition: all .2s;
}

.resources-content {
  background-color: #efefef;
  padding: 15px;
}

#resources-links {
  display: block;
}

#resources-downloads {
  display: none;
}

#resources h4 {
  font-size: 1.1em;
  font-weight: bold;
}

#resources #res-banner {
  margin-bottom: 25px;
  background-color: var(--primaryColor);
  color: var(--fontColorLight);
  padding: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
}

#resources p {
  margin-bottom: 5px;
}

#resources a {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}

#resources a:last-of-type {
  margin-bottom: 0;
}

.resource-btn {
  background-color: white;
  color: var(--fontColorDark);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 5px;
  padding: 8px 10px;
  outline: none;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.resource-btn span {
  display: inline-block;
  width: 15px;
  color: var(--fontColorLight);
  margin-left: 3px;
  transition: all .3s;
  position: relative;
  top: 2px;
}

.resources-content a:hover {
  opacity: 1;
}

.resource-btn:hover span {
  transform: translateX(5px);
}

#resources-downloads .resource-btn:hover span {
  transform: translateY(3px);
}

/* CONCLUDING SECTION*/
#finish-container {
  text-align: center;
  padding: 15px;
}

#finish-container .btn {
  margin: 10px auto;
}

#finish-container a {
  text-decoration: none;
}

[disabled] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}