header {
  text-align: center;
  margin-top: 100px;
}

main {
  display: flex;
  width: 100%;
}

body {
  background-color: rgb(255, 243, 169);
  position: relative;
}

p {
  margin: 0;
  padding: 0;
}

*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
.sample {
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  background:#ccc;
}

/* body {
  min-height: 100vh;
  mobile viewport bug fix;
  min-height: -webkit-fill-available;
}
  */
/* html {
  height: -webkit-fill-available;
} */

/* .keisangame {
  height: 100vh;
} */


.title {
  /* outline: 1px solid red; */
  text-align: center;
  font-size: 50px;

}

.mode {
  margin: 0;
  font-size: 20px;
}

.bigbox{
  /* outline: 1px solid rgb(255, 108, 133); */
  margin: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;

}

.leftbox,.rightbox,.symbolbox,.equalbox,.inputbox{
  outline: 1px solid black;
  background-color: #fff;
  width: 100px;
  height: 100px;
  aspect-ratio: 1 / 1;
  margin-right: 10px;
  text-align: center;
  line-height: 100px;
  font-size: 50px;;
}

.maru {
  display: none;
}

.batu {
  display: none;
}

.inputbox {
  border: none;
}


.btnbox {
  /* outline: solid 1px rgb(255, 174, 13); */
  margin: 5px;
  height: 150px;
  text-align: center;
  line-height: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;


}

.btnbox.hidden {
  display: none;
}

.underbtn {
  /* outline: 1px solid rgb(77, 255, 0); */
  text-align: center;
  height: 30px;
  margin: 10px;
  position: relative;
   position: absolute;
  top:515px;
  right: 0;
  bottom: 0;
  left: 0;
}

.underbtn {
  display: flex;
  padding: 0 50px 0px 10px;
  align-items: center;
  justify-content: space-between;
}

.yamerubtn2.hidden {
  display: none;
}

.soundicon {
  position: relative;
}

.soundicon2 {
  position: absolute;
}

.soundicon2.hidden {
  display: none;
}



.topbtn {
  width: 70px;
  height: 30px;
  padding: 0px 5px 0px 5px;
  line-height: 30px;
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid black;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  margin: auto;
  text-align: center;
}

.topbtn.hidden {
  display: none;
}

.kara { 
  width: 100%;
}

.randombtn {
  /* outline: solid 1px paleturquoise; */
  border: 1px solid black;
  background-color: rgb(255, 192, 55);
  border-radius: 4px;

  flex-basis: 320px;
  padding: 15px 5px 15px 5px;
  font-size: 25px;
  cursor: pointer;
}

.subbtn {
  width: 100px;
  padding: 5px;
  margin: 5px;
  background-color: white;
  border: 1px solid black;
  border-radius: 4px;
  cursor: pointer;
}

.subbtn.push {
  background-color: rgb(220, 208, 182);
}

.subbtn.hidden {
  display: none;
}





/* タイマー */
#timetimer2 {
  /* outline: 1px solid green; */
  height: 30px;
  margin: 10px;
  line-height: 30px;
  text-align: center;
  position: absolute;
  top:475px;
  right: 0;
  bottom: 0;
  left: 0;
}


/* 答えがでるとこ */
.answerbox {
  /* outline: 1px solid rgb(118, 19, 125); */
  height: 70px;
  font-size: 50px;
  text-align: center;
  line-height: 70px;
  display: none;
  /* position: absolute;
  top: 750px;
  right: 0;
  bottom: 0;
  left: 0; */
  margin: 10px;
}

.answerbox.display {
  display: block;
}

/* カウント */
.count {
  /* outline: 2px solid black; */
  height: 40px;
  margin: 10px;
  text-align: center;
  font-size: 30px;
  display: none;
}

.count.display {
  display: block;
}



/* もうだめ */

.moudamebox {
  /* outline: 1px solid blue; */
  margin: 10px;
  height: 30px;
  text-align: center;
  display: none;
}




.moudame {
  background-color: white;
  text-align: center;
  display: none;
  border-radius: 2px;

  width: 60px;
  height: 20px;
  padding: 5px;
  line-height: 30px;
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid black;
  font-size: 13px;
  cursor: pointer;
}

.moudamebox.display {
  display: block;
}


/* やめるボタン */
.yamerubtn {
  margin: auto;
  text-align: center;

  width: 60px;
  height: 30px;
  padding: 5px;
  line-height: 20px;
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid black;
  font-size: 13px;
  cursor: pointer;

  display: none;
}

.yamerubtn.display {
  display: block;
}

 /* モーダルウィンドウ */

 #mask {
  background-color: rgba(0,0,0,0.4);
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  display: none;
}

#mordal {
  background-color: white;
  width: 300px;
  padding: 20px;
  border-radius: 4px;
  position: absolute;
  top: 300px;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  transition: transform 0.4s;
  transform: translate(0,-800px);
}

#btncontain {
  /* outline: 1px solid red; */
  width: 230px;
  padding: 20px;
  border-radius: 4px;

  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  transition: transform 0.4s;
  transform: translate(0,-700px);
}

.btn2 {
  background-color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 10px 5px 10px;
  width: 100px;
  margin-right: 10px;
 cursor: pointer;
}

#mask.display{
  display: block;
}

#mordal.display {
  transform: translate(0,0px);
}

#btncontain.display {
  transform: translate(0,0px);
}


#randombtn.hidden {
  display: none;
}

#moudame.display {
  display: inline;
}

/*--------------- 真ん中のピンク -----------------*/

@media (min-width: 770px) and (max-width: 800px) {
  body {
    background: rgb(251, 205, 212);
  }

  .title {
    font-size: 35px;
  }

  .leftbox,.rightbox,.symbolbox,.equalbox,.inputbox{
    background-color: white;
    width: 75px;
    height: 75px;
    text-align: center;
    line-height: 75px;
    font-size: 40px;;
  }


  .randombtn {
    /* outline: solid 1px paleturquoise; */
    flex-basis: 240px;
    height: 70px;
    padding: 15px 5px;
    font-size: 25px;
    border-radius: 4px;
    border: 0.5px solid black;
    background-color: rgb(230, 102, 124);
    color: rgb(243, 243, 243);
  }

  .subbtn {
    width: 75px;
    height: 35px;
    padding: 5px;
    margin: 5px;
  }

  .subbtn.push{
    background: rgb(229, 211, 214);
  }

}


/* --------------------小さい水色---------------------- */

@media (min-width: 0px) and (max-width: 770px) {
  body {
    background: rgb(185, 219, 233);
  }

  .title {
    font-size: 25px;
  }
  

  .leftbox,.rightbox,.symbolbox,.equalbox,.inputbox,.answerbox2,.answercontainer{
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 25px;
  }

  .answerbox2 {
    position: absolute;
    background-color: #fff;
    outline: 1px solid black;
    text-align: center;
  }

  .answercontainer {
    position: relative;
    margin: 0;
    padding: 0;
  }

  .maru {
    position: absolute;
    display: none;
  }

  .maru.display {
    display: block;
  }

  .batu {
    position: absolute;
    display: none;
  }

  .batu.display {
    display: block;
  }
  /* .answerbox {
    text-align: center;
    font-size: 25px;
  } */

  .randombtn {
    /* outline: solid 1px paleturquoise; */
    background-color: rgb(81, 198, 240);
    flex-basis: 170px;
    height: 60px;
    line-height: 18px;
    font-size: 18px;
  }

  .subbtn {
    width: 50px;
    height: 30px;
    margin-top: -30px;
  }

  .subbtn.push {
    background-color: rgb(195, 206, 210);
  }

  .underbtn {
    position: absolute;
    top:500px;
    right: 0;
    bottom: 0;
    left: 0;
  }

  #timetimer2 {
    position: absolute;
    top:500px;
    right: 0;
    bottom: 0;
    left: 0;
  }

  #timetimer2.hidden {
    display: none;
  }

  .underbtn {
    display: flex;
    padding: 0 5px 0px 5px;
    align-items: center;
    justify-content: space-between;
  }



  .yamerubtn.hidden{
    display: none;
  }

  .yamerubtn2 {
    opacity: 0.2;
  }

  .yamerubtn2.display {
    opacity: 1;
  }



  /* スタート画面のボタン集 */
  .btnbox {
    /* outline: solid 1px rgb(255, 174, 13); */
    margin: 5px;
    margin-top: 100px;
    height: 150px;
    text-align: center;
    line-height: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .btnbox.hidden {
    display: none;
  }
  


/* 問題の出る箱 */
  .bigbox{
    /* outline: 1px solid rgb(255, 108, 133); */
    margin: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
  }


  /* キーボード */
  .numdate {
    /* outline: 1px solid green; */
    margin: 0 auto;
    width: 250px;
    height: 200px;
    /* background-color: #fff; */
    display: none;
  }

  td {
    outline: 1px solid #ccc;
    background-color: #fff;
    width: 80px;
    height: 50px;
    text-align: center;
  }

  td:active {
    background-color: #ccc;
  }

  .numdate.display {
    display: block;
  }



  /* もうだめ */

.moudamebox {
  /* outline: 1px solid blue; */
  height: 30px;
  position: absolute;
  top: 420px;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: center;
  display: none;
}

/* 答えがでるとこ */
.answerbox {
  /* outline: 1px solid rgb(118, 19, 125); */
  height: 30px;
  font-size: 20px;
  text-align: center;
  line-height: 30px;
  display: none;
  position: absolute;
  top: 420px;
  right: 0;
  bottom: 0;
  left: 0;
}

.answerbox.display {
  display: block;
}
  


  /* カウント */
.count {
  /* outline: 2px solid black; */
  position: absolute;
  top:455px;
  right: 0px;
  bottom: 0;
  left: 0;
  text-align: center;
  font-size: 20px;
  line-height: 40px;
  display: none;
}

.count.display {
  display: block;
}


 /* モーダルウィンドウ */

#mordal {
  position: absolute;
  top: 200px;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  transition: transform 0.4s;
  transform: translate(0,-800px);
}


}


