/* //// //// //// COVER IMAGES //// //// //// */
deck-section {
  a img {
    display: none;
  }
  #soc {
    background-image: url(/SRC/media/img/socrates-middle-finger.png);
  }

  #devlog {
    background-image: url(/SRC/media/cover/devlog.png);
  }

  #NG {
    background-image: url(/SRC/media/cover/cover-ng.bmp);
    background-color: black;
    background-size: contain;
    background-position: top;
  }
}

/* //// //// //// OTHER STYLES //// //// //// */
search {
  width: 90%;
  margin: 15px auto;
  position: relative;
}

input[type="search"] {
  width: 100%;
  font-size: 1.1rem;
  padding: 5px;
  padding-left: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 5px 5px hsla(0, 0%, 10%, 1),
    0px 5px 10px 2px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  color: hsla(var(--color-green-light-a), 0.6);
  background-color: var(--color-gray-800);
  background-image: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\<circle cx='11' cy='11' r='8'/>\<line x1='21' y1='21' x2='16.65' y2='16.65'/>\</svg>");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px 16px;
  font-family: var(--font-mono);

  &::placeholder {
    color: var(--color-gray-600);
    font-family: var(--font-mono);
  }

  &:focus {
    background-color: var(--color-gray-750);
    box-shadow: inset 0 0 5px 5px hsla(0, 0%, 10%, 0.3);
    outline: none;
    border-radius: 10px;
  }

  &:focus::placeholder {
    color: var(--color-gray-500);
  }
}

input[type="search"]:placeholder-shown ~ [type="reset"] {
  display: none;
}

input[type="search"]:not(:placeholder-shown) ~ [type="reset"] {
  display: inline;
}

[type="reset"] {
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.2em;
  display: block;
  padding: 0;
  color: orangered;
  font-family: var(--font-mono);

  &:hover {
    color: red;
  }
}

deck-section {
  padding-inline: 2rem;
  padding-block: 1rem 2rem;
  gap: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
@media (max-width: 1000px) {
  deck-section {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
@media (max-width: 600px) {
  deck-section {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

deck-section a {
  color: white;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background-image: linear-gradient(to bottom, hsl(0, 0%, 6%), hsl(0, 0%, 9%));
  box-shadow: 0px 5px 10px 2px rgba(0, 0, 0, 0.5),
    inset 0px 2px 12px -1px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease;
  will-change: transform;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  overflow: hidden;
  height: 100%;
  filter: brightness(0.9);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-clip: content-box;

  &:hover,
  &:focus-visible {
    filter: brightness(1.1);
    transform: scale(1.04);
    z-index: 1;
    border-radius: 10px;
  }

  &:active {
    transform: scale(0.97);
  }
}

title-span {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  width: calc(100% - 20px);
  min-height: 15%;
  max-height: 24%;
  margin-bottom: 10px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: clamp(1rem, 6vw, 1.3rem);

  &:empty {
    background-color: transparent;
    backdrop-filter: unset;
    -webkit-backdrop-filter: unset;
  }
}
