@import './styles/common.scss';

body {
  margin: 0;
  padding: 0;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

.app {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;

  &.ocr-overlay {
    background-color: white;
    z-index: 10000;
  }

  &.no-display {
    .status {
      margin-bottom: 20px;
      font-size: 14px;
    }

    .content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  &.with-alert .backup-alert {
    display: block;
  }

  .app-inner {
    flex: 1;
    display: flex;
    flex-direction: row;
  }

  .backup-alert {
    display: none;
    padding: 5px 0;
    text-align: center;
    font-size: 14px;
    background: rgb(253, 253, 194);

    .backup-actions {
      margin-left: 20px;

      button {
        margin-right: 10px;
      }
    }
  }

  .content {
    @include flexcol();

    flex: 3;
    min-width: 520px;
    background: #fff;
    overflow-y: auto;
  }

  .content.sidepanel {
    min-width: 100%;
    width: 100%;
  }

  .hidden-during-replay {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-top: 15px;
    font-size: 14px;
    color: #999;
  }

  .list-not-loaded {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    button {
      margin-top: 20px;
    }
  }
}
