@import url("https://fonts.googleapis.com/css2?family=Bungee+Shade&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Fugaz+One&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Playball&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  max-width: 100%;
  user-select: none;
  touch-action: none;
}

body {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: none;
  overflow: hidden;
}

#canvas {
  transition: opacity 1s ease;
  width: 100%;
  height: 100vh;
}

#canvas2 {
  position: absolute;
  width: 100%;
  height: 100vh;
  z-index: -1;
  transition: opacity 2s ease;
}

.clickBtn {
  position: absolute;
  bottom: 11%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 40px;
  font-size: 23px;
  border-radius: 30px;
  outline: none;
  z-index: 99;
  font-family: Arial, Helvetica, sans-serif;
  /* font-family: "Bungee Shade", cursive; */
  cursor: pointer;
  animation: buttonAnim 1s infinite;
  background: linear-gradient(to right, #c1121f, #df8080, #c1121f);
  transition: all 0.2s linear;
  color: #fff;
  border: none;
}

@keyframes buttonAnim {
  0% {
    transform: translate(-50%, -50%) rotateZ(-2deg);
  }
  50% {
    transform: translate(-50%, -50%) rotateZ(2deg);
  }
  100% {
    transform: translate(-50%, -50%) rotateZ(-2deg);
  }
}

button:active {
  font-size: 21px;
}
.happyNewYear {
  position: absolute;
  color: #000;
  font-size: 25px;
  width: 150px;
  height: 150px;
  background: #bef6f7;
  border-radius: 50%;
  padding: 35px 21px;
  text-align: center;
  font-family: "Yantramanav", sans-serif;
}

.message {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Playball", cursive;
  font-size: 60px;
  opacity: 0;
  transition: opacity 2s ease;
  text-align: center;
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.chi,
.spa,
.eng,
.rus {
  opacity: 0;
  font-size: 50px;
}

.resources {
  width: 80%;
  position: absolute;
  bottom: 50px;
  color: #fff;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1.5em;
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
}

a:visited {
  color: #fff;
}

@media (max-height: 541px) {
  body {
    height: 90vh;
  }
  .clickBtn {
    bottom: 4%;
    padding: 15px 30px;
    font-size: 13px;
  }

  .clickBtn:active {
    font-size: 11px;
  }

  .resources {
    left: 80%;
    font-size: 10px;
  }
}
@media (max-width: 541px) {
  body {
    height: 90vh;
  }
  .clickBtn {
    bottom: 11%;
    padding: 15px 30px;
    font-size: 13px;
  }

  .clickBtn:active {
    font-size: 11px;
  }

  .eng,
  .chi,
  .spa,
  .rus {
    font-size: 35px;
  }
  .resources {
    font-size: 10px;
  }
  .happyNewYear {
    font-size: 15px;
    width: 85px;
    height: 85px;
    padding: 18px 10px;
  }
}
