@font-face {
  font-family: mamyFont;
  src: url(res/font.ttf);
}
* {
  font-family: mamyFont !important;
}

html,
body {
  overscroll-behavior-y: contain;
  overflow: hidden;
  touch-action: none;
}
canvas {
  touch-action: none;
  overflow: hidden;
}

body {
  background: black;
}

#canvas {
  margin-left: auto;
  margin-right: auto;
  transition: width 3s;
}

#gameRoot {
  touch-action: none;
  overflow: hidden;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

#gameBg {
  background-size: cover;
  padding: 0;
  transition: 3s;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}

@keyframes fade {
  from {
    opacity: 0%;
  }
  to {
    opacity: 100%;
  }
}

@keyframes drunkBlur {
  from {
    filter: blur(1px);
  }
  to {
    filter: blur(2px);
  }
}

@keyframes drunkShake {
  from {
    transform: scale(-1, 1) translate(-2%);
  }
  to {
    transform: scale(-1.01, 1) translate(2%);
  }
}

@keyframes clouds {
  from {
    background-position-x: 0, 0;
  }
  to {
    background-position-x: 0, 100%;
  }
}

@keyframes bgAnim {
  from {
    background-position-x: 0%;
    background-position-y: 0%;
  }

  to {
    background-position-x: 100%;
    background-position-y: 100%;
  }
}

@keyframes rotate {
  from {
    transform: rotate(-10deg);
  }

  to {
    transform: rotate(+10deg);
  }
}

@keyframes rotateRanking {
  from {
    transform: scale(1, -1) rotate(85deg);
  }

  to {
    transform: scale(1, -1) rotate(95deg);
  }
}

@keyframes quizScale {
  from {
    transform: scale(1) rotate(-1deg);
  }
  to {
    transform: scale(1.1) rotate(+1deg);
  }
}

@keyframes damage {
  from {
    color: white;
  }
  to {
    color: red;
  }
}

@keyframes bonus {
  from {
    color: white;
  }

  to {
    color: lightgreen;
  }
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

@keyframes scale {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.03);
  }
}

@keyframes signScale {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(2);
  }
}

.drunk {
  transform: scale(-1, 1);
}

.paused {
  filter: saturate(0%);
  transition: filter 1s !important;
}

.vignette {
  box-shadow: inset 0 0 2em 1em #000;
}

#scream {
  font-size: 100vmin;
  display: none;
  z-index: 2;
  animation: fade 2s;
}

html {
  margin: 0;
  padding: 0;
}
#fireworksContainer {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  touch-action: none;
}

.normalClouds {
  background-image: url("res/bg2.webp"), url("res/clouds.webp");
}
.bossClouds {
  background-image: url("res/bg2.webp"), url("res/redclouds.webp");
  box-shadow: inset 0 0 10em 4em rgb(126, 5, 5);
  filter: brightness(0.7) contrast(2) saturate(1.2);
}

.cloudAnimation {
  animation: clouds 120s infinite linear alternate;
}

header {
  margin-bottom: 5%;
}
#scoreCard {
  margin-right: 0%;
  background-color: rgba(250, 100, 0, 0.75);
  padding-right: 2%;
}

#scoreCard * {
  font-size: 11vmin !important;
  display: inline;
  color: white;
}
#mdlQuizMamy .w3-display-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#mdlQuizMamy button {
  display: block;
  color: black !important;
  font-weight: 800;
  font-size: 2em;
  width: 80%;
  margin-top: 5%;

  margin-left: auto;
  margin-right: auto;
  transition: 0.5s;
}

.mamyFall {
  transform: translate(0, 1800px) rotate(180deg);
  transition: 3s;
}

#quizLogo {
  animation: quizScale 1s infinite alternate;
}

#mdlQuizMamy button:focus {
  border: solid 10px green;
}

#mdlQuizMamy .w3-modal-content {
  animation: animateleft 1s;
  padding-left: 2%;
  padding-right: 2%;
  padding-top: 0%;
  width: fit-content;
}
#imgBigMamy {
  animation: animatezoom 1s;
}
.hoveredButton:hover {
  background-color: yellow !important;
  transform: scale(1.1);
}

.animatedIcons img {
  width: 32px;
  animation-name: rotate;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: linear;
}

.w3-modal-content {
  padding: 2%;
  text-align: center;
  background-image: url("res/banana-bg.png");
  animation: bgAnim 10s infinite linear, animatezoom 0.5s;
}

.damaged {
  animation-name: damage;
  animation-iteration-count: infinite;
  animation-duration: 0.3s;
  animation-direction: alternate;
}

.bonus {
  animation-name: bonus;
  animation-iteration-count: infinite;
  animation-duration: 0.3s;
  animation-direction: alternate;
}

p {
  font-size: 1.5em;
}

strong {
  display: inline-block;
  animation-name: scale;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.shake {
  animation-name: shake;
  animation-duration: 0.5s;
  animation-iteration-count: 12;
}

#swapSign {
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 999999;
  animation: signScale 0.33s linear infinite alternate;
  display: none;
}

.dancingMamy {
  animation: rotateRanking 1s infinite alternate;
  margin-right: 24px;
  width: 48px;
}

.stars {
  --percent: calc(var(--rating) * 100%);

  display: inline-block;
  font-size: 8em;
  font-family: Times !important;
  line-height: 1;
}

.stars::before {
  content: "★★★";
  letter-spacing: 3px;
  -webkit-text-fill-color: transparent;
  background: text
    linear-gradient(90deg, purple var(--percent), black var(--percent));
}

.toolTip {
  visibility: hidden;
  position: relative;
  bottom: 125%;
  transition: 0.5s;
}

.w3-button:hover .toolTip {
  visibility: visible;
}

#lstMissionRoot {
  margin-top: 2%;
}

#lstMissionRoot * {
  margin-top: 1%;
  margin-left: 1%;
}

#lstMissionRoot {
  display: flex;
  justify-content: center;
}
