/* -------------------- */
/* -- SPOT THE HAZARD --*/

section#quiz-intro {
  display: none;
}

section#quiz-outro {
  display: none;
}

section#quiz-intro.open, section#quiz-outro.open {
  display: flex;
}

#hazard-perception {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    /* display: none; */
}
#hazard-perception.open {
  display: block;
}
#hp-game-instructions-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%)translateY(-50%);
    height: 75%;
    width: 90%;
    z-index: 50;
    border: 1px solid #FF9900;
    background-color: #2B313F;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 40px 0;
    display: none;
}
#hp-game-instructions-overlay.open {
    display: block;
}
#hp-game-instructions-overlay .close {
    position: absolute;
    top: 15px;
    right: 15px;
}
#hp-game-instructions-overlay h2 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}
#hp-game-instructions-overlay figure {
    height: 150px;
    width: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
#hp-game-instructions-overlay p.orange {
    margin-bottom: 10px;
}
#hp-game-start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
#hp-game-start-overlay:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    background: #FFF;
    opacity: 0.7;
    z-index: -1;
}
#hp-game-start-overlay.open {
    display: flex;
}
#hp-game-content {
    width: 100%;
    height: 100%;
    border: 1px solid grey;
}
#hp-game-header {
    box-shadow: 0px 3px 4px #0000001A;
    background-color: #fff;
    height: 68px;
    position: relative;
    z-index: 10;
    -webkit-animation: slide-down .5s ease-out;
    -moz-animation: slide-down .5s ease-out;
}
@-webkit-keyframes slide-down {
      0% { opacity: 0; -webkit-transform: translateY(-100%); }
    100% { opacity: 1; -webkit-transform: translateY(0); }
}
@-moz-keyframes slide-down {
      0% { opacity: 0; -moz-transform: translateY(-100%); }
    100% { opacity: 1; -moz-transform: translateY(0); }
}
#hp-game-header .info-cluster {
    padding: 10px 18px;
}
#hp-game-header .info-cluster span:first-of-type {
    font-size: 24px;
}
#hp-game-header .info-cluster span:last-of-type {
    font-size: 10px;
}

#hp-game-header #hp-game-title-cluster .game-progress {
    font-size: 10px;
}
#hp-game-timer {
  min-width: 160px;
  background-color: #7EB945;
  color: #fff;
  height: 68px;
}
.clock {
  font-weight: bold;
  font-family: 'Arial';
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.6px;
}
.points {
  font-weight: bold;
  font-family: 'Arial';
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.6px;
}
#hp-game-window {
    padding: 40px;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    overflow: hidden;
    padding-bottom: 150px;
}
#hp-game-hazards {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
#hp-game-hazards .hazard {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translateX(-50%)translateY(-50%);
}
#hp-game-hazards .hazard .hazard-warning {
  position: absolute;
  width: 6vw;
  height: 6vw;
  border-radius: 50%;
  transition:background-color 250ms ease;
}
#hp-game-hazards .hazard .hazard-warning.active {
  background-image: url('../images/hs-selection.svg');
  background-size: contain;
}
#hp-game-hazards .hazard .hazard-target {
    position:absolute;
    width: 2vw;
    height: 2vw;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s;
}
#hp-game-hazards .hazard .hazard-target svg {
    opacity: 0;
    transition: all 0.4s;
    height: 1.2vw;
    width: auto;
}
#hp-game-hazards .hazard .hazard-target img {
    display: none;
}
#hp-game-hazards .hazard.found.active {
  z-index: 2;
}
#hp-game-hazards .hazard.found .hazard-target img {
    display: block;
}
#hp-game-hazards .hazard.found .hazard-target {
    background-color: #c9006f;
}
#hp-game-hazards .hazard.found .hazard-target svg {
    opacity: 1;
    z-index: 3;
    height: 1vw;
    width: auto;
    color: #fff;
}
#hp-game-hazards .hazard .hazard-tooltip {
    position: absolute;
    background-color: #2A7B79;
    font-family: 'Arial';
    width: 230px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 3px 6px #00000029;
    text-align: center;
    display: none;
}
#hp-game-hazards .hazard .hazard-tooltip .icon {
  height: 20px;
  width: auto;
  margin-bottom: 10px;
}
#hp-game-hazards .hazard .hazard-tooltip .icon img {
  height: 100%;
  width: auto;
}
#hp-game-hazards .hazard .hazard-tooltip .points {
  margin-bottom: 5px;
  font-family: 'Arial';
  font-weight: bold;
  font-size: 12px;
  letter-spacing: -0.12px;
  line-height: 16px;
  color: #fff;
}

#hp-game-hazards .hazard.active .hazard-tooltip {
    display: block;
    transition: all 0.4s;
    opacity: 0;
    pointer-events: none;
}
#hp-game-hazards .hazard .hazard-tooltip.active {
    opacity: 1;
    pointer-events: all;
}

#hp-game-hazards .hazard .hazard-tooltip.above {
    bottom: 50%;
    transform: translateY(-26px);
    -webkit-animation: slide-tt-up .3s ease-out;
    -moz-animation: slide-tt-up .3s ease-out;
}
@-webkit-keyframes slide-tt-up {
      0% { opacity: 0; -webkit-transform: translateY(0); }
    100% { opacity: 1; -webkit-transform: translateY(-26px); }
}
@-moz-keyframes slide-tt-up {
      0% { opacity: 0; -moz-transform: translateY(0); }
    100% { opacity: 1; -moz-transform: translateY(-26px); }
}
#hp-game-hazards .hazard .hazard-tooltip.below {
    top: 50%;
    transform: translateY(26px);
    -webkit-animation: slide-tt-below .3s ease-out;
    -moz-animation: slide-tt-below .3s ease-out;
}
@-webkit-keyframes slide-tt-below {
      0% { opacity: 0; -webkit-transform: translateY(0); }
    100% { opacity: 1; -webkit-transform: translateY(26px); }
}
@-moz-keyframes slide-tt-below {
      0% { opacity: 0; -moz-transform: translateY(0); }
    100% { opacity: 1; -moz-transform: translateY(26px); }
}
#hp-game-hazards .hazard .hazard-tooltip.left {
    right: 50%;
    transform: translateX(-26px);
    -webkit-animation: slide-tt-left .3s ease-out;
    -moz-animation: slide-tt-left .3s ease-out;
}
@-webkit-keyframes slide-tt-left {
      0% { opacity: 0; -webkit-transform: translateX(0); }
    100% { opacity: 1; -webkit-transform: translateX(-26px); }
}
@-moz-keyframes slide-tt-left {
      0% { opacity: 0; -moz-transform: translateX(0); }
    100% { opacity: 1; -moz-transform: translateX(-26px); }
}
#hp-game-hazards .hazard .hazard-tooltip.right {
    left: 50%;
    transform: translateX(26px);
    -webkit-animation: slide-tt-right .3s ease-out;
    -moz-animation: slide-tt-right .3s ease-out;
}
@-webkit-keyframes slide-tt-right {
      0% { opacity: 0; -webkit-transform: translateX(0); }
    100% { opacity: 1; -webkit-transform: translateX(26px); }
}
@-moz-keyframes slide-tt-right {
      0% { opacity: 0; -moz-transform: translateX(0); }
    100% { opacity: 1; -moz-transform: translateX(26px); }
}

#hp-game-play-area {
  width: 75%;
  height: 100%;
  overflow: auto;
  background-color: #eee;
}

#hp-game-hazards .hazard .hazard-tooltip p {
    margin: 0;
}
#hp-game-hazards .hazard .hazard-tooltip .description {
    font-family: "Arial";
    line-height: 21px;
}
#hp-game-hazards .hazard .hazard-tooltip .close, #hp-game-hazards .hazard .hazard-tooltip .close-final {
    margin-top: 15px;
    display: block;
    font-weight: bold;
    transition: all .4s;
    color: #FFA800;
}
#hp-game-hazards .hazard .hazard-tooltip .close:hover, #hp-game-hazards .hazard .hazard-tooltip .close-final:hover {
    color: #fff;
}

#hp-game-hazards .hazard .hazard-tooltip .close-final {
  display: none;
}

#hp-game-hazards .hazard .hazard-tooltip.found-all .close {
  display: none;
}

#hp-game-hazards .hazard .hazard-tooltip.found-all .close-final {
  display: block;
}

#hp-game-hazards .hazard .hazard-tooltip:after {
    content:"";
    position:absolute;
    width:0;
    height:0;
    border-style:solid;
}
#hp-game-hazards .hazard .hazard-tooltip.above:after {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-right: solid 8px transparent;
    border-left: solid 8px transparent;
    border-top: solid 8px #2A7B79;
    border-bottom: transparent;
}
#hp-game-hazards .hazard .hazard-tooltip.below:after {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-right: solid 8px transparent;
    border-left: solid 8px transparent;
    border-bottom: solid 8px #2A7B79;
    border-top: transparent;
}
#hp-game-hazards .hazard .hazard-tooltip.left:after {
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-right: transparent;
    border-left: solid 8px #2A7B79;
    border-top: solid 8px transparent;
    border-bottom: solid 8px transparent;
}
#hp-game-hazards .hazard .hazard-tooltip.right:after {
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-right: solid 8px #2A7B79;
    border-left: transparent;
    border-top: solid 8px transparent;
    border-bottom: solid 8px transparent;
}
#hp-game-hazards .hazard .hazard-tooltip.above.left:after {
  left:auto;
  bottom: 10px;
  top:auto;
}
#hp-game-hazards .hazard .hazard-tooltip.above.right:after {
  right:auto;
  bottom: 10px;
  top:auto;
}
#hp-game-sidebar {
    overflow: hidden;
    position: relative;
    height: 100%;
}

#hp-game-sidebar-inner {
  position: absolute;
  overflow-y: auto;
  height: 100%;
  width: 100%;
  top:0;
}

#hp-game-sidebar .hazard-list {
    list-style: none;
    margin: 0;
    position: relative;
    background-color: #F7F7F7;
    padding-bottom: 40px;
    width: 100%;
}
#hp-game-sidebar .hazard-list:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background: linear-gradient(0deg, rgba(234,234,234,1) 0%, rgba(234,234,234,0) 100%);
}
#hp-game-sidebar .hazard-list .hazard-item {
    height: 55px;
    padding-left: 15px;
    color: #E8E8E8;
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #EAEAEA;
    transition: all .4s;
}
#hp-game-sidebar .hazard-list .hazard-item figure {
    display: flex;
    align-items: center;
}
#hp-game-sidebar .hazard-list .hazard-item .check {
    height: 20px!important;
    width: 20px!important;
    min-width: 20px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #2A7B79;
    border-radius: 50%;
    margin-right: 5px;
    -webkit-transition: all .4s;
    transition: all .4s;
}
#hp-game-sidebar .hazard-list .hazard-item .check svg {
  display: none;
}
#hp-game-sidebar .hazard-list .hazard-item.found {
    font-weight: bold;
    color: #FFF;
    background-color: #2A7B79;
    text-decoration: none;
    text-decoration-color: transparent;
}
#hp-game-sidebar .hazard-list .hazard-item .name{
  user-select: none;
}
#hp-game-sidebar .hazard-list .hazard-item.found .name {
  background-color: transparent!important;
  user-select: all;
}
#hp-game-sidebar .hazard-list .hazard-item.found .check {
    background-color: #FFF;
    border-color: #2A7B79;
    color: #2A7B79;
    font-size: 12px;
}
#hp-game-sidebar .hazard-list .hazard-item.found .check svg {
  display: block;
}
#hp-game-sidebar .hazard-list .hazard-item .view {
    margin-right: 15px;
    margin-left: auto;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0;
    transition: all .4s;
}
#hp-game-sidebar .hazard-list .hazard-item .view path{
    transition: all .4s;
}
#hp-game-sidebar .hazard-list .hazard-item.found .view {
    opacity: 1;
    transition: all .4s;
    cursor: pointer;
    pointer-events: all;
}
#hp-game-sidebar .hazard-list .hazard-item.found .view:hover path {
    stroke: #FF9900;
}
#hp-game-sidebar .hazard-list .hazard-item.found.active {
    text-decoration-color: #2B313F;
}
#hp-game-sidebar .hazard-list .hazard-item.found.active .view path {
    stroke: #FF9900;
}
#hp-game-mobile-slide-button {
    z-index: 10;
    width: 28px;
    display: none;
    align-items: center;
    position: fixed;
    top:0;
    height: calc(100vh - 108px);
    background-color: #FFA800;
}
#hp-game-image {
    height: auto;
    width: 100%;
    position: absolute;
    overflow: hidden;
    top:0;
}
#timer-pause {
  display: none;
}
#timer-pause.show {
  display: block;
}
#time-wording-b {
  display:none;
}
#time-wording-b.show {
  display:block;
}
.game-hint {
    border-radius: 50%;
    box-sizing: border-box;
    opacity: 0.8;
    border: 0 solid rgba(255, 255, 255, 0);
    position: absolute;
    height: 200vw;
    width: 200vw;
    top: 50%;
    left: 50%;
    transform: translateX(-50%)translateY(-50%);
    pointer-events: none;
}
.game-hint.active {
    border: 95vw solid rgba(255, 255, 255, 1);
}
#hp-game-image img {
    height: auto;
    width: 100%;
}
.scroll-window {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: auto;
}
#hp-game-footer {
    background-color: #005830;
    position: fixed;
    height: 68px;
    width: 100%;
    bottom:0;
    z-index: 10;
    -webkit-animation: slide-up .5s ease-out;
    -moz-animation: slide-up .5s ease-out;
}
#hp-game-points {
  background-color: #7EB945;
  height: 68px;
  min-width: 160px;
}
@-webkit-keyframes slide-up {
      0% { opacity: 0; -webkit-transform: translateY(100%); }
    100% { opacity: 1; -webkit-transform: translateY(0); }
}
@-moz-keyframes slide-up {
      0% { opacity: 0; -moz-transform: translateY(100%); }
    100% { opacity: 1; -moz-transform: translateY(0); }
}
#hp-game-footer a {
    padding: 0 1rem;
}
#hp-game-action-cluster a:first-of-type {
    margin-right: 10px;
}
/* -----------------------*/
/* ------- OUTRO --------*/
.arrow-top-out {
  position: absolute;
  top:51px;
  left: -5px;
  transform: scaleX(-1) rotate(155deg);
}
/* -----------------------*/
/* ------- MOUSE FOOTER --------*/
/* -----------------------*/
.mouse_footer {
  position: fixed;
  bottom: 90px;
  height: 60px;
  width: 100%;
  z-index: 10;
}

.scroll-downs {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;

  width :34px;
  height: 55px;
}
.mousey {
  width: 8px;
  padding: 10px 6px;
  height: 15px;
  border: 2px solid #FF9900;
  background-color: #FF9900;
  border-radius: 25px;
  opacity: 1;
  box-sizing: content-box;
}
.scroller {
  width: auto;
  height: 8px;
  font-size: 12px;
  color: #FFF;
  animation-name: scroll;
  animation-duration: 2.2s;
  animation-timing-function: cubic-bezier(.15,.41,.69,.94);
  animation-iteration-count: infinite;
}

.txt {
  font-size: 10px;
  margin-top: 5px;
  color: #FF9900;
}
@keyframes scroll {
  0% { opacity: 0; }
  10% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(5px); opacity: 0;}
}
/* ------------------------------*/
/* ------- MEDIA QUERIES --------*/
/* ------------------------------*/
/* MOBILE LANDSCAPE */
#hp-please-rotate {
  background-color: #fff;
  position: absolute;
  z-index: 10;
  height: 80vh;
  width: calc(100vw - 6.25rem);
  display: none;
}

@media screen and (orientation:portrait) and (max-width: 640px) {
  /*
  #hp-please-rotate {
    display: block;
  }
  */
#hp-game-content {
  transform: rotateZ(90deg) translate3d( 0, 0, 0);
  width: 101vh;
  height: 100vw;
  margin-left: -45%;
  margin-top: 38%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000;
  -webkit-perspective: 1000;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform-origin: 50% 53%;
  -webkit-transform-origin: 50% 53%;
}

  #hp-game-window {
    margin: 40px;
    margin-bottom: 70px;
    padding: 0;
    width: 93vh;
    height: 100%;
  }

  #hp-game-instructions-overlay {
    height: 100vh;
    width: 100vw;
    transform: none;
    top: 0;
    left: 0;
  }

  #instructionsModal {
    transform: rotateZ(90deg);
    width: 101vh;
    height: 100vw;
    right: 10;
    min-height: auto;
    margin-top: 40%;
    margin-left: -45%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000;
    -webkit-perspective: 1000;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform-origin: 50% 53%;
    -webkit-transform-origin: 50% 53%;
  }

  #hp-game-sidebar .hazard-list {
    padding-left: 100px;
    padding-bottom: 100px;
  }

  #hp-game-instructions-overlay .instruction {
      width: 50%;
  }
  #hp-game-play-area {
      width: calc(100% - 8%);
      height: 100%;
      padding-top: 0 !important;
      overflow: scroll;
  }
  #hp-game-image {
      height: auto;
      width: 100%;
      position: relative;
      margin-bottom: 110px;
  }
  #hp-game-sidebar {
      position: absolute;
      right: 0;
      top: 0;
      transform: translateX(calc(100% - 8%));
      height: 100%;
      transition: all 0.4s;
  }

  #hp-game-mobile-slide-button {
    height: 100%;
  }

  #hp-game-timer {
    min-width: 110px;
    height: 54px;
  }
  #hp-game-points {
    height: 54px;
  }
  #timer-pause.show {
    display: block;
    font-size: 27px;
  }
  #hp-game-sidebar.open {
      transform: translateX(0px);
  }
  #hp-game-mobile-slide-button {
      display: flex;
  }
  #hp-game-mobile-slide-button svg {
      transition: all 0.4s;
  }
  #hp-game-sidebar.open #hp-game-mobile-slide-button svg {
      transform: rotate(180deg);
  }
  #hp-game-footer {
      padding:10px;
      position: fixed;
      bottom: 0;
      width: 100%;
  }
  .f10_m {
    font-size: 10px;
    font-family: "amazonEmber_Rg";
  }
  #hp-game-header .info-cluster {
      padding: 5px 18px;
  }
  #hp-game-hazards .hazard {
      height: 6vw;
      width: 6vw;
  }
  #hp-game-hazards .hazard .hazard-target {
    height: 6vw;
    width: 6vw;
  }
  #hp-game-hazards .hazard.found .hazard-target svg {
    height: 2.2vw;
  }
  #hp-game-hazards .hazard .hazard-warning {
    width: 12vw;
    height: 12vw;
    border-radius: 50%;
    transition: background-color 250ms ease;
  }

}


/* MOBILE LANDSCAPE */
@media screen and (orientation:landscape) and (max-height: 640px) {

    a.white_btn {
      height: 40px;
      font-size: 12px;
      padding: 8px 25px;
    }
    a.white_hollow_btn {
      height: 40px;
      font-size: 12px;
      padding: 8px 25px;
    }
    .main_content.resp {
      height: auto;
    }
    a.game_exit {
      height: 30px;
      width: 30px;
    }
    #hp-game-hazards .hazard .hazard-tooltip {
      font-size: 12px;
      line-height: 16px;
    }
    #hp-game-sidebar .hazard-list .hazard-item .icon {
      height: 12px;
      width: 12px;
    }
    #hp-game-sidebar .hazard-list .hazard-item .check {
      height: 12px;
      width: 12px;
    }
    #hp-game-action-cluster .txt_m {
      font-size: 12px;
    }
    #hp-game-header {
      height: 54px;
    }
    #hp-game-timer {
      min-width: 110px;
      height: 54px;
    }
    #hp-game-points {
      height: 54px;
    }
    #hp-game-instructions-overlay {
        height: 100vh;
        width: 100vw;
        transform: none;
        top: 0;
        left: 0;
    }

    #hp-game-sidebar .hazard-list {
      padding-left: 40px;
      padding-bottom: 100px;
      font-size: 12px;
    }

    #hp-game-sidebar .hazard-list .hazard-item {
      height: 28px;
    }

    #hp-game-window {
        padding: 40px;
        width: 100vw;
        height: 100%;
    }
    #hp-game-instructions-overlay .instruction {
        width: 50%;
    }
    #hp-game-play-area {
        width: calc(100% - 3.5%);
        height: 100%;
        padding-top: 0 !important;
        overflow: scroll;
    }
    #hp-game-window {
        padding: 0;
    }
    #hp-game-image {
        height: auto;
        width: 100%;
        position: relative;
        margin-bottom: 110px;
    }
    #hp-game-sidebar {
        position: absolute;
        right: 0;
        top: 0;
        transform: translateX(calc(100% - 14%));
        height: calc(100% - 52px);
        transition: all 0.4s;
    }
    #hp-game-timer {
      min-width: 110px;
    }
    #timer-pause.show {
      display: block;
      font-size: 27px;
    }
    #hp-game-sidebar.open {
        transform: translateX(0px);
    }
    #hp-game-mobile-slide-button {
        display: flex;
    }
    #hp-game-mobile-slide-button svg {
        transition: all 0.4s;
    }
    #hp-game-sidebar.open #hp-game-mobile-slide-button svg {
        transform: rotate(180deg);
    }
    #hp-game-footer {
        position: fixed;
        height: 54px;
        bottom: 0;
        width: 100%;
    }
    .f10_m {
      font-size: 10px;
      font-family: "amazonEmber_Rg";
    }
    #hp-game-header .info-cluster {
        padding: 5px 18px;
    }
    #hp-game-hazards .hazard {
        height: 6vw;
        width: 6vw;
    }
    #hp-game-hazards .hazard .hazard-target {
      height: 4vw;
      width: 4vw;
    }
    #hp-game-hazards .hazard .hazard-tooltip .description {
        font-family: "Arial";
        line-height: 16px;
    }
    #hp-game-hazards .hazard.found .hazard-target svg {
      height: 2.2vw;
    }
    #hp-game-hazards .hazard .hazard-warning {
      width: 12vw;
      height: 12vw;
      border-radius: 50%;
      transition: background-color 250ms ease;
    }
}
