/*--------------------------------------------------------
                          Headers Resize
----------------------------------------------------------*/ 

.content :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)) {
    font-size: 2rem;
}

.content :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)) {
    margin-top: 2rem;
    font-size: 1.65rem;

}

.content :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)) {
    margin-top:1.9rem;
    font-size: 1.3rem;
}

.content :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)) {
    margin-top: 1.8rem;
    font-size: 1.1rem;
}

/* -----------------------------------------------------
               Links styles
_______________________________________________________*/

/* Prevent linked text to be underlined or change color.
  Useful for beautiful cards */
  a.hx-no-underline {
    text-decoration: none;
  }
  
  /* Custom link color.
  This will be applied also to code (except in tables): 
  selectors in css can't be grained to target Markdown syntax
  (for now) */
  .content p a:not(.code),
  .content li a:not(.code),
  .content :where(a):not(:where([class~=not-prose],[class~=not-prose] *)), /* Ensure links are the same color in shortodes as well*/
  article a {
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: rgb(214, 207, 251);
    /* color: rgb(90, 66, 212); */
  }
  
  html[class~="dark"] .content p a:not(.code),
  html[class~="dark"] .content li a:not(.code),
  html[class~="dark"] article a {
    color: rgb(0, 172, 230);
  }
  
  /* Allow linking in a variable environment without
  changing the style and adding an a arrow at the end of the text */
  .content a:has(code){
    text-decoration: none;
    color: inherit;
  }
  
  /* Enforce white color in dark mode for code blocks containing a link */ 
  html[class~="dark"] .content a:has(code){
    color: #ececfe;
  }
  
  /* Display arrow for external links in the main menu.
    Don't display it if it's an icon */ 
  .nav-container a[href^="http://"]:not(:has(svg))::after,
  .nav-container a[href^="https://"]:not(:has(svg))::after {
    content: "\00a0↗";
    font-size: 1rem;
  }

/*--------------------------------------------------------
                          Table Styling
----------------------------------------------------------*/ 

/* Table headers formatting */
.content table:not(.code-block table) th {
    border-right-width: 0px;
    border-left-width: 0px; 
    border-top: none;
    text-transform: uppercase;
    /* color: rgba(115, 115, 142, 1); */
  }
  
  /* Table headers formatting for dark mode */
  html[class~="dark"] .content table:not(.code-block table) th {
    color: rgb(193, 193, 196);
  }
  
  /* Remove internal borders */
  .content table:not(.code-block table) td {
    margin: 0px;
    border-width: 0px;
    --tw-border-opacity: 0;
  }
  
  /* Text in cells */
  .content table:not(.code-block table) tr {
    font-size: 0.8rem;
    text-align: left;
    border-width: 0px;
    /* color: rgba(58, 56, 113, 1); */
  }


  /* -----------------------------------------
            Customize shortcodes
-------------------------------------------*/

/* Hero buttons */
.btn-primary {
    background-color: rgba(58, 56, 113, 1);
    text-decoration: none;
  }

  .btn-primary,.btn-secondary {
    border-radius: 1.25rem;
}
  
  html[class~="dark"] .btn-primary
   {
    color: white;
  }
  
  .btn-primary:hover {
    background-color: rgba(0, 107, 230, 1);
    color: white;
  }
  
  .btn-secondary:hover {
    background-color: rgba(0, 107, 230, 0.2);
  }

  html[class~="dark"] .btn-secondary
  {
   color: white;
   background-color: rgba(0, 107, 230, 0.3);
 }
  
 html[class~="dark"] .btn-secondary:hover
 {
  color: rgba(58, 56, 113, 1);
  background-color: white;
}

.hextra-feature-card svg {
  opacity: 0.4;
}
 

/* Override for hextra/feature-card */ 
.hextra-feature-card h3,
.hextra-feature-card {
    text-decoration: none;
    color: black;

}
html[class~="dark"] .hextra-feature-card h3 {
  color: white;
}

.float-left {
  float: left;
}

.hextra-pdf {
  margin-top: 1rem;
}

.hextra-pdf > iframe {
  min-height: 29rem !important;
}

 /* Chat Widget Styling */

 .chat-layout .chat-header h1 {
  font: 1.4rem semibold !important;

 }

 .chat-layout .chat-header p {
    font-size: 0.9rem !important;
  }

  .chat-window-wrapper .chat-window {
    border-radius: 3% !important;
  }

  .chat-message {
    font-size: 13px !important;
  }

  .chat-layout .chat-header {
    background-color: rgba(0, 107, 230, 1) !important;
  }

  .chat-window-wrapper .chat-window-toggle {
    background: rgba(58, 56, 113, 1) !important;
  }

  .chat-message.chat-message-from-user:not(.chat-message-transparent) {
    color: black;
    background-color: rgb(224, 239, 255) !important;
  }
  .left > img {
    margin-left: 0px !important;
  }
