body {
  overscroll-behavior: none;
}

/* Chrome version 29 and above */
@media screen and (-webkit-min-device-pixel-ratio:0)
and (min-resolution:.001dpcm) {
  ::-webkit-scrollbar {
      width: 10px;
      height: 0;
  }

  ::-webkit-scrollbar-thumb {
      border-radius: 5px;
      background: #aaa;
  }
}
.typewriterin {
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
  position: absolute;
  overflow: hidden;

  * {
    outline: none;
  }

  .typewriterin__header {
    width: 100vw;
    height: 5rem;

    .typewriterin__header__logo {
      font-size: 2rem;
      line-height: 5rem;
      text-align: center;
      font-family: 'Arial Black', sans-serif;
    }
  }

  .typewriterin__textarea {
    margin: 0 auto;
    padding: 2rem;
    width: 50vw;
    min-width: 10rem;
    outline: 1px dotted #666;

    textarea {
      display: block;
      max-height: 80vh;
      height: 30rem;
      background: none;
      outline: none;
      border: none;
      width: 100%;

      &::placeholder {
        color: rgba(0, 0, 0, .3);
      }
    }
  }

  .typewriterin__footer {
    display: flex;
    flex-direction: row;
    justify-content: center;

    background: none;

    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 5rem;
  }

  .typewriterin__config {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    left: 0;
    top: 0;

    background: rgba(0, 0, 0, .3);
    width: 100%;
    height: 100%;
    overflow: hidden;

    .typewriterin__config__panel {
      width: 80vw;
      max-height: 70vh;
      overflow: scroll;

      margin: 5rem auto;
      padding: 2rem 7rem;
      border-radius: 20px;

      // background: #333;
      display: flex;
      flex-direction: column;
      justify-content: start;

      .typewriterin__config__panel__row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 0;
        width: 100%;

        * {
          font-size: 1.5rem;
          font-family: 'Arial Black';
        }

        label, .input-wrapper {
          display: block;
        }

        label {
          margin-top: .5rem;
        }

        .input-wrapper {
          padding: .5rem 2rem;
          border-radius: 1rem;

          input {
            width: 20rem;
            background: none;
            border: none;
            outline: none;
            text-align: right;
          }

          input[type="checkbox"] {
            width: 2rem;
            height: 2rem;
            cursor: pointer;
          }
        }
      }

      .typewriterin__config__panel__row:not(:first-child) {
        border-top: 1px solid;
      }

      .typewriterin__config__panel__close-button-wrapper {
        margin: 1rem auto 0;
      }
    }
  }


  .icon-button {
    button {
      border: none;
      cursor: pointer;
      display: block;

      border-radius: 50%;
      width: 4rem;
      height: 4rem;
    }
  }

  @font-face {
    font-family: 'NitalagoRuika-03yeah';
    src: local('NitalagoRuika-03');
}
