/*-----基礎-----*/
html{
  touch-action: none;
}

table{
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

tr{
  width: auto;
  height: auto;

}

p{
  text-align: center;
  margin: 0;
  margin-bottom: 1%;
}

#mainboard{
  width: 100%;
  height: auto;
}
/*----------*/

/*-----サイコロ-----*/
#dice_table{
  height: 150px;
  display: flex;
  justify-content: center;
}

.dice_css_heart{
  margin-left: auto;
  margin-right: auto;
  width:1px;
  height:1px;
}

.dice_heart{
  margin-left: -40px;
}

#dice_heart0{
  transform-style: preserve-3d;
  width:80px;
  height:80px;
  animation: turnAround0 11s linear 0s infinite normal none running;
}

#dice_heart1{
  transform-style: preserve-3d;
  width:80px;
  height:80px;
  animation: turnAround1 17s linear 0s infinite normal none running;
}

#dice_heart2{
  transform-style: preserve-3d;
  width:80px;
  height:80px;
  animation: turnAround2 13s linear 0s infinite normal none running;
}

#dice_heart3{
  transform-style: preserve-3d;
  width:80px;
  height:80px;
  animation: turnAround3 19s linear 0s infinite normal none running;
}

@keyframes turnAround0 {
  0%{
    transform:rotateX(0deg) rotateY(0deg);
  }
  100%{
    transform:rotateX(360deg) rotateY(360deg);
  }
}

@keyframes turnAround1 {
  0%{
    transform:rotateX(0deg) rotateY(0deg);
  }
  100%{
    transform:rotateX(360deg) rotateY(-360deg);
  }
}

@keyframes turnAround2 {
  0%{
    transform:rotateX(0deg) rotateY(0deg);
  }
  100%{
    transform:rotateX(-360deg) rotateY(360deg);
  }
}

@keyframes turnAround3 {
  0%{
    transform:rotateX(0deg) rotateY(0deg);
  }
  100%{
    transform:rotateX(-360deg) rotateY(-360deg);
  }
}

.dice_heart>div{
  position: absolute;
  width:100%;
  height:100%;
  background-color: rgb(174, 143, 113);
  border:solid 2px #efe3d4;
  font-size: 370%;
  text-align: center;
  text-decoration: underline;
  font-family: 'Times New Roman', Times, serif;
  color:#f8dbb8
}

.dice_top{
  transform: translateY(40px) rotateX(-90deg);
}

.dice_bottom{
  transform: translateY(-40px) rotateX(90deg) rotateZ(180deg);
}

.dice_front{
  transform: translateZ(40px) rotateZ(90deg);
}

.dice_back{
  transform: translateZ(-40px) rotateX(180deg) rotateZ(90deg);
}

.dice_left{
  transform: translateX(-40px) rotateY(-90deg) rotateZ(180deg);
}

.dice_right{
  transform: translateX(40px) rotateY(90deg) rotateZ(180deg);
}

.dice_scene{
  perspective: 1000px;
  width:0px;
  height:0px;
  margin-left:auto;
  margin-right: auto;
  margin-top: 50px;
}
/*----------*/

/*-----ネームプレート-----*/
.name_table{
  margin-top: 10px;
}

.name_tr{
  width: 100%;
  justify-content: center;
  display: flex;
}

.name_th{
  width: 100%;
  margin: auto 0;
}

.name_text{
  text-align: center;
  width: 80px;
}
/*----------*/

/*-----ボタン-----*/
button.button1 {
  font-size: 20px;
  padding: 5px 20px;
  background-color: #506493;
  color: #fff;
  border-radius: 5px;
  border-style:  solid;
  border-color: silver;
}

button.button1:hover {
  background-color: #97d3ef;
  color: #fff;
  border-color: silver;
}

button.button2 {
  font-size: 20px;
  padding: 5px 20px;
  background-color: #de8f2f;
  color: #fff;
  border-radius: 5px;
  border-style:  solid;
  border-color: silver;
}

button.button2:hover {
  background-color: #f0d391;
  color: #fff;
  border-color: silver;
}

button.button3 {
  font-size: 20px;
  padding: 5px 20px;
  background-color: #e34968;
  color: #fff;
  border-radius: 5px;
  border-style:  solid;
  border-color: silver;
}

button.button3:hover {
  background-color: #f1a2cc;
  color: #fff;
  border-color: silver;
}

.point_table{
  margin-top: 10px;
}

.point_tr{
  width: 100%;
  justify-content: center;
  display: flex;
}

.point_th{
  width: 100%;
  margin: auto 0;
}

.point_button1{
  text-align: center;
  width: 80px;
  height: 80px;
  font-size: 200%;
  margin: 0 auto;
  color: #4c5cf0;
  border-radius: 5px;
  background-color: #aeb2ee;
  border: #4c5cf0 solid;
}

.point_button2{
  text-align: center;
  width: 80px;
  height: 80px;
  font-size: 200%;
  margin: 0 auto;
  color: #1080ef;
  border-radius: 5px;
  background-color: #9dd3fa;
  border: #1080ef solid;
}

.point_button3{
  text-align: center;
  width: 80px;
  height: 80px;
  font-size: 200%;
  margin: 0 auto;
  color: #e1ad00;
  border-radius: 5px;
  background-color: #f4e98d;
  border: #e1ad00 solid;
}

.point_button4{
  text-align: center;
  width: 80px;
  height: 80px;
  font-size: 200%;
  margin: 0 auto;
  color: #6f33cf;
  border-radius: 5px;
  background-color: #e0a3f1;
  border: #6f33cf solid;
}
/*----------*/



/*-----スマホ用-----*/
@media screen and (max-width:480px){
  /*-----サイコロ-----*/
  #dice_table{
    height: 120px;
    display: flex;
    justify-content: center;
  }

  .dice_heart{
    margin-left: -25px;
  }
  
  #dice_heart0{
    transform-style: preserve-3d;
    width:50px;
    height:50px;
    animation: turnAround0 11s linear 0s infinite normal none running;
  }
  
  #dice_heart1{
    transform-style: preserve-3d;
    width:50px;
    height:50px;
    animation: turnAround1 17s linear 0s infinite normal none running;
  }
  
  #dice_heart2{
    transform-style: preserve-3d;
    width:50px;
    height:50px;
    animation: turnAround2 13s linear 0s infinite normal none running;
  }
  
  #dice_heart3{
    transform-style: preserve-3d;
    width:50px;
    height:50px;
    animation: turnAround3 19s linear 0s infinite normal none running;
  }

  .dice_heart>div{
    position: absolute;
    width:100%;
    height:100%;
    background-color: rgb(174, 143, 113);
    border:solid 1px #efe3d4;
    font-size: 220%;
    text-align: center;
    text-decoration: underline;
    font-family: 'Times New Roman', Times, serif;
    color:#f8dbb8
  }

  .dice_top{
    transform: translateY(25px) rotateX(-90deg);
  }
  
  .dice_bottom{
    transform: translateY(-25px) rotateX(90deg) rotateZ(180deg);
  }
  
  .dice_front{
    transform: translateZ(25px) rotateZ(90deg);
  }
  
  .dice_back{
    transform: translateZ(-25px) rotateX(180deg) rotateZ(90deg);
  }
  
  .dice_left{
    transform: translateX(-25px) rotateY(-90deg) rotateZ(180deg);
  }
  
  .dice_right{
    transform: translateX(25px) rotateY(90deg) rotateZ(180deg);
  }
  /*----------*/

  /*-----ネームプレート-----*/
  .name_text{
  text-align: center;
  width: 50px;
  }
  /*----------*/

  /*-----ボタン-----*/
  .point_button1{
    text-align: center;
    width: 50px;
    height: 50px;
    font-size: 120%;
    margin: 0 auto;
    color: #fff;
    border-radius: 5px;
    background-color: #8e93ed;
    border: #4c5cf0 solid;
  }
  
  .point_button2{
    text-align: center;
    width: 50px;
    height: 50px;
    font-size: 120%;
    margin: 0 auto;
    color: #fff;
    border-radius: 5px;
    background-color: #61bbfc;
    border: #1080ef solid;
  }
  
  .point_button3{
    text-align: center;
    width: 50px;
    height: 50px;
    font-size: 120%;
    margin: 0 auto;
    color: #fff;
    border-radius: 5px;
    background-color: #da95ee;
    border: #6f33cf solid;
  }
}