@charset "UTF-8";

body {
  font-family: serif;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  touch-action: pan-x pan-y;
}

html {
  background-size: cover;
}

table {
  width: auto;
  height: auto;
  border-collapse: collapse;
  border-spacing: 0;
}

div {
  width: auto;
  height: auto;
  border-collapse: collapse;
  border-spacing: 0;
}

tr {
  width: auto;
  height: auto;
  border-collapse: collapse;
  border-spacing: 0;
}

th {
  width: auto;
  height: auto;
  border-collapse: collapse;
  border-spacing: 0;
  z-index: 0;
}

h1 {
  margin: 0 auto;
  color: rgb(72, 24, 72);
  padding: 0.2em;
  display: inline-block;
  line-height: 1.3;
  background: #bbb7da;
  vertical-align: middle;
  border: solid 5px rgb(72, 24, 72);
  border-radius: 25px 0px 0px 25px;
  font-size: 100%;
}

h1:before {
  content: "●";
  color: white;
  margin-right: 8px;
  width: 50px;
  height: 5vh;
}

#mainboard,
#playerActionboard {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}

#playerActionboard {
  margin-top: 7px;
  margin-bottom: 50px;
}

/*-----score-----*/
#scoreboard {
  text-align: center;
  width: 30vmin;
  height: 10vmin;
  position: fixed;
  top: 2%;
  right: 5%;
  margin: 0 auto;
}

#scoretext {
  color: #fff;
  margin: 0 auto;
  font-size: 150%;
}

/*-----gameend-----*/
#gameEndboard {
  text-align: center;
  width: auto;
  height: auto;
  position: fixed;
  margin-left: 3%;
  margin-right: 3%;
  bottom: 3%;
}

/*-----select-----*/
#selectMode_div {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

#playerNumber_select {
  width: 70px;
  height: min(5vh, 25px);
  text-align: center;
  font-family: serif;
  border: solid 3px rgb(31, 70, 245);
  background-color: rgb(122, 209, 253);
  border-radius: 0%;
  color: #000;
}

#readyButton {
  width: 100px;
  height: min(5vh, 25px);
  text-align: center;
  font-family: serif;
  border: solid 3px rgb(14, 126, 46);
  background-color: rgb(124, 222, 175);
  border-radius: 0%;
  color: #000;
}

#startButton {
  width: 100px;
  height: min(5vh, 25px);
  text-align: center;
  font-family: serif;
  border: solid 3px rgb(148, 32, 11);
  background-color: rgb(232, 124, 124);
  border-radius: 0%;
  color: #000;
}

/*-----maintable-----*/
.main_th {
  width: 11.111%;
  /*100/9*/
  height: 11.111%;
  margin: 0 auto;
  padding: 0 auto;
  border: dashed 2px rgb(93, 114, 91);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#main_table {
  width: 80vmin;
  height: 80vmin;
  margin-top: 5px;
  margin-left: auto;
  margin-right: auto;
  border: solid 7px rgb(72, 24, 72);
  background-image: url(img/background.png);
  background-size: contain;
  background-repeat: no-repeat;
}

/*-----infotable-----*/
.info_th {
  width: 55%;
  height: 25%;
  border: solid 3px black;
  margin: 0 auto;
  padding: 0 auto;
  background-color: #fff;
}

#info_table {
  width: 35vmin;
  height: 45vmin;
  margin-left: auto;
  margin-right: auto;
  border: solid 7px rgb(72, 24, 72);
}

/*-----actiontable-----*/
.action_th {
  width: 33.333%;
  /*100/3*/
  height: 33.333%;
  border: solid 3px black;
  margin: 0 auto;
  padding: 0 auto;
  background-color: #fff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 7vmin;
  color: #000;
}

#action_table {
  width: 45vmin;
  height: 45vmin;
  margin-left: 0;
  margin-right: auto;
  border: solid 7px rgb(72, 24, 72);
  background-color: #fff;
}

/*-----gameEndtable-----*/
#gameEnd_th {
  width: 100%;
  height: 100%;
  border: solid 3px black;
  margin: 0 auto;
  padding: 0 auto;
  background-color: #fff;
  z-index: 5;
  font-size: 8vmin;
}

#gameEnd_table {
  width: 100%;
  height: 100%;
  margin: auto;
}

/*---------------iPad----------------*/
@media only screen and (min-width: 450px) and (max-width: 1024px) {

  /*-----maintable-----*/
  #main_table {
    width: 75vmin;
    height: 75vmin;
    margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
    border: solid 7px rgb(72, 24, 72);
  }

  /*-----infotable-----*/
  #info_table {
    width: 35vmin;
    height: 30vmin;
    margin-left: auto;
    margin-right: 20px;
    border: solid 7px rgb(72, 24, 72);
  }

  /*-----actiontable-----*/
  .action_th {
    font-size: 5vmin;
  }

  #action_table {
    width: 30vmin;
    height: 30vmin;
    margin-left: 0;
    margin-right: auto;
    border: solid 7px rgb(72, 24, 72);
    background-color: #fff;
  }

  /*-----gameEndtable-----*/
  #gameEndboard {
    text-align: center;
    width: auto;
    height: auto;
    position: fixed;
    margin-left: 3%;
    margin-right: 3%;
    bottom: 8%;
  }
}

/*----------PC-----------*/
@media only screen and (min-width: 1025px) {
  span {
    display: flex;
  }

  .main_th {
    width: 11.111%;
    /*100/9*/
    height: 11.111%;
    margin: 0 auto;
    padding: 0 auto;
    border: dashed 2px rgb(93, 114, 91);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  #main_table {
    width: 80vmin;
    height: 80vmin;
    margin-top: 5px;
    margin-left: 5%;
    margin-right: auto;
    border: solid 7px rgb(72, 24, 72);
    background-image: url(img/background.png);
    background-size: contain;
    background-repeat: no-repeat;
  }

  #playerActionboard {
    width: 100%;
    height: auto;
    display: block;
    justify-content: center;
  }

  /*-----infotable-----*/
  .info_th {
    width: 55%;
    height: 25%;
    border: solid 3px black;
    margin: 0 auto;
    padding: 0 auto;
    background-color: #fff;
  }

  #info_table {
    width: 100%-80vmin;
    height: 40vmin;
    margin-left: auto;
    margin-right: auto;
    border: solid 7px rgb(72, 24, 72);
  }

  /*-----actiontable-----*/
  .action_th {
    width: 33.333%;
    /*100/3*/
    height: 33.333%;
    border: solid 3px black;
    margin: 0 auto;
    padding: 0 auto;
    background-color: #fff;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 7vmin;
    color: #000;
  }

  #action_table {
    width: 40vmin;
    height: 40vmin;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    border: solid 7px rgb(72, 24, 72);
    background-color: #fff;
  }

  /*-----gameend-----*/
  #gameEndboard {
    width: 100%;
    height: auto;
    position: fixed;
    margin-right: 0;
    bottom: 15%;
  }

  /*-----gameEndtable-----*/
  #gameEnd_th {
    width: 100%;
    height: 100%;
    border: solid 3px black;
    margin: 0 auto;
    padding: 0 auto;
    background-color: #fff;
    z-index: 5;
    font-size: 8vmin;
  }

  #gameEnd_table {
    width: 50%;
    height: 100%;
    margin: auto;
    margin-right: 1%;
  }
}