@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    font-family: "DMSans";
  }
  
  body {
    overflow-x: hidden;
    max-width: 100%;
    max-height: 100%;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  ul,
  ol {
    list-style: none;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* Text Presets */
  
  .text-preset-1 {
    font-size: 40px;
    line-height: 100%;
    letter-spacing: -1px;
  }
  
  .text-preset-2 {
    font-size: 24px;
    line-height: 130%;
    letter-spacing: -1px;
  }
  
  .text-preset-3 {
    font-size: 20px;
    line-height: 130%;
    letter-spacing: -0.6px;
  }
  
  .text-preset-4 {
    font-size: 16px;
    line-height: 130%;
    letter-spacing: -0.6px;
  }
  
  /* CSS Variables */
  :root {
    --spacing-0: 0;
    --spacing-025: 2px;
    --spacing-050: 4px;
    --spacing-075: 6px;
    --spacing-100: 8px;
    --spacing-150: 12px;
    --spacing-200: 16px;
    --spacing-250: 20px;
    --spacing-300: 24px;
    --spacing-400: 32px;
    --spacing-500: 40px;
    --spacing-600: 48px;
    --spacing-800: 64px;
    --spacing-1000: 80px;
    --radius-0: 0;
    --radius-4: 4px;
    --radius-6: 6px;
    --radius-8: 8px;
    --radius-10: 10px;
    --radius-12: 12px;
    --radius-16: 16px;
    --radius-20: 20px;
    --radius-24: 24px;
    --radius-full: 999px;
    --container-image: "assets/images/bg-light-theme.png";
    --container-bg: #fff;
    --logo-bg: #f2f2f7;
    --heading-color: #12131a;
    --text-color: #12131a;
    --text-area-bg: #f2f2f7;
    --text-area-color: #2a2b37;
    --text-area-border: #e4e4ef;
    --bars-bg: #f2f2f7;
    --blue-500: #c27cf8;
    --blue-400: #d3a0fa;
    --yellow-500: #ff9f00;
    --orange-500: #fe8159;
    --orange-800: #da3701;
  }
  
  .dark-mode {
    --container-bg: #12131a;
    --logo-bg: #2a2b37;
    --heading-color: #f2f2f7;
    --text-color: #e4e4ef;
    --text-area-bg: #21222c;
    --text-area-color: #e4e4ef;
    --text-area-border: #2a2b37;
    --bars-bg: #21222c;
    background-image: url("assets/images/bg-dark-theme.png");
  }
  
  .container {
    transition: 1s;
    width: 100%;
    height: 100%;
    padding: var(--spacing-250);
    background-image: url("assets/images/bg-light-theme.png");
    background-color: var(--container-bg);
  }
  
  .toggle-mode {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--logo-bg);
    border-radius: var(--radius-6);
    padding: 7px;
  }
  
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .heading {
    color: var(--heading-color);
    margin-block: var(--spacing-500);
    text-align: center;
  }
  
  .textarea-custom {
    cursor: pointer;
    padding: 10px;
    background-color: var(--text-area-bg);
    outline: none;
    color: var(--text-area-color);
    border: 1px solid var(--text-area-border);
    border-radius: 15px;
    margin-block: 20px;
    overflow-y: auto;
    width: 100%;
    height: 200px;
    resize: none;
    transition: 1s;
  }
  
  .textarea-custom:hover {
    border-color: #c27cf8;
    box-shadow: 0 0 10px 1px #c27cf8;
  }
  
  .info {
    margin-block: 10px;
    display: none;
    color: var(--orange-500);
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: -0.6px;
  }
  
  .icon-info {
    margin-right: 10px;
  }
  
  .options {
    display: flex;
    flex-direction: column;
  }
  
  .option {
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-block: 5px;
  }
  
  .box {
    outline: none;
    cursor: pointer;
    margin-right: 8px;
    accent-color: var(--blue-500);
    width: 16px;
    height: 16px;
    border: 3px solid var(--text-area-border);
    border-radius: 8px;
  }
  
  .box:hover {
    outline: 1px solid var(--blue-500);
    outline-offset: 2px;
  }
  
  .reading-time {
    color: var(--text-color);
  }
  
  .counter__container {
    display: flex;
    flex-direction: column;
  }
  
  .counter__element {
    background-repeat: no-repeat;
    background-position: 130%;
    width: 100%;
    border-radius: 12px;
    margin-block: 10px;
  }
  
  .counter__element-purple {
    background-image: url("assets/images/pattern-character-count.svg");
    background-color: var(--blue-400);
  }
  
  .counter__element-yellow {
    background-image: url("assets/images/pattern-word-count.svg");
    background-color: var(--yellow-500);
  }
  
  .counter__element-orange {
    background-image: url("assets/images/pattern-sentence-count.svg");
    background-color: var(--orange-500);
  }
  
  .counter__title {
    margin: 20px;
  }
  
  .counter__sub-title {
    margin: 20px;
  }
  
  .letter-density__title {
    color: var(--text-color);
    margin-block: 15px;
  }
  
  .character-limit__input {
    display: none;
    text-align: center;
    outline: none;
    background-color: var(--text-area-bg);
    color: var(--text-area-color);
    border: 1px solid var(--text-area-border);
    border-radius: 6px;
    padding: 12px 4px;
    width: 55px;
    height: 29px;
  }
  
  .no-characters {
    color: var(--text-color);
  }
  
  .density__container {
    margin-block: 10px;
  }
  
  .density__element {
    margin-block: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .letter,
  .density__number,
  .density__percentage {
    line-height: 130%;
    letter-spacing: -0.6px;
    color: var(--text-color);
    margin-right: 10px;
  }
  
  .progress-bar {
    appearance: none;
    border-radius: var(--radius-full);
    max-width: 95%;
    width: 95%;
    height: 12px;
    margin-inline: 10px;
    background-color: var(--bars-bg);
    overflow: hidden;
  }
  
  .progress-bar::-webkit-progress-bar {
    border-radius: var(--radius-full);
    background-color: var(--bars-bg);
    overflow: hidden;
  }
  
  .progress-bar::-webkit-progress-value {
    border-radius: var(--radius-full);
    background-color: var(--blue-500);
  }
  
  .progress-bar::-moz-progress-bar {
    border-radius: var(--radius-full);
    background-color: var(--bars-bg);
  }
  
  .show-more,
  .show-less {
    margin-block: 15px;
    cursor: pointer;
    color: var(--text-color);
  }
  
  /* Media Queries for tablets */
  @media (min-width: 768px) {
    .text-preset-1 {
      font-size: 64px;
      line-height: 100%;
      letter-spacing: -1px;
    }
  
    .container {
      padding: 30px 15px;
    }
  
    .heading {
      margin-inline: auto;
      width: 70%;
    }
  
    .options {
      margin-block: 30px;
      flex-direction: row;
      justify-content: space-between;
    }
  
    .options div {
      display: flex;
    }
  
    .option {
      margin-right: 30px;
    }
  
    .counter__container {
      flex-direction: row;
      justify-content: space-between;
    }
  
    .counter__element {
      background-position: 200%;
      width: 32%;
    }
  }
  
  /* Media Queries for desktops */
  @media (min-width: 1024px) {
    .container {
      padding: 30px 100px;
    }
  
    .counter__element {
      background-position: 105%;
      width: 30%;
    }
  }




