@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  font-size: 16px;
}

ul, ol {
  list-style: none;
}

.hidden {
  display: none;
}

input {
  background-color: transparent;
  outline: 0 none;
  border: 0 none;
  font-size: 14px;
  font-weight: 400;
  color: #e07c09;
  display: inline-block;
  padding: 1em;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
}

input::placeholder {
  color: inherit;
  font-size: inherit;
  color: #fff;
  font-weight: 500;
}

.bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.btn {
  background-color: #fff;
  padding: .5em .8em;
  height: 44px;
  min-width: 44px;
  border-radius: 5px;
  font-weight: 700;
  color: #e07c09;
  transition: .2s;
  cursor: pointer;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  color: #fff;
  border: 1px solid #e07c09;
  background-color: #e07c09;
  box-shadow: none;
}

.btn.del {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  height: 20px;
  min-width: 20px;
  font-size: 12px;
}

.btn.toggle {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
}

.book_cover {
  margin: 1em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateY(0) skew(0);
  background-color: #854e14;
  width: 400px;
  height: 700px;
  border-radius: 0 20px 20px 0;
  perspective: 70em;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
  transition: 1s;
}

.book_cover .login_form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-bottom: 20em;
  position: inherit;
  top: 0;
  left: 0;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
}

.book_cover .login_form h2 {
  margin-bottom: 1em;
  color: #fff;
}

.book_cover .login_form .form {
  gap: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book_cover .login_form .form.on {
  display: none;
}

.book_cover.reset::after, .book_cover.reset .login_form {
  animation: openBookCover 2s linear;
  animation-fill-mode: forwards;
  animation-direction: reverse;
  animation-delay: 1s;
}

.book_cover.reset .book_page.spin:nth-of-type(1) {
  animation-delay: 1s;
  transform-origin: top left;
  animation: openPage01 1s linear;
  animation-fill-mode: forwards;
  animation-direction: reverse;
}

.book_cover.reset .book_page.spin:nth-of-type(2) {
  transform-origin: top left;
  animation: openPage02 2s linear;
  animation-fill-mode: forwards;
  animation-delay: 1s;
  animation-direction: reverse;
}

.book_cover.on::after, .book_cover.on .login_form {
  animation: openBookCover 2s linear;
  animation-fill-mode: forwards;
  animation-delay: 1s;
}

.book_cover.on .book_page.spin:nth-of-type(1) {
  transform-origin: top left;
  animation: openPage01 2s linear;
  animation-fill-mode: forwards;
  animation-delay: 2s;
}

.book_cover.on .book_page.spin:nth-of-type(2) {
  transform-origin: top left;
  animation: openPage02 2s linear;
  animation-fill-mode: forwards;
  animation-delay: 1s;
}

.book_cover::after {
  content: '';
  display: block;
  position: inherit;
  top: 0;
  left: 0;
  transform: rotateY(0);
  background-color: #854e14;
  transition: .5s;
  transform-origin: 0 0;
  border-radius: inherit;
  width: 100%;
  height: 100%;
  border-left: inherit;
  perspective: inherit;
  box-shadow: inherit;
}

.book_cover .book_page {
  position: absolute;
  padding: 1em;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotateY(0);
  width: 95%;
  height: 95%;
  border-radius: 0 20px 20px 0;
  background-color: #fff;
  perspective: 10em;
  border-left: 1px solid #f1f1f1;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 0, 0, 0.1) inset;
}

.book_cover .book_page .fst_page {
  transform: rotateY(180deg);
}

.book_cover .book_page .fst_page .title {
  padding: 1em 0;
  color: #e07c09;
  color: #854e14;
}

.book_cover .book_page .fst_page .title p {
  line-height: 1.3;
  text-align: right;
  font-size: 14px;
}

.book_cover .book_page .fst_page .toDoForm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.book_cover .book_page .fst_page .toDoForm input[type="text"] {
  flex: 1;
}

.book_cover .book_page figure {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 110px;
  z-index: 3;
}

.book_cover .book_page figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.book_cover .book_page .photo_card {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 70%;
}

.book_cover .book_page .photo_card img {
  overflow: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  border-radius: 20px;
}

.book_cover .book_page .photo_card img:nth-of-type(2) {
  z-index: 1;
  object-fit: cover;
  box-shadow: 5px 8px 8px rgba(0, 0, 0, 0.1);
}

.book_cover .book_page .list li {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  margin: .5em 0;
  border-bottom: 1px dotted #ccc;
}

.book_cover .book_page .list li span {
  display: flex;
  word-break: break-word;
  gap: inherit;
  line-height: 1.3;
}

.book_cover .book_page .list li span::before {
  content: '💛';
  width: 20px;
  height: 20px;
}

@keyframes openBookCover {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(-180deg);
  }
}

@keyframes openPage01 {
  0% {
    transform: translateY(-50%) rotateY(0);
    z-index: 2;
  }
  100% {
    transform: translateY(-50%) rotateY(-180deg);
    z-index: 3;
  }
}

@keyframes openPage02 {
  0% {
    transform: translateY(-50%) rotateY(0);
  }
  100% {
    transform: translateY(-50%) rotateY(-180deg);
    z-index: 1;
  }
}
