.card-modal {
  position: fixed;
  display: none;
  margin: 0 auto;
  width: 700px;
  height: 550px;
  top: calc(50vh - 275px);
  left: 0px;
  right: 0px;
  transform: translate(0px, -30px);
  transition: 0.5s ease;
  background: black;
  box-shadow: 0px 0px 10px 0px;
  z-index: 201;
  border-radius: 6px;

  opacity: 0;
}

.cm-inner {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 95%;
  padding: 20px 0px 20px 0px;
  color: black;
}

.cm-top-row {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 20px;
}

.three-dots {
  position: relative;
  display: none;
  float: left;
  width: 30px;
  height: 20px;
  z-index: 100;
}

.three-dot-dot {
  position: relative;
  display: inline-block;
  float: left;
  width: 4px;
  height: 4px;
  margin-right: 4px;
  background: white;
  border-radius: 50%;
  transition: 0.25s ease;
}

.close-card {
  position: absolute;
  display: inline-block;
  float: right;
  top: -10px;
  left: 98%;
  text-align: right;
  font-size: 11px;
  z-index: 202;
  cursor: pointer;
}

.close-bar {
  position: relative;
  display: block;
  margin: 0 auto;
  background: white;
  height: 2px;
  width: 15px;
  border-radius: 3px;
  margin-top: 5px;
  margin-bottom: 7px;
  transition: 0.5s;
}

.close-bar-1 {
  transform: rotate(45deg);
  top: 5px;
  background: white;
}

.close-bar-2 {
  transform: rotate(-45deg);
  top: -3px;
  background: white;
}

.cm-first-row {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 100%;
  padding: 0px;
  height: 80px;
}

.cm-top-col {
  position: relative;
  display: inline-block;
  float: left;
}

.ctc-l {
  padding-right: 1.5%;
  width: 13%;
}

.ctc-r {
  width: 85.5%;
}

.cm-gets-kanji {
  width: 100%;
  text-align: left;
  font-size: 40px;
  background: white;
  height: 70px;
  border-radius: 6px;
}

.kanji-p {
  position: relative;
  display: block;
  margin: 0 auto;
  padding: 5px 0px 0px 20px;
}

.cm-reading-col {
  position: relative;
  display: inline-block;
  float: left;
  width: 49%;
  height: 70px;
  border-radius: 6px;
  background: white;
}

.crc-l {
  margin-right: 1%;
}

.crc-r {
  margin-left: 1%;
}

.cm-label {
  position: relative;
  display: inline-block;
  float: left;
  width: 16px;
  padding: 4px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  font-size: 12px;
  line-height: 31px;
  background: gray;
  color: white;
}

.cm-gets-on {
  position: relative;
  display: inline-block;
  float: left;
  width: calc(100% - 24px);
  padding: 18px 0px 8px 0px;
}

.cm-gets-kun {
  position: relative;
  display: inline-block;
  float: left;
  width: calc(100% - 24px);
  padding: 18px 0px 8px 0px;
}

.onkun-p {
  position: relative;
  display: block;
  margin: 0 auto;
  font-size: 20px;
  padding-left: 20px;
}

.cm-second-row {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 100%;
  padding: 10px 0px 10px 0px;
  height: 350px;
  border-radius: 6px;
  background: white;
}

.cm-gets-examples {
  padding: 4px;
  overflow-y: scroll;
  height: 100%;
  scroll-behavior: smooth;
}

.cm-example-row {
  width: 95%;
  margin: 0 auto;
  display: block;
  padding: 20px 1% 20px 1%;
  border-bottom: 1px dashed rgb(93, 93, 93);
}

.cm-example {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
  cursor: pointer;
}

.cm-example-kanji {
  width: 50%;
  padding: 10px 0px 10px 0px;
  font-size: 20px;
  cursor: pointer;
}

.cm-example-reading {
  width: 50%;
  padding: 10px 0px 10px 0px;
  text-align: right;
  font-size: 20px;
  cursor: pointer;
}

.cm-example-english {
  width: 100%;
  cursor: pointer;
}

.cm-example-sentence {
  display: none;
  opacity: 0;
  width: 100%;
  transition: 0.3s ease;
  margin-top: 10px;
  line-height: 20px;
}

.cm-last-row {
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.modal-test-btn {
  position: relative;
  display: block;
  margin: 0 auto;
  padding: 8px 14px;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid white;
  background: none;
  color: white;
}

.set-modal {
  position: fixed;
  display: none;
  margin: 0 auto;
  width: 700px;
  height: 520px;
  transform: translate(0px, -30px);
  transition: 0.5s ease;
  background: black;
  box-shadow: 0px 0px 10px 0px;
  z-index: 200;
  border-radius: 6px;
  top: 150px;
  left: 0px;
  right: 0px;
  opacity: 0;
}

#gafu {
  position: absolute;
  z-index: 2;
  display: none;
}

.set-modal-title {
  position: relative;
  width: 100%;
  font-size: 18px;
  text-align: center;
  padding: 10px 0px 10px 0px;
  color: white;
}

.set-x {
  position: absolute;
  display: inline-block;
  float: right;
  top: 10px;
  right: 30px;
  text-align: right;
  font-size: 14px;
  z-index: 202;
  cursor: pointer;
}

.set-modal-inner {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 95%;
  padding: 20px 0px 20px 0px;
  color: black;
  z-index: 5;
}

.set-modal-kanji {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  transition: 0.25s ease;
  mix-blend-mode: difference;
}

.profile-modal {
  position: fixed;
  display: none;
  margin: 0 auto;
  top: calc(50vh - 300px);
  left: 0px;
  right: 0px;
  width: 700px;
  height: 600px;
  padding: 20px;
  transform: translate(0px, -30px);
  transition: 0.5s ease;
  background: white;
  box-shadow: 0px 0px 10px 0px;
  z-index: 201;
  border-radius: 6px;
  opacity: 1;
}

.profile-x {
  color: black;
}

@media (max-width: 800px) and (min-width: 225px) {
  .card-modal {
    width: 100%;
    border-radius: 1px;
    top: 0px;
    height: auto;
  }

  .new-card-modal {
    width: 100%;
    border-radius: 1px;
    top: 0px;
    height: auto;
  }

  .close-new {
    left: 97%;
  }

  .new-card-inner {
    width: 90%;
  }

  .cm-inner {
    width: 92%;
  }

  .close-card {
    left: 96%;
  }

  .close-bar {
    width: 20px;
  }

  .cm-first-row {
    position: relative;
    display: flex;
    margin: 0 auto;
    height: 100px;
    padding-top: 10px;
    margin-bottom: 10px;
  }

  .cm-top-col {
    position: relative;
    display: inline-block;
    float: left;
    padding-bottom: 10px;
  }

  .ctc-l {
    width: 28%;
    margin-right: 2.5%;
    padding: 0px;
  }

  .ctc-r {
    width: 69.5%;
    padding: 0px;
  }

  .cm-gets-kanji {
    height: 90px;
    text-align: center;
  }

  .kanji-para {
    display: none;
  }

  .kanji-p {
    font-size: 50px;
    padding: 5px 0px 0px 0px;
  }

  .cm-readings {
    height: 50px;
  }

  .cm-reading-col {
    width: 100%;
    height: 45px;
    margin-bottom: 10px;
    overflow-y: hidden;
  }

  .cm-reading-col::-webkit-scrollbar {
    width: 0 !important;
  }

  .crc-l {
    margin-right: 0%;
  }

  .crc-r {
    margin-left: 0%;
  }

  .cm-gets-kun {
    padding: 8px 0px 0px 0px;
  }

  .cm-gets-on {
    padding: 8px 0px 0px 0px;
  }

  .onkun-p {
    font-size: 16px;
    padding-left: 10px;
  }

  .cm-label {
    line-height: 16px;
    left: 1px;
  }

  .cm-second-row {
    width: 100%;
    height: 60vh;
  }

  .set-modal {
    position: fixed;
    top: 0%;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1px;
    z-index: 101;
  }

  .set-x {
    font-size: 20px;
  }

}
