@import url("/common.css");

@keyframes come-in {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

body:not(.mobile) {
  background-color: #000000;
  color: #ff0000;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;

  main {
    height: 85vh;
    width: 85vw;
    text-align: center;
    background-color: #000000;
    color: #ff0000;
    border-color: #ff0000;
    border-width: 3px;
    border-style: double;
    display: flex;
    justify-content: space-around;
    align-items: center;
    transition: opacity 2s ease-in-out;

    ul {
      list-style-type: none;
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      li {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: end;
        justify-content: start;
        border-bottom: 5px double red;
      }
    }
  }

  article {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 60vh;
    width: 50vw;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: #000000;
    color: #ff0000;
    border-color: #ff0000;
    border-width: 3px;
    border-style: double;
    animation: come-in 1s ease-in-out;
  }

  .book {
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: sideways-lr;
    padding: 5px;
    border: 2px solid #660000;
    background-color: #aa0000;
    color: black;
    max-height: 200px;
    min-height: 100px;
    margin-top: 5px;
    margin-right: 2px;
    cursor: grab;
  }

  .column {
    flex-direction: column;
  }
}

body.mobile {
  background-color: #000000;
  color: #ff0000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  main {
    height: 80%;
    width: 80%;
    padding: 10px;
    text-align: center;
    background-color: #000000;
    color: #ff0000;
    border-color: #ff0000;
    border-width: 3px;
    border-style: double;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    overflow: scroll;
  }

  main:not(.paused) > * {
    pointer-events: none;
  }

  button {
    scale: 1.25;
    background-color: #000000;
    color: #ff0000;
    border-color: #ff0000;
    border-width: 3px;
    border-style: double;
    font-family: monospace;
    transition: all 0.1s;
  }

  button:hover {
    background-color: #ff0000;
    color: #000000;
  }

  img {
    width: 50%;
  }
}
