:root {
  --color-primary: #dc6900;
  --color-hiker: #eb8d22;
  --color-mountaineer: #e23226;
  --color-task-force: #db536b;
}

body {
  display: grid;
/*   justify-items: center; */
  min-height: 100svh;
  background: lightgray;
  grid-template-rows: 1fr;
  padding: 0;
  background-image: url('/media/7876302b-e7d8-4852-aafb-8b43c6da9fef/HIKER MODE BACKGROUND.png');
  background-size: cover;
  font-family: Arial;
}

code, pre {
  background: hsl(0 0% 92%);
  border-radius: 0.3rem;
  color: inherit;
}
code { padding: 0.1rem 0.3rem; }
pre {padding: 1rem 0.3rem}

#app {
  display: grid;
  grid-template-rows: auto 2rem 1fr;
  --px: 5rem;
  --py: 2rem;
  padding: 0;
  justify-items: center;
  align-items: start;
  position: relative;
  overflow: hidden;
  gap: 1rem;
}

#app > * {
  width: 100%;
  z-index: 1;
  padding: 0.5rem var(--px) 1rem;
}

#title {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  position: relative;
  background: #aaaaaa;
  padding: 1rem var(--px);
  height: 5rem;
  gap: 1rem;
}

#title .button {
  font-size: 1.2rem;
  justify-self: start;
  border: none;
  border-radius: 3px;
  box-shadow: 2px 2px 4px hsl(0 0% 0% / 40%);
  padding: 0.2rem 1rem;
  cursor: pointer;
  transition: at 250ms;
  outline: 2px solid hsl(0 0% 0% / 0%);
  color: inherit;
  text-decoration: none;
  background-color: hsl(0 0% 90%);
}

#title .button.disabled {
  position: relative;
  pointer-events: none;
}

#title .button.disabled::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border: none;
  border-radius: 3px;
  background-color: hsl(0 0% 80% / 60%);
  cursor: not-allowed;
}

#title .button:is(:hover, :focus) {
  outline: 2px solid var(--color-primary);
  background-color: hsl(0 0% 95%);
}

#title h1 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

#title h3 {
  width: max-content;
  margin: 0;
  background: black;
  color: white;
  padding: 0.3rem 1rem;
  border: solid black 3px;
  border-radius: 1rem;
  font-weight: bold;
  text-transform: uppercase;
}

#title h3.hiker { border-color: var(--color-hiker); }
#title h3.mountaineer { border-color: var(--color-mountaineer); }
#title h3.task-force { border-color: var(--color-task-force); }

h1 {
  font-family: Georgia;
  font-style: italic;
}

.qsAnswered {
  justify-self: end;
  font-size: 1rem;
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
}

.qsAnswered .label {
  padding-bottom: 0.1rem;
}

#progressHolder {
  margin: -0.5rem 0;
  
}

#progressHolder svg {
  fill: hsl(0 0% 95%);
  stroke: hsl(0 0% 40%);
  stroke-width: 2;
  max-height: 40px;
}

#progressHolder svg path.completed {
  fill: hsl(104 70% 81%);
}

#gameSetup {
  display: grid;
  align-content: start;
  gap: 2.5rem;
}

#gamemodeHolder .fieldset  {
  font-size: 2rem;
}

#gamemode {
  cursor: pointer;
}

#gamemodeDescription {
  grid-column: 1 / -1;
}

#loading {
  position: relative;
}
#loading img {
  margin-left: 5px;
  height: 1em;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
}

.question.modal-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.question.modal-header > :is(h1, h5) {
  align-self: center;
  margin: 0;
}

#questionModal .modal-body {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template:
    '.   img' auto
    '.   img' 1fr
    '.   img' auto /
    1fr  auto;
  overflow-x: auto;
}

#instructionsHolder {
  grid-template:
}

.modal-xxlg {
  max-width: 80vw;
}

#question, #questionInstructions, #questionInfo {
  font-size: 1.7rem;
  align-self: start;
  overflow-x: auto;
}

#answers .content {
  overflow-x: auto;
}

#answers > *{
  display: grid;
  align-content: start;
  grid-row-gap: 5px;
  nheight: 7rem;
}

#a1Holder,
#a2Holder {
  display: grid;
  column-gap: 0.5rem;
  align-items: center;
  grid-template-columns: auto 1fr;
  width: max-content;
  
  font-size: 1.2rem;
  position: relative;
}

:is(#a1Holder, #a2Holder) .input {
  background-color: hsl(0 0% 0% / 0%);
  border: solid 1px #aaaaaa;
  border-radius: 0.2rem;
  padding: 0.1rem 0.3rem;
  width: 35ch;
  z-index: 2;
}

:is(#a1Holder, #a2Holder) .error {
  font-size: 0.8rem;
  grid-column: -2 / span 1;
  justify-self: end;
  margin-right: 0.3rem;
  position: absolute;
  
  display: none;
}

:is(#a1Holder, #a2Holder) .input.incorrect + .error {
  display: unset;
}

#answerButtons {
  display: flex;
  gap: 1rem;
}

#answerButtons button {
  font-size: large;
}

.mediaArea {
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-self: center;
  align-self: center;
  
  max-height: 400px;
  max-width: 800px;
  width: 100%;
  
  display: grid;
  align-items: end;
}

.mediaArea > * {
  width: 100%;
  max-height: 400px;
  max-width: 800px;
  box-shadow: 1px 1px 4px 2px hsl(0 0% 0%/20%);
}

.mediaArea > video {
  background-color: gray;
}

@media screen and (max-width: 1200px) {
  
  .modal-xxlg {
    max-width: calc(100% - 2rem);
  }
  
  #title {
    grid-template-rows: auto auto;
    grid-template-columns: auto auto;
    height: 7rem;
  }
  
  #title h1{
    font-size: 1.5rem;
    grid-column: 1 / span 2;
  }
  
  #title h3 {
    font-size: 1.3rem;
  }
  
  #progressHolder {
    
  }
  
  .qsAnswered .label {
    display: none;
  }
  
  
  #timeRemaining {
    font-size: 3rem;
  }
}

#result {
  grid-column: 1 / -1;
  text-align: center;
  position: relative;
}

#result > div {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

footer {
  background-image: url('/media/7876302b-e7d8-4852-aafb-8b43c6da9fef/FOOTER.png');
  background-size: cover;
  padding: 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: end;
  height: 8rem;
  position: fixed;
  inset: auto 0 0 0;
}

#infoButtonHolder {
  display: flex;
  justify-content: right;
  gap: 2rem;
  width: max-content;
}

#infoButtonHolder > * {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

#infoButtonHolder img {
  border-radius: 100vmax;
  height: 3rem;
  transition: all 100ms ease;
}

#infoButtonHolder img:hover {
  box-shadow: 0 0 10px 5px hsl(30 100% 46% / 80%);
}

#correct {
  color: green;
}

#incorrect {
  color: red;
}

#gameInfoHolder {
  margin: 0 auto 30px;
  align-self: end;
  width: auto;
}

#gameInfo {
  padding-top: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-column-gap: 5px;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:visited,
.btn-primary:focus {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary);
}

.modal-xlg {
  max-width: 1000px;
}

.modal-content {
  box-shadow: 0 4px 10px 0px rgba(0,0,0,0.5);
  border-radius: 1rem;
}

.modal-body hr {
  margin: 1rem -1rem;
}

.modal-overlay {
  position: absolute;
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  background: rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s ease;
  opacity: 1;
}
.modal-overlay.not-visible {
  opacity: 0;
}

.modal-overlay-loading-icon {
  max-height: 20%;
}

.modal-title {
  line-height: 1;
  padding: 0.5rem 0;
}


#startModalImages {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

#startModal .modal-dialog {
  max-width: 70vw;
  min-width: 1200px;
}

#startModalLabel img {
  max-height: 8rem;
  margin: -1rem 0 -1rem 1rem;
}

.modal-header {
  border-radius: 1rem 1rem 0 0;
  background: #aaaaaa
}

.modal-header .modal-title {
  width: 100%;
  font-weight: bold;
}

#startModal .modal-body {
  display: grid;
  /*
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
  */
  padding: 1rem 2rem;
}

#startModal .modal-body h2 {
  text-align: center;
}

#startModal .modal-body img {
  width: 100%;
  box-shadow: 0px 2px 10px 0px hsl(0 0% 0% / 50%);
}

@media screen and (max-width: 1300px){
  #startModal .modal-dialog {
    min-width: 90vw;
  }
  
  #startModal .modal-body {
    grid-template-columns: 1fr;
    padding: 1rem 1rem;
  }
  
  #startModalLabel {
    font-size: 1.8rem;
  }
  
  #startModal .images {
    text-align: center;
  }
  
  #startModal .modal-body img {
    width: 70%;
  }
}

#submitModalLabel {
  width: 100%;
  margin-right: -3rem;
  font-weight: bold;
}

#submitModalLabel img {
  max-height: 9rem;
  margin: -4rem 0 -1rem 0;
}

#modalScore {
  font-family: Arial;
  font-style: normal;
  font-size: 5rem;
}

/** Module V2 Styling **/
#stepCards {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(30ch, 1fr));
  max-height: calc(100vh - 5rem - 2rem - 110px);
  overflow-y: auto;
}

.stepCard {
  width: 100%;
  height: 7rem;
  position: relative;
  background-color: hsl(0 0% 95%);
  text-align: center;
  overflow: hidden;
  border: none;
  border-radius: 3px;
  box-shadow: 2px 2px 4px hsl(0 0% 0% / 40%);
  cursor: pointer;
  transition: all 250ms;
  outline: 2px solid hsl(0 0% 0% / 0%);
  
  display: grid;
  grid-template:
    'title' auto
    'content'   1fr /
    auto;
  place-items: center;
}
.stepCard:is(:hover, :focus) {
  transform: translateY(-3px);
  outline: 2px solid var(--color-primary);
}
.stepCard.locked {
  cursor: not-allowed;
}

.stepCard .title {
  grid-area: title;
  font-size: 1.2rem;
  font-weight: bold;
}

.stepCard .subtitle {
  grid-area: content;
  transition: all 250ms;
  z-index: 2;
  padding: 0 0.5rem;
}
.stepCard:is(.completed, .locked) .subtitle{
  opacity: 20%;
}
.stepCard:hover .subtitle{
  opacity: 100%;
}

.stepCard img {
  grid-area: content;
  width: 4rem;
  place-self: center;
  transition: all 250ms;
  opacity: 100%;
  z-index: 3;
}
.stepCard:hover img {
  opacity: 10%;
  z-index: 1;
}
.stepCard:not(:is(.completed)) img.completed {
  display: none;
}
.stepCard:not(:is(.locked)) img.locked {
  display: none;
}

.stepCard .cover {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: hsl(0 0% 80% / 60%);
  z-index: 10;
}
.stepCard:not(:is(.locked)) .cover {
  display: none;
}

/** UTILITY CLASSES **/

.hoverReady {
  transform: translateY(0px);
  outline: 2px solid hsl(0 0% 0% / 0%);
  box-shadow: 0px 0px 0px hsl(0 0% 0% / 10%);
  transition: all 250ms ease-out;
}

.hoverReady.beingHovered {
  transform: translateY(-3px);
  outline: 2px solid var(--color-primary);
  box-shadow: 0px 3px 3px hsl(0 0% 0% / 10%);
}

.not-visible {
  visibility: hidden !important;
}

.hidden {
  display: none !important;
}

.error {
  color: red;
}

.incorrect {
  box-shadow: 0 0 4px 4px hsl(0 100% 50% / 50%);
}

