@import '~riotclient-lol-asset-csslib/styles/sizes';
@import '~riotclient-lol-asset-csslib/styles/typekit';

.rcp-fe-lol-reconnect, .rcp-fe-lol-game-in-progress, .rcp-fe-lol-pre-end-of-game, .rcp-fe-lol-waiting-for-stats,
.rcp-fe-lol-repair-while-in-game > div {
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  background-color: black;
}

.game-in-progress-container, .pre-end-of-game-container {
  @extend $typekit_h4_preserve_case;
}

.reconnect-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;

  .button-container {
    display: flex;
    flex-direction: row;

    .reconnect-to-game {
      padding-right: 10px;
    }

    .quit.hidden {
      display: none;
    }
  }
}


.rcp-fe-lol-repair-while-in-game {
  height: 100%;
  width: 100%;
  position: relative;
  .repair-mask {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 0;
    background-color: $color_palette_almostBlack;
    opacity: 0.5;
    top: 0;
    left: 0;
  }
  .repair-icon {
    width: 76px;
    height: 76px;
    position: relative;
    margin: 0px auto;
    z-index: 1;
    .wrench {
      position: absolute;
      z-index: 1;
      width: 100%;
      height: 100%;
      background-size: contain;
      background-image: url('../images/icon-repair.png');
      background-repeat: no-repeat;
    }
    .spinner {
      position: absolute;
      z-index: 0;
      width: 100%;
      height: 100%;
      background-size: contain;
      background-image: url('../images/spinner-large.png');
      background-repeat: no-repeat;
      -webkit-animation: repairSpinnerSpin 5s linear infinite;
    }
    @-webkit-keyframes repairSpinnerSpin {
      100% {
        -webkit-transform: rotate(360deg);
      }
    }
  }
  .repair-body {
    z-index: 1;
    text-align: center;
    width: 270px;
    .header {
      @extend $typekit_h3;
      margin: 18px 0px;
    }
    hr {
      margin: 0px;
      opacity: 0.5;
      border-top: 1px solid $color_palette_grey1;
      border-bottom: 0px;
    }
    .body {
      @extend $typekit_text_s;
      margin: 18px 10px;
    }
    .link a {
      @extend $typekit_link_external;
    }
  }
}
