@font-face {
  font-family: Paytone One;
  src: url('../assets/fonts/PaytoneOne-Regular.ttf');
}

body {
  font-family: Paytone One;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

kbd {
  background-color: #eee;
  border-radius: 3px;
  border: 1px solid #b4b4b4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2),
    0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
  color: #333;
  display: inline-block;
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  white-space: nowrap;
}

.tutorial {
  background-color: #ccf3f0;
  border-radius: 25px;

  margin: 20px auto 10px 210px;
  width: 81.5%;
  box-shadow: 0px 7px 15px #00000029, 0 0 10px lightgray inset;
  border: 10px solid #ffffff;
  opacity: 1;
  padding: 20px;

  font-family: Paytone One;
  src: url('../assets/fonts/PaytoneOne-Regular.ttf');
  color: #042b60 !important;
}

.game {
  position: relative;
  margin-left: 180px;
}

.signButton {
  transition: 0.3s;
  position: absolute;
  display: none;
  border-radius: 5px;
  border: 3px solid #032654;
  background-color: transparent;
  width: 4vw;
  height: 7vw;
}

#sign_1 {
  right: 11%;
  top: 33%;
}

#sign_2 {
  right: 11%;
  top: 53%;
}

#sign_3 {
  right: 11%;
  top: 71%;
}

#controller {
  position: fixed;
  -webkit-backface-visibility: hidden;
  left: 10px;
  bottom: 30px;
  aspect-ratio: 1/1;
  display: none;
  grid-template-columns: 60px 60px 60px;

  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
}

.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  opacity: 0.8;
}

#controller * {
  -webkit-touch-callout: none !important;
}

#arr_up img {
  transform: rotate(90deg);
}

#arr_right img {
  transform: rotate(180deg);
}

#arr_down img {
  transform: rotate(270deg);
}

#closeGame {
  /* opacity: 0; */
  border: none;
  background-color: transparent;
  position: absolute;
  top: 5%;
  right: 5%;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

#closeGame > i {
  font-size: 30px;
  color: #042b60;
}

.drag-over {
  border: dashed 3px red;
}
#myCanvas {
  position: relative;
  /* max-width: 1440px;
  max-height: 786px; */
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  z-index: -100;
}
#div1 {
  display: inline-block;
  position: relative;
  top: -196px;
  left: 366px;
  font-size: 18px;
  width: 165px;
  height: 70px;
  padding: 10px;
  border: 19px solid #aaaaaa;
  height: 100px;
  z-index: 10000;
}
#div2 {
  position: relative;
  top: -170px;
  left: 500px;
  font-size: 18px;
  width: 165px;
  height: 70px;
  padding: 10px;
  border: 19px solid #aaaaaa;
  height: 100px;
  z-index: 10000;
}
#div3 {
  position: relative;
  top: -120px;
  left: 900px;
  font-size: 18px;
  width: 165px;
  height: 70px;
  padding: 10px;
  border: 19px solid #aaaaaa;
  height: 100px;
  z-index: 10000;
}

/* Popup box BEGIN */
.popupContainer {
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  display: none;
  height: 100%;
  position: fixed;
  font-size: 40px;
  text-align: center;
  top: 0;
  width: 100%;
  z-index: 10000;
}

.popupContainer > div {
  /* background-color: #fff;
  box-shadow: 10px 10px 0px #032654; */
  /* border: 5px solid #032654; */
  color: #032654;
  display: inline-block;
  height: auto;
  max-width: 551px;
  min-height: 100px;
  vertical-align: middle;
  width: 60%;
  position: relative;
  border-radius: 8px;
  padding: 15px 5%;
}

.popupBackground {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;

  clip-path: polygon(8% 13%, 100% 0%, 78% 100%, 0 92%);
  background-color: #032654;
}

.popupBackground::before {
  content: '';
  height: 100%;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95, 0.9);
  z-index: 1;

  clip-path: polygon(7% 15%, 99% 2%, 78% 99%, 0 90%);
  background-color: white;
}

#finish > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 80%;
  height: 90%;
  max-height: 90%;

  background-color: #00c0b5;
  border: 10px solid white;
  border-radius: 25px;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}

#finish > div > img {
  max-height: 80%;
}

.popupContainer .helper {
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.popupCloseButton {
  background-color: #fff;
  border: 3px solid #999;
  border-radius: 50px;
  cursor: pointer;
  display: inline-block;
  font-family: Paytone One;
  font-weight: bold;
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 25px;
  line-height: 30px;
  width: 30px;
  height: 30px;
  text-align: center;
}

.popupCloseButton:hover {
  background-color: #ccc;
}

.okButton {
  position: absolute;
  left: 50%;
  bottom: -50%;
  transform: translateX(-50%);
  font-family: Paytone One;
  padding: 10px 30px;
  background-color: #032654;
  color: white;
  box-shadow: 10px 10px 60px #555;
  border: 10px solid white;
  border-radius: 15px;
  font-size: 20px;
  font-weight: bolder;

  cursor: pointer;
}

#okFinish {
  position: relative;
  margin: 50px auto;
  transform: translateX(0%);
  left: 0%;
  bottom: 0%;
}

.sideInfo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  max-width: 40%;

  font-size: 3rem;
  font-weight: bolder;
}

#warning > h3 {
  font-size: 2em;
  text-align: center;
}

.d-none {
  display: none;
}