@use './vars';

.read {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  flex-direction: column;

  .toc {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background-color: var(--dx-bg-color);
    margin: 0 1px 40px 0;
    border-right: 1px solid var(--dx-bg-color--separator);
    overflow-y: scroll;
    max-width: 100vh;
    transition: 0.2s;

    &.hidden {
      transform: translateX(-100%);
    }

    &.shown {
      transform: translateX(0);
    }

  }

  .canvas {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 0 0 120px 0;

    &.shaded {
      opacity: 0.4;
      background-color: var(--dx-bg-color--highlight);
    }

    .paper {
      padding: 2rem 1rem 1rem 1rem;
      margin: 0;
      overflow-y: scroll;
      max-width: vars.$media-medium;
      //max-width: 100vw;
    }

    .markRead {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: 0 1rem;

      .bookmark {
        color: var(--dx-bg-color--separator);
      }

      & p {
        padding: 0;
        font-size: 0.8rem;
        color: var(--dx-fg-color--dimmed);
        text-align: center;
      }
    }
  }

  .toolbar {
  }
}

@media (max-width: vars.$media-medium) {
  .read {
    .canvas {
      max-width: 100vw;
    }
  }
}
