.selector-container {
  display: flex;
  padding: 40px;
  flex-direction: column;
  gap: 30px;
  margin-top: 50px;
}

.selector-header {
  height: fit-content;
  display: flex;
  align-items: end;
  width: 100%;
}

.selector-title {
  font-weight: bolder;
  font-size: 80px;
}

.selector-continue {
  font-weight: bolder;
  border: none;
  font-size: 40px;
  padding: 5px 30px;
  margin-left: auto;
  height: 100%;
  cursor: pointer;
  border-radius: 20px;
  background-color: #9feeb5;

  display: flex;
  align-items: center;
  gap: 20px;
}

.selector-main {
  display: grid;
  flex-grow: 1;
  width: 100%;
  gap: 20px;
  justify-content: space-around;
  grid-template-columns: repeat(4, 1.5fr);
}

.selector-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: calc(100vw / 4.5);
  aspect-ratio: 1;
  background-color: #dbdec3;
  padding: 20px;
  border-radius: 20px;
  gap: 5px;
  box-sizing: border-box;
  cursor: pointer;
  filter: grayscale(0) brightness(1);
  transition: filter 300ms;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds a shadow for a more polished look */
}

.new-tag {
  position: absolute;
  top: 17%;
  right: -38%;
  transform: translate(-50%, -50%) rotate(45deg); /* Adjust rotation angle as needed */
  width: 60%;
  height: auto;
}

.new-tag:hover {
  transform: translate(-50%, -50%) rotate(30deg); /* Slight rotation on hover */
}

.selector-item:hover {
  background-color: #bcbda7;
  transform: translate(0%, 0%) scale(1.05); /* Slight rotation on hover */
}

.selector-item.disabled {
  filter: grayscale(1) brightness(0.7);
}

.selector-item.outOfStock {
  filter: grayscale(1) brightness(0.7);
}

.selector-item.selected {
  outline: 3px solid #867dec;
  background-color: #cbcdbc;
}

.selector-image {
  display: block;
  height: 60%;
}

.selector-item-name {
  font-size: 35px;
  font-weight: bold;
}

.selector-item-description {
  font-size: 25px;
  font-weight: normal;
}

.selector-number {
  font-weight: bold;
  font-size: 30px;
  position: fixed;
  bottom: 30px;
  right: 50px;
  padding: 10px 30px;
  background-color: #867dec;
  border-radius: 50px;
  filter: grayscale(0);
  transition: filter 300ms;
}

.selector-number.disabled {
  filter: grayscale(0.8);
}

.outOfStock {
  position: absolute;
  background-color: aliceblue;
  top: 17%;
  left: 23%;
  transform: translate(-50%, -50%) rotate(-35deg); /* Adjust rotation angle as needed */
  display: flex;
  display: table-column;
  border-radius: 20px; /* Smooth corners */
  background: linear-gradient(
    135deg,
    #74ebd5 0%,
    #acb6e5 100%
  ); /* Nice gradient color */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds a shadow for a more polished look */
}

.outOfStock:hover {
  transform: translate(-50%, -50%) rotate(-30deg); /* Slight rotation on hover */
}

.amountRemaining {
  position: absolute;
  background-color: aliceblue;
  top: 17%;
  left: 23%;
  transform: translate(-50%, -50%) rotate(-35deg); /* Adjust rotation angle as needed */
  display: flex;
  display: table-column;
  border-radius: 20px; /* Smooth corners */
  background: linear-gradient(
    135deg,
    #f8cc08 0%,
    #df3d01 100%
  ); /* Nice gradient color */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds a shadow for a more polished look */
}

.amountRemaining:hover {
  transform: translate(-50%, -50%) rotate(-30deg); /* Slight rotation on hover */
}

.outOfStockText {
  position: relative;
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
}

.outOfStockInnerText {
  position: relative;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
  padding-bottom: 10px;
}

.flex-lb {
  width: 100%;
  display: block;
  height: 40px;
}

@media screen and (aspect-ratio: 4/3) {
  .selector-item {
    width: 220px;
  }

  .selector-item-name {
    font-size: 30px;
  }

  .selector-item-description {
    font-size: 19px;
  }

  .flex-lb {
    height: 20px;
  }
}

@media only screen and (hover: none) and (pointer: coarse) {
  .selector-header {
    flex-direction: column;
    align-items: center;
  }

  .selector-continue {
    margin: 0;
    font-size: 30px;
    height: 40px;
  }

  .selector-continue img {
    height: 100%;
  }

  .selector-number {
    left: 50%;
    text-wrap: nowrap;
    transform: translateX(-50%);
    width: fit-content;
  }

  .selector-item {
    width: 40vw;
    flex-grow: 1;
    height: 100%;
  }

  .selector-item-name {
    font-size: 30px;
    text-align: center;
    text-overflow: ellipsis;
    overflow-x: hidden;
    width: 100%;
  }

  .selector-item-description {
    font-size: 20px;
  }

  .selector-image {
    height: 110px;
  }

  .selector-container {
    margin-top: 60px;
  }
}
