.stsetcards{
    width: 350px;                
    /*height: 450px;*/            
    background: #41414169;
    border-radius: 8px;
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    flex-direction:column;
    padding:15px;
    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.stsetcards:hover{
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}
/*
.stsetcards:hover{
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}
*/

.cardWrap{
    display: flex;
    flex-wrap: wrap;              
    justify-content: center;      
    gap: 16px;  
}

.stitemparent{
    width: 100%;            /* Parent size (change as needed) */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Max 2 per row */
    gap: 10px;
}
.stitemchild{
    border: 1px solid #282828;
    border-radius: 3px;
    box-shadow: 0 0 20px #000;
    padding: 5px 10px;
    text-align:center;
    height: 100%;
  box-sizing: border-box;
}
.stsetclass, .stsetname{
    text-align:center;
    padding-top: 10px;
    padding-bottom: 20px;
    color: #dfdfdf;
}
.stsetclass{
    font-size:15px;
    text-transform: uppercase;
}
.stsetname{
    font-size:20px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}
/*
.stitemchild.is-marked, .stsetcards.is-marked{
    background:
  linear-gradient(
    to bottom right,
    transparent calc(50% - var(--line)),
    rgba(255, 90, 90, 0.08) calc(50% - var(--line) * 0.6),
    rgba(255, 120, 120, 0.35) 50%,
    rgba(255, 90, 90, 0.08) calc(50% + var(--line) * 0.6),
    transparent calc(50% + var(--line))
  ),
  linear-gradient(
    to bottom left,
    transparent calc(50% - var(--line)),
    rgba(255, 90, 90, 0.08) calc(50% - var(--line) * 0.6),
    rgba(255, 120, 120, 0.35) 50%,
    rgba(255, 90, 90, 0.08) calc(50% + var(--line) * 0.6),
    transparent calc(50% + var(--line))
  );
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.stitemchild.is-marked{
    --line: 10px;
    box-shadow: none;
    border: 0.8px solid #6f6f6f26;
}

.stsetcards.is-marked{
    --line: 40px;
    box-shadow: none;
    border: 0.8px solid #6f6f6f26;
}
*/
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}
input:checked + .slider {
  background-color: var(--primary-bg-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-bg-color);
}
input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
.stsetswitch{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.stsetswitchtext{
    color:white;
    margin-left:10px;
    align-content: center;
    margin-right: 10px;
}
.sitemparent a {
    display: block;
    height: 100%;
}

.btn {
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
  }
  .btn-ok {
    background: var(--primary-bg-color);
  }
  .btn-bad {
    background: #d35400;
  }
  .btn-error {
    background: #555;
  }

  .stsetswitch button{
    position: absolute;
    margin-right: 10px;
    right: 0px;
  }




.stitemchild,
.stsetcards {
    position: relative;
    overflow: hidden;
}

.stitemchild::before,
.stsetcards::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
      linear-gradient(
        to bottom right,
        transparent calc(50% - var(--line)),
        rgba(255, 90, 90, 0.08) calc(50% - var(--line) * 0.6),
        rgba(255, 120, 120, 0.35) 50%,
        rgba(255, 90, 90, 0.08) calc(50% + var(--line) * 0.6),
        transparent calc(50% + var(--line))
      ),
      linear-gradient(
        to bottom left,
        transparent calc(50% - var(--line)),
        rgba(255, 90, 90, 0.08) calc(50% - var(--line) * 0.6),
        rgba(255, 120, 120, 0.35) 50%,
        rgba(255, 90, 90, 0.08) calc(50% + var(--line) * 0.6),
        transparent calc(50% + var(--line))
      );

    background-repeat: no-repeat;
    background-size: 100% 100%;

    opacity: 0;
    transition: opacity 0.6s ease;
}
.stitemchild.is-marked::before,
.stsetcards.is-marked::before {
    opacity: 1;
}
.stitemchild.is-marked {
    --line: 10px;
    box-shadow: none;
    border: 0.8px solid #6f6f6f26;
    background:none;
}

.stsetcards.is-marked {
    --line: 40px;
    box-shadow: none;
    border: 0.8px solid #6f6f6f26;
    background:none;
}

.stSetItemCounterRow{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 15px;
}
#stItemCounter, #stSetCounter{
    color: white;
    align-content: center;
    margin-right: 10px;
    font-size:18px;
    margin-left: 5px;
}
#stItemCounterName, #stSetCounterName{
    color: white;
    margin-left: 10px;
    align-content: center;
    
    font-size:14px;
}
.searchStSets{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}
#stSetsSearch{
    font-size: 18px;
    width: 200px;
    padding: 10px;
    color:var(--primary-bg-color);
}