  
    body {
      margin: 0;
      padding: 0;
      background: #bdbdbd;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      font-family: "Segoe UI", sans-serif;
    }

    .notepad {
      width: 550px;
      height: 700px;
      background: #fff;
      border: 8px solid #111;
      border-radius: 16px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.4);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    /* Toolbar like leather panel */
    .header {
      background: #1d1d1d;
      padding: 8px 10px;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      border-bottom: 3px solid #000;
      justify-content: space-between; /* distribute items */
    }

    .header select,
    .header button,
    .header input[type="color"] {
      background: #333;
      color: #fff;
      border: none;
      border-radius: 4px;
      padding: 5px 8px;
      font-size: 14px;
      cursor: pointer;
      outline: none;
    }

    .header button {
      font-weight: bold;
      min-width: 32px;
      text-align: center;
    }

    .header select:hover,
    .header button:hover,
    .header input[type="color"]:hover {
      background: #444;
    }

    /* Alignment group */
    .align-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      margin: 0 auto; /* center it */
    }

    .align-label {
      font-size: 12px;
      color: #ccc;
      font-weight: bold;
    }

    .align-group {
      display: flex;
      border: 1px solid #444;
      border-radius: 4px;
      overflow: hidden;
    }

    .align-group button {
      border-radius: 0;
    }

    .align-group button:not(:last-child) {
      border-right: 1px solid #555;
    }

    /* Lined paper effect */
    .txt1 {
      flex: 1;
      font-size: 16px;
      line-height: 1.6;
      padding: 20px;
      border: none;
      outline: none;
      background: repeating-linear-gradient(
        white,
        white 28px,
        #f1caca 29px
      );
      font-family: "Roboto", sans-serif;
    }

    footer {
      background: #111;
      color: #aaa;
      text-align: center;
      padding: 8px;
      font-size: 12px;
    }
  