@import url('https://fonts.googleapis.com/css2?family=Londrina+Solid:wght@300&display=swap');

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Londrina Solid', cursive;
    }

    html, body {
      width: 100vw;
      height: 100vh;
      background-color: #eddcd2;
      overflow: hidden;
    }

    .container {
      width: 100vw;
      height: 100vh;
      perspective: 1200px;
      position: fixed;
      inset: 0;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .cover, .reader {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100vw;
      height: 100vh;
      transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
      backface-visibility: hidden;
    }

    .cover {
      z-index: 2;
      background-size: cover;
      background-position: center;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .cover.hidden {
      transform: rotateY(-180deg);
      opacity: 0;
      z-index: 0;
      pointer-events: none;
    }

    .reader {
      background-color: white;
      overflow-y: auto;
      padding: 20px;
      z-index: 3;
      opacity: 1;
      pointer-events: auto;
    }

    .reader h3 {
      padding-bottom: 10px;
      font-size: 22px;
    }

    .reader p {
      font-size: 14px;
      text-align: justify;
      padding-bottom: 10px;
    }

    .top-bar {
      position: absolute;
      top: 10px;
      left: 0;
      width: 100%;
      display: flex;
      justify-content: start;
      padding: 0 20px;
      z-index: 4;
    }

    .top-bar button {
      font-family: 'Londrina Solid';
      font-size: 14px;
      padding: 6px 12px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }