#page-game {

  #overlayCreateGroup {
    position: absolute;
    display: none;
    background-color: white;
    border: 1px solid gray;
    border-radius: 10px;
    width: calc(100vw - 20px);
    min-height: 200px;
    transition: all .5s ease-in-out;
    opacity: 0;
    z-index: 9001;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all .5s ease-in-out;

    &.displayed {
      display: block;
    }

    &.active {
      opacity: 1;
    }
  }

  .content-ongroup {
    h2 {
      text-align: center;
      font-weight: 700;
      color: white;
    }
  }
}

.carta {
  /* border: 1px solid black; */
  box-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
  border-radius: 10px;
  width: 155px;
  height: 190px;
  transition: transform .5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translate(0, 0) scale(1);
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;

  &.v-hidden {
    visibility: hidden;
  }

  &.cloned {
    z-index: 9001;
  }

  &.normal {
    .head {
      background-color: rgb(19, 130, 0);
    }
  }

  &.special {
    .head {
      background-color: rgb(116, 0, 0);
    }
  }

  .head {
    h3 {
      text-align: center;
      font-weight: 700;
      color: white;
      font-size: .8rem;
      padding: 0 5px;
      line-height: 30px;
      margin: 0;
    }
  }

  .content {
    background: white;
    flex: 1; /* Takes up all remaining space */
    display: flex;
    flex-direction: column;
  }

  .body {
    /* height: 120px; */
    flex: 1; /* Takes up all remaining space */
    padding: 5px 10px 5px 10px;
    text-align: center;
    
    .description {
      text-align: center;
      font-size: 12px;
    }
  }

  .foot {
    text-align: center;
    padding: 0 10px;
    height: 27px;

    button {
      opacity: 1;
      transition: all .35s ease-in;
      padding: 0 10px;

      &.displayed {
        display: inline-block !important;
      }

      &[disabled] {
        opacity: 0;
        display: none;
      }
    }
  }
}

/* LARGE SCREENS */
@media (min-width: 64em) {
  .carta {
    width: 230px;

    .head {
      h3 {
        font-size: 1rem;
        padding: 0 10px;
        line-height: 50px;
      }
    }

    .body {
      height: 180px;

      .description {
        text-align: center;
        font-size: 17px;
      }
    }
  }
}