    @font-face {
      font-family: 'Windows Regular';
      src: url('https://www.dafontfree.io/data/30/b/8801/WindowsRegular.ttf') format('truetype');
    }

    .xp-window {
      border-top: 2px solid white;
      border-left: 2px solid white;
      border-right: 2px solid #404040;
      border-bottom: 2px solid #404040;
      box-shadow: 1px 1px 0 0 #000, inset 1px 1px 0 0 #c0c0c0;
    }

    .xp-button {
      background: linear-gradient(180deg, #0078d7 0%, #0064b4 100%);
      border-top: 1px solid #c0c0c0;
      border-left: 1px solid #c0c0c0;
      border-right: 1px solid #000;
      border-bottom: 1px solid #000;
      color: white;
    }

    .matrix-text {
      color: #00ff41;
      text-shadow: 0 0 5px #00ff41;
    }

    .matrix-bg {
      background: 
        linear-gradient(rgba(0, 255, 65, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.08) 1px, transparent 1px),
        url('https://wallpapers.com/images/high/windows-xp-background-5aung442mkl40781.webp') no-repeat center center fixed;
      background-size: 60px 60px, 60px 60px, cover;
    }

    canvas#matrix-rain {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      opacity: 0.1;
      pointer-events: none;
    }

  

.xp-error-box {
    background-color: #ECE9D8;
    color: black;
    border: 3px solid #000080;
    border-radius: 6px;
    box-shadow: 4px 4px 0 #000000;
    width: 500px;
    padding: 20px;
}

.xp-error-header {
    background-color: #000080;
    color: white;
    padding: 8px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 3px 3px 0 0;
    text-align: left;
}

.xp-error-body {
    padding: 15px;
    background-color: #ECE9D8;
}

.xp-error-body p {
    margin-bottom: 12px;
}

.xp-button {
    background-color: #E1E1E1;
    border: 1px solid #7B7B7B;
    border-radius: 3px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
}

.xp-button:hover {
    background-color: #CCCCCC;
}

.xp-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
}


/* Quill toolbar background */
  .ql-toolbar.ql-snow {
    background: #3A6EA5; /* darker blue */
    border-color: #1f4d78;
  }

  /* Toolbar buttons color */
  .ql-toolbar.ql-snow .ql-picker-label,
  .ql-toolbar.ql-snow .ql-stroke,
  .ql-toolbar.ql-snow .ql-fill {
    color: #ffffff !important;
    stroke: #ffffff !important;
  }

  /* Active button color */
  .ql-toolbar .ql-active .ql-stroke {
    stroke: #ffea00 !important;
  }

  /* Dropdown menu background */
  .ql-picker-options {
    background: #3A6EA5 !important;
    border-color: #1f4d78 !important;
  }

  /* Color picker squares border fix */
  .ql-color-picker .ql-picker-options span {
    border: solid 1px #ffffff !important;
  }

  /* Hover scale effect on toolbar buttons */
  .ql-toolbar .ql-formats button:hover,
  .ql-toolbar .ql-picker:hover {
    transform: scale(1.15);
    transition: transform 0.15s ease-in-out;
    position: relative;
    z-index: 5000;
  }

  /* Selected (active) button styling */
  .ql-toolbar .ql-formats .ql-active {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px;
    position: relative;
    z-index: 6000;
  }

  /* Selected stroke color (override yellow) */
  .ql-toolbar .ql-active .ql-stroke {
    stroke: #ffffff !important;
  }

  /* Selected fill color */
  .ql-toolbar .ql-active .ql-fill {
    fill: #ffffff !important;
  }

/* Replace Quill color-picker A icon with gradient square */
.ql-color .ql-picker-label svg {
    display: none !important;
}

.ql-color .ql-picker-label::before {
    content: "";
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, red, yellow, green, cyan, blue,  magenta, red);
    border-radius: 2px;
    display: inline-block;
    margin-top: 2px;
}

/* Quill GIF toolbar button */
.ql-toolbar .ql-gif::before {
    content: "GIF";
    background: #1a1a1a;
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid #7AA0E0;
    font-size: 14px;
    color: #7AA0E0;
}

/* Align GIF button with other toolbar icons */
.ql-toolbar .ql-gif {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 24px !important;
    padding: 0 4px !important;
    margin-top: 2px !important;
}

/* Make YouTube button match GIF button style */
.ql-toolbar .ql-youtube::before {
    content: "YouTube";
    background: #7c3005ff;
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid #7AA0E0;
    font-size: 14px;
    color: #7AA0E0;
}

/* Align YouTube button with other toolbar icons */
.ql-toolbar .ql-youtube {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 24px !important;
    padding: 0 4px !important;
    margin-top: 2px !important;
    margin-left: 28px !important;
}

/* Hide any leftover SVG inside the YouTube button */
.ql-toolbar .ql-youtube svg {
    display: none !important;
}


.glitch-text {
  position: relative;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  animation: glitch-jerkwhole 5s infinite;
}

.glitch-text span {
  filter: blur(2px);
  animation: glitch-blur 30ms infinite, glitch-jerk 50ms infinite;
}


@keyframes glitch-blur {
  0%, 100% { filter: blur(0px); opacity: 0.5; }
  50% { filter: blur(2px); opacity: 1; }
}

@keyframes glitch-jerk {
  50% { transform: translateX(1px); }
  51% { transform: translateX(0); }
}
