@media (max-width: 767px) {
  .p-main.textbook-main {
    padding: 20px 10px;
  }
}

.p-main.textbook-main .p-bg {
  position: fixed;
}

.p-main .p-inner {
  padding: 60px 50px;
}

@media (max-width: 767px) {
  .p-main .p-inner {
    padding: 40px 20px;
  }
}

@media (max-width: 767px) {
  .p-main .p-retry {
    margin-top: 30px;
  }
}

.loader,
.loader:after {
  border-radius: 50%;
  width: 10em;
  height: 10em;
}

.loader {
  display: none;
  position: absolute;
  top: calc(50% - 13em);
  left: calc(50% - 5.5em);
  margin: 60px auto;
  font-size: 7px;
  border-top: 1.1em solid rgba(0, 0, 0, 0.2);
  border-right: 1.1em solid rgba(0, 0, 0, 0.2);
  border-bottom: 1.1em solid rgba(0, 0, 0, 0.2);
  border-left: 1.1em solid #ffffff;
  -webkit-transform: translate(-50%, -50%) translateZ(0);
  -ms-transform: translate(-50%, -50%) translateZ(0);
  transform: translate(-50%, -50%) translateZ(0);
  -webkit-animation: load8 1.1s infinite linear;
  animation: load8 1.1s infinite linear;
}

@-webkit-keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.textbook-content {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.textbook-block {
  padding: 0;
}

.textbook-block + .textbook-block {
  border-top: 1px solid #dedfe0;
}

.textbook-block.open .textbook-cate {
  background-color: #f2f3f5;
}

.textbook-block.open .textbook-cate::after {
  top: 45%;
  right: 26px;
  transform: rotate(135deg) translateY(-50%);
}

@media (max-width: 767px) {
  .textbook-block.open .textbook-cate::after {
    right: 21px;
  }
}

.textbook-block .textbook-cate {
  position: relative;
  padding: 20px 20px 20px 55px;
  background: #f7f8fa;
  font-size: 20px;
  line-height: 1.5;
  cursor: pointer;
  background: #f7f8fa url(../img/icon_book.svg) no-repeat top 26px left 20px;
  background-size: 20px auto;
}

.textbook-block .textbook-cate:hover {
  background-color: #f2f3f5;
}

.textbook-block .textbook-cate::after {
  display: block;
  position: absolute;
  top: 50%;
  right: 20px;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #4B4B4B;
  border-left: 2px solid #4B4B4B;
  transform: rotate(-45deg) translateY(-50%);
  content: '';
}

@media (max-width: 767px) {
  .textbook-block .textbook-cate {
    padding: 20px 35px 20px 40px;
    background-position: top 26px left 15px;
    background-size: 16px auto;
    font-size: 17px;
  }
  .textbook-block .textbook-cate::after {
    right: 16px;
    width: 8px;
    height: 8px;
  }
}

.textbook-list {
  display: none;
}

.textbook-list ul {
  list-style: none;
}

.textbook-item a {
  display: block;
  position: relative;
  padding: 25px 20px 25px 56px;
  font-size: 16px;
  text-decoration: none;
  background: url(../img/icon_pen.svg) no-repeat top 21px left 22px;
  background-size: 17px auto;
}

.textbook-item a:hover {
  opacity: 1;
  background-color: #f2f3f5;
}

@media (max-width: 767px) {
  .textbook-item a {
    padding: 25px 20px 25px 40px;
    background-position: top 21px left 15px;
    background-size: 15px auto;
  }
}

.textbook-modal {
  position: relative;
  z-index: 100;
}

.textbook-modal-block {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: scroll;
}

.textbook-modal-block .p-explain_background {
  z-index: 0;
}

.textbook-modal-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 5px;
}

.textbook-modal-content .p-explain_button {
  margin-top: 30px;
}
