:root {
  --body-color: #363c4a;
  --body-shade-color: #4c5863;
  --main-color: #f6f6f7;
  --prime-color: #12ae62;
  --second-color: #1b1b1b;
  --third-color: #333333;
  --prime-shade-color: #3beb95;
  --prime-shade-shade-color: #659b81;
  --second-shade-color: #181818;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  letter-spacing: 1px;
}

body {
  background-color: var(--second-color);
  color: var(--main-color);
  position: relative;
}

header {
  position: fixed;
  padding: 20px 25px;
  width: 100%;
  /*border-bottom: 1px solid var(--body-shade-color);*/
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

.navbar-a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-a-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-a-brand i {
  font-size: 16pt;
  margin: 0 20px 0 10px;
  cursor: pointer;
}

.navbar-a-brand h1 {
  font-size: 15pt;
}

input {
  padding: 8px 15px;
  width: 20%;
  cursor: pointer;
  background-color: var(--third-color);
  border-style: none;
  box-shadow: 0px 0px 7px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--body-color);
  border-radius: 6px;
  outline: none;
  color: var(--prime-shade-color);
}

input::placeholder {
  color: var(--main-color);
}

.search-a-content {
  display: none;
  position: absolute;
  padding: 10px;
  top: 90%;
  right: 1.7%;
  width: 35%;
  max-height: 100vh;
  overflow: hidden;
  overflow-y: scroll;
  border-radius: 6px;
  background-color: var(--second-shade-color);
  border: 1px solid var(--body-shade-color);
  box-shadow: 0px 0px 7px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
}

.search-a-content.searching {
  display: block;
}

.manga-search-name {
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.manga-search-name:hover {
  background-color: var(--prime-color);
  color: var(--main-color);
}

.search-b {
  display: none;
}

.search-b-content {
  display: none;
}

.navbar-b {
  position: absolute;
  top: 0;
  left: -25%;
  height: 100vh;
  width: 20%;
  background-color: var(--third-color);
  transition: all 0.2s ease-in-out;
  box-shadow: 6px 0px 7px 0px rgba(0, 0, 0, 0.1);
}

.navbar-b.open {
  top: 0;
  left: 0;
}

.navbar-b-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 20px 25px;
}

.navbar-b-brand i {
  font-size: 16pt;
  margin: 0 20px 0 10px;
  cursor: pointer;
}

.navbar-b-brand h1 {
  font-size: 15pt;
}

/* MAIN CONTENT */

main {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}

.section {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.section-title {
  margin: 10px 0;
  padding: 30px 15px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title h1 {
  font-size: 20pt;
  font-weight: 400;
}

.fa-arrow-right {
  cursor: pointer;
}

#section-one {
  display: flex;
  justify-content: space-between;
  padding: 60px 30px 0;
}

.section-one-A {
  position: relative;
  width: auto;
  display: flex;
}

.section-one-A-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 6px;
  box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.1);
}

.section-one-A-content-image {
  height: 300px;
  width: 240px;
  border-radius: 6px;
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
}

.section-one-A-content-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
  height: 300px;
  width: 90%;
}

.section-one-A-content-info h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.section-one-A-content-info h4 {
  font-weight: 500;
}

.section-one-A-content-info p {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  max-height: 120px;
  max-width: 100%;
  overflow: hidden;
  overflow-y: scroll;
}

.section-one-A-content-info .btn {
  padding: 6px 0;
  width: 10%;
  cursor: pointer;
  background-color: var(--prime-color);
  color: var(--main-color);
  border-style: none;
  border-radius: 6px;
  box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1);
}

.stars {
  font-size: 9pt;
}

.status {
  border-radius: 1px;
  margin: 2px;
  height: 10px;
  width: 10px;
  border-radius: 10px;
}

.status.finished {
  background-color: var(--prime-shade-color);
}

.status.inProgress {
  background-color: var(--body-shade-color);
  border: 0.5px solid #659b81;
}

.date-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 0;
}

.corousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 15pt;
  width: 100%;
}

.left,
.right {
  font-size: 15pt;
  cursor: pointer;
}

#section-two {
  padding: 0 0;
}

.section-two-content {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem;
  gap: 1rem 1rem;
  background-color: var(--third-color);
}

.manga-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 20%;
  padding: 10px;
  border-radius: 6px;
  background-color: var(--second-shade-color);
}

.manga-container-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 30%;
  height: 100px;
  border-radius: 3px;
}

.manga-container-info {
  height: 100px;
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.manga-container-info h4 {
  font-size: 8pt;
  max-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manga-container-info h5 {
  font-size: 7pt;
  font-weight: 300;
}

.manga-btn {
  background-color: var(--prime-shade-color);
  color: var(--main-color);
  padding: 4px 0;
  width: 40%;
  font-size: 8pt;
  cursor: pointer;
  border-style: none;
  border-radius: 3px;
}

#section-three {
  padding: 0 0;
}

.section-three-content {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem;
  gap: 1rem 1rem;
  background-color: var(--third-color);
}

#section-four {
  padding: 0 0;
}

.section-four-content {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem;
  gap: 1rem 1rem;
  background-color: var(--third-color);
}

#section-five {
  padding: 0 0;
}

.section-five-content {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem;
  gap: 1rem 1rem;
  background-color: var(--third-color);
}

.section .btnCat {
  padding: 20px 0;
  width: 100%;
  cursor: pointer;
  background-color: var(--prime-color);
  color: var(--main-color);
  transition: all 0.2s ease-in-out;
}

.section .btnCat:hover {
  background-color: var(--prime-shade-color);
  color: var(--second-shade-color);
}

@media only screen and (max-width: 767px) {
  #search {
    display: none;
  }

  .search-b {
    display: block;
    background-color: var(--third-color);
    border-radius: 6px;
  }

  .search-b i {
    font-size: 12pt;
    margin: 10px;
    cursor: pointer;
  }

  .search-b-content.search {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: fit-content;
    z-index: 9998;
    background-color: var(--second-shade-color);
    flex-direction: column;
    align-items: center;
    box-shadow: 0px 7px 7px 0px rgba(0, 0, 0, 0.1);
  }

  .search-b-content.search {
    display: flex;
    padding: 20px 0;
  }

  .close {
    width: 80%;
    display: flex;
    flex-direction: row-reverse;
  }

  .fa-xmark {
    font-size: 16pt;
    padding: 8px 10px;
    margin: 5px 0;
    background-color: var(--third-color);
    border-radius: 6px;
  }

  input {
    padding: 8px 15px;
    width: 80%;
    cursor: pointer;
    background-color: var(--third-color);
    border-style: none;
    box-shadow: 0px 0px 7px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--body-color);
    border-radius: 6px;
    outline: none;
    color: var(--prime-shade-color);
  }

  #search-b {
    margin: 5px 0;
    border: 1px solid var(--main-color);
  }

  .search-b-result {
    display: none;
    padding: 10px;
    margin: 10px 0;
    width: 80%;
    border-radius: 6px;
    background-color: var(--third-color);
    box-shadow: 0px 0px 7px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--main-color);
    transition: all 0.2s ease-in-out;
  }

  .search-b-result.searchingB {
    display: block;
    max-height: 50vh;
    overflow: hidden;
    overflow-y: scroll;
  }

  .manga-search-name-b {
    padding: 5px;
    margin: 5px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .manga-search-name-b:hover{
    background-color: var(--prime-color);
    color: var(--main-color);
  }

  .navbar-b {
    position: absolute;
    top: 0;
    left: -75%;
    height: 100vh;
    width: 70%;
    transition: all 0.2s ease-in-out;
  }

  .navbar-b.open {
    top: 0;
    left: 0;
  }

  /*MAIN SECTION*/

  #section-one {
    padding: 40px 5px 0;
  }

  .section-one-A-content {
    width: 100%;
    align-items: flex-start;
  }

  .section-one-A-content-image {
    height: 220px;
    width: 40%;
    border-radius: 3px;
  }
  .section-one-A-content-info {
    width: 60%;

    padding: 0 5px;
    margin-left: 5px;
  }

  .section-one-A-content-info h1 {
    font-size: 12pt;
  }

  .section-one-A-content-info p {
    font-size: 8pt;
    max-height: 60px;
    max-width: 100%;
    overflow: hidden;
    overflow-y: scroll;
  }

  .section-one-A-content-info .stars {
    font-size: 8pt;
  }

  .status {
    border-radius: 1px;
    margin: 2px;
    width: 8px;
    height: 8px;
    border-radius: 8px;
  }

  .section-one-A-content-info h4 {
    font-size: 8pt;
  }

  .section-one-A-content-info .btn {
    width: 90%;
  }

  .date-navigation {
    margin: 20px 0;
    display: flex;
    flex-direction: row;
  }

  .section-one-B {
    display: none;
  }

  .corousel-nav {
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .section-title h1 {
    font-size: 15pt;
    font-weight: 450;
  }

  .section-two-content,
  .section-three-content,
  .section-four-content,
  .section-five-content {
    flex-direction: column;
  }

  .manga-container {
    width: 100%;
    gap: 3px;
  }

  .manga-container-image {
    height: 80px;
    width: 15%;
    cursor: pointer;
  }

  .manga-container-info {
    height: 80px;
  }

  .manga-container-info h4 {
    font-size: 7.5pt;
    max-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .manga-btn {
    width: 18%;
  }
}
