.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    padding: 20px;
  }
  
  .grid-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: transparent;
  }

  .set-title-container {
    margin: 10px 0;
    text-align: center;
  }
  
  .set-title-input {
    width: 100%;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    padding: 6px 10px;
    border:0;
    background: #1e1e1e;
    color: #ccc;
  }

  .set-actions{
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    text-align: center;
    padding-bottom: 10px;
    margin: auto;
    width: 80%;
    flex-flow: wrap;
    justify-content: center;
  }

  #overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
  }

  .set-overlay{
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1f1f1f;
    padding: 20px 25px;
    border-radius: 12px;
    width:300px;
  }
  
  .overlay-grid {
    padding: 20px;
    max-width: 100%;
    max-height: 30vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    justify-content: center;
    overflow-y: auto;
    background: #1f1f1f;
    border-radius: 6px;
  }
  
  .overlay-grid img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s ease;
  }
  
  .overlay-grid img:hover {
    border-color: #2e9fe7;
  }

  .overlay-actions{
    display: flex;
    gap:10px;
    margin-bottom:16px;
  }
  
  .enchant-button {
    position: absolute;
    bottom: -12px;
    left: -12px;
    width: 35px;
    height: 35px;
    background-color: #103674;
    border-radius: 50%;
    font-weight: bold;
    font-size: 25px;
    text-align: center;
    line-height: 35px;
    cursor: pointer;
    z-index: 10;
  }

  .enchant-img {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    background-color: #103674;
    border-radius: 50%;
    font-weight: bold;
    font-size: 25px;
    text-align: center;
    line-height: 35px;
    cursor: pointer;
    z-index: 11;
  }
  
  .grid-slot {
    position: relative;
    display: inline-block;
  }
  
  .stone-slot-container {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
  }
  
  .stone-slot {
    width: 25px;
    height: 25px;
    cursor: pointer;
    position: relative;
  }

  .stone-slot.empty{
    background-color: #555;
    border-radius: 0 50%;
    width:20px;
    height:15px;
    border:1px solid black;
  }
  
  .stone-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
  }

  .overlay-stone-grid{
    display:flex;
    flex-direction: column;
    padding: 20px;
    max-width: 100%;
    overflow-y: auto;
    gap: 5px;
    justify-content: center;
    background: #1f1f1f;
  }

  .stone-group img{
    height:35px;
    width: 35px;
  }

  .stone-group{
    text-align: left;
    background-color: #555;
    padding: 0 10px 10px 10px;
    border-radius: 12px;
  }

  .overlay-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #212121;
    padding: 15px;
    border-radius: 6px;
    width:100%;
    max-width:350px;
    max-height:80vh;
    overflow-y: scroll;
  }

  .stone-lvl-label{
    position: absolute;
    font-size: 9px;
    width: 100%;
    bottom: 0px;
    left: 0;
    text-shadow: -1px -1px 0 black,
    1px -1px 0 black,
    -1px 1px 0 black,
    1px 1px 0 black;
  }

  .stone-view-type {
    position: relative;
    height: 1.5rem;
    width: 3rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 9999px;
    background-color: rgba(100, 116, 139, 0.377);
    transition: all .3s ease;
  }
  
  .stone-view-type:checked {
    background-color: rgba(100, 116, 139, 0.377);
  }
  
  .stone-view-type::before {
    position: absolute;
    content: "";
    left: calc(1rem - 1.4rem);
    top: calc(1.4rem - 1.6rem);
    display: block;
    height: 1.6rem;
    width: 1.6rem;
    cursor: pointer;
    border: 1px solid rgba(100, 116, 139, 0.527);
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 10px rgba(100, 116, 139, 0.327);
    transition: all .3s ease;
  }
  
  .stone-view-type:hover::before {
    box-shadow: 0 0 0px 8px rgba(0, 0, 0, .15)
  }
  
  .stone-view-type:checked:hover::before {
    box-shadow: 0 0 0px 8px rgba(0, 0, 0, .15)
  }
  
  .stone-view-type:checked:before {
    transform: translateX(100%);
    border-color: rgba(100, 116, 139, 0.377);
  }

  .schematic-stars {
    font-weight: bold;
    pointer-events: none;
  }

/* Purple */
.stone-filter[data-color="purple"] {
  filter: saturate(400%) hue-rotate(330deg) brightness(0.9);
}

/* Red */
.stone-filter[data-color="red"] {
  filter: saturate(400%) hue-rotate(80deg) brightness(0.9);
}

/* Green */
.stone-filter[data-color="green"] {
  filter: saturate(100%) hue-rotate(200deg) brightness(1.1);
}

/* Blue */
.stone-filter[data-color="blue"] {
  filter: saturate(300%) hue-rotate(300deg) brightness(0.9);
}

/* Yellow */
.stone-filter[data-color="yellow"] {
  filter: saturate(120%) hue-rotate(130deg) brightness(1.1);
}

/* Light Blue (Cyan) */
.stone-filter[data-color="azure"] {
  filter: saturate(100%) hue-rotate(300deg) brightness(1.2);
}

/* Light Magenta (Pink) */
.stone-filter[data-color="pearl"] {
  filter: saturate(80%) hue-rotate(20deg) brightness(1.1);
}

/* Dark Green */
.stone-filter[data-color="rotten"] {
  filter: saturate(200%) hue-rotate(170deg) brightness(0.7) contrast(2) sepia(0.5);
}

/* Brown */
.stone-filter[data-color="earth"] {
  filter: saturate(60%) hue-rotate(115deg) brightness(0.75) contrast(2) sepia(0.2);
}

.set-gearScore{
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: visible;
}

.gear-level-container {
  position: absolute;
  top: -20px;
  left: 5px;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 5px black;
  cursor:pointer;
}

#gearLvl {
  font-size:35px;
}