﻿html,
body {
  margin: 0;
}

.hidden {
  position: absolute;
  inset-block-start: auto;
  inset-inline-start: -99999px;
  opacity: 0;
}

.framework-grid {
  background: white;
  border-radius: 0.625rem;
  border: black 0.625rem solid;
  border-top: none;
  overflow: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: black;
  padding-inline: 1.3rem;
}

.header div:not(.right-aligned-logo) {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header div.right-aligned-logo {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo-height {
  height: 70%;
}

.framework-grid .header {
  padding-inline-end: unset;
}

.framework-grid .header .logo-height {
  height: unset;
}

.framework-grid .mainarea {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.framework-grid .mainarea > .sidebar {
  display: contents;
}

@media only screen and (min-width: 1024px) {
  .framework-grid {
    display: grid;
    grid-template-columns: min-content auto calc(100% - 95px);
    grid-template-rows: 50px calc(99vh - 60px);
    margin: 0.5vh auto;
    width: max(1003px, 75%);
  }

  .framework-grid .header {
    grid-column: 1 / 4;
    grid-row: 1 / 2;
  }

  .framework-grid .mainarea {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
    padding: 1rem;
    background-color: white;
    overflow-y: auto;
  }

  .framework-grid .sidebar {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
  }

  .framework-grid .grid-background {
    display: contents;
    grid-column: 1 / 4;
    grid-row: 1 / 3;
    z-index: -1;
    box-shadow: 0 0 0.3125em 0 black;
  }
}

@media only screen and (max-width: 1024px) {
  .framework-grid {
    grid-template-rows: 50px calc(100vh - 80px);
  }
}

@media only screen and (max-width: 1023px) {
  .framework-grid {
    display: grid;
    grid-template-columns: calc(100vw - 20px);
    grid-template-rows: 45px calc(100vh - 55px);
  }

  .framework-grid .header {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .framework-grid .mainarea {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    background-color: white;
    overflow-y: auto;
    z-index: 1;
  }

  .framework-grid .grid-background {
    display: contents;
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    z-index: -1;
  }
}

#page-loading-message {
  margin: 2em auto;
  max-width: 36em;
  padding: 1em 1.25em;
  text-align: center;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a46;
}

.instructions {
  max-width: 42em;
  margin: 2em auto 0;
  padding: 1.25em 1.5em;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: #2c2c2c;
  text-align: left;
  background: #f7faf3;
  border-radius: 0.5em;
  border: 1px solid #8cc63f;
}

.instructions p {
  margin: 0 0 1.1em;
}

.playButtonContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.playButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 3em;
  border-radius: 50em;
  border: 3px solid green;
  background: white;
}

.playButton:active:not(.disabled) {
  transform: scale(0.95);
}

.playButton:hover:not(.disabled) {
  background: mintcream;
}

.playButton.disabled {
  filter: grayscale(100%);
  cursor: not-allowed;
}

.playButton.shake {
  animation: playButtonShake 0.35s ease;
}

@keyframes playButtonShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

.playButtonIcon {
  width: 50px;
  height: 50px;
}

.testResultContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.25em;
}

.testResultContainer.hidden {
  display: none;
}

.testResultBox {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5em;
  min-height: 4.5em;
  padding: 0.75em 1.25em;
  border: 1px solid #c5c5c5;
  border-radius: 0.5em;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.testResultImage {
  width: 2.5em;
  height: 2.5em;
}

.nextButtonContainer {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 2em;
}

.nextButtonContainer.hidden {
  display: none;
}

.nextNavButton {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f1f1f;
  padding: 0.65em 2.5em;
  border-radius: 1em;
  border: 3px solid #81bb33;
  background: #c8e7a0;
  cursor: pointer;
}

.nextNavButton:hover {
  background: #7ab534;
  border-color: #7ab534;
}

.nextNavButton:active {
  transform: scale(0.97);
}

.overlay {
  position: fixed;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: all;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0);
}

.overlay.hidden {
  display: none;
  pointer-events: none;
}

.spinner {
  padding: 1em;
  border: 1px solid #868686;
  border-radius: 0.5em;
  width: max-content;
  background: rgba(255, 255, 255, 1);
  text-align: center;
}

.spinner.covering-play-button {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.spinner *::selection {
  background: transparent;
}

.spinner img {
  width: 2em;
}

.overlay-message {
  font-family: Arial, sans-serif;
  width: auto;
  max-width: 20em;
  padding: 1em;
}
