
.modal-scratch{
    width: 400px; background: transparent; border: none; margin: 0 auto;
}
.scratch-card-text{
    color: #fff;
    text-align: center;
    width: 400px;

}
.scratch-card-text2{
    display: none;
    color: #fff;
    text-align: center;
    width: 400px;
}
.scratch-card {
    position: relative;
    text-align: center;
    padding: 0;
    width: 400px;
    height: 400px;
    background-color:transparent;
  }
  
  .scratch-card-cover-container {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    border-radius: 4px;
    width: 400px;
    height:400px;
    filter: url("#remove-black");
    transition: opacity 0.4s;
    
  }
  .scratch-card-cover-container.clear {
    opacity: 0;
  }
  .scratch-card-cover-container.hidden {
    display: none;
  }
.show {
    display: block;
  }
  .scratch-card-canvas {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
  }
  .scratch-card-canvas.hidden {
    opacity: 0;
  }
  .scratch-card-canvas:active {
    cursor: grabbing;
  }
  
  .scratch-card-canvas-render {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: background-color 0.2s;
  }
  .scratch-card-canvas-render.hidden {
    display: none;
  }
  
  .scratch-card-cover {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
  
    overflow: hidden;
  }
  .scratch-card-cover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.8) 50%, transparent 60%);
    background-position: bottom right;
    background-size: 300% 300%;
    background-repeat: no-repeat;
  }
  .scratch-card-cover.shine::before {
    animation: shine 8s infinite;
  }
  
  @keyframes shine {
    50% {
      background-position: 0% 0%;
    }
    100% {
      background-position: -50% -50%;
    }
  }
  .scratch-card-cover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    filter: url("#noise");
  }
  
  .scratch-card-cover-background {
    width: 100%;
    height: 100%;
    fill: transparent;
    opacity: 1;
  }
  
  .scratch-card-image {

    width: 90%;
    height: 90%;
    object-fit: contain;

    user-select: none;
    will-change: transform;

  }
  .scratch-card-image.animate {
    animation: pop-out-in cubic-bezier(0.65, 1.35, 0.5, 1) 1s;
    border: solid #fff 4px;
    border-radius: 8px;
    background-color: #fff;
  }
  
  @keyframes pop-out-in {
    36% {
      transform: scale(1.125);
    }
    100% {
      transform: scale(1);
    }
  }
  