* {
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  width: 100%;
  color: var(--primary_text, #3b474d);
}

/*****************************************
 * Component -- Headings
 *****************************************/

h1,
h2,
h3,
h4,
h5 {
  color: var(--text_headings, #888888);
}

/*****************************************
 * Component -- Anchor Tags (Links)
 *****************************************/

a:not(.TextLink) {
  color: var(--text_links, blue);
  cursor: pointer;
  text-decoration: none;
}

a:not(.TextLink):hover {
  color: var(--text_links, blue);
  text-decoration: underline;
}

/*****************************************
 * Component -- Button
 *****************************************/

.btn {
  line-height: 1.15;
  padding: 0.3rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #555;
  color: white;
  text-decoration: none;
}

.btn:hover {
  background-color: #000;
  color: white;
  text-decoration: none;
}

/*****************************************
 * Component -- Nav Form
 *****************************************/

.nav-form {
  margin: 0;
}

/*****************************************
 * Component -- Form Error
 *****************************************/

.form-error-message {
  background: #e20c0c;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  color: white;
  margin-top: 0;
  margin-bottom: 15px;
}

.field-error {
  color: #e20c0c;
}

input.has-error {
  border-color: #e20c0c;
}

/*****************************************
 * Component -- Primary Button
 *****************************************/

.btn-primary {
  background-color: var(--button_primary_fill, blue);
  border: 1px solid transparent;
  color: var(--button_primary_text, white);
}

.btn-primary:hover {
  background-color: var(--button_primary_fill_hover, lightblue);
  border: 1px solid transparent;
  color: var(--button_primary_text, white);
}

/*****************************************
 * Component -- Secondary Button
 *****************************************/

.btn-secondary {
  background-color: var(--button_secondary_fill, gray);
  border: 1px solid var(--button_secondary_border, #a3d9ff);
  color: var(--button_secondary_text, grey);
}
.btn-secondary:hover {
  background-color: var(--button_secondary_fill_hover, gray);
  border: 1px solid var(--button_secondary_border, #a3d9ff);
  color: var(--button_secondary_text_hover, #ffffff);
}

/*****************************************
 * Component -- Site Header
 *****************************************/

.site-header {
  top: 0px;
  width: 100%;
  display: flex;
  align-items: center;
  position: fixed;
  background: var(--header, black);
  color: var(--text_primary, white);
  box-shadow: 0 1px 0 var(--accent, grey);
  height: 90px;
  z-index: 90;
}

.site-header h1,
.site-header h1 a {
  color: var(--text_primary, white);
  font-size: 2rem;
  margin: 0;
}

.logo {
  max-height: 50px;
}

.site-header nav {
  display: none;
  position: relative;
}

.site-header .menu-toggle-checkbox {
  display: none;
}

.site-header .row {
  display: flex;
  align-items: center;
}

.site-header .row .four.columns {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

@media (max-width: 748px) {
  /* Mobile Toggle */
  .site-header .menu-toggle {
    float: right;
    border-radius: 3px;
    padding: 0.5em 1em;
    cursor: pointer;
  }
  .site-header .menu-toggle label {
    cursor: pointer;
  }
  .site-header .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  .site-header .menu-toggle-checkbox:checked + nav {
    display: block;
    width: 92%;
    margin-top: 3em;
    position: absolute;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }
  .site-header .menu-toggle-checkbox:checked + nav li {
    list-style: none;
    margin: 0;
  }
  .site-header .menu-toggle-checkbox:checked + nav a {
    display: block;
    color: black;
    padding: 0.5em 1em;
    background: white;
    border-radius: 0;
  }
  .site-header .menu-toggle-checkbox:checked + nav > li:first-of-type a {
    border-radius: 3px 3px 0 0;
  }
  .site-header
    .menu-toggle-checkbox:checked
    + nav
    li:not(.has-dropdown):last-of-type
    a {
    border-radius: 0 0 3px 3px;
  }
  .site-header .menu-toggle-checkbox:checked + nav .has-dropdown {
    border-top: 1px solid #eee;
  }
  .site-header .nav-button {
    margin: 0;
  }
  .site-header .menu-toggle-checkbox:checked + nav a:hover {
    background: var(--accent, #eee);
    text-decoration: none;
  }
  .site-header .dropdown {
    margin: 0;
  }
}

/* Desktop Sizings */

@media (min-width: 749px) {
  .site-header nav {
    text-align: right;
  }

  .site-header nav {
    display: block;
    padding-top: 0.3em;
    padding-right: 3rem;
  }

  .site-header nav li a:not(.nav-button) {
    padding: 0.5em 0.8em;
    color: var(--text_primary, inherit);
  }

  .site-header .menu-toggle {
    display: none;
  }

  .site-header .nav-button {
    margin-left: 1rem;
    margin-right: 0;
  }

  /* Dropdown Menus */
  .site-header nav li {
    position: relative;
    display: inline-block;
    margin-bottom: 0;
  }

  .site-header nav li:hover {
    cursor: pointer;
  }

  .site-header nav li ul {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    transition: all 0.5s ease;
    z-index: 99;
    right: 0;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    display: none;
  }

  .site-header nav > .has-dropdown:hover > a {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
  }

  .site-header nav li:hover > ul,
  .site-header nav li ul:hover {
    visibility: visible;
    opacity: 1;
    display: flex;
    flex-direction: column;
    background: white;
  }

  /* Keyboard user support */
  .site-header nav li:focus-within > ul {
    visibility: visible;
    opacity: 1;
    display: block;
  }

  .site-header nav li ul li {
    padding: 0.5em 1em;
    width: 100%;
  }

  .site-header nav li ul li a:not(.nav-button) {
    padding: 0.5em 1em;
    width: 100%;
    background: white;
    color: var(--text_primary, blue);
    display: block;
  }

  .site-header nav li ul li:not(:first-child):hover,
  .site-header nav li ul li:hover a {
    background: var(--button_secondary_fill_hover, purple);
    color: var(--button_primary_text, white);
  }

  .site-header nav li ul li:first-child {
    margin-top: 0.5rem;
    margin-right: 1rem;
    font-weight: 600;
  }

  .site-header nav li ul li:first-of-type a {
    border-radius: 3px 3px 0 0;
  }

  .site-header nav li ul li:last-of-type a {
    border-radius: 0 0 3px 3px;
  }

  .dropdown {
    min-width: 205px;
  }

  .dropdown:first-child li {
    padding-top: 6px;
  }
}

/*****************************************
 * Component -- Site Footer
 *****************************************/

.site-footer {
  position: relative;
  z-index: 20;
  bottom: 0;
  background: var(--footer, black);
  color: var(--text_secondary, rgba(255, 255, 255, 0.45));
}

#copyright {
  color: inherit;
  font-size: 0.8rem;
  margin: 0;
}

.site-footer .nav-button {
  background: var(--primary_button, rgba(0, 0, 0, 0.2));
  color: var(--primary_button_text, inherit);
  margin-right: 1rem;
}

/* Desktop Sizings */

@media (min-width: 749px) {
  .site-footer nav {
    text-align: right;
  }

  .site-footer .nav-link {
    margin-left: 1rem;
    margin-right: 0;
  }

  .site-footer .nav-button {
    margin-left: 1rem;
    margin-right: 0;
  }
}

/*****************************************
 * Component - Catalog Filter
 *****************************************/

.service-catalog.fixed-filter {
  padding-top: 220px !important;
}

.service-catalog.fixed-filter .catalog-filter-component {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1;
  top: 90px;
}

.catalog-filter-component {
  padding: 2em 0 1.3em;
  background: var(--hero, #000);
  background-image: radial-gradient(
    circle at -8% 77%,
    #4e23ab,
    #8a239c 49%,
    #c64876 100%
  );
  margin-bottom: 3em;
  border-bottom: 1px solid #eee;
}

.catalog-filter-component h2 {
  color: var(--text_hero, white);
  font-size: 32px;
}

.catalog-filter {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  width: 100%;
  font-size: 24px;
}

.hidden {
  display: none;
}

/*****************************************
 * Component - Catalog Sidebar Tags
 *****************************************/

a.tag-link {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.tag-link .tag-link--name {
  text-transform: capitalize;
}

a.tag-link .tag-link--count {
  float: right;
  color: #888;
}

a.tag-link.is-active .tag-link--count {
  color: #ffffff;
}

a.tag-link.is-active {
  color: #ffffff;
}

a.tag-link.is-active {
  background: var(--accent);
}

/*****************************************
 * Component - Catalog List
 *****************************************/

.catalog-list {
  text-align: left;
}

.catalog-list .catalog-item {
  width: 100%;
  min-height: 156px;
  margin: 1rem 0;
}

.catalog-list .catalog-item .catalog-desc {
  overflow-wrap: break-word;
}

@media (min-width: 749px) {
  .catalog-list {
    display: flex;
    flex-wrap: wrap;
  }
  .catalog-list .catalog-item {
    width: calc(50% - 2rem);
    margin: 0 1rem 2rem;
  }
}

/*****************************************
 * Component - Catalog Item
 *****************************************/

.catalog-item {
  display: flex;
  padding: 3rem;
  align-items: start;
  background: rgba(255, 255, 255);
  box-shadow: 0 1px 2px var(--border, grey);
  border-radius: 3px;
  text-decoration: none;
}

.catalog-item:hover {
  text-decoration: none;
}

.catalog-item a:hover {
  text-decoration: none;
}

.catalog-item .catalog-logo {
  display: inline-block;
  min-width: 64px;
  min-height: 64px;
  padding: 1rem 0;
  margin: 0.8rem 2rem 0 0;
  text-align: center;
  font-size: 24px;
  color: white;
  background-color: #8bca2f !important;
  border-radius: 3px;
}

.catalog-item .catalog-details {
  width: 70%;
  text-align: left;
}

.catalog-item .catalog-details .catalog-title {
  color: var(--catalog_text_links, #3b474d);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.catalog-item .catalog-details .catalog-desc {
  margin: 0;
  color: var(--text_primary, #888888);
}

.catalog-item .catalog-version {
  color: var(--text_secondary, #8c8c8c);
}

/*****************************************
 * Component - CTA Items (Legacy redirect)
 *****************************************/

.homepage-catalog #ctas {
  text-align: center;
}

.homepage-catalog #ctas a {
  color: black;
  font-size: 20px;
  text-decoration: none;
}

.homepage-catalog #ctas .catalog-item {
  padding: 1rem;
  align-items: center;
}

.homepage-catalog #ctas .img-div {
  width: 320px;
  height: 40px;
}

.homepage-catalog #ctas .portal-img {
  object-fit: contain;
  height: 100%;
  width: 100%;
}

.homepage-catalog .legacy-text {
  color: black;
  font-size: 24px;
  font-weight: 300;
}

/*****************************************
 * Component - Team Members
 *****************************************/

.team-members {
  padding: 2em 0;
  text-align: left;
}

.team-members .row {
  display: flex;
  justify-content: center;
}

/*****************************************
 * Component - Team Member
 *****************************************/

.team-member .member-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--accent);
}

.team-member .member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: inherit;
}

.team-member .member-image {
  margin-bottom: 1em;
}

.team-member .member-name {
  color: var(--accent);
  margin-bottom: 0;
}

.team-member .member-title {
  color: var(--accent);
}

/*****************************************
 * Page -- Homepage
 *****************************************/

/*
 * Homepage Component -- Hero
 */

.homepage-hero {
  margin: 0 auto;
  padding: 120px 0;
  text-align: center;

  background: var(--hero, #000000);
  background-image: radial-gradient(
    circle at -8% 77%,
    #4e23ab,
    #8a239c 49%,
    #c64876 100%
  );
  color: var(--text_hero, #ffffff);
}

.homepage-hero h2 {
  margin-bottom: 1rem;
  color: var(--text_hero, #ffffff);
}

.homepage-hero p {
  font-size: 24px;
  font-weight: 300;
  color: var(--text_hero, #888888);
}

.homepage-hero .hero-footer .btn {
  font-size: 16px;
  padding: 0.6em 2em;
}

#main-title {
  font-size: 2rem;
}

#adv-title {
  font-size: 2rem;
}

/* Desktop Sizings */

@media (min-width: 749px) {
  .homepage-hero {
    padding: 180px 0;
  }
}

/*
 * Homepage Component -- Catalog
 */

.homepage-catalog {
  width: 100%;
  padding: 0 2rem;
  text-align: center;
  margin-top: -30px;
}

.homepage-catalog .catalog-footer {
  padding: 2rem 0;
}

/* Desktop Sizings */

@media (min-width: 749px) {
  .homepage-catalog {
    width: 90%;
    margin: -30px auto 0;
  }
}

@media (min-width: 1000px) {
  .homepage-catalog {
    width: 70%;
  }
}

/*
 * Homepage Component -- Client List
 */

.homepage-clients {
  text-align: center;
}

.homepage-clients .client img {
  max-height: 98px;
  max-width: 200px;
  height: 100%;
  display: block;
  margin: auto;
}

/*****************************************
 * Page -- Service Catalog
 *****************************************/

.service-catalog {
  padding-top: 0 !important;
}

.service-catalog .catalog-item {
  min-height: 156px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid #ddd;
}

/*****************************************
 * Page -- About
 *****************************************/

/*
 * About Section -- Hero
 */

.about .about-hero {
  padding: 5em 0;
  background: var(--hero);
}

.about .about-hero h6 {
  margin-bottom: 0.5em;
  text-transform: uppercase;
  color: var(--text_hero);
}

.about .about-hero h2 {
  color: var(--text_hero);
}

.about .about-hero li {
  color: var(--text_hero);
}

/*
 * About Section -- Team
 */

.about .about-team {
  padding: 3em 0;
  text-align: center;
}

.about .member-title {
  color: var(--text_secondary, #8c8c8c);
}

/*****************************************
 * Page -- 404
 *****************************************/

.error-404 {
  background-color: #f8f8f8;
  text-align: center;
}

.error-404.align-container {
  height: 100vh;
}

.error-404 .title {
  color: var(--primary);
  font-weight: 400;
  font-size: 1.75em;
  margin-top: 0;
}

.error-404 p {
  color: var(--tertiary);
}

@media (min-width: 768px) {
  .error-404 .title {
    font-size: 2.5em;
  }
}

/*****************************************
 * Page -- Auth (Basic Auth / Key Auth / OIDC)
 *****************************************/

.auth-page {
  height: calc(100vh - 74px - 90px);
  display: flex;
  flex-direction: row;
}

.auth-page > section,
.auth-page > div {
  flex: 1;
}

.auth-page .left-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-page .left-pane .inner {
  width: 40rem;
}

.auth-page .left-pane input {
  width: 100%;
}

.auth-page .right-pane {
  display: none;
  background: black;
  background: var(--hero, black);
  background-image: radial-gradient(
    circle at -8% 77%,
    #4e23ab,
    #8a239c 49%,
    #c64876 100%
  );
  color: white;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.auth-page .right-pane .inner {
  text-align: center;
  min-width: 300px;
  width: 40%;
}

.auth-page .right-pane .inner h2,
.auth-page .right-pane .inner h3,
.auth-page .right-pane .inner h4,
.auth-page .right-pane .inner h5,
.auth-page .right-pane .inner p {
  color: var(--accent, white);
}

@media (min-width: 768px) {
  .auth-page .right-pane {
    display: flex;
  }
}

/*****************************************
 * Page -- Auth (Basic Auth / Key Auth / OIDC)
 *****************************************/

.page .dashboard {
  padding: 2em 0;
}

/*****************************************
 * Utilities
 *****************************************/

.page {
  /* 90px for header 74px for footer */
  min-height: calc(100vh - 74px);
  /* needed to set height 100% on children */
  padding-top: 90px;
  background-color: var(--page, white);
}

.align-container {
  display: table;
  width: 100%;
  height: 100%;
}

.align-inner {
  display: table-cell;
  vertical-align: middle;
}

.align-inner--top {
  vertical-align: top;
}

.align-inner--bottom {
  vertical-align: bottom;
}

.toggle-content {
  display: none;
}

.toggle-content.is-visible {
  display: inherit;
}

@media (min-width: 768px) {
  .align-right {
    text-align: right;
  }
}

/*****************************************
 * Guides
 *****************************************/

.aside-scroll {
  top: 100px;
  bottom: 60px;
}

.guide-title {
  font-size: 1.75rem;
  font-weight: 400;
  color: #4e23ab;
}

.side-bar-title {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.side-bar-external {
  display: flex;
  align-items: center;
}

.new-window-icon {
  padding-left: 5px;
}

.highlighter {
  font-size: 1.5rem;
  font-weight: 400;
  color: #000;
}

.guide-anchor {
  display: block;
  height: 100px;
  margin-top: -100px;
  visibility: hidden;
}

.guide-list {
  list-style-type: disc;
  margin-left: 1.5rem;
}

.guide-steps {
  list-style-type: decimal;
  margin-left: 1.5rem;
}

.sidebar-netsted-list {
  margin-left: 0.5rem;
  font-size: 0.8rem;
}

.guide-section-title {
  font-size: 1.5rem;
  color: #4e23ab;
}

.guide-example-heading {
  font-weight: 500;
}

.guide-section-heading {
  font-size: 1.25rem;
  font-style: italic;
  color: #4e23ab;
}

.guide-heading {
  font-size: 1.1rem;
  color: #4e23ab;
}

.guide-italic-small {
  font-size: 0.9rem;
  font-style: italic;
}

.res-block {
  background-color: #f1f1f1;
  font-size: 0.8rem;
  border-radius: 5px;
  border: 1px solid #c1c7d0;
  padding: 0.3rem;
  font-size: 0.8rem;
  white-space: pre-wrap; /* css-3 */
  white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  white-space: -pre-wrap; /* Opera 4-6 */
  white-space: -o-pre-wrap; /* Opera 7 */
  word-wrap: break-word; /* Internet Explorer 5.5+ */
}

.code-block {
  /* background-color: #f1f1f1; */
  border-radius: 5px;
  border: 1px solid #c1c7d0;
  padding: 0.3rem;
  font-size: 0.8rem;
  white-space: pre-wrap; /* css-3 */
  white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  white-space: -pre-wrap; /* Opera 4-6 */
  white-space: -o-pre-wrap; /* Opera 7 */
  word-wrap: break-word; /* Internet Explorer 5.5+ */
}

.command {
  color: #00ff00;
  background-color: #000;
}

.request-info {
  color: #3abc6e;
  font-family: monaco, Consolas, Lucida Console, monospace;
  font-weight: 600;
}

.guides-cell {
  padding: 1rem;
  word-wrap: break-word;
  text-align: left;
  border-color: #dde2e6;
  border-left: 0.1rem dotted #dde2e6;
}
.guides-cell:first-child {
  border-left: 0rem dotted #dde2e6;
}

.guides-cell::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: -1px;
  width: 4px;
  content: "";
  border-bottom-color: #99abb4;
  border-top-color: #99abb4;
  border-bottom-style: solid;
  border-top-style: solid;
  border-right: 1px solid #99abb4;
  border-left: 1px solid #99abb4;
}

.guides-cell-list {
  list-style-type: disc;
  padding-left: 0.5rem;
}

.guides-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-family: Noto Sans, sans-serif;
  font-size: 0.875rem;
  color: #596b74;
}

.guides-table-head {
  vertical-align: bottom;
}

.guides-table-header {
  position: relative;
}

.guides-table-row {
  border-bottom-width: 1px;
  border-color: #99abb4;
}

.list-item {
  list-style-type: disc;
}

.guides-note {
  padding: 5px;
  border-radius: 5px;
  color: #123c90;
  border: solid 1px #123c90;
  background-color: #edf2fc;
}

.guides-warning {
  padding: 5px;
  border-radius: 5px;
  color: #985f00;
  border: solid 1px #985f00;
  background-color: #ffebcb;
}

.guides-danger {
  padding: 5px;
  border-radius: 5px;
  color: #b5253e;
  border: solid 1px #b5253e;
  background-color: #f9eef2;
}

/*****************************************
 * React-Dashboard Main div
 *****************************************/

#react-app {
  margin-top: 90px; /* header is 90px high */
}

/*****************************************
 * React-Dashboard Settings page
 *****************************************/

.react_page__component {
  padding: 1rem 2rem 0rem 2rem;
}

.settings {
  width: 50%;
}

.disabled-settings::placeholder {
  color: #999999;
}

/*****************************************
 * React-Dashboard Applications page
 *****************************************/

.normalize-text {
  text-transform: none;
}

/*****************************************
 * React-Dashboard Forms
 *****************************************/

.form__subtext--invalid {
  color: red;
  font-size: 0.5rem;
}

.form__button--migrate {
  margin: 1rem auto;
}

.form__text--delete {
  max-width: 300px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.new-window-icon {
  margin-left: 0px;
  display: inline-block;
}

.external-ref::after {
  content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
  margin: 0 3px 0 5px;
}

/* cant get this to work but as we're replacing the header soon anyway..

 .account-nav::after {
  display: inline-flex;
  content: "";
  background-image: url("../images/chevron-down.svg");
  margin: 0 3px 0 5px;
}

.account-nav::after {
  display: inline-flex;
  content: "";
  background-image: url("../images/chevron-up.svg");
  margin: 0 3px 0 5px;
} */

.applications-list {
  overflow: scroll;
  border: 1px solid black;
  border-radius: 5px;
  padding: 2px;
  min-width: 50%;
  height: 300px;
}

.lang-switcher {
  position: absolute;
  top: 20px;
  right: 5%;
}

.lang-switcher-item,
.lang-switcher-item:focus {
  color: #a3d9ff;
  font-size: 30px;
  outline: none;
}

.lang-switcher-item:hover {
  color: #4e23ab;
}

.lang-switcher-item:first-child:after {
  content: "|";
  color: #a3d9ff;
  padding: 0px 2px 0px 6px;
}

.lang-switcher-item.active {
  color: #4e23ab;
}
