/*--------------------------------------------------------------
Mixins
--------------------------------------------------------------*/
/* SCSS HEX */
/* Styling variables */
.container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-left: auto;
  margin-right: auto;
  max-width: 768px;
  width: 100%;
}

/* red-hat-display-regular - latin-ext_latin */
@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 400;
  src: local(""), url(/fonts/red-hat-display-v7-latin-ext_latin-regular.woff2?4afa089629773b09f50102f1acca5bbb) format("woff2"), url(/fonts/red-hat-display-v7-latin-ext_latin-regular.woff?755b165559234836ba7364c1b7145497) format("woff");
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* red-hat-display-700 - latin-ext_latin */
@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 700;
  src: local(""), url(/fonts/red-hat-display-v7-latin-ext_latin-700.woff2?e59c9167c39904f9229b5581fa54e629) format("woff2"), url(/fonts/red-hat-display-v7-latin-ext_latin-700.woff?6940934329cdc8c442e7e70426c36789) format("woff");
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* red-hat-mono-regular - latin */
@font-face {
  font-family: "Red Hat Mono";
  font-style: normal;
  font-weight: 400;
  src: local(""), url(/fonts/red-hat-mono-v3-latin-regular.woff2?8780dad38d5d1248e2330fe3e68e585d) format("woff2"), url(/fonts/red-hat-mono-v3-latin-regular.woff?7c2e7cb0590a7c31e395d3886699adeb) format("woff");
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* red-hat-mono-600 - latin */
@font-face {
  font-family: "Red Hat Mono";
  font-style: normal;
  font-weight: 600;
  src: local(""), url(/fonts/red-hat-mono-v3-latin-600.woff2?2f2a41f6a46e1d99bac365387d6b3797) format("woff2"), url(/fonts/red-hat-mono-v3-latin-600.woff?9e1a33618698593864dfad8ee773325b) format("woff");
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
.pause-btn, .mute-btn {
  cursor: pointer;
  padding: 5px;
}
.pause-btn svg, .mute-btn svg {
  height: 50px;
  width: auto;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #000;
}

.container {
  align-items: center;
  flex-grow: 1;
  grid-gap: 30px;
  height: 100%;
  justify-content: center;
}

.overlay {
  background: url(/images/BG_Wun_Game.jpg?fc9df60faf20b5cb525cf5222c2d500b) bottom center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  grid-gap: 30px;
  justify-content: center;
  left: 0;
  min-height: 100%;
  min-width: 100%;
  padding: 30px;
  position: absolute;
  top: 0;
  z-index: 100;
}

.hidden {
  display: none;
}

html, body {
  color: #fff;
  font-family: "Red Hat Display", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6667;
  overflow-x: hidden;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1rem;
}

ul {
  list-style: none;
}

li {
  margin: 0 0 0 30px;
}

a {
  color: #fff;
  text-decoration: none;
  transition: color 0.1s ease-out;
}
a:hover, a:focus {
  color: #fdc300;
  cursor: pointer;
  text-decoration: none;
}

p, li {
  font-size: 0.9375rem;
}
p b, p strong, li b, li strong {
  font-weight: 800;
}

p {
  margin: 0 0 1rem;
}

pre {
  color: #fff;
}

h1, h2, h3, h4, .h1, .countdown .number, .scores #score-form .submit-btn, .scores #score-form .name-wrapper input, .scores .score .points, .game-overlay.game-overlay--top .score-display #scoreText, .h2, .h3, .h4 {
  color: #fff;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin: 1rem 0 2rem;
  text-transform: uppercase;
  word-break: break-word;
}
h1 a, h2 a, h3 a, h4 a, .h1 a, .countdown .number a, .scores #score-form .submit-btn a, .scores #score-form .name-wrapper input a, .scores .score .points a, .game-overlay.game-overlay--top .score-display #scoreText a, .h2 a, .h3 a, .h4 a {
  color: #fff;
}

h1, .h1, .countdown .number, .scores #score-form .submit-btn, .scores #score-form .name-wrapper input, .scores .score .points, .game-overlay.game-overlay--top .score-display #scoreText {
  font-family: "Red Hat Display" "Red Hat Display", sans-serif;
  font-size: 50px;
  font-weight: 400;
  text-align: center;
  width: 100%;
}

h2, .h2 {
  font-size: 30px;
}

h3, .h3 {
  font-size: 20px;
}

h4, .h4 {
  margin-top: 0;
}
h4:before, .h4:before {
  display: none !important;
}

.outline {
  background: #fff;
  color: black;
}

@supports (-webkit-text-stroke: 1px #fff) {
  .outline {
    color: transparent;
    background: unset;
    -webkit-text-stroke: 1px #fff;
  }
}
footer {
  align-items: flex-end;
  display: flex;
  height: 50px;
  justify-content: space-between;
  position: relative;
  margin-top: auto;
  z-index: 10;
}
footer .socials {
  display: flex;
}
footer .socials a {
  line-height: 1;
  margin: 0;
}
footer .socials svg {
  fill: #fff;
  height: 50px;
  transition: fill 0.1s ease-out;
  width: 50px;
}
footer .socials svg:hover {
  fill: #fdc300;
}

.wun-logo {
  align-items: center;
  display: flex;
  height: 50px;
  justify-content: center;
  position: relative;
  z-index: 10;
}
.wun-logo svg {
  height: 100%;
  width: 100%;
}

.mute-btn.muted .sound-muted {
  display: block;
}
.mute-btn.muted .sound-on {
  display: none;
}
.mute-btn:not(.muted) .sound-muted {
  display: none;
}
.mute-btn:not(.muted) .sound-on {
  display: block;
}

.pause-btn {
  cursor: not-allowed;
}
.pause-btn svg path {
  fill: grey;
}
.pause-btn.paused .pause-icon {
  display: none;
}
.pause-btn.paused .play-icon {
  display: block;
}
.pause-btn:not(.paused) .pause-icon {
  display: block;
}
.pause-btn:not(.paused) .play-icon {
  display: none;
}

.life-bar {
  align-items: center;
  display: flex;
  height: 50px;
  justify-content: center;
  max-width: 100%;
  padding: 15px;
  width: 500px;
}
.life-bar .coffee-icon {
  flex-grow: 0;
  flex-shrink: 0;
}
.life-bar .coffee-icon svg {
  height: 50px;
  width: auto;
}
.life-bar .bar {
  flex-grow: 1;
  position: relative;
}
.life-bar .bar .background {
  display: flex;
  flex-wrap: nowrap;
  grid-gap: 10px;
}
.life-bar .bar .background .dash {
  background: white;
  border-radius: 2.5px;
  flex-basis: 0;
  flex-grow: 1;
  height: 5px;
}
.life-bar .bar .foreground {
  background: #fdc300;
  border-radius: 0.5rem;
  height: 1rem;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: width 0.667s linear;
}

body {
  margin: 0;
  padding: 0;
}

#container {
  background-image: url(/images/BG_Wun_Game.jpg?fc9df60faf20b5cb525cf5222c2d500b);
  background-position: center center;
  background-size: cover;
  height: 100%;
  width: 100%;
}

#container canvas {
  height: 100% !important;
  width: 100% !important;
}

.game-overlay {
  align-items: flex-end;
  display: flex;
  justify-content: center;
  left: 0;
  margin: 15px 0;
  position: fixed;
  width: 100%;
}
.game-overlay.game-overlay--top {
  top: 0;
}
.game-overlay.game-overlay--top .wrapper {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  padding: 15px;
  width: 500px;
}
.game-overlay.game-overlay--top .score-display {
  text-align: center;
}
.game-overlay.game-overlay--top .score-display #scoreText {
  color: #fdc300;
  font-family: "Red Hat Mono", monospace;
  margin: 0;
}
.game-overlay.game-overlay--top .pause-btn {
  opacity: 0;
}
.game-overlay.game-overlay--bottom {
  bottom: 0;
}
.game-overlay.hidden {
  display: none;
}

.start-screen {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.start-screen.hidden {
  display: none;
}
.start-screen .title {
  align-items: center;
  display: flex;
  height: 250px;
  justify-content: center;
  position: relative;
  width: 250px;
  z-index: 10;
}
.start-screen .title h1 {
  display: block;
  margin: 0;
}
.start-screen .title h1 :nth-child(1) {
  display: block;
  margin: 0;
  text-align: left;
}
.start-screen .title h1 :nth-child(2) {
  display: block;
  margin: 0;
  text-align: right;
}
.start-screen .background-video {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;
}
.start-screen .play {
  align-items: center;
  background: #fdc300;
  border: 2px solid transparent;
  border-radius: 40px;
  color: black;
  cursor: pointer;
  display: flex;
  height: 80px;
  justify-content: center;
  position: relative;
  margin: 10% 0;
  transition: all 0.1s ease-out;
  width: 80px;
  z-index: 10;
  -webkit-animation: playbtn-pulse 2.8s infinite;
          animation: playbtn-pulse 2.8s infinite;
}
.start-screen .play:hover, .start-screen .play:active, .start-screen .play:focus {
  background: transparent;
  border-color: #fdc300;
  color: #fdc300;
}
@-webkit-keyframes playbtn-pulse {
  0%, 25%, 40%, 85%, 100% {
    box-shadow: 0 0 0 2px #fdc300;
  }
  10% {
    box-shadow: 0 0 0 #fdc300;
  }
  15%, 30%, 45% {
    box-shadow: 0 0 0 5px #fdc300;
  }
}
@keyframes playbtn-pulse {
  0%, 25%, 40%, 85%, 100% {
    box-shadow: 0 0 0 2px #fdc300;
  }
  10% {
    box-shadow: 0 0 0 #fdc300;
  }
  15%, 30%, 45% {
    box-shadow: 0 0 0 5px #fdc300;
  }
}
.start-screen .fixed-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 0;
}
.start-screen .fixed-bg-wrapper .responsive-video {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1000;
  overflow: hidden;
}
.start-screen .fixed-bg-wrapper .responsive-video .fullscreen-video {
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.description-screen {
  align-items: center;
  background-color: black;
  cursor: pointer;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 999;
}
.description-screen.hidden {
  display: none;
}
.description-screen h2 {
  color: #fdc300;
}
.description-screen h2 + p {
  font-size: 1.125rem;
}
.description-screen img {
  max-height: 9.375rem;
}
.description-screen .description-wrapper {
  max-width: 31.25rem;
  padding: 0 1rem;
}
.description-screen .controls {
  display: flex;
  margin-bottom: 1rem;
}
.description-screen .controls > * {
  padding: 0 1rem;
  width: 50%;
}
.description-screen .controls > * svg {
  height: 6.25rem;
}

.game-over-view {
  align-items: center;
  background: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 0;
  min-height: 100vh;
  opacity: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}
.game-over-view .title {
  font-size: 10px;
  opacity: 0;
  white-space: nowrap;
  word-break: keep-all;
}

.scores {
  align-items: center;
  background-color: #fdc300;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  grid-gap: 30px;
  justify-content: center;
  max-width: 100%;
  min-width: max(70%, 300px);
  padding: 20px 40px;
}
.scores.hidden {
  display: none;
}
.scores h2 {
  color: black;
  margin: 0;
  text-transform: none;
}
.scores .highscore-list {
  align-items: center;
  display: flex;
  flex-direction: column;
  grid-gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.scores .highscore-list .highscore {
  display: flex;
  grid-gap: 20px;
  justify-content: center;
  letter-spacing: 0.1rem;
  margin: 0;
  padding: 0;
  width: 100%;
}
.scores .highscore-list .highscore .name {
  flex-basis: 0;
  flex-grow: 1;
  font-family: "Red Hat Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.4rem;
  min-width: 4rem;
  text-align: right;
  text-transform: uppercase;
  white-space: pre-wrap;
}
.scores .highscore-list .highscore .score {
  flex-basis: 0;
  flex-grow: 1;
  font-family: "Red Hat Mono", monospace;
  font-weight: 600;
  min-width: 4rem;
  text-align: left;
}
.scores .highscore-list .highscore.own-highscore {
  background: rgba(255, 255, 255, 0.3);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 15%, rgba(255, 255, 255, 0.3) 85%, rgba(255, 255, 255, 0) 100%);
}
.scores .score {
  display: block;
  text-align: center;
}
.scores .score .points {
  display: block;
  letter-spacing: 0.2rem;
  margin-bottom: 0;
  margin-top: 0;
}
.scores #score-form {
  align-items: center;
  display: flex;
  flex-direction: column;
  grid-gap: 1.2rem;
  justify-content: center;
}
.scores #score-form .name-wrapper {
  display: flex;
  padding: 0 1.8rem;
  position: relative;
}
.scores #score-form .name-wrapper input {
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  font-family: "Red Hat Mono", monospace;
  font-weight: 600;
  left: 0;
  letter-spacing: 2rem;
  margin: 0;
  outline: none !important;
  padding: 0;
  padding-left: 2rem;
  position: absolute;
  text-align: left;
  text-transform: uppercase;
  top: 0;
  width: calc(156px + 4rem);
}
.scores #score-form .name-wrapper .underscores {
  display: flex;
  grid-gap: 1.6rem;
  width: 160px;
}
.scores #score-form .name-wrapper .underscores .underscore {
  border-bottom: 2px solid #fff;
  height: 50px;
  width: 40px;
}
.scores #score-form .submit-btn {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 5px;
  box-shadow: none;
  cursor: pointer;
  margin: 15px 0;
  transition: box-shadow 0.1s ease-out;
  width: 162px;
}
.scores #score-form .submit-btn:hover {
  box-shadow: 0 0 5px #fff;
}
.scores p {
  color: black;
  font-weight: 400;
  text-align: center;
}
.scores .play {
  -webkit-animation: replay-pulse 2.8s infinite;
          animation: replay-pulse 2.8s infinite;
  align-items: center;
  background: #fff;
  border-radius: 60px;
  color: black;
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  font-weight: 800;
  height: 120px;
  justify-content: center;
  margin-bottom: -80px;
  margin-top: 1rem;
  text-align: center;
  width: 120px;
}
@-webkit-keyframes replay-pulse {
  0%, 25%, 40%, 85%, 100% {
    box-shadow: 0 0 0 2px #fff;
  }
  10% {
    box-shadow: 0 0 0 #fff;
  }
  15%, 30%, 45% {
    box-shadow: 0 0 0 5px #fff;
  }
}
@keyframes replay-pulse {
  0%, 25%, 40%, 85%, 100% {
    box-shadow: 0 0 0 2px #fff;
  }
  10% {
    box-shadow: 0 0 0 #fff;
  }
  15%, 30%, 45% {
    box-shadow: 0 0 0 5px #fff;
  }
}

.countdown {
  align-items: center;
  background: black;
  display: flex;
  height: 100vh;
  justify-content: center;
  position: fixed;
  width: 100%;
  z-index: 100;
}
.countdown .number {
  margin: 0;
  pointer-events: none;
}
