body {
    font-family: 'Liberation Sans', Arial, sans-serif;
    background-color: #2e2e2e;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    color: #ddd;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  body.light-mode {
    background-color: #f0f0f0;
    color: #333;
  }
  
  h2 {
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 15px 0;
    font-weight: normal;
    align-self: flex-start;
    margin-left: 5%;
    transition: color 0.3s ease;
  }
  
  body.light-mode h2 {
    color: #333;
  }
  
  .app-container {
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    position: relative;
  }
  
  #toolbar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background-color: #3d3d3d;
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid #555;
    height: 36px;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease;
  }
  
  body.light-mode #toolbar {
    background-color: #e0e0e0;
    border-bottom: 1px solid #ccc;
  }
  
  #toolbar button,
  #imageUpload,
  #fontSelect {
    background-color: #3d3d3d;
    color: #ddd;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  body.light-mode #toolbar button,
  body.light-mode #imageUpload,
  body.light-mode #fontSelect {
    background-color: #d0d0d0;
    color: #333;
  }
  
  #toolbar button:hover,
  #imageUpload:hover,
  #fontSelect:hover {
    background-color: #4d4d4d;
  }
  
  body.light-mode #toolbar button:hover,
  body.light-mode #imageUpload:hover,
  body.light-mode #fontSelect:hover {
    background-color: #c0c0c0;
  }
  
  #toolbar button:active,
  #imageUpload:active,
  #fontSelect:active {
    background-color: #2d2d2d;
  }
  
  body.light-mode #toolbar button:active,
  body.light-mode #imageUpload:active,
  body.light-mode #fontSelect:active {
    background-color: #b0b0b0;
  }
  
  #toolbar button:focus,
  #imageUpload:focus,
  #fontSelect:focus {
    outline: 1px solid #66c2ff;
  }
  
  body.light-mode #toolbar button:focus,
  body.light-mode #imageUpload:focus,
  body.light-mode #fontSelect:focus {
    outline: 1px solid #0078d7;
  }
  
  #toolbar button i {
    font-size: 14px;
  }
  
  #toolbar button.active {
    background-color: #555;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  body.light-mode #toolbar button.active {
    background-color: #b0b0b0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  #textColorPicker {
    height: 28px;
    width: 28px;
    padding: 0;
    border: none;
    border-radius: 3px;
    cursor: pointer;
  }
  
  #fontSelect {
    min-width: 120px;
    padding: 6px 6px;
    height: 28px;
  }
  
  .editor-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  
  #editor {
    flex: 1;
    width: 100%;
    border: 1px solid #555;
    border-top: none;
    background-color: #1e1e1e;
    color: #ddd;
    font-family: 'Liberation Mono', Consolas, monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 10px 15px;
    border-radius: 0 0 4px 4px;
    resize: none;
    overflow: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    box-sizing: border-box;
  }
  
  body.light-mode #editor {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ccc;
    border-top: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  #editor:focus {
    outline: none;
  }
  
  .image-preview {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border: 1px solid #555;
    border-radius: 3px;
    transition: border-color 0.3s ease;
  }
  
  body.light-mode .image-preview {
    border: 1px solid #ccc;
  }
  
  .suggestions-box {
    position: absolute;
    background: #3d3d3d;
    border: 1px solid #555;
    border-radius: 3px;
    display: none;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    width: auto;
    min-width: 150px;
    padding: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  body.light-mode .suggestions-box {
    background: #f0f0f0;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .suggestion {
    padding: 5px 8px;
    cursor: pointer;
    font-size: 13px;
    color: #ddd;
    transition: background-color 0.1s ease, color 0.3s ease;
  }
  
  body.light-mode .suggestion {
    color: #333;
  }
  
  .suggestion:hover,
  .suggestion.selected {
    background: #4d4d4d;
  }
  
  body.light-mode .suggestion:hover,
  body.light-mode .suggestion.selected {
    background: #d0d0d0;
  }
  
  #status-bar {
    width: 100%;
    background-color: #3d3d3d;
    height: 24px;
    margin-top: 5px;
    border-radius: 4px;
    font-size: 12px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #aaa;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  body.light-mode #status-bar {
    background-color: #e0e0e0;
    color: #666;
  }
  
  .color-preview {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #555;
    margin-left: 10px;
    background-color: #dddddd;
  }
  
  body.light-mode .color-preview {
    border: 1px solid #aaa;
  }
  
  .editor-container {
    display: flex;
    width: 100%;
    flex: 1;
    min-height: 0;
  }
  
  #line-numbers {
    width: 40px;
    background-color: #252525;
    border-right: 1px solid #444;
    color: #777;
    font-family: 'Liberation Mono', Consolas, monospace;
    font-size: 14px;
    line-height: 0;
    padding: 10px 5px;
    text-align: right;
    overflow: hidden;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  }
  
  body.light-mode #line-numbers {
    background-color: #f5f5f5;
    border-right: 1px solid #ddd;
    color: #999;
  }
  
  .anaheim-font {
    font-family: 'Anaheim', sans-serif;
  }

  #wordCount{
    position: fixed;
    left: 48%;
  }