:root {
  --table-wrapper-border: linear-gradient(-45deg, rgba(108, 40, 172, 0.6), rgba(139, 43, 168, 0.7));
}

main {
  flex:  1 0 fit-content;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(34, 32, 34, 0.7);
}


div, p {
  color: rgb(219, 219, 219);
}

.page-info {
  height: fit-content;
  min-height: 154px;
  width: 100%;
  background-color: rgb(44, 44, 44, 0.6);

  border-bottom: 2px var(--border-basic-color) solid;
  align-content: center;
}
.text-container {
  width: 86%;
  justify-self: center;
  padding-bottom: 8px;
}
.text-container h1 {
  margin-bottom: 8px;
  line-height: 1;
}


.background {
  background-color: rgb(19, 19, 19);
  opacity: 0.85;

  min-height: var(--scroll-height);
  width: 100%;

  position: absolute;
  top: 0;
  left: 0;

  z-index: 2;
}

.border-wrapper {
  min-height: 390px;
  max-width: 1300px;
  width: 96%;
  margin-bottom: 26px;

  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  background: var(--table-wrapper-border);
}


.patterns-tab {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  background-color: rgba(34, 32, 34, 0.7);
  border-radius: 10px;
  overflow: hidden;
}

.patterns-tab .table-content {
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  overflow-y: auto;
  column-gap: 8px;
  row-gap: 6px;
  align-items: center;
  justify-content: center;
  overflow-y: hidden;
  overflow-x: hidden;
  padding: 14px 8px;
  padding-bottom: 16px;
}

.pattern-family-card {
  width: 32%;
  height: 200px;
  border: 2px var(--border-basic-color) solid;
  border-radius: 6px;
  transition: transform 0.08s, box-shadow 0.08s, filter 0.08s;
  box-shadow: 2px 2px 4px rgb(20, 20, 20);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.08s;
}

.card-shade-purple {
  background: linear-gradient(0deg, rgba(117, 44, 167, 0.85), rgb(44, 44, 44));
}

.family-name {
  font-size: 19px;
  font-weight: 500;
}

.card-spacing {
  margin: 0;
  padding: 0;

  margin-top: 4px;
  margin-bottom: 8px;

  width: 60%;
  height: fit-content;
  border-bottom: 2px var(--border-basic-color) solid;
  pointer-events: none;
}
.card-content {
  height: 74%;
  width: 100%;
  pointer-events: none;
}

.patterns-tab .card-images {
  height: 80%;
  width: 70%;
}
.patterns-tab .card-patterns {
  height: 80%;
  width: 30%;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.patterns-tab .card-images img {
  width: 64%;
  max-width: 190px;
  filter: contrast(1.08) brightness(1.08) drop-shadow(3px 3px 5px black);
}

.patterns-tab .card-images .short-rifle-img {
  max-width: 154px;
}
.patterns-tab .card-images .long-rifle-img {
  max-width: 240px;
}

.family-name {
  font-size: 20px;
  font-weight: 500;
  margin-top: 4px;
  pointer-events: none;
}

.card-shade-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0px 0px 8px rgb(154, 71, 209);
  filter: brightness(1.2);
}


.guide-options {
  height: 170px;
  width: 340px;

  border: 2px var(--border-basic-color) solid;
  border-radius: 8px;

  margin-top: 20px;
  margin-bottom: 18px;

  overflow: hidden;
}
.options-header {
  height: 32px;
  width: 100%;

  font-size: 18px;
  font-weight: 500;
  background: linear-gradient(to left, rgb(112, 38, 250), rgb(131, 0, 131));

  border-bottom: 2px var(--border-basic-color) solid;
}
.options-content {
  padding: 0 4px;
  box-sizing: border-box;
  height: calc(100% - 32px);
  width: 100%;
  background-color: rgba(27, 27, 27, 0.7);
  column-gap: 8px;
}

.type-btn {
  height: 84%;
  width: 44%;
  border: 2px var(--border-basic-color) solid;
  border-radius: 6px;
  transition: background-color 0.08s, scale 0.08s;
}
.options-content img {
  width: 80%;
  filter: brightness(1.05) contrast(1.05) drop-shadow(2px 2px 3px black);
  pointer-events: none;
}
.type-btn p {
  text-align: center;
  color: rgb(212, 212, 212);
  font-size: 18px;
  font-weight: 400;
  padding-top: 4px;
}
.type-btn:hover:not(.btn-selected) {
  background-color: rgba(80, 26, 97, 0.7);
  scale: 0.97;
}

.spacing {
  height: 90%;
  width: 2px;
  background-color: var(--border-basic-color);
}

.btn-selected {
  background-color: rgba(139, 43, 168, 0.7);
  scale: 0.97;
}


.charm-images img {
  filter: contrast(1.08) brightness(1.08) drop-shadow(3px 3px 5px black);
  height: 100%;
  margin: 0 -54px;
}


@media (max-width: 768px) {
  .page-info .text-container h1 {
    font-size: 36px;
    margin-top: 10px;
    margin-bottom: 8px;
  }
}

@media (max-width: 1220px) {
  .pattern-family-card  {
    width: 48%;
  }
}
@media (max-width: 840px) {
  .pattern-family-card {
    width: 96%;
  }
}
@media (max-width: 450px) {

}