#hd-game-wrap {
  visibility: hidden;
}
/* Top section */
#hd-game-wrap {
  background: url(../images/bg.jpg) center -150px no-repeat; /* DT */
  background-size: cover;
  height: 100vh;
  width: 100vw;
}

#hd-game-wrap.winner {
  background: url(../images/bg-winner.jpg?v=4) center -150px no-repeat; /* DT */
  background-size: cover;
}

#hd-game-wrap.winner .chars-wrap {
  display: none;
}

.hd-stars-wrap {
  display: flex;
  justify-content: center;
  cursor: default;
  pointer-events: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.hd-stars-wrap .hd-star {
  width: 45px;
  height: 41px;
  color: gold;
  background: url(../images/spring-star.png) 2px center no-repeat;
  background-size: cover;
  transition: all 0.2s linear;
}
.hd-stars-wrap .hd-star-on {
  display: block;
  background: url(../images/spring-star.png) right center no-repeat;
}
.hd-logo-wrap,
.hd-info-area {
  position: relative;
  z-index: 200;
}
.hdc-ga-translator-wrap select {
}
#hdc-ga-translator select {
  font-size: 16px;
  height: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Masthead */
.hd-masthead-wrap {
  position: relative;
  z-index: 0;
  top: -10px;
}
.hd-masthead-cnt {
  position: relative;
  top: -10px;
}
h1.hd-masthead-ttl,
h2.hd-masthead-teaser {
  font-family: "Open Sans", sans-serif;
  color: #081D39;
}
h1.hd-masthead-ttl {
  font-weight: 600;
  font-size: 2.325em;
  line-height: 1.25em;
  margin: 0.25em auto 0 auto;
}
h2.hd-masthead-teaser {
  font-weight: 400;
  font-size: 1.725em;
  margin: 0 auto;
  margin-left: -10px;
}

.hd-masthead-img {
  padding: 0 20%;
}

@media screen and (min-width: 1024px) and (max-width: 1700px) {
  .hd-stars-wrap .hd-star {
    width: 35px;
    height: 30px;
  }
}

@media screen and (max-width: 1700px) {
  h1.hd-masthead-ttl {
    font-size: 1.75em;
  }
  h2.hd-masthead-teaser {
    font-size: 1.35em;
  }

  #hdc-ga-translator select {
    height: 32px;
  }
}

@media screen and (max-width: 1500px) {
  h1.hd-masthead-ttl {
    font-size: 1.75em;
  }
  h2.hd-masthead-teaser {
    font-size: 1.275em;
  }
}

@media screen and (min-width: 1000px) and (max-width: 1100px) {
  #hd-game-wrap {
    background: url(../images/bg.jpg) center -100px no-repeat;
    background-size: cover;
  }
}

@media screen and (max-width: 1000px) {
  #hd-game-wrap {
    background: url(../images/bg-mob.jpg) center -80px no-repeat;
    background-size: cover;
    height: initial;
  }

  #hd-game-wrap.winner {
    background: url(../images/bg-mob-winner.jpg?v=4) center -150px no-repeat; /* DT */
    background-size: cover;
  }

}


.chars-wrap, /* Characters */
.foo-bg-wrap /* Footer bgs */ {
  position: fixed;
  z-index: 1;
  bottom: 80px;
  left: 0;
  right: 0;
}

.foo-bg-wrap /* Footer bgs */ {
  bottom: 80px;
}

.chars-wrap {
  bottom: 110px;
  z-index: 10;
}


/* Foo logos */
.hd-easter-foo {
  position: fixed;
  z-index: 200;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: white;
}

@media screen and (max-width: 768px) {
  .hd-easter-foo {
    position: relative;
    z-index: 100;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #B0E3F6;
    background: white;
  }
}
.hd-easter-foo-logos-wrap {
  padding: 0 10px 5px 10px;
  text-align: center;
  margin: auto;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
}
.hd-easter-foo-logos-wrap .hd-easter-foo-logo img {
  max-width: 70%;
}

.hd-easter-foo-logos-wrap .hd-easter-foo-logo.foo-logo-math img {
  position: relative;
  top: -7px;
}

@media screen and (min-width: 960px) {
  .hd-logo-wrap img {
    max-width: 150px;
  }
  .hd-easter-foo-logos-wrap {
    padding: 0 0 20px 0;
  }
  .hd-easter-foo-logos-wrap .hd-easter-foo-logo img {
    width: 150px;
    max-width: 150px;
  }
  .hd-info-area {
    margin-left: 15px;
  }

  .nrm-ppop-ttl-wrap {
    margin: 110px 12% 0 12%;
  }
}

/* Winner */

.winner-rainbow-wrap.active {
  display: contents;
}

.winner-rainbow-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.winner-rainbow-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
/*  clip-path: inset(0 100% 0 0); */
  clip-path: inset(0 0 0 100%);
  animation: winnerStars 1s ease-out forwards;
  mix-blend-mode: screen;
  position: absolute;
  top: 0;
  left: 0;
}

@media screen and (max-width: 768px) {
  .winner-rainbow-wrap img {
    height: 50%;
  }
}

/* Keyframe animation to "reveal" the image by expanding the mask */
@keyframes winnerStars {
  0% {
/*    clip-path: inset(0 100% 0 0); /* Start fully hidden */
    clip-path: inset(0 0 0 100%); /* Start fully hidden */
  }
  100% {
    clip-path: inset(0 0 0 0); /* Reveal entire image */
  }
}

.winning-blinking-1 {
  mix-blend-mode: screen;
  animation: blinkingWinnerStar 3.52s infinite;
}


.winning-blinking-2 {
  mix-blend-mode: screen;
  animation: blinkingWinnerStar 1.41s infinite;
}

.winning-blinking-3 {
  mix-blend-mode: screen;
  animation: blinkingWinnerStar 2.73s infinite;
}


@keyframes blinkingWinnerStar {
  0% {  opacity: 2; }
  50% {  opacity: -2; }
  100% {  opacity: 2; }
}
