@font-face {
    font-family: "happy-times-italic";
    src: url(Assets/happy-times-NG_italic_master_web.woff);
  }
@font-face {
    font-family:"happy-times-regular";
    src: url(Assets/happy-times-NG_regular_master_web.woff);
  }
@font-face {
    font-family:"newcmu";
    src: url(Assets/NewCM10-Book.woff);
  }
  body, html {
    font-optical-sizing: auto;
    background-color: #ffffff;
    color: #ff0000;
    display: flex;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }
  nav {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 16px 16px;
    margin: 16px;
    width: 200px;
    height: 90%;
    background-color: #ffffff;
    color: currentColor;
  }
  nav a {
    font-family: "happy-times-italic";
    color: currentColor;
    font-size: 16px;
    margin-bottom: 24px;
  }
  nav p {
    font-size: 16px;
  }
  main {
    width: 100%;
    position: relative;
    z-index: 1;
    height: 99vh;
    background-color: #ffffff;
    justify-content: center;
    text-align: center;
    transition: transform 0.5s;
    border: currentColor 2px solid;
    border-radius: 16px;
  }
  main.open{
    transform: translate(262px, 0);
  }
  h1 {
    text-decoration: none;
    font-family: "happy-times-italic";
    font-size: 5vmin;
    line-height: 1.25;
    font-weight: 200;
    margin: 40px 0 0 0;
  }
  h2 {
    font-family: "happy-times-regular";
    font-size: 5vmin;
    line-height: 1.25;
    font-weight: 200;
    margin: 0;
    padding: 0 16px;
    color: #ffffff;
    background-color: #ff0000;
    display: inline-block;
    border-radius: 8px;
  }
  p {
    font-family: "newcmu";
    font-size: 3vmin;
    line-height: 1.2;
    font-weight: 200;
  }
  p.number {
    font-size: 2vmin;
    margin: auto;
  }
  section {
    position: flex;
    flex-direction: column;
    height: 70%;
    padding: 40px 40px;
    transition: color 0.1s;
  }
  section div.title {
    width: 100%;
  }
  section div.quote {
    width: 60%;
    border: 2px solid currentColor;
    text-align: left;
    display: inline-block;
    padding: 8px 32px 24px 32px;
    margin: 40px 0;
    border-radius: 4px;
  }
  section div.circle {
    width: 5vmin;
    height: 5vmin;
    border-style: dashed;
    border-radius: 50%;
    display: inline-flex;
    text-align: center;
    justify-content: center;
    margin: 24px 0 0 0;
  }
  section div.quote p.tags {
    font-family: "happy-times-italic";
    font-size: 2vmin;
    text-align: right;
  }
  section div.quote p.source {
    font-size: 2vmin;
  }
  section div.quote span.book {
    font-family: "happy-times-italic";
    text-align: right;
    font-size: 2vmin;
  }
  div.info {
    width: fit-content;
    height: fit-content;
    font-family: "happy-times-italic";
    color: currentColor;
    border: currentColor 2px dotted;
    background-color: #ffffff;
    text-align: center;
    padding: 4px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
  }
  footer {
    position: fixed;
    bottom: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4px;
  }
  div.buttons {
    width: 40%;
    height: fit-content;
    display: flex;
    justify-content:space-between;
    align-items: center;
    border: 2px solid currentColor;
    background-color: #ffffff;
    padding: 8px 8px;
    border-radius: 40px;
    margin-bottom: 40px;
  }
  footer svg {
    cursor: pointer;
  }
  footer .change {
    stroke: currentColor;
  }

  @media screen and (min-width: 320px) and (max-width: 680px){
    section {
      padding: 24px 16px;
    }
    section div.circle {
      width:  7vmin;
      height: 7vmin;
      margin: 24px 0 0 0;
    }
    section div.quote {
      margin: 40px 0;
    }
    nav {
      width: 150px;
      padding: 8px 8px;
      margin: 4px;
    }
    main.open{
      transform: translate(170px, 0);
    }
    h1 {
      font-size: 7vmin;
    }
    h2 {
      font-size: 7vmin;
    }
    p {
      font-size: 4vmin;
    }
    p.number {
      font-size: 4vmin;
    }
    section div.quote p.tags {
      font-size: 3vmin;
    }
    section div.quote p.source {
      font-size: 3vmin;
    }
    section div.quote span.book {
      font-size: 3vmin;
    }
    footer {
      bottom: 8px;
      padding: 4px;
    }
    div.buttons {
      width: 40%;
      padding: 4px 4px;
      margin-bottom: 24px;
    }
  }
