:host {
  display: block;
  position: relative;
  overflow: hidden;

  .second-card-container {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    overflow: hidden;
    transition: top 0s 0.5s;
  }

  ::ng-deep {
    el-card-front el-card,
    el-card-back el-card {
      box-shadow: none;
      margin: 0;
    }

    el-card-front {
      display: block;
      height: 100%;
    }

    el-card-back {
      position: absolute;
      left: 0;
      top: 100%;
      width: 100%;
      transition: top 0.5s;
    }
  }

  .reveal-button {
    cursor: pointer;
    position: absolute;
    right: 0;
    bottom: 0;
    transform: rotate(180deg);
    transition: transform 0.3s;
  }
}

:host(.revealed) {
  .second-card-container {
    top: 0;
    transition: none;

    ::ng-deep el-card-back {
      top: 0;
    }
  }

  .reveal-button {
    transform: none;
  }
}
