:root {
      --mylogo: #26D9CD;
      --accent: #26D97C;
      --myinterface: #16847D;
      --bg: #121212;
      --black2: #191919;
      --black3: #1C1C1C;
      --grey: #404040;
      --grey2: #666666;
      --text: #FFFFFF;
    }
body {
      background-color: #121212;
      color: #26C5D9;
      font-family: 'Ubuntu', Arial, sans-serif;
      font-weight: 300;
      margin: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    h1 {
      font-family: 'Ubuntu', Arial, sans-serif;
      font-weight: 300;
      margin-bottom: 0px;
      margin-top: 80px;
      font-size: 48px;
      line-height: 52px;
      text-align: center;
      color: var(--text);
      -webkit-text-size-adjust: 100%;
    }
    canvas {
      max-width: 100%;
      height: auto;
      display: block;
      margin: 20px auto;
    }
    input {
      margin-bottom: 30px;
    }
    .preloader {
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      background: var(--bg);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color 0.4s;
    }
    .custom-button {
      height: 54px;
      padding: 0 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'DM Sans', Arial, sans-serif;
      font-weight: 300;
      font-size: 16px;
      line-height: 20px;
      border: 1px solid var(--accent);
      background: var(--bg);
      color: var(--text);
      margin: 20px auto;
      margin-bottom: 6px;
      border-radius: 60px;
      cursor: pointer;
      transition: all 0.4s ease;
    }
    .custom-button:hover {
      border: 1px solid var(--accent);
      background: var(--bg);
      color: var(--accent);
    }
    .custom-button:active {
      border: 1px solid var(--myinterface);
      background: var(--bg); 
      color: var(--myinterface);                
      transform: scale(0.96); 
    }
    #asciiOutput {
      white-space: pre;
      line-height: 0.65;
      font-size: 8.5px;
      letter-spacing: 0.8px;
      user-select: text;
      background-color: #121212;
    }
    #preview {
      display: none;
    }
    button {
      display: inline-block;
      font-family: 'DM Sans', Arial, sans-serif;
      font-weight: 300;
      font-size: 16px;
      line-height: 20px;
      width: 164px;
      height: 56px;
      position: relative;
      padding: 16px 32px;
      background: var(--bg);
      color: var(--text);
      margin: 1px auto;
      border: 1px solid var(--accent);
      border-radius: 60px;
      cursor: pointer;
      transition: all 0.4s ease;
      user-select: none;
      margin-bottom: 4px;
    }
    button:hover {
      border: 1px solid var(--accent);
      background: var(--bg);
      color: var(--accent);
    }
    button:active {
      border: 1px solid var(--myinterface);
      background: var(--bg); 
      color: var(--myinterface);                
      transform: scale(0.96); 
    }
    button.loading {
      color: transparent !important;
      pointer-events: none;
    }
    button.loading:hover {
      background: var(--bg) !important;
      color: transparent !important;
      transform: none !important;
      cursor: default;
      box-shadow: none;
    }
    #downloadPngWrapper {
      position: relative;
      display: inline-block;
      width: fit-content;
      margin: 12px auto;
    }
    #downloadPngProgress {
      position: absolute;
      bottom: -8px;
      left: 0;
      height: 4px;
      width: 0;
      background: var(--myinterface);
      border-radius: 8px;
      transition: width 0.4s ease;
    }
    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }
    @media (max-width: 1024px) {
  #asciiOutput {
    font-size: 2vw !important;      
    line-height: 0.8 !important; 
    letter-spacing: 0 !important;
    max-width: 100vw !important;
    max-height: 70vh !important;
    overflow: hidden !important;
    display: block;
  }
  h1 {
    font-family: 'Ubuntu', Arial, sans-serif;
    font-weight: 300;
    margin-bottom: 0px;
    margin-top: 40px;
    font-size: 28px;
    line-height: 32px;
    text-align: center;
    -webkit-text-size-adjust: 100%;
  }
  .custom-button {
    height: 54px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 20px;
    border: 1px solid var(--accent);
    background: var(--bg);
    color: var(--text);
    margin: 20px auto;
    margin-bottom: 0px;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.4s ease;
  }
  button {
    display: inline-block;
    font-family: 'DM Sans', Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 20px;
    width: 164px;
    height: 56px;
    position: relative;
    padding: 16px 32px;
    background: var(--bg);
    color: var(--text);
    margin: -4px auto;
    border: 1px solid var(--accent);
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.4s ease;
    user-select: none;
    margin-bottom: 4px;
  }
}