@use "@styles/mixin" as *;

.body {
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px black;
  display: grid;
  grid-template-areas: "icon title title" "icon amount balance";
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr;
  background-color: white;
  padding: 16px;
  grid-column-gap: 16px;
  cursor: pointer;
  position: relative;

  font-family: "Manrope";

  & > h3 {
    grid-area: title;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  & > h4 {
    grid-area: amount;
    font-size: 20px;
    font-weight: bold;
    line-height: 30px;

    span {
      font-size: 14px;
      text-transform: uppercase;
    }
  }

  & > p {
    grid-area: balance;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #6d6d6d;
    align-self: center;
  }

  .hover {
    position: absolute;
    top: 32px;
    right: 14px;
    opacity: 0;

    transition: opacity 0.15s ease-in-out;

    &.active {
      opacity: 1;
    }

    & > .wrapper {
      background-color: white;
      box-shadow: inset 0 0 0 1px black;
      padding: 8px;
      border-radius: 8px;
      width: 220px;
      @include flexCol;

      .gameTitle {
        font-size: 12px;
        font-weight: 500;
        line-height: 20px;
        @include flexAlignCenter;
      }

      .gameInfo {
        display: grid;
        grid-template-columns: 1fr auto;

        h4 {
          font-size: 12px;
          font-weight: 700;
          line-height: 18px;
          text-transform: uppercase;
        }
      }
    }
  }
}
