* {transition: none;}

.overlayp {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1599;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  transform-origin: center center;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  z-index: 1600;
  pointer-events: none;
  will-change: transform, opacity;
  width: 90%;
  max-width: 900px;
  height: 80%;
  max-height: 700px;
  overflow: hidden;
  h2 {
    background: linear-gradient(to right, #65defc, #938aff);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    padding: 10px;
    color: #fff;
    font-size: 18px;
  }
  .contentp {
    position: absolute;
    top: 57px;
    left: 10px;
    right: 10px;
    bottom: 61px;
    background: #f5f5f5;
    border-radius: 5px;
    padding: 10px;
    overflow-y: scroll;
    text-align: center;
  }
}
.contentp {
  h3 {
    background: #73a1ff;
    font-size: 20px;
    color: #fff;
    margin: 0;
    padding: 5px;
    text-align: center;
    margin-bottom: 15px;
  }
}
.popup.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.btnpop {
    display: flex;
    gap: 10px;
    box-sizing: border-box;
    justify-content: center;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
}
.cbtn {
    background: linear-gradient(to right, #65defc, #938aff);
    width: 120px;
    height: 40px;
    box-shadow: 0 0 2px 0px gray;
    border: none;
    border-radius: 5px;
    color: #fff;
    transition: all 0.3s;
    &:hover , &:active {
      opacity: 0.5;
    }
}

.cssmode {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 10px;
  label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    input {
      margin: 0;
    }
  }
}