/* #region global styles */
:root {
  --font-family: "Junge", sans-serif;
  --second-family: "Inter", sans-serif;
  --third-family: "Roboto", sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-family);
  background-color: #ddd;
  background-image: url("../image/background/noise.jpg");
  background-repeat: repeat;
  margin: 0;

  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body.is-open {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;

  touch-action: none;
}

h1,
h2,
h3,
h4,
p,
ul,
button,
input {
  margin: 0;
  padding: 0;
  border: 0;
}

a {
  text-decoration: none;
}

ul {
  list-style-type: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* #endregion global styles */

/* #region container */

.container {
  max-width: 320px;
  padding: 0 15px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media screen and (min-width: 1440px) {
  .container {
    max-width: 1390px;
    padding: 0 25px;
  }
}

/* #endregion container */

/* #region header styles */
.main_header {
  height: 70px;
  background-color: #818181;
  width: 100%;
}

.nav-list {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 15px 0;
  align-items: center;
}

.logo {
  text-decoration: none;
  cursor: pointer;
}

.logo:focus-visible {
  border: 1px solid #000000;
  outline: none;
}

.logo:focus:not(:focus-visible) {
  border: none;
  outline: none;
}

.logo-name {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 32px;
  text-align: center;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.48) 0%,
    rgba(255, 255, 255, 0.9) 50.05%,
    rgba(255, 255, 255, 0.48) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.list_pages {
  display: none;
}

.list_functions {
  display: none;
}

.burger_btn {
  max-width: 40px;
  max-height: 40px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.mob-menu {
  background-color: #808080;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: 250ms cubic-bezier(0.48, 0.92, 0.74, 0.14),
    visibility 250ms cubic-bezier(0.48, 0.92, 0.74, 0.14);
}

.mob-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: 250ms cubic-bezier(0.48, 0.92, 0.74, 0.14),
    visibility 250ms cubic-bezier(0.48, 0.92, 0.74, 0.14);
}

.mob-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mob-menu-container {
  position: relative;
  padding: 94px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.mob-list_pages {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

.mob-header_item {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 133%;
  color: #fff;
}

.mob-item {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 133%;
  color: #fff;
  text-decoration: none;
}

.search-item {
  width: 268px;
}

.wrap {
  position: relative;
  width: 268px;
}

.search_mob {
  border-radius: 30px;
  width: 200px;
  background-color: rgba(146, 141, 141, 0.8);
  padding: 8px 46px 8px 22px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.03em;
  color: #fef7ff;
}

.search_mob:hover,
.search_mob:focus {
  border: none;
  outline: none;
}

.search_mob::placeholder {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.03em;
  color: #fef7ff;
}

.icon_search {
  position: absolute;
  top: 50%;
  right: 22px;
  fill: #ffffff;
  transform: translateY(-50%);
}

#eye-open {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

.blindness {
  stroke: #ffffff;
  fill: transparent;
}

.wrap_lg {
  position: relative;
  display: inline-block;
  width: 159px;
}

.lg_func {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  border-radius: 20px;
  padding: 12px 26px 12px 26px;
  width: 160px;
  background-color: #928d8d;
  border: none;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 117%;
  color: #fff;
  cursor: pointer;
}

.lg_func:focus {
  border: none;
  outline: none;
}

.item-lg {
  background-color: #000000;
  text-decoration: none;
  color: #fff;
}

.icon_lg {
  position: absolute;
  top: 50%;
  right: 26px;
  fill: #ffffff;
  transform: translateY(-50%);

  pointer-events: none;
}

/* #endregion header styles */

/* #region main styles */

.main_content {
  flex: 1;
}

.content-manga {
  align-items: center;
  padding-top: 70px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.manga-item {
  display: flex;
  flex-direction: column;
  min-height: 295px;
  max-width: 180px;
}

.manga {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;

  text-decoration: none;
}

.manga-img {
  border-radius: 10px;
}

.title-manga {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
  color: #000;
  max-width: 180px;

  display: block;
  cursor: pointer;
}

.pagination-container {
  padding-bottom: 70px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
}

.pag-btn {
  padding: 8px 12px;
  border-radius: 8px;
  width: 40px;
  height: 40px;

  background-color: #ffffff;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  color: #000000;
  cursor: pointer;
}

.pag-btn.active {
  background-color: #2c2c2c;
  color: #f5f5f5;
}

/* #endregion main styles */

/* #region footer styles */
.footer-main {
  background-color: rgba(152, 158, 169, 0.76);
  padding: 40px 0px;
  height: auto;
  width: 100%;

  flex-shrink: 0;
}

.content-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-footer {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
  color: #fff;
  max-width: 165px;

  margin-top: 22px;
}

.title-social {
  font-family: var(--third-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
  margin-top: 28px;
}

.social-list {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
  align-items: center;
  margin-top: 10px;
}

.social-item {
  width: 40px;
  height: 40px;
}

.social-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #000;
  transition: background-color 250ms cubic-bezier(0.48, 0.92, 0.74, 0.14);

  display: flex;
  align-items: center;
  justify-content: center;

  /* position: relative; */
}

.social-icon:active {
  background-color: #ffffff;
  transition: background-color 350ms cubic-bezier(0.48, 0.92, 0.74, 0.14);
}

.icon {
  fill: #ffffff;
  /* position: absolute;
    top: 8px;
    left: 8px; */
}

.icon:active {
  fill: #000000;
  transition: fill 350ms cubic-bezier(0.48, 0.92, 0.74, 0.14);
}

/* #endregion footer styles */

@media screen and (min-width: 768px) {
  /* #region header styles */
  .main_header {
    height: 90px;
  }

  .nav-list {
    padding: 25px 0;
    justify-content: center;
  }

  .logo-head {
    margin-right: 15px;
  }

  .pages {
    margin-right: 14px;
  }

  .list_pages {
    display: flex;
    flex-direction: row;
    column-gap: 20px;
    align-items: center;
    /* margin-right: 11px; */
  }

  .header_item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 0 5px;
    min-height: 40px;

    align-items: center;
    display: flex;
    justify-content: center;
    cursor: pointer;
  }

  .header_item:active {
    background-color: rgb(255, 255, 255, 0.5);
  }

  .item {
    text-decoration: none;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 2.22;
    text-align: center;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(255, 255, 255, 0.6) 50.05%,
      rgba(255, 255, 255, 0.8) 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .list_functions {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 11px;
  }

  .function_header {
    display: flex;
    align-items: center;
  }

  .wrap-search {
    position: relative;
    display: inline-block;
  }

  .search {
    background-color: rgba(146, 141, 141, 0.8);
    border-radius: 30px;
    max-width: 84px;

    padding: 8px 32px 8px 14px;

    font-family: var(--third-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: #fef7ff;
    cursor: pointer;
  }

  .search:hover {
    border: none;
    outline: none;
  }

  .search:focus {
    border: 1px solid #ffffff;
    outline: none;
  }

  .search:active {
    border: none;
    outline: none;
  }

  .search::placeholder {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: #fef7ff;
  }

  .magnifying-glass {
    position: absolute;
    top: 50%;
    right: 8px;
    fill: #ffffff;
    transform: translateY(-50%);
  }

  .burger_btn {
    display: none;
  }

  .mob-menu {
    display: none;
  }

  .search_mob {
    display: none;
  }

  .account-user {
    background-color: transparent;
    fill: none;
    stroke-width: 2px;
    stroke: #f3f3f3;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: stroke 200ms cubic-bezier(0.48, 0.92, 0.74, 0.14);
  }

  .account-user:focus:not(:focus-visible) {
    border: none;
    outline: none;
  }

  .account-user:active {
    background-color: transparent;
    stroke: #000000;
  }

  .eyes {
    background-color: transparent;
    fill: none;
    stroke: #ffffff;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: stroke 200ms cubic-bezier(0.48, 0.92, 0.74, 0.14);
  }

  .eyes:focus-visible {
    background-color: transparent;
    stroke: #ffffff;
    border: 1px solid #000000;
    outline: none;
  }

  .eyes:active {
    background-color: transparent;
    stroke: #000000;
    transition: stroke 250ms cubic-bezier(0.48, 0.92, 0.74, 0.14);
  }

  .wrap-lg {
    position: relative;
    display: inline-block;
    width: 60px;
  }

  .lg_func {
    width: 60px;

    padding: 8px 10px;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 117%;
    color: #fff;
    cursor: pointer;
  }

  .icon-locale {
    position: absolute;
    top: 50%;
    right: 12px;
    fill: #ffffff;
    transform: translateY(-50%);
  }

  /* #endregion header styles */

  /* #region main styles */

  .content-main {
    max-width: 602px;
  }

  .content-manga {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 21px;
    column-gap: 31px;
    align-items: flex-start;
  }

  .manga-item {
    flex-basis: calc((100% - 62px) / 3);
    min-height: 305px;

    flex-grow: 1;
  }

  /* #endregion main styles */

  /* #region footer styles */

  .footer-main {
    padding: 30px 0 34px 0;
  }

  .footer-list {
    flex-direction: row;
    align-items: baseline;
  }

  .footer-item {
    align-items: flex-start;
    gap: 17px;
  }

  #social {
    align-items: center;
    padding-left: 111px;
  }

  .info-footer {
    margin-top: 0;
    text-align: left;
  }

  .title-social {
    margin-top: 0;
    text-align: center;
  }

  .social-list {
    margin: 0;
    flex-direction: row;
    gap: 16px;
  }

  /* #endregion footer styles */
}

@media screen and (min-width: 1440px) {
  /* #region header styles */
  .main_header {
    height: 108px;
  }

  .logo-head {
    margin-right: 95px;
  }

  .logo-name {
    font-size: 48px;
  }

  .pages {
    margin-right: 30px;
  }

  .list_pages {
    column-gap: 30px;
  }

  .header_item {
    padding: 8px 30px;
  }

  .header_item:hover,
  .header_item:focus {
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(236, 233, 233, 0.425);
    outline: none;
    color: #000;
  }

  .item:focus {
    border: 1px solid #000000;
    outline: none;
  }

  .item:focus:not(:focus-visible) {
    border: none;
    outline: none;
  }

  .list_functions {
    column-gap: 30px;
  }

  .search {
    min-width: 316px;
    padding: 17px 40px 17px 14px;
  }

  .magnifying-glass {
    right: 16px;
  }

  .account-user,
  .icon-user {
    width: 58px;
    height: 58px;
  }

  .account-user:focus-visible {
    border: 1px solid #000000;
    outline: none;
  }

 .account-user:hover {
    background-color: transparent;
    transition: stroke 250ms cubic-bezier(0.48, 0.92, 0.74, 0.14);
    stroke: rgb(0, 0, 0);
  }

  .account-user:active {
    background-color: transparent;
    transition: stroke 50ms cubic-bezier(0.48, 0.92, 0.74, 0.14);
    stroke: #ffffff;
  }

  .eyes,
  .icon-eye {
    width: 58px;
    height: 58px;
  }

  .eyes:hover {
    background-color: transparent;
    transition: stroke 250ms cubic-bezier(0.48, 0.92, 0.74, 0.14);
    stroke: rgb(0, 0, 0);
  }

  .eyes:active {
    background-color: transparent;
    stroke: #ffffff;
    transition: stroke 50ms cubic-bezier(0.48, 0.92, 0.74, 0.14);
  }

  .wrap-lg {
    width: 90px;
  }

  .lg_func {
    padding: 18px 22px;
    width: 90px;
    font-size: 16px;
    line-height: 88%;
  }

  .icon-locale {
    right: 28px;
  }

  /* #endregion header styles */

  /* #region main styles */

  .content-manga {
    column-gap: 60px;
    row-gap: 22px;
    padding: 91px 0 28px 0;
  }

  .content-main {
    max-width: 900px;
  }

  .manga-item {
    flex-basis: calc((100% - 180px) / 4);
  }

  .pagination-container {
    padding-bottom: 91px;
  }

  /* #endregion main styles */

  /* #region footer styles */
  .footer-main {
    padding: 44px 0 66px 0;
  }

  .footer-list {
    align-items: center;
    justify-content: space-between;
  }

  #social {
    padding-left: 238px;
  }

  .info-footer {
    max-width: 328px;
  }

  .social-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* #endregion footer styles */
}
