/*基本設定*/
body {
  background-color: #ddffdd;
}
.main {
  padding-top: 1.0rem;
}
.noDisplay {display: none!important;}

/*リンクの色*/
a:link{color: #ff3333}
a:visited{color: #ff0099}
a:hover{color: #ff3366}
a:active{color: #ff6699}

p {
  color: #004400;
}
b, .b, strong .strong {
  color: #000099;
}

.cont {
  margin-left: auto;
  margin-right: auto;
}

.title_img {
  width: 80%;
  max-width: 480px;
  text-align: center;
}

.box {
  width: 700px;
  height: auto;
  margin: auto;
  padding: 10px 20px;
  background-color: #ffffcc;
  border-radius: 15px;
  position: relative;
}
@media screen and (max-width: 720px) {
  .box {
    width: 85%;
    padding: 2%;
    border-radius: 10px;
  }
}

.wrapper {
    margin: 0 0 30px;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.questionImg {
  width: 100%;
}

.kanji {
  background: #ffffff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  border: solid 1px #666666;
  border-radius: 15%;
  width: 17%;
  margin: 6px 1%;
  position: relative;
  cursor: pointer;
  box-shadow: 0 6px 0 #666666;
  transition: 0.3s;
  box-sizing: content-box;
}
.kanji::before {
  content: "";
  display: block;
  padding-top: 100%;
}
.kanji.pushed {
  cursor: inherit;
  -ms-transform: translateY(6px);
  -webkit-transform: translateY(6px);
  transform: translateY(6px);
  box-shadow: none;
}
.kanji.pushed::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 15%;
}
.kanji.pushed.correct::after {
  content: '';
  background-color: rgba(0,255,0,0.7);
}
.kanji.pushed.incorrect::after {
  content: '';
  background-color: rgba(160,0,0,0.7);
}

@media screen and (max-width: 720px) {
  .wrapper {
    margin: 0 0 2.0rem;
  }
  .kanji {
    margin: 5px 1%;
    box-shadow: 0 5px 0 #666666;
  }
  .kanji.pushed {
  -ms-transform: translateY(5px);
  -webkit-transform: translateY(5px);
  transform: translateY(5px);
  }
}
@media screen and (max-width: 480px) {
  .kanji {
    width: 28%;
    margin: 4px 1%;
    box-shadow: 0 4px 0 #666666;
  }
  .kanji.pushed {
  -ms-transform: translateY(4px);
  -webkit-transform: translateY(4px);
  transform: translateY(4px);
  }
}

.mordal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 420px;
  height: 70%;
  max-height: 200px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  background-color: rgba(189, 222, 243, 0.75);
  box-sizing: border-box;
  border: solid 0.2rem #68b0de;
  border-radius: 1.5rem;
  z-index: 100;
}
.retryMordal.reset {
  background-color: rgba(243, 189, 217, 0.75);
  border: solid 0.2rem #de689b;
}
.clearMordal {
  background-color: rgb(103, 255, 173, 0.75);
  border: solid 0.2rem #0a3619;
}
.mordal p {
  color: #003a5e;
  margin: 0;
  cursor: default;
}
.clearMordal p {
  font-weight: bold;
  color: #fff549;
  -webkit-text-stroke: 2px #0a3619;
  text-stroke: 2px #0a3619;
  font-size: 80px;
}
.retryMordal p {
  font-size: 50px;
}
.retryMordal.reset p {
  color: #5e0035;
}
.retryBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #003a5e;
  box-sizing: border-box;
  border-radius: 1.5rem;
  padding: 0 1.0rem;
  margin:0 0 0.25rem;
  cursor: pointer;
}
.retryMordal.reset .retryBtn {
  background-color: #5e0035;
}
.retryBtn p {
  font-size: 48px;
  color: #ffffff;
  margin-top: 0.5rem;
  cursor: pointer;
}
.retryMordal.reset .retryBtn p {
  color: #ffffff;
}
.retryBtn img {
  width: 40px;
  cursor: pointer;
}
.retryBtn:active {
  margin: 0.25rem 0 0;
}
.retryNumBox {
  margin: 0.5rem auto;
  cursor: default;
}
.retryNum {
  color: #003a5e;
  font-size: 1.6rem;
  font-weight: bold;
  font-family: Consolas, 'Courier New', Courier, Monaco, monospace;/*等幅フォント指定*/
  cursor: default;
}
.retryMordal.reset .retryNum {
  color: #5e0035;
}
@media screen and (max-width: 720px) {
  .clearMordal p {
    font-size: 60px;
  }
  .retryMordal p {
    font-size: 45px;
  }
  .retryBtn {
    font-size: 32px;
  }
  .retryBtn p {
    font-size: 32px;
  }
  .retryBtn img {
    width: 32px;
  }
}