:root {
  --text-small-font-size: 0.875rem;
}

/* Font Faces */
@font-face {
  font-family: roboto-regular;
  src: url(../fonts/Roboto-Regular.woff2) format("woff2"), url(../fonts/Roboto-Regular.woff) format("woff");
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: roboto-medium;
  src: url(../fonts/Roboto-Medium.woff2) format("woff2"), url(../fonts/Roboto-Medium.woff) format("woff");
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: roboto-bold;
  src: url(../fonts/Roboto-Bold.woff2) format("woff2"), url(../fonts/Roboto-Bold.woff) format("woff");
  font-display: swap;
  font-style: normal;
}

/* Base Styles */
body {
  margin: 0;
  box-sizing: border-box;
  background-color: #f5f5f5;
  color: #2f2f2f;
  font-family: roboto-regular;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
  display: block;
  position: relative;
}

button, input, optgroup, select, textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}

.iconset {
  height: 0;
  position: absolute;
  visibility: hidden;
  width: 0;
}

input {
  line-height: normal;
}

/* Typography */
h1 {
  font-family: roboto-regular, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  font-size: clamp(1.6875rem, -0.02rem + 3.69vw, 3.5rem);
  margin: 0;
}

h2 {
  font-family: roboto-regular, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  font-size: 1.75rem;
  padding: 3rem 0 0 0;
  margin: 0;
}

h3 {
  font-family: roboto-regular, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  font-size: 1.375rem;
  margin: 0;
}

small {
  font-size: 80%;
}

.light {
  font-weight: 400;
}

.subline {
  font-family: roboto-regular, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  font-size: 1.6rem;
  font-size: clamp(1.25rem, -0.02rem + 2.69vw, 2rem);
  margin: 0;
}

.subline_h2 {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.subline+p {
  font-size: 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-family: roboto-bold;
}

img, svg {
  height: auto;
  max-width: 100%;
  display: block;
}

/* Layout */
.wrapper {
  height: 100%;
  margin-inline: auto;
  padding: 0 2rem;
  max-width: 800px;
}

section.wrapper {
  padding: 2rem;
}

#site {
  background-color: #fff;
  box-shadow: 0 0 24px rgba(0, 0, 0, .1);
  margin-inline: auto;
  max-width: 1440px;
  position: relative;
  overflow-x: hidden;
}

/* Header */
header {
  box-sizing: border-box;
  color: #fff;
  max-width: 1440px;
  position: relative;
  top: 0;
  width: 100%;
}

header .nav_wrapper {
  margin-inline: auto;
  padding: 2rem;
}

.site-navigation {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

header .hg-logo {
  align-items: center;
  display: flex;
}

header .hg-logo img {
  max-width: none;
  width: auto;
  border-color: rgba(255, 255, 255, .25);
  height: 42px;
}

.header-nav {
  display: flex;
  flex-grow: 1;
  margin-left: 22px;
  justify-content: flex-end;
}

.header-nav>ul {
  display: flex;
  height: 100%;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav>ul>li {
  cursor: pointer;
  position: relative;
}

.header-nav>ul>li>div:first-child {
  height: 100%;
}

.header-nav>ul>li>div>a {
  font-family: roboto-bold, sans-serif;
  font-size: 15px;
  font-weight: 400;
  align-items: center;
  display: flex;
  height: 100%;
  letter-spacing: .05em;
  line-height: 1.6;
  padding: 0 22px;
  text-align: center;
  text-transform: uppercase;
  color: #001689;
  transition: color .5s;
}

.header-nav>ul>li>div>a:last-of-type {
  padding: 0 0 0 22px;
}

.header_image .wrapper {
  padding: 0;
}

.header_image {
  background: #011689;
}

.header_image>.wrapper>img {
  object-fit: cover;
  min-height: 16rem;
}

.header_copy {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 2rem;
}

.header_copy img {
  width: 50%;
  margin: 1rem 0 0 0;
}

/* Main */
#container_video {
  position: relative;
}

main video {
  width: 100%;
}

/* Footer */
footer {
  background-color: #0045ff;
  color: #fff;
  isolation: isolate;
  padding-inline: var(--site-gap);
  position: relative;
  padding-top: 1px;
  margin-top: 175px;
}

footer::before {
  background-color: #001689;
  background-image: url('../img/footer_head.svg');
  background-repeat: no-repeat;
  background-size: cover;
  bottom: 100%;
  content: "";
  display: block;
  left: -50%;
  position: absolute;
  z-index: -1;
  height: 205px;
  transform: translate(-8%, 5px);
  width: 315%;
}

footer>div:first-child {
  margin-top: -50px;
}

footer .wrapper {
  margin-inline: auto;
  max-width: 1012px;
}

.footer-nav {
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  padding: 40px 0;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav>ul>li ul {
  column-gap: 40px;
  display: flex;
  justify-content: center;
  word-break: break-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

footer ul ul a {
  font-family: roboto-regular, sans-serif;
  font-size: var(--text-small-font-size);
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1.5;
  display: inline-block;
}

footer ul ul a:hover {
  text-decoration: underline;
}

.footer-nav>ul>li+li {
  border-top: 1px solid rgba(255, 255, 255, .5);
  margin-top: 40px;
  padding-top: 40px;
}

footer .hg-logo {
  display: table;
  margin: 40px auto 0;
}

footer .hg-logo img {
  display: block;
  width: 160px;
}

.copyright {
  font-family: roboto-regular, sans-serif;
  font-size: var(--text-small-font-size);
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1.5;
}

footer .wrapper {
  margin-inline: auto;
  max-width: 1012px;
  padding: 0 2rem;
}

.copyright .wrapper {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.copyright div:not(.wrapper) {
  margin: 40px 0;
}

.copyright div:not(.wrapper):first-child {
  flex: 0 0 min(50%, 52ch);
}

.copyright p {
  margin: 0;
}

.social-media li {
  margin: -10px;
}

.social-media a {
  display: inline-block;
  padding: 10px;
}

.icon {
  display: inline-flex;
  position: relative;
  inset-block-start: -1px;
  vertical-align: middle;
}

.icon__item {
  display: inline-block;
  fill: currentColor;
  height: 1.5rem;
  width: 1.5rem;
}

.social-media .icon__item {
  height: 2.25rem;
  width: 2.25rem;
}

svg:not(:root) {
  overflow: hidden;
}

.social-media .text {
  display: none;
}

/* Video comparison styles */
*, *::before, *::after {
  box-sizing: border-box;
}

.video-container_wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.video-canvas {
  display: flex;
  margin: 2rem;
  gap: 1rem;
  position: relative;
  will-change: transform;
}

.video-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  background-color: #ccf2ff;
}

.video-title {
  text-align: center;
  background: #00d8b4;
  padding: 1rem 0;
  margin-bottom: .5rem;
  border-radius: .5rem .5rem 0 0;
  font-weight: 600;
}

.video-placeholder {
  width: 100%;
  height: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1.2rem;
  padding: 2rem;
  top: 0;
  position: absolute;
  height: 100%;
}

video {
  width: 100%;
  position: absolute;
  top: 0;
  z-index: 4;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 30%;
}

.video-play-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hide video controls in canvas */
.video-canvas video::-webkit-media-controls {
  display: none !important;
}

.controls {
  text-align: center;
  margin: 1rem 0;
}

button, .button {
  background-color: #0045ff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  min-width: 120px;
  transition: background-color 0.2s;
  line-height: 1.6;
  font-family: roboto-medium, roboto-regular, sans-serif;
}

button:hover, .button:hover {
  background-color: #001689;
}

button.stop {
  background-color: #e74c3c;
}

button.stop:hover {
  background-color: #c0392b;
}

.video_repertoire_wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  width: calc(100% + 1rem);
  position: relative;
  justify-content: center;
}

.video-item {
  flex: 1 1 calc((100% / 2) - 1rem);
  min-width: 15rem;
  padding: 0px;
  margin: 0 1rem 1rem 0;
  transition: all .2s;
}

.video-item.checked {
  background: #00d8b4;
}

.video-item label {
  cursor: pointer;
}

.video-item p {
  display: inline-block;
  padding: 1rem;
  margin: 0;
  font-weight: 600;
  width: 80%;
}

.video-item img {
  margin: 0rem 0 0 0;
  cursor: pointer;
}

main input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font: inherit;
  width: 1.5rem;
  height: 1.5rem;
  border: 0.15em solid;
  border-radius: 1rem;
  transform: translateY(-0.075em);
  display: flex;
  float: right;
  margin: 1rem 1rem 0 0;
  background: #fff;
}

main input[type="checkbox"]::before {
  content: "";
  width: 1.5rem;
  height: 1.7rem;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--form-control-color);
  background-color: CanvasText;
  top: -0.4rem;
  position: relative;
}

main input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.selection-instruction {
  color: #666;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  display: inline-block;
}

.error-message {
  background: #e74c3c;
  margin-top: 0.5rem;
  display: none;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #fff;
  padding: 0 1rem;
}

.wrapper_anchor {
  text-align: center;
}

.bg_blue {
  background: #001689;
  color: #fff;
  padding: 2rem 0;
}

.bg_blue>.wrapper>h2 {
  padding: 2rem 0 0 0;
}

.application_wrapper {
  display: flex;
  flex-wrap: wrap;
  width: calc(100% + 1rem);
  margin: 2rem auto 0 auto;
  justify-content: center;
}

.application_item {
  position: relative;
  flex: 0 1 calc((100% / 3) - 1rem);
  margin: 0 1rem 1rem 0;
}

.application_item video {
  position: relative;
  height: auto;
}

.application_item p {
  padding: 0 0 0 1rem;
  margin: .5rem 0 1rem 0;
  font-weight: 600;
}

.pdf-list_wrapper {
  display: flex;
  margin: 2rem auto 0 auto;
  width: calc(100% + 1rem);
  flex-wrap: wrap;
  justify-content: center;
}

.pdf-item {
  flex: 0 1 calc((100% / 3) - 1rem);
  margin: 0 1rem 1rem 0;
  background-color: #ccf2ff;
  border-radius: 0 0 .5rem .5rem;
  min-width: 10rem;
}

.pdf-item a {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  padding-bottom: 1rem;
}

.pdf-item a img {
  margin-bottom: 1rem;
}

.pdf-item a div {
  padding-left: 1rem;
}

/* Form Styles */
#formwrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.8);
  z-index: 1000;
}

#formwrapper .container {
  background: #fff;
  position: absolute;
  left: calc(50% - 0rem);
  top: 50vh;
  transform: translate(calc(-50% + -0.5rem), -40vh);
  padding: 2rem;
  border: 1rem solid #0045ff;
  width: calc(100% - 1rem);
  max-width: 40rem;
}

#formwrapper {
  opacity: 1;
  transition: opacity 0.5s ease;
  overflow: hidden;
}

#formwrapper.fade-out {
  opacity: 0;
  height: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
}

.forms-form .form-group {
  clear: both;
  margin-bottom: 10px;
  display: block;
  width: 101.9379845%;
  margin-left: -.96899225%;
  margin-right: -.96899225%;
}

.forms-form .control-label {
  font-family: roboto-regular, sans-serif;
  font-size: var(--text-small-font-size);
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1.5;
  color: #585858;
  cursor: pointer;
  display: block;
  float: left;
  width: 23.0620155%;
  margin-left: .96899225%;
  margin-right: .96899225%;
  padding-top: 16px;
}

.forms-form .form-control {
  display: block;
  background-image: none;
  border: 1px solid #ccc;
  font-family: roboto-regular, sans-serif;
  font-size: var(--text-copy-font-size);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: var(--text-copy-line-height);
  background-color: rgba(0, 0, 0, .04);
  border-color: currentColor;
  border-radius: 4px 4px 0 0;
  border-style: solid;
  border-width: 0 0 2px;
  box-sizing: border-box;
  color: #585858;
  height: 57px;
  min-height: max(57px, 100%);
  outline: none;
  padding: 2px 16px;
  box-shadow: none;
  transition: none;
  float: left;
  width: 73.0620155%;
  margin-left: .96899225%;
  margin-right: .96899225%;
}

.forms-form .text-label {
  font-family: roboto-regular, sans-serif;
  font-size: var(--text-small-font-size);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.5;
  margin-bottom: 10px;
  margin-top: 0px;
}

.forms-form .form-control:focus {
  border-color: #0045ff;
}

.forms-form .form-group:after {
  clear: both;
  content: "";
  display: block;
  width: 0;
}

/* Media Queries */
@media (max-width: 900px) {
  .video-canvas {
    flex-direction: column;
  }

  .footer-nav>ul>li:first-of-type ul {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .social-media a {
    padding: 0px;
  }

  .application_wrapper {
    display: block;
  }
  
  #formwrapper .container {
    top: 0;
    width: 100%;
    transform: none;
    left: 0;
  }
}

@media (orientation: landscape) {
  .video-canvas {
    flex-direction: row;
  }

}