/* 
   Avoid using body, footer, etc.
   Use class-based selectors to prevent conflicts with WordPress.
*/

/* Example: load your 8 custom fonts + keep Arial and Comic Sans MS */
@font-face {
    font-family: "Pixer";
    src: url("./fonts/Pixer.ttf") format("truetype");
  }
  @font-face {
    font-family: "PasticheNF";
    src: url("./fonts/PasticheNF.ttf") format("truetype");
  }
  @font-face {
    font-family: "36Days";
    src: url("./fonts/36Days.ttf") format("truetype");
  }
  @font-face {
    font-family: "Rockybilly";
    src: url("./fonts/Rockybilly.ttf") format("truetype");
  }
  @font-face {
    font-family: "BigLou";
    src: url("./fonts/BigLou.ttf") format("truetype");
  }
  @font-face {
    font-family: "SweetHusky";
    src: url("./fonts/SweetHusky.ttf") format("truetype");
  }
  @font-face {
    font-family: "Munsteria";
    src: url("./fonts/Munsteria.ttf") format("truetype");
  }
  @font-face {
    font-family: "Trashco";
    src: url("./fonts/Trashco.ttf") format("truetype");
  }
  
  /* Main wrapper for the editor */
  .text-editor-wrapper {
    /* Gradient background without using body */
    padding: 1rem;
    min-height: 100vh; /* So it fills the screen */
    box-sizing: border-box;
  }
  
  /* Title replaced 'h1' with .editor-title to avoid conflicts */
  .editor-title {
    text-align: center;
    margin: 1rem 0;
    font-size: 2.2rem;
    color: #555;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    font-weight: normal;
  }
  
  /* Editor container */
  .editor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Drop zone styling */
  .drop-zone {
    border: 3px dashed #aaa;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
    background-color: #fff;
    width: 80%;
  }
  .drop-zone:hover {
    border-color: #555;
    background-color: #f8f8f8;
  }
  .drop-zone.dragover {
    border-color: #555;
    background-color: #f1f1f1;
  }
  .drop-zone-text {
    margin: 0;
    color: #666;
  }
  .file-name {
    margin-top: 0.5rem;
    font-weight: bold;
    color: #333;
  }
  
  /* Controls container */
  .controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
    width: 80%;
  }
  .control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #ffffffcc;
    padding: 0.7rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
  }
  .control-group label {
    font-weight: bold;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
  }
  .control-group input[type="text"],
  .control-group select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    font-size: 0.95rem;
    width: 14rem;
  }
  .control-group input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
  }
  
  /* Text style toggles */
  .text-styles {
    display: flex;
    gap: 0.3rem;
    color: #000000;
  }
  .text-styles button {
    background-color: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    transition: background-color 0.3s;
  }
  .text-styles button.active {
    background-color: #bbdefb;
    border-color: #2196f3;
  }
  .text-styles button:hover {
    background-color: #f0f0f0;
  }
  
  /* Filter section */
  .filter-group {
    margin-top: 0.5rem;
  }
  .filter-group .filter-label {
    display: inline-block;
    margin-right: 0.3rem;
    font-weight: bold;
  }
  .filter-group .filter-item {
    margin-right: 1rem;
  }
  .filter-group input[type="range"] {
    margin-left: 0.3rem;
    vertical-align: middle;
    width: 100px;
  }
  
  /* Canvas container */
  #canvas-container {
    margin: 1rem 0;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
  }
  #canvas {
    display: block;
  }
  
  /* Buttons */
  button {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s;
  }
  #add-text-btn {
    background-color: #ff5722;
  }
  #add-text-btn:hover {
    background-color: #ff3d00;
  }
  #download-btn {
    background-color: #4caf50;
    margin-top: 1rem;
  }
  #download-btn:hover {
    background-color: #388e3c;
  }
  /* Button animation on hover */
  button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  button:active {
    transform: translateY(0);
    box-shadow: none;
  }
   #bold-toggle, #italic-toggle, #underline-toggle, #strike-toggle{
     color:#000000!important;
 }
  