@font-face {
  font-family: "Kroeger0765";
  src: url("./fonts/Kroeger0765.eot");
  src: url("./fonts/Kroeger0765.ttf") format("truetype");
  src: url("./fonts/Kroeger0765.woff") format("woff");
  -webkit-font-smoothing: antialiased;
}
@font-face {
  font-family: "PressStart2P";
  src: url("./fonts/PressStart2P-Regular.ttf");
  -webkit-font-smoothing: antialiased;
}
body,
html {
  padding: 0;
  margin: 0;
  flex-direction: column;
  position: relative;
  font-family: "PressStart2P";
  overflow: hidden;
  background: #000;
  align-items: center;
  justify-content: center;
  display: flex;
  height: 100%;
  width: 100%;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
* {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

iframe {
  padding: 0;
  overflow: hidden;
  height: 100vh;
  width: 100%;
}

audio,
audio:not([controls]) {
  display: none;
}

.game-wrapper {
  background-color: #f7f7f7;
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
}

#stage {
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
  z-index: 1;
  display: none;
  width: 100%;
  height: 100%;
}
#fireworksStage {
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.logo-wrapper {
  background-color: #1e57b8;
  color: #f7f7f7;
  border: 2px #fff solid;
  position: absolute;
  display: flex;
  flex-direction: column;
  z-index: 5;
  text-align: center;
  font-size: 1vw;
  filter: drop-shadow(0 0 3px #f7f7f7);
  -moz-border-radius: 9px;
  -webkit-border-radius: 9px;
  border-radius: 9px;
  top: 4.5%;
  left: 4.5%;
  padding: 10px;
  width: 12%;
  min-width: 139px;
  z-index: 1;
}

.logo-wrapper-image {
  display: block;
  width: 100%;
}

.hud {
  background-color: #1e57b8;
  color: #f7f7f7;
  border: 2px #fff solid;
  position: absolute;
  display: flex;
  flex-direction: column;
  z-index: 1;
  text-align: center;
  font-size: 1vw;
  filter: drop-shadow(0 0 3px #f7f7f7);
  -moz-border-radius: 9px;
  -webkit-border-radius: 9px;
  border-radius: 9px;
  top: 4.5%;
  right: 4.5%;
  padding: 10px;
}
.score-banner {
  text-transform: uppercase;
  margin: 10px 0 0;
}

.landing-screen {
  background-color: #0057b8;
  display: none;
  height: 100%;
  position: fixed;
  width: 100%;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  left: 0;
  right: 0;
  top: 0;
}

.rotate-device {
  background-color: #0057b8;
  display: none;
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.landing-headline {
  color: #fff;
  text-transform: uppercase;
  font-size: 6.5vw;
  text-align: center;
  line-height: 1.5;
  width: 55%;
}

.rotate-device-headline {
  color: #fff;
  text-transform: uppercase;
  font-size: 6.5vw;
  text-align: center;
  line-height: 1.5;
}

.rotate-img {
  display: block;
  width: 15%;
}

.landing-headline {
  font-size: 2vw;
  text-align: center;
  line-height: 1.5;
}

@media only screen and (max-width: 970px) {
  .landing-headline {
    font-size: 5vw;
  }
  .hud {
    font-size: 1.5vw;
  }
}

#bgText {
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 40%;
  display: none;
}

.deals-image {
  display: block;
  width: 100%;
}

.instructions-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  z-index: 6;
  background-image: url("instruction-background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
}

#countdown,
#startButton {
  cursor: pointer;
  width: 18%;
  height: 34%;
  background-image: url("start-button.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px 0;
  flex-direction: column;
}

#countdown {
  display: none;
}

.start-text {
  margin: 0;
  padding: 0;
  text-align: center;
  color: #369fdb;
  /*  text-transform: uppercase;*/
  width: 75%;
  font-size: 2vw;
  line-height: 1.2;
  text-shadow: 0px 0.15vw #2c7ae2;
}

.start-text2 {
  margin: 0;
  padding: 0;
  text-align: center;
  color: #369fdb;
  /*  text-transform: uppercase;*/
  width: 75%;
  font-size: 1.5vw;
  line-height: 1.2;
  text-shadow: 0px 0.15vw #2c7ae2;
}

.countdown-number {
  text-align: center;
  color: #369fdb;
  font-size: 3vw;
  margin-top: 10px;
  text-shadow: 0px 0.15vw #2c7ae2;
}

.instructions-text {
  margin: 0;
  padding: 0;
  text-align: center;
  color: #fff;
  width: 75%;
  line-height: 1.7;
  font-size: 1.5vw;
}

.instructions-cta-standard,
.instructions-cta-tct {
  display: none;
}

.standard .instructions-cta-standard,
.tct .instructions-cta-tct {
  display: block;
}

.logo-image {
  display: block;
  width: 17%;
}

#endScreen {
  text-align: center;
  z-index: 91;
  display: none;
  background-image: url("./end-game-bg.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  left: 0;
  right: 0;
  margin: auto;
  top: 0;
  bottom: 0;
  color: #fff;
  padding: 3.5% 6%;
  align-items: center;
  flex-direction: column;
}

.end-screen-headline {
  color: #baeefc;
  font-size: 1.7vw;
  text-transform: uppercase;
  margin: 0;
}

.end-screen-text {
  color: #dcf3fb;
  width: 80%;
  font-size: 1.1vw;
  text-align: center;
  margin: 8% auto;
  line-height: 1.3;
}

.exit-button:hover,
#endScreen #replay:hover {
  color: #f7f7f7;
}

.deals-button:hover {
  color: #baeefc;
}
.exit-button,
#endScreen #replay,
.deals-button {
  cursor: pointer;
  border: 0;
  outline: none;
  filter: drop-shadow(0 0 3px #f7f7f7);
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  text-transform: uppercase;
  font-size: 1vw;
  font-family: "PressStart2P", sans-serif;
  text-decoration: none;
}
#endScreen #replay {
  background-color: #baeefc;
  color: #1e57b8;
  padding: 2% 3%;
}

.tct .deals-button {
  display: none;
}

.deals-button {
  background-color: #1e57b8;
  padding: 2% 6.7%;
  margin-top: 3.5%;
  color: #f7f7f7;
  border: 2px #fff solid;
}

.exit-button {
  background-color: #baeefc;
  color: #000;
  padding: 2% 9%;
  margin-top: 3.5%;
}

#touch-controls {
  display: none;
  justify-content: space-between;
  position: absolute;
  width: 98.3%;
  bottom: 10px;
  left: 10px;
  height: 100%;
  z-index: 1;
}

#left-touch,
#right-touch {
  align-items: flex-end;
  display: flex;
  height: 100%;
  width: 50%;
}

#right-touch {
  justify-content: flex-end;
}

.right-arrow,
.left-arrow {
  display: none;
  height: 112px;
}

/* DC SPECIFIC STYLES */
#main-panel {
  display: flex;
  flex: 1;
  position: relative;
}
#collapsed-panel {
  width: 300px;
  height: 250px;
  position: absolute;
  top: 0;
  left: 0;
}
#collapsed-image {
  position: relative;
  z-index: 20;
  display: none;
}
#expand-button {
  position: absolute;
  width: 298px;
  height: 248px;
  cursor: pointer;
  top: 0;
  left: 0;
  z-index: 30;
  border: 1px solid #ccc;
}
#expanded-panel {
  display: none;
  position: relative;
}
/* ANIMATION */
#hover-animation {
  width: 100%;
  height: 100%;
  background-color: #000;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  z-index: 10;
}
#hover-animation #paddle {
  position: absolute;
  width: 100px;
  height: 22px;
  background-image: url("paddle.png");
  top: 220px;
  left: 100px;
  z-index: 99;
}
#hover-animation #ball {
  position: absolute;
  width: 20px;
  height: 20px;
  background-image: url("ball.png");
  top: 134px;
  left: -20px;
  z-index: 100;
}
#hover-animation .star {
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  border: 1px solid #fff;
  background-color: #fff;
  z-index: 20;
  position: absolute;
  opacity: 0.7;
}
#hover-animation .brick {
  width: 17px;
  height: 8px;
  background-image: url("brick.jpg");
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  position: absolute;
  z-index: 22;
}
#hover-animation #hover-cta {
  width: 216px;
  height: 159px;
  position: absolute;
  top: 43px;
  left: 48px;
  background-image: url("hover-cta.png");
  z-index: 40;
}
#hover-cta-text {
  position: absolute;
  bottom: 70px;
  width: 200px;
  left: 50%;
  margin-left: -94px;
  text-align: center;
  background-color: #86c43c;
  font-family: "PressStart2P", sans-serif;
  z-index: 50;
  padding-bottom: 2px;
}

/* DEBUG */
/*#debug { position: absolute; top: 10px; left: 10px; color: #FFF; z-index: 99999; background-color: #000; }*/
