  * {
    margin: 0;
     padding: 0;
     box-sizing: border-box;
    }

    :root {
  --reading-font-size: 16px;
}

  body {
    background-color:#e5d9c7;
    background-image: url(bkgd.jpg);
    background-size: 60%;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
      }

  .wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    margin-bottom: -40px;
   }

   .topbar-nav {
     flex: 1;
   }

.topbar-right {
    flex: 1;
    display: flex;
   justify-content: flex-end;
      }

  .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 30px;
      }

  #traceTitle {
    font-family: "chantal", sans-serif;
    text-align:center;
    font-weight: 600;
    font-style: normal;
    color: #402725;
    font-size: 3em;
    margin-bottom: 15px;
      }

    #homeTitle{
      font-size:2.4em;
    }

    #autumn {
      font-size:1.6em;
    }

    h1{
    font-family: "chantal", sans-serif;
    text-align:center;
    font-weight: 600;
    font-style: normal;
    color: #402725;
    font-size: 3.3em;
    margin-top:30px;
    }

  .subtitle {
    font-size: var(--reading-font-size);
    color: #402725;
    text-align: center;
    margin-top:-10px;
    margin-bottom: 10px;
    font-family: "shantell-sans-bouncy", sans-serif;
    font-weight: 400;
    font-style: italic;
  }

  .seal-name {
    font-size: var(--reading-font-size);
    text-align:center;
    color: #402725;
    font-weight: 600;
    font-family: "chantal", sans-serif;
      }

  #canvasWrap {
    margin-top:-140px;
    width: 100%;
    max-width:500px;
    aspect-ratio: 1 / 1;
    margin:0, auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin: 20px 0;
  }

  #canvasWrap canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 500px;
  touch-action: none; 
}
  .btn {
    padding: 6px 14px;
    font-size: 16px;
    font-family: "chantal", sans-serif;
    color: #402725;
    background-color: #f5e6d3;
    border: 2px solid #402725;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
      }

  .btn:hover {
    background-color: #402725;
    color: #f5e6d3;
    transform: scale(1.05);
   }

  .bottom-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin-top:-70px;
    padding: 25px 30px;
    flex-wrap: wrap;
  }

  .bottom-actions .btn {
    padding: 10px 20px;
      font-size: var(--reading-font-size);
}

      .text-size-controls {
      display: flex;
      align-items: center;
      gap: 5px;
      color: #402725;
      font-size: 14px;
    }

    .size-btn {
      padding: 5px 8px;
      border: 2px solid #402725;
      background-color: #f5e6d3;
      color: #402725;
      border-radius: 6px;
      cursor: pointer;
      font-weight: bold;
      transition: all 0.3s ease;
    }

    .size-btn:hover {
      background-color: #402725;
      color: #f5e6d3;
      transform: scale(1.05);
    }

    .size-btn.active {
      background-color: #402725;
      color: #f5e6d3;
    }

@media screen and (max-width:420px){
  #traceTitle{
    font-size:2em;
  }

}

@media screen and (max-width:500px){
    #homeTitle{
      font-size:1.5em;
    }

    #autumn {
      font-size:1.5em;
    }
}