@font-face {
  font-family: Spartan;
  src: url(../css/Spartan-Regular.ttf);
}

* {
  font-family: Spartan;
  margin: 0;
  padding: 0;
}

/* iframe wrapper */
.wrapper {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

#map {
  height: 100%;
  width: 100%;
}

/* The Modal (background) */
.modal {
  width: 100%;
  background-color: rgba(0, 0, 0, 0);
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Modal Content */
.congrats {
  position: relative;
  background-color: #000000;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: fit-content;
  height: 20vh;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
  display: flex;
  align-items: end;
  justify-content: center;
  font-size: 10vh;
}

.congrats_in {
  text-align: center;
  background: linear-gradient(90deg,
      rgba(186, 148, 62, 1) 0%,
      rgba(236, 172, 32, 1) 20%,
      rgba(186, 148, 62, 1) 40%,
      rgb(255, 252, 219) 50%,
      rgba(186, 148, 62, 1) 60%,
      rgba(236, 172, 32, 1) 80%,
      rgba(186, 148, 62, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 100%;
  animation: shine 3s infinite;
  background-position: left;
}

@keyframes shine {
  0% {
    background-position: right
  }
}

.gameover {
  position: relative;
  background-color: #ff0000;
  color: white;
  margin: auto;
  border: 10px solid #888;
  width: fit-content;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
  padding: 5vh 5vw;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  font-size: 10vh;
}

.gameover_in {
  padding: 5vh 0vw;
}

.rmodal-footer {
  padding: 16px 16px;
  color: rgb(0, 0, 0);
}

/* Buttons */
.btn_1more {
  background-color: #ffffff;
  /* Green */
  border: none;
  color: rgb(0, 0, 0);
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 4vh;
  font-weight: bolder;
  transition-duration: 0.4s;
  cursor: pointer;
}

.btn_1more:hover {
  box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24),
    0 17px 50px 0 rgba(0, 0, 0, 0.19);
}

.btn_1more:focus {
  outline: none;
}

.btn_stop {
  background-color: #080c77;
  /* Green */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 4vh;
  font-weight: bolder;
  transition-duration: 0.4s;
  cursor: pointer;
}

.btn_stop:hover {
  box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24),
    0 17px 50px 0 rgba(0, 0, 0, 0.19);
}

.modesel {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.getname {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  gap: 20vh;
}

.role {
  display: flex;
  width: 50vw;
  justify-content: space-around;
  font-size: 2em;
}

input[type='radio'] {
  height: 2em;
  width: 2em;
}

.pin {
  display: flex;
  gap: 10px;
  font-size: 1em;
  height: 0;
}

.pin_holder {
  display: flex;
  gap: 10px;
  height: fit-content;
}

.getnamein {
  gap: 5px;
  display: flex;
  flex-flow: column;
  font-size: 2em;
}

.mapname {
  display: flex;
  gap: 10px;
}

.intro-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 100vw;
  height: 100vh;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-evenly;
}

.intro-body {
  padding: 2px 16px;
  display: flex;
  align-items: end;
  justify-content: center;
  font-size: 10vh;
}

.intro-footer {
  padding: 16px 16px;
  /* background-color: #5cb85c; */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.timer {
  font-size: 40px;
  color: black;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }

  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }

  to {
    top: 0;
    opacity: 1;
  }
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-body {
  padding: 2px 16px;
}

.modal-footer {
  padding: 16px 16px;
  /* background-color: #5cb85c; */
  color: white;
  display: flex;
  justify-content: center;
}

.rmodal-body {
  padding: 2px 16px;
  background-color: #ffffff;
  color: black;
}

.movestart {
  background-color: black;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  display: inline-block;
  font-size: 25px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
}

.movestart {
  display: none;
  background-color: white;
  color: black;
  border: 2px solid black;
}

.movestart:hover {
  background-color: black;
  color: white;
}

.control {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: white;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  width: 20vw;
}

.tilemap {
  width: 200px;
  height: 200px;
  background-color: #42aaee;
}


.tile-fsg {
  background-image: url("../assets/firestation2.png");
  background-size: cover;
}

.tile-tog {
  background-image: url("../assets/townhall.png");
  background-size: cover;
}

.tile-pog {
  background-image: url("../assets/postoffice.png");
  background-size: cover;
}

.tile-scg {
  background-image: url("../assets/elementaryschool.png");
  background-size: cover;
}

.tile-fag {
  background-image: url("../assets/factory.png");
  background-size: cover;
}

.tile-gsg {
  background-image: url("../assets/gasstation2.png");
  background-size: cover;
}

.tile-hog {
  background-image: url("../assets/hospital.png");
  background-size: cover;
}

.tile-lig {
  background-image: url("../assets/library.png");
  background-size: cover;
}

.tile-ong {
  background-image: url("../assets/onsen.png");
  background-size: cover;
}

.tile-shg {
  background-image: url("../assets/shrine.png");
  background-size: cover;
}

.tile-sug {
  background-image: url("../assets/sushi.png");
  background-size: cover;
}

.tile-psg {
  background-image: url("../assets/policestation.png");
  background-size: cover;
}

.tile-fog {
  background-image: url("../assets/forkspoon3.png");
  background-size: cover;
}

.tile-chg {
  background-image: url("../assets/cityhall.png");
  background-size: cover;
}

.tile-mug {
  background-image: url("../assets/museum.png");
  background-size: cover;
}

.tile-kog {
  background-image: url("../assets/koban.png");
  background-size: cover;
}

.tile-smg {
  background-image: url("../assets/supermarket.png");
  background-size: cover;
}

.tile-atg {
  background-image: url("../assets/atm.png");
  background-size: cover;
}

.tile-hsg {
  background-image: url("../assets/highschool.png");
  background-size: cover;
}

.tile-hlg {
  background-image: url("../assets/hotel.png");
  background-size: cover;
}

.tile-fmg {
  background-image: url("../assets/familystore.png");
  background-size: cover;
}

.tile-aeg {
  background-image: url("../assets/shopping.png");
  background-size: cover;
}

.tile-7eg {
  background-image: url("../assets/11eleven.png");
  background-size: cover;
}

.tile-lag {
  background-image: url("../assets/coffeestation.png");
  background-size: cover;
}