/*!
 * 
 * Copyright (c) 2019-2023 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA,
 * and/or its subsidiaries and/or its affiliates and/or their licensors.
 *     
 */
@import "variables";
@import "mixins";

@if $dlt-typography {
  // If the variable is set true

  html,
  :root {
    font-size: 16px;
  }

  body {
    font-size: var(--dlt-font-size-xs, $font-size-base);
    font-family: var(--dlt-font-family-base, $font-base);
    font-weight: var(--dlt-font-weight-regular, $font-weight-regular);
    line-height: $line-height-base;
    color: var(--dlt-color-text-static-primary, $almost-black);

    &.dlt-scroll-disable {
      overflow: hidden !important;
    }
  }

  a {
    color: var(--dlt-color-text-interactive-link-default, $blue-primary);
    text-decoration: none;

    &:hover,
    &:focus {
      text-decoration: underline;
      outline: none;
      color: var(--dlt-color-text-interactive-link-default, $blue-primary);
    }

    &:active{
      text-decoration: underline;
      outline: none;
      color: var(--dlt-color-text-interactive-link-highlighted, $blue-primary);
    }

    &:visited{
      color: var(--dlt-color-text-interactive-link-highlighted, $blue-primary);
    }
  }

  h1 {
    font-size: var(--dlt-font-size-xxl, 1.5rem);
    font-weight: var(--dlt-font-weight-medium, $font-weight-medium);
    line-height: 2rem;

    &.xxl {
      font-size: var(--dlt-font-size-h1-xxl, 3.5rem);
      font-weight: var(--dlt-font-weight-medium, $font-weight-medium);
      line-height: 4rem;
    }

    &.xl {
      font-size: var(--dlt-font-size-h1-xl, 3rem);
      font-weight: var(--dlt-font-weight-medium, $font-weight-medium);
      line-height: 3.5rem;
    }
  }

  h2 {
    font-size: var(--dlt-font-size-xl, 1.375rem);
    font-weight: var(--dlt-font-weight-medium, $font-weight-medium);
    line-height: 2rem;
  }

  h3 {
    font-size: var(--dlt-font-size-lg, 1.25rem);
    font-weight: var(--dlt-font-weight-medium, $font-weight-medium);
    line-height: 1.75rem;
  }

  h4 {
    font-size: var(--dlt-font-size-md, 1.125rem);
    font-weight: var(--dlt-font-weight-medium, $font-weight-medium);
    line-height: 1.5rem;
  }

  h5 {
    font-size: var(--dlt-font-size-sm, 1rem);
    font-weight:var(--dlt-font-weight-medium, $font-weight-medium);
    line-height: 1.5rem;
  }

  h6 {
    font-size: var(--dlt-font-size-xs, 0.875rem);
    font-weight: var(--dlt-font-weight-medium, $font-weight-medium);
    line-height: 1.5rem;
  }

  h1 {
    margin-bottom: 0.5rem;
  }

  h2 {
    color: var(--dlt-color-text-static-primary, $almost-black);
  }

  h6 {
    margin-bottom: 0.4rem;
  }

  p {
    font-size: 0.875rem;
    color: var(--dlt-color-text-static-primary, $almost-black);
    margin: 0;
    font-weight: var(--dlt-font-weight-regular, $font-weight-regular);
    line-height: 1.25rem; //Using Default long value
    margin-bottom: 1rem;

    &.large-long {
      font-size: var(--dlt-font-size-sm, 1rem);
      line-height: 24px;
    }

    &.large-short {
      font-size: var(--dlt-font-size-sm, 1rem);
      line-height: 20px;
    }

    &.default-long {
      line-height: 20px;
    }

    &.default-short {
      line-height: 16px;
    }

    &.support {
      font-size: var(--dlt-font-size-xxs, 0.75rem);
      line-height: 1rem;
    }
  }

  i {
    font-style: italic;
  }

  label {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
}
