
.cards {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;

  &>span {
    display: grid;
    place-content: center;
    color: #777;
    font-size: 14px;
    text-align: center;
    height: 100%;
    z-index: -1;
  }

  & article {
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    cursor: grab;
    overflow: hidden;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;

    &.go-left {
      transform: translateX(-150%) rotate(-30deg) !important;
    }

    &.go-right {
      transform: translateX(150%) rotate(30deg) !important;
    }

    &.go-left,
    &.go-right {
      transition: transform .3s ease, rotate .3s ease;
    }

    &.reset {
      transition: transform .3s ease;
      transform: translateX(0) !important;
    }

    & .choice {
      border-radius: 8px;
      color: black;
      border: 4px solid;
      z-index: 9999;
      position: absolute;
      top: 32px;
      right: 16px;
      opacity: 0;
      padding: 4px 8px;
      font-size: 24px;
      font-weight: bold;
      text-shadow: 0 0 10px rgba(0, 0, 0, .3);
      width: fit-content;

      &.nope {
        border-color: #ff6e63;
        color: #ff6e63;
        transform: rotate(30deg);
      }

      &.like {
        border-color: #63ff68;
        color: #63ff68;
        left: 16px;
        transform: rotate(-30deg);
      }
    }

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    & h2 {
      color: white;
      position: absolute;
      inset: 0;
      display: flex;
      align-items: last baseline;
      height: 100%;
      width: 100%;
      padding: 16px;
      z-index: 3;
      background: linear-gradient(to top,
          #00000088 20%,
          transparent 40%);
    }

    & span {
      margin-left: 6px;
      font-size: 18px;
      font-weight: 400;
    }
  }
}