html{
scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
}

/* .stop-scrolling {
  height: 100%;
  overflow: hidden;
} */


body {
  width: 100%;
  margin: 0;
  font-family: 'Gilroy';
  color: #202E3D;
  font-size: 1.5em;
  background-repeat: no-repeat;

}

.hidden {
  display: none;
  visibility: hidden;
  opacity: 0;
}

header {
  background-color: #fff;
  position: relative;
  z-index: 3;

  .container-wrapper {
    padding: 65px 0 50px 0;
    max-width: calc(100vw - 60px);
    margin-left: auto;
    margin-right: auto;

    @media (max-width: 850px){
      padding: 30px 0 50px 0;
    }
  }

  .logo-container {
    position: relative;
    z-index: 1;

    svg {
      display: block;
      width: 231px;
    }
  }
}

header + .content-wrapper {
  min-height: calc(100vh - 160px - 50px); /* header-height - footer-height */
}

.relative {
  position: relative;
}

.video-wrapper {
    position: relative;
}
.video-wrapper {
    display: inline-block;
}
figure {
    height: 100%;
    width: 100%;
    position: relative;
}

.flex {
  display: flex;

  &.space-between {
      justify-content: space-between;
  }
  &.reverse {
      flex-direction: row-reverse;
  }
  &.middle {
      align-items: center;
  }
}

.container-wrapper {
    max-width: calc(100vw - 60px);
    width: 1436px;
    margin-left: auto;
    margin-right: auto;
}

.textblock-w-image-container-wrapper {
  padding: 0px 0px 30px 0px;

  &#item-1:last-child {
    min-height: calc(100vh - 160px - 50px); /* header-height - footer-height */
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  &:has(+ .textblock-container-wrapper),
  &:has(+ span + .textblock-container-wrapper) {
    padding-bottom: 70px;
  }

  .flex {
    gap: 100px;
    justify-content: space-between;

    @media (max-width: 1024px) {
      gap: 60px;
    }

    @media (max-width: 850px) {
      flex-direction: column;
    }

    @media (max-width: 600px) {
      gap: 40px;
    }
  }

  .images-container {
    width: calc(45% - 50px);
    overflow: hidden;

    @media (max-width: 1024px) {
      width: calc(50% - 30px);
    }

    @media (max-width: 850px) {
      width: 100%;
    }

    img, video {
      object-fit: contain;
      border-radius: 30px;
      overflow: hidden;
    }

    .video-wrapper video {
      height: 100%;
      object-fit: contain;
      border-radius: 30px;
      overflow: hidden;
      max-height: 70vh;
      width: auto;

      @media (max-width: 850px) {
        max-height: 60vh;
      }
    }
  }

  .content-container {
    width: calc(55% - 50px);

    @media (max-width: 1024px) {
      width: calc(50% - 30px);
    }

    @media (max-width: 850px) {
      width: 100%;
    }

    .redactor {
      max-width: 630px;
    }
    .text-container,
    .text-container p {
      margin-bottom: 26px;
      .&:last-child {
        margin-bottom: 0;
      } 
    }
  }
}

.textblock-container-wrapper {
  padding: 70px 0;

  &.centered {
    text-align: center;
    .text-container {
      p,
      h1,
      h2, 
      h3,
      h4 {
        max-width: 1040px;
        margin-left: auto;
        margin-right: auto;
      }
    }
  }

  &.align-left {
    text-align: left;
    color: #000046;

    .text-container {
      margin-left: auto;
      margin-right: auto;

      p,
      h1,
      h2, 
      h3,
      h4 {
        max-width: 1100px;
      }
    }

    .columns-container .column {
      p {
        max-width: 560px;
      }
    }
  } 

  body.article &:not(#item-1) {
    .text-container {
      max-width: 850px;
      h2 {
        font-size: 35px;
      }

      h4 {
        line-height: 1.5;
        margin-bottom: 40px;
      }
    }
  }
}


.video-wrapper .controls[data-state="hidden"] {
  opacity: 0;
  visibility: hidden;
}

.buttons-container {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  flex-wrap: wrap;

  .btn {
    display: inline-block;
    line-height: 1;
    cursor: pointer;
    margin-right: 7px;
    margin-bottom: 7px;
    vertical-align: top;

    &:last-child {
      margin-bottom: 0;
      margin-right: 0;
    }

    &.btn-arrow a, 
    &.arrow a {
      display: inline-flex;
      gap: 0 30px;
      align-items: center;
      justify-content: space-between;

      &.prev {
        flex-direction: row-reverse;

        svg {
          transform: rotate(180deg);
        }
      }

      svg {
        position: relative;
        z-index: 2;
        width: 28px;
        height: auto;
        display: inline-block;
      }
    }

    input[type=button], 
    input[type=submit],
    a {
      span {
        position: relative;
        z-index: 2;
      }

      &:before {
        content: '\A';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #000046;
        z-index: 0;
      }

      &:after {
        content: '\A';
        position: absolute;
        top: 0; left: 0;
        width: 100%; 
        height: 100%;
        border-radius: 50px;
        background-color: #fff;
        z-index: 1;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
      }
    }

    &.btn-underline a,
    &.btn-transparent a {
      background-color: transparent;
      border: 0px; 
      border-radius: 0px;
      color: #000046;
      padding: 10px 00px;
      text-decoration: none;

      &:before {
        display: none;
      }

      &:after {
        width: 100%;
        height: 1px;
        background-color: #000046;
        display: block;
        position: absolute;
        left: 0;
        bottom: 10px;
        top: unset;
        transform: translateY(0px);
        transition: all 0.3s ease;
      }
    }
  }

  @media (hover: hover) {

    .btn input[type=button]:hover, 
    .btn input[type=submit]:hover {
      background-color: transparent;
      color: #E3AC53;

      &:after {
        transform: translateX(0%);
      }
    }

    .btn a:hover {
      background-color: transparent;
      color: #000046;

      &:after {
        transform: translateX(0%);
      }
    }

    .btn.btn-arrow a:hover,
    .btn.arrow a:hover {
      text-decoration: none;
      svg path[stroke] {
        stroke: #000046;
      }
    }
  }
}

#img {
  width: 750px;
  margin: auto;
}

video, img {
  display: inherit;
  max-width: 100%;
  width: 100%;
}

#img img {
  max-width: 100%;
}

.devider {
  height: 80vh;
}

.smalldevider {
  height: 10vh;
  display: block;
}

.startbutton {
  display: inline-block;
  width: auto;
  animation: example 3s infinite;
}

@keyframes example {
  0% {transform: rotate(0deg)}
  5% {transform: rotate(-4deg)}
  10% {transform: rotate(4deg)}
  15% {transform: rotate(-4deg)}
  20% {transform: rotate(0deg)}
  100% {transform: rotate(0deg)}
}

h1 {
  font-size: 2em;
  line-height: 1em;
  font-weight: bold;
  margin-bottom: 30px;
  color: #E3AC53;
}

h1 span {
  color: #202E3D;
}

h2 {
  font-size: 1.5em;
  line-height: 1em;
  margin-bottom: 30px;
}

h3 {
  color: #E3AC53;
  margin-bottom: 15px;
  font-size: 23px;
  font-weight: 400;
}

h3 span {
  color: #ccc;
}

.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #f1f1f1;
}

a {
  color: #E3AC53;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  font-size: 12px;
  line-height: 2;
  width: 100%;
  padding: 13px 0;
  background-color: #000046;
  color: rgba(255,255,255,0.5);
  text-align: center;

  .flex {
    gap: 0 30px;
    flex-wrap: wrap;
  }

  .questions & {
    position: fixed;
    bottom: 0;
    z-index: 1;
  }
}

footer a {
  color: rgba(255,255,255,0.5);
}

.intro {
  text-align: center;
}

.intro p {
  line-height: 1.5em;
}

.progress-container {
  width: 100%;
  height: 20px;
  background: #F4F4F5;
}

.progress-bar {
  height: 20px;
  background: #E3AC53;
  width: 0%;
}

.backgroundColor {
  background-color: #F4F4F5!important;
}

.centerme {
  text-align: center;
}

.content {
  margin: 50px auto 0 auto;
  width: 70%;
}

.column-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 160px;
  grid-row-gap: 60px;
  margin-bottom: 160px;
}

.column-2 p {
  font-size: 18px;
  line-height: 30px;
}

#myChart {
  width: 1200px!important;
  margin: auto;
}

@media screen and (max-width: 1024px) {

  body {
    font-size: 0.9em;
  }

  h1 {
    font-size: 2.2em;
  }

  h2 {
    font-size: 1.5em;
  }

  .content, .questioncontent {
      margin: 50px auto 0 auto;
      width: 85%!important;
  }

  #img {
      width: 80%;
      margin: auto;
  }

  .smalldevider {
    height: 5vh!important;
    display: block;
  }
}


@media screen and (max-width: 764px) {

  .column-2 {
    display: grid;
    grid-template-columns: 1fr;
    grid-row-gap: 60px;
    margin-bottom: 160px;
  }

}
