@font-face {
  font-family: "nunito-sans";
  src: url("../font/NunitoSans-Regular.ttf");
  font-display: swap;
}

@font-face {
  font-family: "nunito-sans-bold";
  src: url("../font/NunitoSans-Bold.ttf");
  font-display: swap;
}

:root {
  --color-blue-dark: #000c1d;
  --color-black: #0d141c;
  --color-gray: #aaaab3;
  --color-gray-dark: #1f1f1f;
  --color-gold: #bfb48f;
  --color-gold-dark: #a9a082;
  --color-gold-darker: #93805a;
  --color-white: #dfdfe5;
  --color-button-hover: rgba(255, 255, 255, 0.1);
  --font-normal: nunito-sans;
  --font-title: nunito-sans-bold;
  --size-max-width: 1100px;
  --size-title: 2.5rem;
  --size-title2: 2.3rem;
  --size-subtitle: 1.6rem;
  --size-subtitle2: 1.3rem;
  --size-subtitle3: 1.1rem;
  --size-normal: 1rem;
}

h1,
h2 {
  letter-spacing: 2px;
  font-weight: 100;
}

a {
  cursor: pointer;
}

.do-page-wrapper {
  max-width: var(--size-max-width);
  width: 100%;
  margin: 0 auto;
  z-index: 1;
  position: relative;
  display: grid;
}

/* webnovel_home starts */

#do-webnovel-release {
  position: relative;
  display: grid;
  overflow-x: clip;
}

.do-webnovel-background {
  width: var(--size-max-width);
  z-index: -1;
  position: absolute;
  display: grid;
  justify-items: center;
  justify-self: center;
  align-items: center;
  height: 100%;
}

.do-webnovel-bg {
  grid-column-start: 2;
  height: 80%;
  position: absolute;
}

.do-webnovel-blur {
  width: 100%;
  height: 120%;
  backdrop-filter: blur(30px);
  position: absolute;
  z-index: -1;
}

.do-page-wrapper.webnovelhome,
.do-webnovel-background {
  grid-template-columns: 3fr 2fr;
  gap: 45px;
  padding: 120px 0;
}

.do-webnovel-wrapper {
  display: grid;
  gap: 25px;
  padding: 10px 0;
}

.do-webnovel-new {
  color: var(--color-gold);
  font-size: var(--size-subtitle);
  border-bottom: solid 2px var(--color-gold);
  padding-bottom: 20px;
}

.do-webnovel-new-title,
.do-novdetail-book-name {
  color: var(--color-gold);
  font-family: var(--font-title);
  font-size: var(--size-title2);
}

.do-webnovel-summary {
  font-size: var(--size-subtitle3);
  text-align: justify;
}

.do-webnovel-row {
  display: flex;
  gap: 60px;
}

.do-webnovel-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.do-webnovel-icon {
  height: 20px;
  width: 20px;
}

.do-webnovel-amount,
.do-novdetail-amount {
  font-size: var(--size-normal);
}

.do-webnovel-button,
.do-novdetail-button,
.do-novchapter-button {
  border-radius: 4px;
  color: var(--color-gold);
  border: solid 1.5px var(--color-gold);
  text-align: center;
  width: 200px;
  padding: 10px;
  margin-top: 10px;
  font-size: var(--size-subtitle2);
}

.do-webnovel-button:hover {
  background-color: var(--color-button-hover);
}

.do-webnovel-contain,
.do-webdetail-contain {
  height: 100%;
  width: 100%;
  position: relative;
}

.do-webnovel-cover,
.do-webdetail-cover {
  height: 100%;
  width: 100%;
  object-fit: contain;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
}

.do-webnovel-title,
.do-novdetail-title {
  font-size: var(--size-title);
  color: var(--color-gold);
  border-bottom: solid 2px var(--color-gold);
  padding-bottom: 20px;
}

.do-webnovel-search {
  display: flex;
  border: solid 2px var(--color-gold);
  border-radius: 50px;
  padding: 5px 20px;
  margin-top: 20px;
  gap: 10px;
}

.do-webnovel-input {
  background-color: unset;
  border: none;
  flex: 1;
}

.do-webnovel-input:focus {
  outline: none;
}

.do-webnovel-search-icon {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.do-webnovel-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 60px 100px;
  margin: 40px 0;
}

.do-webnovel-item {
  display: grid;
  gap: 30px;
  grid-template-rows: 1fr 55px;
}

.do-webnovel-book {
  width: 100%;
  height: 100%;
  object-fit: contain;
  justify-self: center;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

.do-webnovel-item:hover .do-webnovel-book {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

.do-webnovel-name {
  color: var(--color-gold);
  text-align: center;
  font-size: var(--size-subtitle2);
  font-family: var(--font-title);
}

/* webnovel_home ends */

/* webnovel_detail starts */

#do-novdetail-featured {
  position: relative;
}

#do-novdetail-featured:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 1px);
  background: linear-gradient(rgba(0, 12, 29, 1),
      rgba(0, 12, 29, 0) 250px,
      rgba(0, 12, 29, 0) 50%,
      rgba(0, 12, 29, 0) 250px,
      rgba(0, 12, 29, 1));
}

.do-novdetail-background {
  width: 100%;
  z-index: -1;
  position: absolute;
  display: grid;
  justify-items: center;
  justify-self: center;
  align-items: center;
  height: 100%;
}

.do-novdetail-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.do-webdetail-blur {
  width: 100%;
  height: 100%;
  backdrop-filter: blur(20px);
  position: absolute;
  z-index: -1;
}

.do-page-wrapper.novdetail {
  display: grid;
  grid-template-columns: 1fr 4fr;
  padding: 120px 0;
  gap: 30px;
}

.do-novdetail-book-image {
  height: 200px;
}

.do-novdetail-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  padding: 25px 35px;
  border: solid 2px var(--color-gold);
  background-color: rgba(0, 13, 31, 0.62);
  row-gap: 15px;
  align-items: center;
}

.do-novdetail-book {
  display: grid;
  gap: 5px;
}

.do-novdetail-book-author {
  font-size: var(--size-normal);
  opacity: 0.8;
}

.do-novdetail-row {
  display: flex;
  gap: 40px;
  justify-content: flex-end;
  align-self: flex-start;
}

.do-novdetail-info {
  display: flex;
  gap: 10px;
  align-items: center;
}

.do-novdetail-icon {
  width: 20px;
  height: 20px;
}

.do-novdetail-summary {
  grid-column-start: span 2;
  font-size: var(--size-subtitle3);
  text-align: justify;
}

.do-novdetail-row2 {
  grid-column-start: span 2;
  display: flex;
  gap: 60px;
}

.do-novdetail-button {
  grid-column-start: span 2;
  background-color: var(--color-blue-dark);
}

.do-novdetail-button:hover,
.do-novchapter-button:hover {
  background-color: var(--color-button-hover);
}

.do-novdetail-container {
  display: grid;
  margin-bottom: 40px;
}

.do-novdetail-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  border-bottom: solid 1.5px rgba(255, 255, 255, 0.15);
  padding: 20px;
  align-items: center;
  gap: 10px;
}

.do-novdetail-number {
  font-family: var(--font-title);
  font-size: var(--size-subtitle);
  color: var(--color-gold);
}

.do-novdetail-name {
  font-size: var(--size-subtitle);
}

.do-novdetail-item:hover .do-novdetail-name {
  color: var(--color-gold);
}

.do-novdetail-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.do-novdetail-info2 {
  display: flex;
  gap: 10px;
  align-items: center;
}

.do-novdetail-icon2 {
  width: 25px;
  height: 25px;
  align-self: center;
}

.do-novdetail-amount2 {
  font-size: var(--size-subtitle3);
  color: var(--color-gold);
}

/* webnovel_detail ends */

/* webnovel_chapter starts */

.do-novchapter-bg {
  position: fixed;
  height: 100vh;
  width: 100vw;
  object-fit: cover;
  z-index: -1;
}

.do-novchapter-blur {
  height: 100vh;
  width: 100vw;
  position: fixed;
  backdrop-filter: blur(30px);
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.5);
}

#do-novchapter-story {
  padding: 120px 0 30px;
  background: linear-gradient(var(--color-blue-dark),
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 0) 90%,
      var(--color-blue-dark));
}

.do-page-wrapper.novchapter {
  display: grid;
  gap: 30px;
  max-width: 95%;

}

.do-novchapter-book {
  text-align: center;
  color: var(--color-gold);
  font-size: var(--size-title);
  font-family: var(--font-title);
}

.do-novchapter-wrapper {
  display: grid;
  justify-self: center;
  background-color: var(--color-black);
  border: solid 2px var(--color-gray-dark);
  padding: 40px;
}

.do-novchapter-chapter {
  font-size: var(--size-subtitle);
  color: var(--color-gray);
  padding-bottom: 20px;
}

.do-novchapter-paragraph,
.do-novchapter-wrapper span {
  text-align: justify !important;
  color: var(--color-gray) !important;
  font-size: var(--size-normal) !important;
}

#do-novchapter-commentsection {
  background-color: var(--color-blue-dark);
}

.do-novchapter-information {
  display: flex;
  justify-content: space-between;
}

.do-novchapter-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.do-novchapter-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.do-novchapter-icon {
  width: 40px;
  height: 40px;
}

.do-novchapter-icon.like {
  cursor: pointer;
}

.do-novchapter-amount {
  color: var(--color-gold);
  font-size: var(--size-subtitle2);
}

.do-novchapter-buttons {
  display: flex;
  gap: 20px;
}

.do-novchapter-button {
  margin-top: 0;
}

.do-novchapter-separator {
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
}

.do-novchapter-wrapper-reply {
  display: none;
}

.do-novchapter-wrapper2,
.do-novchapter-wrapper-reply.active {
  display: grid;
  gap: 20px;
}

.do-novchapter-commenttext {
  background-color: transparent;
  color: var(--color-gray);
  border: solid 1.5px var(--color-gray);
  border-radius: 4px;
  outline: none;
  resize: none;
  min-height: 100px;
  padding: 10px;
  font-size: var(--size-subtitle3);
}

.do-novchapter-commenttext:focus {
  background-color: rgba(0, 0, 0, 0.5);
}

.do-novchapter-commentbutton {
  background-color: var(--color-gold-dark);
  font-size: var(--size-subtitle3);
  width: 150px;
  text-align: center;
  justify-self: flex-end;
  border-radius: 4px;
  padding: 10px;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
}

.do-novchapter-commentbutton:hover {
  background-color: var(--color-gold-darker);
}

.do-novchapter-container {
  padding-bottom: 70px;
  display: grid;
  gap: 10px;
}

.do-novchapter-item {
  display: grid;
  gap: 10px;
  padding: 20px 0;
  border-bottom: solid 1.5px rgba(255, 255, 255, 0.15);
}

.do-novchapter-prof {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
}

.do-novchapter-faction {
  height: 50px;
  width: 50px;
  grid-row-start: span 2;
  border: solid 1px #bfb48f50;
}

.do-novchapter-username,
.do-novchapter-comment {
  color: var(--color-gray);
  font-size: var(--size-subtitle3);
}

.do-novchapter-date {
  color: var(--color-gray);
  font-size: 0.8rem;
  opacity: 0.8;
}

.do-novchapter-reply-row {
  display: flex;
  gap: 20px;
}

.do-novchapter-reply,
.do-novchapter-delete {
  color: var(--color-gray);
  font-size: 0.8rem;
  opacity: 0.7;
  cursor: pointer;
  background-color: unset;
  border: none;
}

.do-novchapter-reply {
  font-family: var(--font-title);
  opacity: 0.8;
}

.do-novchapter-reply:hover,
.do-novchapter-delete:hover {
  opacity: 1;
}

.do-novchapter-comment-guide {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--size-subtitle3);
  padding: 20px 0;
  text-align: center;
}

.do-novchapter-comment-guide a {
  color: var(--color-white);
  color: rgba(255, 255, 255, 0.7);
}

.do-novchapter-overlay {
  display: none;
}

.do-novchapter-overlay.active {
  z-index: 3;
  height: 100vh;
  width: 100vw;
  background-color: #00000090;
  position: fixed;
  display: flex;
  align-items: center;
}

.do-novchapter-popup {
  /* background-color: #0c192b; */
  background-color: var(--color-blue-dark);
  /* border: solid 1.5px var(--color-gold); */
  box-shadow: 0 0 5px var(--color-gold);
  width: calc(100vw - 10%);
  max-width: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: auto;
  align-items: center;
  justify-items: center;
  border-radius: 5px;
  padding: 50px;
  gap: 30px;
}

.do-novchapter-confirm {
  grid-column-start: span 2;
  font-family: var(--font-title);
  font-size: var(--size-subtitle);
  letter-spacing: 1.5px;
}

.do-novchapter-comment-delete,
.do-novchapter-comment-cancel {
  width: 90%;
  height: 40px;
  border-radius: 5px;
  letter-spacing: 1px;
  font-size: var(--size-subtitle3);
  border: solid 1.5px var(--color-gray);
  background-color: unset;
  cursor: pointer;
}

.do-novchapter-comment-delete {
  border: none;
  background-color: #cb2929;
  color: var(--color-white);
}

.do-novchapter-comment-delete:hover {
  background-color: #ae1010;
}

.do-novchapter-comment-cancel:hover {
  background-color: #ffffff15;
}

/* webnovel_chapter ends */

/* SMALL DESKTOP */
@media screen and (max-width: 1100px) {
  :root {
    --size-max-width: 850px;
  }

  /* webnovel_home starts */
  .do-webnovel-container {
    gap: 60px;
  }

  /* webnovel_home ends */

  /* webnovel_detail starts */
  .do-page-wrapper.novdetail {
    grid-template-columns: 1fr 3fr;
    gap: 20px;
  }

  /* webnovel_detail ends */
}

/* TABLET*/
@media screen and (max-width: 855px) {
  :root {
    --size-max-width: 700px;
  }

  /* webnovel_home starts */
  .do-page-wrapper.webnovelhome,
  .do-webnovel-background {
    grid-template-columns: 3fr 2fr;
  }

  .do-webnovel-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .do-webnovel-name {
    font-size: var(--size-subtitle);
  }

  /* webnovel_home ends */

  /* webnovel_detail starts */
  .do-page-wrapper.novdetail {
    grid-template-columns: 1fr 1fr;
  }

  .do-novdetail-wrapper {
    padding: 25px 35px;
  }

  .do-novdetail-book {
    order: 1;
  }

  .do-novdetail-book-name {
    font-size: var(--size-subtitle);
  }

  .do-novdetail-summary {
    grid-column-start: auto;
    order: 2;
    font-size: var(--size-normal);
  }

  .do-novdetail-row {
    order: 3;
    justify-self: flex-start;
    gap: 30px;
  }

  .do-novdetail-row2 {
    grid-column-start: auto;
    order: 4;
    gap: 30px;
  }

  .do-novdetail-button {
    grid-column-start: auto;
    order: 5;
  }

  .do-novdetail-amount {
    min-width: 100px;
  }

  /* webnovel_detail ends */

  /* webnovel_chapter starts */
  .do-novchapter-detail {
    gap: 35px;
  }

  .do-novchapter-button {
    width: 150px;
  }

  .do-novchapter-icon {
    width: 35px;
    height: 35px;
  }

  /* webnovel_chapter ends */
}

/* MOBILE PHONE*/
@media screen and (max-width: 540px) {
  :root {
    --size-max-width: 450px;
    --size-title: 2.3rem;
  }

  /* webnovel_home starts */
  .do-page-wrapper.webnovelhome,
  .do-webnovel-background {
    grid-template-columns: 1fr;
  }

  .do-webnovel-contain {
    order: 1;
  }

  .do-webnovel-wrapper {
    order: 2;
  }

  .do-webnovel-cover,
  .do-webdetail-cover {
    position: relative;
    width: 300px;
  }

  .do-page-wrapper.webnovelhome {
    padding-bottom: 50px;
  }

  .do-webnovel-container {
    gap: 10px 40px;
  }

  .do-webnovel-item {
    gap: 15px;
  }

  .do-webnovel-name {
    font-size: var(--size-subtitle3);
  }

  .do-webnovel-bg {
    grid-column-start: auto;
    height: 50%;
    position: absolute;
    width: 100%;
    object-fit: cover;
    top: 0;
    padding-top: 120px;
  }

  /* webnovel_home ends */

  /* webnovel_detail starts */
  .do-page-wrapper.novdetail {
    grid-template-columns: 1fr;
    padding-bottom: 50px;
  }

  .do-novdetail-number {
    font-size: var(--size-subtitle2);
  }

  .do-novdetail-name {
    font-size: var(--size-subtitle2);
  }

  .do-novdetail-detail {
    gap: 15px;
  }

  .do-novdetail-info2 {
    display: flex;
    gap: 8px;
  }

  .do-novdetail-icon2 {
    width: 20px;
    height: 20px;
  }

  /* webnovel_detail ends */

  /* webnovel_chapter starts */

  .do-novchapter-popup {
    width: calc(100vw - 30%);
  }

  .do-novchapter-chapter {
    font-size: var(--size-subtitle2);
    text-align: center;
  }

  .do-novchapter-wrapper {
    padding: 15px;
  }

  .do-novchapter-information {
    display: grid;
    gap: 30px;
    justify-content: inherit;
  }

  .do-novchapter-buttons {
    order: 1;
    justify-content: space-between;
  }

  .do-novchapter-button {
    padding: 6px;
  }

  .do-novchapter-icon {
    width: 30px;
    height: 30px;
  }

  .do-novchapter-detail {
    order: 2;
    display: flex;
  }

  .do-novchapter-button.next {
    justify-self: flex-end;
  }

  .do-novchapter-container {
    padding-bottom: 30px;
  }

  /* webnovel_chapter ends */
}

@media screen and (max-width: 430px) {
  :root {
    --size-max-width: 360px;
    --size-title: 2.1rem;
    --size-title2: 1.9rem;
    --size-normal2: 0.8rem;
  }

  /* webnovel_home starts */
  .do-webnovel-cover,
  .do-webdetail-cover {
    width: 100%;
  }

  .do-webnovel-button {
    width: 150px;
    font-size: var(--size-subtitle3);
  }

  .do-webnovel-item {
    grid-template-rows: 1fr 80px;
  }

  /* webnovel_home ends */

  /* webnovel_detail starts */
  .do-novdetail-wrapper {
    padding: 25px;
  }

  .do-novdetail-number {
    font-size: var(--size-subtitle3);
  }

  .do-novdetail-name {
    font-size: var(--size-subtitle3);
  }

  /* webnovel_detail ends */

  /* webnovel_chapter starts */
  .do-novchapter-popup {
    width: auto;
    gap: 30px 10px;
  }

  .do-novchapter-paragraph {
    font-size: var(--size-normal2);
  }

  .do-novchapter-button {
    width: 140px;
    font-size: var(--size-subtitle3);
  }

  .do-novchapter-amount {
    font-size: var(--size-subtitle3);
  }

  .do-novchapter-icon {
    width: 25px;
    height: 25px;
  }

  .do-novchapter-commentbutton {
    font-size: var(--size-normal);
    font-family: var(--font-normal);
    width: 120px;
  }

  .do-novchapter-username {
    font-size: var(--size-normal);
  }

  .do-novchapter-comment {
    font-size: 0.8rem;
  }

  /* webnovel_chapter ends */
}

@media screen and (max-width: 390px) {
  :root {
    --size-max-width: 300px;
    --size-subtitle: 1.5rem;
  }

  /* webnovel_detail starts */
  .do-novdetail-amount {
    min-width: auto;
  }

  .do-novdetail-row,
  .do-novdetail-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .do-novdetail-amount {
    font-size: var(--size-normal2);
  }

  .do-novdetail-button {
    font-size: var(--size-subtitle3);
    width: 100%;
  }

  .do-novdetail-detail {
    gap: 10px;
  }

  .do-novdetail-item {
    grid-template-columns: 35px 1fr auto;
    padding: 20px 10px;
  }

  .do-novdetail-icon2 {
    width: 15px;
    height: 15px;
  }

  .do-novdetail-amount2 {
    font-size: var(--size-normal2);
  }

  /* webnovel_detail ends */

  /* webnovel_chapter starts */
  .do-novchapter-popup {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 20px;
  }

  .do-novchapter-confirm {
    text-align: center;
    font-size: var(--size-subtitle2);
    grid-column-start: auto;
  }

  .do-novchapter-book {
    font-size: var(--size-title2);
  }

  /* webnovel_chapter ends */
}