body {
    font-family: sans-serif;
    text-align: center;
    background: #fefefe;
    padding: 2rem;
  }
  
  textarea {
    width: 100%;
    max-width: 400px;
    height: 300px;
    margin: 1rem 0;
    font-size: 1rem;
    padding: 0.5rem;
    resize: border-box;
  }
  
  button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: block;
    margin: 1rem auto;
  }
  
  /* Respect the hidden attribute */
  button[hidden] {
    display: none !important;
  }
  
  blockquote {
  font-family: "Fuzzy Bubbles", sans-serif;
  font-style: normal;
  background: #f0f0f0;
  background-image: url('/Images/lined-paper-2.png');
  background-size: auto;
  background-position: top left;
  background-repeat: repeat;
  background-color: #f0f0f0;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 400px;
  white-space: pre-wrap;
  word-break: break-all; /* Additional fallback */
  border: 1px solid #ddd;
}

  .note-form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .textarea-container {
    position: relative;
    width: 100%;
    max-width: 400px;
  }
  
/* drawing canvas */
.drawing-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Start with drawing disabled */
  border: none;
  background: transparent;
  cursor: default;
  z-index: 2; /* Above textarea but below text */
  box-sizing: border-box;
}
  
  .drawing-canvas.drawing-mode {
    pointer-events: auto;
    cursor: default;
    z-index: 10; /* Above everything when drawing */
  }
  
  .mode-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    justify-content: center;
  }
  
  .mode-controls button {
    margin: 0;
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .mode-btn.drawing-mode {
    color: black;
  }
  
  .clear-btn {
    color: black;
  }
  
  .char-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 0.8rem;
    color: #666;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 1;
  }
  
  .note-form button {
    margin-top: 1rem;
  }

/* Font */

.fuzzy-bubbles-regular {
    font-family: "Fuzzy Bubbles", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
.fuzzy-bubbles-bold {
    font-family: "Fuzzy Bubbles", sans-serif;
    font-weight: 700;
    font-style: normal;
  }