* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* background-color: #211f44; */
  font-family: "Cinzel", serif;
  color: #fff;
  /* background-image: url("img/bg.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed; */

  /* background: linear-gradient(
    #1a1838 0%,
    #211f44 30%,
    #252139 60%,
    #18162e 100%
  ); */

  /* background: linear-gradient(135deg, #211f44 0%, #252139 100%); */

  /* background:
    radial-gradient(circle at 30% 30%, #2c2a5e, transparent 40%),
    linear-gradient(135deg, #1a1838, #211f44, #252139, #16142b); */

  /* background:
    linear-gradient(135deg, #14122b, #211f44 40%, #252139 70%, #0f0d22),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 50%); */

  /* background:
    radial-gradient(circle at 30% 20%, #2a2760, transparent 40%),
    radial-gradient(circle at 80% 70%, #1b1a3a, transparent 50%),
    linear-gradient(135deg, #14122b, #211f44 40%, #252139 70%, #0f0d22); */

  /* background:
    radial-gradient(circle at 20% 30%, #3a2f7a, transparent 40%),
    linear-gradient(135deg, #1a1838, #2b1f5a, #1a1633); */

  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(80, 70, 180, 0.25),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(120, 90, 255, 0.15),
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.03),
      transparent 60%
    ),
    linear-gradient(135deg, #0f0d22, #1a1838 40%, #211f44 70%, #0a091a);
}

/* body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(white 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.05;
  pointer-events: none;
} */

@keyframes glowPulse {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0.4;
  }
}

body::before {
  animation: glowPulse 6s infinite ease-in-out;
}

.h {
  margin-top: 10px;
  font-size: 30px;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.logo {
  width: 300px;
  filter: drop-shadow(0 0 10px rgba(186, 161, 127, 0.4));
  transition: all 0.4s ease;
}

.logo:hover {
  filter: drop-shadow(0 0 15px rgba(186, 161, 127, 0.5));
}

.colorimg {
  width: 100%;
}

.filters {
  display: flex;
  /* justify-content: center;
  align-items: center; */
  gap: 5px;
  flex-direction: column;
  margin-top: 30px;
  font-weight: 600;
  letter-spacing: 1px;
}

.ink-cost {
  margin: 10px 0;
}

.ink-symbol {
  width: 50px;
}

.ink-symbol-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.filter-btn {
  background-color: transparent;
  text-decoration: none;
  border: none;
  color: #ffffff9c;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1px;
  font-family: "Cinzel", serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: #baa17f;
  text-shadow: 0 0 8px rgba(186, 161, 127, 0.5);
}

.lore {
  margin-top: 10px;
}

.lore-p {
  margin: 10px 0;
}

.type-p {
  margin: 10px 0;
}

.types-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.all-ink-btn {
  color: #baa17f;
  margin-right: -10px;
}

.ink-cost-p {
  margin-top: 10px;
  width: 80%;
}
/* 
.ink-cost-btn {
  padding: 15px;
  position: relative;
  z-index: 1;
}

.ink-cost-btn.selected::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-image: url("/img/ink-black.svg");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.ink-cost-btn.selected {
  z-index: 1;
}

.ink-cost-btn span {
  position: relative;
  z-index: 2;
} */

.container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 100px;
}

.card-img {
  /* width: calc(100vw - 52%); */
  width: 49%;
  border-radius: 10px;

  background: linear-gradient(145deg, #1c1a3a, #121028);
  /* border-radius: 12px; */
  /* padding: 4px; */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

.card-img:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 25px rgba(186, 161, 127, 0.25);
}

.colors {
  display: flex;
  gap: 10px;
  /* flex-wrap: wrap; */
  flex-direction: row;
  /* justify-content: center; */
  margin-top: 10px;
}

.pages {
  display: flex;
  justify-content: center;
  margin: 60px 0 20px 0;
  gap: 10px;
  align-items: center;
}

.border-btn {
  background: transparent;
  border: 1px solid rgba(186, 161, 127, 0.3);
  color: #baa17f;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.border-btn:hover {
  background: rgba(186, 161, 127, 0.1);
  box-shadow: 0 0 10px rgba(186, 161, 127, 0.4);
}

.border-btn.active {
  background: linear-gradient(135deg, #baa17f, #e6d3a3);
  color: #1a1838;
}

.ink-symbol-btn {
  transition:
    opacity 0.2s ease,
    filter 0.2s ease;
}

.ink-symbol-btn.dimmed {
  opacity: 0.4;
  filter: grayscale(100%);
}

.ink-symbol-btn.active {
  opacity: 1;
  filter: none;
}

.ink-cost {
  display: none;
}

.cost-dropdown {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin: 10px 0;
  background-color: #292a47;
  border: 1px solid #baa17f34;
  color: #baa17f;
}

.page-n {
  font-weight: 100;
  font-size: 20px;
  color: #ffffff9c;
}

.search-form {
  width: 100%;
  margin-top: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.input {
  /* padding: 10px;
  background-color: #292a47;
  border: 1px solid #baa17f34; */
  width: 100%;

  padding: 10px;
  background: rgba(41, 42, 71, 0.6);
  border: 1px solid rgba(186, 161, 127, 0.2);
  color: #fff;
  backdrop-filter: blur(6px);
}

.input:focus {
  outline: none;
  border: 1px solid #baa17f;
  box-shadow: 0 0 10px rgba(186, 161, 127, 0.3);
}

/* .search-btn {
  padding: 10px;
  background-color: #baa17f;
  border: 1px solid #baa17f34;
  color: #292a47;
} */

.search-btn {
  background: linear-gradient(135deg, #baa17f, #e6d3a3);
  color: #1a1838;
  border: none;
  /* border-radius: 5px; */
  padding: 10px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(186, 161, 127, 0.3);
  cursor: pointer;
}

.search-btn:hover {
  box-shadow: 0 0 15px rgba(186, 161, 127, 0.6);
  transform: translateY(-1px);
}

.dialog {
  border: none;
  background: transparent;
  margin: 0 auto;
  height: 100%;
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* gap: 30px; */
  gap: 15px;
  height: 100%;
}

.dialog-img {
  width: auto;
  height: auto;
  border-radius: 10px;
  max-width: 86vw;
}

.buy-btn-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  justify-content: center;
}

.buy-btn {
  width: 49%;
  height: 50px;
  padding: 10px;
  font-size: 16px;
  /* background: linear-gradient(135deg, #baa17f, #e6d3a3); */
  border: 1px solid #e6d3a3;
  background-color: rgba(0, 0, 0, 0.35);
  /* background-color: rgba(80, 70, 180, 0.25); */
  /* color: #1a1838; */
  color: #e6d3a3;
}

.buy-btn:hover {
  box-shadow: 0 0 15px rgba(186, 161, 127, 0.6);
  transform: translateY(-1px);
}

.icon {
  width: 20px;
  height: 20px;
}

.close-btn {
  background: linear-gradient(135deg, #baa17f, #e6d3a3);
  /* background-color: rgba(80, 70, 180, 0.25); */
  color: #1a1838;
  border: none;
  padding: 10px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(186, 161, 127, 0.3);
  cursor: pointer;
  width: 100px;
}

.close-btn:hover {
  box-shadow: 0 0 15px rgba(186, 161, 127, 0.6);
  transform: translateY(-1px);
}

.center {
  margin: 0 auto;
  width: 95%;
}

@media screen and (min-width: 760px) {
  .center {
    width: 700px;
  }

  .all-ink-btn {
    margin-right: 0;
  }

  .card-img {
    width: 23%;
  }

  .dialog-img {
    max-width: 450px;
  }

  .buy-btn {
    width: 40%;
    height: 60px;
    font-size: 18px;
  }

  .buy-btn-wrap {
    gap: 10px;
  }

  .cost-dropdown {
    display: none;
  }

  .colors {
    display: flex;
    gap: 20px;
    /* justify-content: flex-end; */
  }

  .colorimg {
    max-width: 70px;
  }

  .ink-cost {
    display: block;
    margin-top: 10px;
  }

  .input {
    margin: 20px 0 20px 0;
  }

  .ink-cost-p {
    margin-top: 10px;
  }

  .filters {
    margin-top: 25px;
  }
}

@media screen and (min-width: 1020px) {
  .center {
    width: 960px;
  }

  .card-img {
    max-width: 300px;
    width: 18%;
  }

  .dialog-img {
    max-width: 500px;
  }
}

@media screen and (min-width: 1441px) {
  .center {
    width: 1100px;
  }

  .dialog-img {
    max-width: 600px;
  }
}
