/* Global variables. */
:root {
  /* Set sans-serif & mono fonts */
  --title-font: "Montserrat", -apple-system, Roboto, "Noto Sans", "Segoe UI", Arial, "Helvetica Neue", sans-serif;
  --sans-font: 'Open Sans', -apple-system, Roboto, Arial, "Helvetica Neue", sans-serif;
  --slab-font: slab-serif;
  --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;


  /* Colors */
    /* primary */
  --md-ref-palette-primary0: #000000;
  --md-ref-palette-primary10: #001e30;
  --md-ref-palette-primary20: #00344f;
  --md-ref-palette-primary25: #003f60;
  --md-ref-palette-primary30: #004b70;
  --md-ref-palette-primary35: #005782;
  --md-ref-palette-primary40: #006494;
  --md-ref-palette-primary50: #0a7eb8;
  --md-ref-palette-primary60: #3b98d3;
  --md-ref-palette-primary70: #5bb3f0;
  --md-ref-palette-primary80: #8ecdff;
  --md-ref-palette-primary90: #cae6ff;
  --md-ref-palette-primary95: #e6f2ff;
  --md-ref-palette-primary98: #f6f9ff;
  --md-ref-palette-primary99: #fcfcff;
  --md-ref-palette-primary100: #ffffff;
  /* secondary */
  --md-ref-palette-secondary0: #000000;
  --md-ref-palette-secondary10: #001e2c;
  --md-ref-palette-secondary20: #003549;
  --md-ref-palette-secondary25: #004059;
  --md-ref-palette-secondary30: #004c69;
  --md-ref-palette-secondary35: #005979;
  --md-ref-palette-secondary40: #00668a;
  --md-ref-palette-secondary50: #0080ac;
  --md-ref-palette-secondary60: #239bcd;
  --md-ref-palette-secondary70: #4bb6e9;
  --md-ref-palette-secondary80: #7ad0ff;
  --md-ref-palette-secondary90: #c3e8ff;
  --md-ref-palette-secondary95: #e3f3ff;
  --md-ref-palette-secondary98: #f5faff;
  --md-ref-palette-secondary99: #fbfcff;
  --md-ref-palette-secondary100: #ffffff;
  /* tertiary */
  --md-ref-palette-tertiary0: #000000;
  --md-ref-palette-tertiary10: #1c1d00;
  --md-ref-palette-tertiary20: #313300;
  --md-ref-palette-tertiary25: #3c3e00;
  --md-ref-palette-tertiary30: #474a00;
  --md-ref-palette-tertiary35: #535600;
  --md-ref-palette-tertiary40: #5f6300;
  --md-ref-palette-tertiary50: #787c00;
  --md-ref-palette-tertiary60: #919700;
  --md-ref-palette-tertiary70: #acb200;
  --md-ref-palette-tertiary80: #c7cf00;
  --md-ref-palette-tertiary90: #e3ec00;
  --md-ref-palette-tertiary95: #F6FF14;
  --md-ref-palette-tertiary98: #fcffa6;
  --md-ref-palette-tertiary99: #fffbff;
  --md-ref-palette-tertiary100: #ffffff;
  /* neutral */
  --md-ref-palette-neutral0: #000000;
  --md-ref-palette-neutral10: #1a1c1e;
  --md-ref-palette-neutral20: #2e3133;
  --md-ref-palette-neutral25: #3a3c3e;
  --md-ref-palette-neutral30: #454749;
  --md-ref-palette-neutral35: #515255;
  --md-ref-palette-neutral40: #5d5e61;
  --md-ref-palette-neutral50: #76777a;
  --md-ref-palette-neutral60: #8f9193;
  --md-ref-palette-neutral70: #aaabae;
  --md-ref-palette-neutral80: #c6c6c9;
  --md-ref-palette-neutral90: #e2e2e5;
  --md-ref-palette-neutral95: #f0f0f3;
  --md-ref-palette-neutral98: #f9f9fc;
  --md-ref-palette-neutral99: #fcfcff;
  --md-ref-palette-neutral100: #ffffff;
  /* neutral-variant */
  --md-ref-palette-neutral-variant0: #000000;
  --md-ref-palette-neutral-variant10: #161c22;
  --md-ref-palette-neutral-variant20: #2b3137;
  --md-ref-palette-neutral-variant25: #363c42;
  --md-ref-palette-neutral-variant30: #41474d;
  --md-ref-palette-neutral-variant35: #4d5359;
  --md-ref-palette-neutral-variant40: #595f65;
  --md-ref-palette-neutral-variant50: #72787e;
  --md-ref-palette-neutral-variant60: #8b9198;
  --md-ref-palette-neutral-variant70: #a6acb3;
  --md-ref-palette-neutral-variant80: #c1c7ce;
  --md-ref-palette-neutral-variant90: #dde3ea;
  --md-ref-palette-neutral-variant95: #ecf1f9;
  --md-ref-palette-neutral-variant98: #f6f9ff;
  --md-ref-palette-neutral-variant99: #fcfcff;
  --md-ref-palette-neutral-variant100: #ffffff;
  /* error */
  --md-ref-palette-error0: #000000;
  --md-ref-palette-error10: #410002;
  --md-ref-palette-error20: #690005;
  --md-ref-palette-error25: #7e0007;
  --md-ref-palette-error30: #93000a;
  --md-ref-palette-error35: #a80710;
  --md-ref-palette-error40: #ba1a1a;
  --md-ref-palette-error50: #de3730;
  --md-ref-palette-error60: #ff5449;
  --md-ref-palette-error70: #ff897d;
  --md-ref-palette-error80: #ffb4ab;
  --md-ref-palette-error90: #ffdad6;
  --md-ref-palette-error95: #ffedea;
  --md-ref-palette-error98: #fff8f7;
  --md-ref-palette-error99: #fffbff;
  --md-ref-palette-error100: #ffffff;
  /* Default (light) theme */
  --bg: var(--md-ref-palette-neutral100:);
  --nav-transparent: var(--md-ref-palette-neutral100);
  --accent-bg: var(--md-ref-palette-primary95);
  --text: var(--md-ref-palette-neutral-variant10);
  --text-light: var(--md-ref-palette-neutral-variant35);
  --text-footer-light: var(--md-ref-palette-secondary25);
  --border: var(--md-ref-palette-neutral-variant35);
  --accent: var(--md-ref-palette-neutral-variant10);
  --default: var(--md-ref-palette-neutral-variant25);
  --accent-primary: var(--md-ref-palette-primary30);
  --accent-secondary: var(--md-ref-palette-secondary50);
  --accent-tertiary: var(--md-ref-palette-tertiary95);
  --accent-hover-tertiary: var(--md-ref-palette-tertiary80);
  --accent-active-tertiary: var(--md-ref-palette-tertiary98);
  --accent-neutral: var(--md-ref-palette-neutral30);
  --accent-bg-white: var(--md-ref-palette-neutral100);
  --accent-white: var(--md-ref-palette-neutral100);
  --focus: var(--md-ref-palette-primary80);


  --code: #d81b60;
  --preformatted: #444;
  --marked: #ffdd33;
  --disabled: #efefef;
  /* Spacings */
  --spacer4-1: 4px;
  --spacer4-2: 8px;
  --spacer4-3: 12px;
  --spacer4-4: 16px;
  --spacer4-6: 24px;
  --spacer4-8: 32px;
  --spacer4-10: 40px;
  --spacer4-12: 48px;
  --spacer4-16: 64px;
  --spacer4-20: 80px;

  --spacer-ios: max(--spacer4-8, env(safe-area-inset-left));
}

/* Dark theme 
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: var( --md-ref-palette-secondary10);
    --accent-bg: var(--md-ref-palette-primary90);
    --text: #dcdcdc;
    --text-light: #ababab;
    --accent: var(--md-ref-palette-primary80);
    --accent-primary: var(--md-ref-palette-primary90);
    --code: #f06292;
    --preformatted: #ccc;
    --disabled: #111;
  }
  /* Add a bit of transparency so light media isn't so glaring in dark mode 
  img,
  video {
    opacity: 0.8;
  }
}*/

/* Reset box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Reset default appearance */
textarea,
select,
input,
progress {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

html {
  /* Set the font globally */
  font-family: var(--sans-font);
  scroll-behavior: smooth;
}

/* Make the body a nice central block */
body {
  color: var(--text);
  background-color: var(--bg);
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0;
}


/* Make the header bg full width, but the content inline with body */
body > header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 120px; 
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr min(1200px, 100%) 1fr;
  background-color: none;
  transition: all 0.3s ease-in-out;
}
.header-background {
  background: linear-gradient(rgba(0,0,0,0.8),rgba(0,0,0,0));
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--spacer4-20);
  transition: all 0.3s ease-in-out;
}


body > header .logo-nav {
  grid-column-start: 2;
  display: flex;
  align-self: center;
  font-size: 1rem;
  justify-content: space-between;
  padding: 0 var(--spacer4-4) 0 var(--spacer4-4);
  height: var(--spacer4-20);
  z-index: 10;
  transition: all 0.3s ease-in-out;
}


/* Add a little padding to ensure spacing is correct between content and header > nav */
main {
  transform-style: preserve-3d;
}

footer {
  margin-top: 0;
  padding: 2rem 1rem 1.5rem 1rem;
  color: var(--text-footer-light);
  font-size: 0.9rem;
  text-align: center;
  background-image: linear-gradient(to right, var(--md-ref-palette-secondary95), var(--md-ref-palette-primary95));
  display: grid;
  grid-template-columns: 1fr min(1200px, 100%) 1fr;
}
.logo-footer {
  height: 24px;
}
@supports(padding: max(0px)) {
  footer, .logo-nav {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
  }
}


/* Format headers */
h1 {
  font-size: var(--spacer4-16);
  font-weight: 700;
  font-family: var(--title-font);
  margin-bottom: var(--spacer4-6);
  color: var(--md-ref-palette-neutral-variant100);
}
h1.dark-version {
  color: var(--accent-primary);
}

h2 {
  font-size: 2rem;
  margin-top: var(--spacer4-6);
  margin-bottom: var(--spacer4-6);
  font-family: var(--title-font);
}
h2.white {
  color: var(--accent-white);
}

h3 {
  font-size: 1.44rem;
  font-weight: 700;
  margin-top: var(--spacer4-4);
  margin-bottom: var(--spacer4-4);
}

h4 {
  font-size: 1.2rem;
  font-weight: 900;
  
}

h5 {
  font-size: 1.15rem;
}

h6 {
  font-size: 0.96rem;
}

/* Prevent long strings from overflowing container */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  hyphens: auto;
}
p {
  margin-bottom: var(--spacer4-4);
  font-weight: normal;
}

/* Fix line height when title wraps */
h1,
h2,
h3 {
  line-height: 1.1;
  
}


/* Format links & buttons */
a,
a:visited {
  color: var(--accent-secondary);
  cursor: pointer;
}

a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

button,
a.button-style,
[role="button"],
input[type="submit"],
input[type="reset"],
input[type="button"],
label[type="button"] {
  border: none;
  border-radius: var(--spacer4-2);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1rem;
  font-family: var(--sans-font);
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0;
  height: var(--spacer4-8);
  background-color: var(--accent-white);
  box-shadow: inset 0 0 0 2px var(--accent-primary);
  color: var(--accent-primary);
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

svg.button-icon > g,
svg.button-icon > path {
  fill: var(--accent);
} 
svg.button-icon {
  vertical-align: bottom;
  margin-right: var(--spacer4-2);
} 


.a-button-style {
  margin-top: 2rem;
}
a.button-tertiary {
  background-color: var(--accent-tertiary);
  color: var(--accent);
  box-shadow: none;
}

button[disabled],
[role="button"][aria-disabled="true"],
input[type="submit"][disabled],
input[type="reset"][disabled],
input[type="button"][disabled],
input[type="checkbox"][disabled],
input[type="radio"][disabled],
select[disabled] {
  cursor: not-allowed;
}

input:disabled,
textarea:disabled,
select:disabled,
button[disabled] {
  cursor: not-allowed;
  background-color: var(--disabled);
  color: var(--text-light)
}

input[type="range"] {
  padding: 0;
}

/* Set the cursor to '?' on an abbreviation and style the abbreviation to show that there is more information underneath */
abbr[title] {
  cursor: help;
  text-decoration-line: underline;
  text-decoration-style: dotted;
}

button:enabled:hover,
a.button-style:hover,
[role="button"]:not([aria-disabled="true"]):hover,
input[type="submit"]:enabled:hover,
input[type="reset"]:enabled:hover,
input[type="button"]:enabled:hover,
label[type="button"]:hover {
  /* filter: brightness(1.4);*/
  color: var(--accent);
  box-shadow: none;
  background-color: var(--accent-tertiary);
  cursor: pointer;
}
a.button-tertiary:hover {
  background-color: var(--accent-hover-tertiary);
}

button:active,
a.button-style:active,
a.circle-button:active,
[role="button"]:not([aria-disabled="true"]):active,
input[type="submit"]:enabled:active,
input[type="reset"]:enabled:active,
input[type="button"]:enabled:active,
label[type="button"]:active {
  background-color: var(--accent-active-tertiary);
  transform: scale(0.95);
}

button:focus-visible:where(:enabled, [role="button"]:not([aria-disabled="true"])),
a.button-style:focus-visible,
input:enabled:focus-visible {
  outline: none;
  transition-property: box-shadow;
  transition-duration: 0.5s;
  box-shadow: 0 0 3px 3px var(--focus);
  
}

button.circle-button,
a.circle-button {
  background-color: transparent;
  box-shadow: none;
  padding: var(--spacer4-1);
  height: var(--spacer4-8);
  width: var(--spacer4-8);
  border-radius: 1.5rem;
  transition: all 0.15s ease-in-out;
}
button.circle-button > svg path,
a.circle-button > svg path{
  fill: var(--default);
} 
button.circle-button > svg,
a.circle-button > svg {
  width: 100%;
  height: 100%;
  align-self: center;
} 
button.circle-button:hover,
a.circle-button:hover {
  background-color: var(--accent-tertiary);
}
button.circle-button:active,
a.circle-button:active {
  background-color: var(--accent-active-tertiary);
  transform: scale(0.85);
}
button.circle-button:hover > svg path,
a.circle-button:hover > svg path {
  fill: var(--accent);
}
/* button down */
a.button-down {
  background-color: transparent;
  padding: var(--spacer4-1);
  padding-top: 0;
  height: var(--spacer4-12);
  width: var(--spacer4-12);
  box-shadow: none;
  border-radius: 1.5rem;
  transition: all 0.15s ease-in-out;

}
a.button-down > svg g {
  fill: var(--accent-white);
} 
a.button-down > svg {
  width: 100%;
  height: 100%;
  align-self: center;
} 
a.button-down:hover {
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: var(--spacer4-1);
}
a.button-down:hover > svg g {
  fill: var(--accent-tertiary);
}
a.button-down:active {
  transform: scale(0.85);
}
a.button-down:active > svg g {
  fill: var(--accent-active-tertiary);
}

/* Format navigation */
header > .logo-nav nav {
  display: flex;
  flex-grow: 2;
  align-self: center;
  align-items: center;
  font-size: 1rem;
  justify-content: flex-start;
  padding: 0 0 0 0;
  margin-right: var(--spacer4-2);
  
}


header > .logo-nav .action-buttons {
  display: flex;
  align-items: center;
  font-size: 1rem;
  justify-content: space-between;
  padding: 0 0 0 0;
  gap: var(--spacer4-3);
}
header img.logo {
  
  width: 250px;
  height: 100%;

}

/* Use flexbox to allow items to wrap, as needed */
header nav ul,
header nav ol {
  align-content: space-around;
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* List items are inline elements, make them behave more like blocks */
header nav ul li,
header nav ol li {
  display: inline-block;
}

header nav a,
header nav a:visited {
  margin-left: var(--spacer4-4);
  margin-right: var(--spacer4-4);
  color: var(--accent-white);
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

header nav a:hover,
header nav a.selected {
  color: var(--accent-tertiary);
  text-decoration: none;
}
header nav a.selected {
  font-weight: 700;
}
header .logo-nav nav > a  {
  color: var(--nav-transparent);
}
header .logo-nav .action-buttons > a.circle-button svg path {
  fill: var(--nav-transparent);
  transition: all 0.15s ease-in-out;
}
header .logo-nav .action-buttons > a.circle-button:hover svg path {
  fill: var(--accent);
  transition: all 0.15s ease-in-out;
}
header .logo-nav .action-buttons > a.circle-button:hover {
  background-color: var(--accent-hover-tertiary);
  transition: all 0.15s ease-in-out;
}


#menuToggle {
  display: none;
  margin-left: var(--spacer4-2);
  margin-right: var(--spacer4-2);
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}



#menuToggle input {
  display: block;
  min-width: var(--spacer4-10);
  width: var(--spacer4-10);
  height: var(--spacer4-10);
  position: absolute;
  top: -7px;
  left: -7px;
  
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin-bottom: 5px;
  position: relative;
  
  background: var(--accent-white);
  border-radius: 2px;
  
  z-index: 1;
  
  transform-origin: -1px 0px;
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}
#menuToggle span:last-child
{
  margin-bottom: 0;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-1px, -1px);
  background: var(--accent-white);
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu-mobile
{
  position: absolute;
  width: 110vw;
  height: 108vh;
  margin: -100px 0 0 -50px;
  padding: 50px;
  padding-top: 125px;
  
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
}

#menu-mobile li
{
  padding: 10px 0;
  font-size: 22px;
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ ul
{
  transform: none;
}



/* Change Header Styling */
header.white-background {
  background: none;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  height: var(--spacer4-20); 
  transition: all 0.3s ease-in-out;
}
header.white-background .logo-nav nav a  {
  color: var(--accent-secondary);
}
header.white-background .logo-nav nav a:hover,
header.white-background .logo-nav nav a.selected  {
  color: var(--accent-primary);
}
header.white-background .header-background {
  opacity: 0;
}
header.blur-background {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  height: var(--spacer4-20); 
}
header.blur-background .header-background {
  opacity: 1;
}
header.white-background #fill-logo-icon {
  fill: #3A9AC7;
}
header.white-background #fill-logo-text {
  fill: #3E5E77;
}
header.white-background .logo-nav .action-buttons > a.button-style  {
  background-color: var(--accent-white);
  box-shadow: inset 0 0 0 2px var(--accent-primary);
  color: var(--accent-primary);
}
header.white-background .logo-nav .action-buttons > a.button-style:hover  {
  background-color: var(--accent-tertiary);
  box-shadow: none;
  color: var(--accent);
}
header.white-background .logo-nav .action-buttons > a.button-style:hover svg path {
  fill: var(--accent);
}
header.white-background .logo-nav .action-buttons > a.button-style svg g {
  fill: var(--accent-primary);
}
header.white-background .logo-nav .action-buttons > a.circle-button svg g {
  fill: var(--accent-white);
}
header.white-background .logo-nav .action-buttons > a.circle-button svg path {
  fill: var(--accent-primary);
}
header.white-background .logo-nav .action-buttons > a.circle-button:hover svg path {
  fill: var(--accent-primary);
}
header.white-background .logo-nav .action-buttons > a.circle-button:hover {
  background-color: var(--accent-tertiary);
}
header.white-background #menuToggle span {
  background: var(--accent-primary);
}
header.white-background  #menuToggle input:checked ~ span {
  background: var(--accent-white);
}
header.white-background  #menu-mobile a {
  color: var(--accent-white);
}
header.white-background #menu-mobile a:hover,
header.white-background #menu-mobile a.selected  {
  color: var(--accent-tertiary);
}


/* Reduce nav side on mobile */
@media only screen and (max-width: 1024px) {
  #header-nav-logo {
    max-width: 50px;
    overflow: hidden;
  }
}

@media only screen and (max-width: 835px) {
  header > .logo-nav nav {
    justify-content: left;
  }
  #menuToggle {
    display: block;
  }
  #menu-desktop {
    display: none;
  }
  #header-nav-logo {
    max-width: 40px;
    margin-left: var(--spacer4-2);
  }
}
@media only screen and (max-width: 340px) {
  #header-nav-logo {
    max-width: 40px;
    margin: 0;
  }
  header > .logo-nav .action-buttons {
    gap: var(--spacer4-2);
  }
  header > .logo-nav .action-buttons a.button-style svg {
    display: none;
  }
}

/* Consolidate box styling */
aside, details, pre, progress {
  background-color: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  margin-bottom: 1rem;
}

aside {
  font-size: 1rem;
  width: 30%;
  padding: 0 15px;
  margin-left: 15px;
  float: right;
}

/* Make aside full-width on mobile */
@media only screen and (max-width: 720px) {
  aside {
    width: 100%;
    float: none;
    margin-left: 0;
  }
}


section.text-only {
  display: flex;
  flex-direction: column;
  padding: var(--spacer4-4);
  padding-top: var(--spacer4-20);
  max-width: 900px;
  margin: auto;
}
section.text-only h1 {
  margin-top: var(--spacer4-12);
}


section.primary-background{
  background-color: var(--md-ref-palette-primary95);
}
section.secondary-background{
  background-color: var(--md-ref-palette-secondary95);
}
section.tertiary-background{
  background-color: var(--md-ref-palette-tertiary95);
}
section.white-background{
  background-color: #fff;
}

details {
  padding: 0.7rem 1rem;
}

summary {
  cursor: pointer;
  font-weight: bold;
  padding: 0.7rem 1rem;
  margin: -0.7rem -1rem;
  word-break: break-all;
}

details[open] > summary + * {
  margin-top: 0;
}

details[open] > summary {
  margin-bottom: 0.5rem;
}

details[open] > :last-child {
  margin-bottom: 0;
}
ul {
  margin-bottom: var(--spacer4-6);
}
li {
  text-align: auto;
  list-style: inside;
  padding-left: var(--spacer4-2);
}

/* Format tables */
table {
  border-collapse: collapse;
  display: block;
  margin: 1.5rem 0;
  overflow: auto;
  width: 100%;
}

td,
th {
  border: 1px solid var(--border);
  text-align: left;
  padding: 0.5rem;
}

th {
  background-color: var(--accent-bg);
  font-weight: bold;
}

tr:nth-child(even) {
  /* Set every other cell slightly darker. Improves readability. */
  background-color: var(--accent-bg);
}

table caption {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Format forms */

textarea,
select,
input {
  font-size: inherit;
  font-family: inherit;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: none;
  max-width: 100%;
  display: inline-block;
}
label {
  display: block;
  font-size: 1rem;
  margin-bottom: var(--spacer4-1);
}
textarea:not([cols]) {
  width: 100%;
}

/* Add arrow to drop-down */
select:not([multiple]) {
  background-image: linear-gradient(45deg, transparent 49%, var(--text) 51%),
    linear-gradient(135deg, var(--text) 51%, transparent 49%);
  background-position: calc(100% - 15px), calc(100% - 10px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 25px;
}

/* checkbox and radio button style
input[type="checkbox"],
input[type="radio"] {
  vertical-align: middle;
  position: relative;
  width: min-content;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  display: inline-block;
}

input[type="radio"] {
  border-radius: 100%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--accent);
}

input[type="checkbox"]:checked::after {
  /* Creates a rectangle with colored right and bottom borders which is rotated to look like a check mark 
  content: " ";
  width: 0.18em;
  height: 0.32em;
  border-radius: 0;
  position: absolute;
  top: 0.05em;
  left: 0.17em;
  background-color: transparent;
  border-right: solid var(--bg) 0.08em;
  border-bottom: solid var(--bg) 0.08em;
  font-size: 1.8em;
  transform: rotate(45deg);
}*/
/*
input[type="radio"]:checked::after {
  /* creates a colored circle for the checked radio button 
  content: " ";
  width: 0.25em;
  height: 0.25em;
  border-radius: 100%;
  position: absolute;
  top: 0.125em;
  background-color: var(--bg);
  left: 0.125em;
  font-size: 32px;
} */

/* Makes input fields wider on smaller screens */
@media only screen and (max-width: 720px) {
  textarea,
  select,
  input {
    width: 100%;
  }
}

/* Set a height for color input */
input[type="color"] {
  height: 2.5rem;
  padding:  0.2rem;
}

/* do not show border around file selector button */
input[type="file"] {
  border: 0;
}

/* Misc body elements */
hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 1rem auto;
}

mark {
  padding: 2px 5px;
  border-radius: 4px;
  background-color: var(--marked);
}

img,
video {
  max-width: 100%;
  height: auto;
}
/* svg */
svg {
  pointer-events: none;
}

figure {
  margin: 0;
  text-align: center;
}

figcaption {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

blockquote {
  margin: 2rem 0 2rem 2rem;
  padding: 0.4rem 0.8rem;
  border-left: 0.35rem solid var(--accent);
  color: var(--text-light);
  font-style: italic;
}

cite {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: normal;
}

dt {
    color: var(--text-light);
}

/* Use mono font for code elements */
code,
pre,
pre span,
kbd,
samp {
  font-family: var(--mono-font);
  color: var(--code);
}

kbd {
  color: var(--preformatted);
  border: 1px solid var(--preformatted);
  border-bottom: 3px solid var(--preformatted);
  border-radius: 5px;
  padding: 0.1rem 0.4rem;
}

pre {
  padding: 1rem 1.4rem;
  max-width: 100%;
  overflow: auto;
  color: var(--preformatted);
}

/* Fix embedded code within pre */
pre code {
  color: var(--preformatted);
  background: none;
  margin: 0;
  padding: 0;
}

/* Progress bars */
/* Declarations are repeated because you */
/* cannot combine vendor-specific selectors */
progress {
  width: 100%;
}

progress:indeterminate {
  background-color: var(--accent-bg);
}

progress::-webkit-progress-bar {
  border-radius: 5px;
  background-color: var(--accent-bg);
}

progress::-webkit-progress-value {
  border-radius: 5px;
  background-color: var(--accent);
}

progress::-moz-progress-bar {
  border-radius: 5px;
  background-color: var(--accent);
  transition-property: width;
  transition-duration: 0.3s;
}

progress:indeterminate::-moz-progress-bar {
  background-color: var(--accent-bg);
}
/* Own Code */
/* Logo Styling */

/*  */
/* */
/* */
/* slide layout
  --------------------------------------------- */

.slide {
  position: relative;
  padding: 0;
  min-height: 300px;
}
.slide-content {
  max-width: 1200px;
  height: 100%;
  margin: auto;
  z-index: 10;
}
.slide-text {
  padding: var(--spacer4-6);

}

/* */
/* collapsible
  --------------------------------------------- */

  .collapsible.slow {
    position: relative;
    overflow: hidden;
    transition: height 0.5s ease-out;
  }
  .collapsible.slow > * {
    display: none;
  }
  .collapsible.slow > p:first-child,
  .collapsible.slow.open > *,
  .collapsible.slow.ready > * {
    display: revert;
  }

  .collapsible.slow > .toggler {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    text-align: center;
    cursor: pointer;
  }
  .collapsible.slow > .toggler::after {
    content: "\25bc";
  }
  .collapsible.slow.open > .toggler::after {
    content: "\25b2";
  }
  .hide-button {
    display: none;
  }


/* teaser slide
  --------------------------------------------- */
.teaser-slide h2 {
  width: 100%;
  text-align: center;
}
.teaser {
  display: flex;
  justify-content: center;
  gap: var(--spacer4-6);
  flex-flow: column;
}

article, fieldset {
  display: flex;
  flex-flow: column;
  justify-content: center;
  border: none;
  padding: var(--spacer4-4);
  border-radius: var(--spacer4-3);
  margin-bottom: var(--spacer4-4);
  background-color: var(--accent-bg-white);
  filter: drop-shadow(0 var(--spacer4-1) var(--spacer4-4) var(--accent));
  min-width: 270px;
  width: 100%;
  align-items: center;
}
article img {
  height: 100%;
  width: 280px;
}
article img.big-teaser {
  height: 100%;
  width: 340px;
}
article a.button-style,
article button {
  align-self: center;
  margin: 0;
  border-radius: var(--spacer4-3);
  padding: 1rem 1.75rem;
  height: var(--spacer4-12);
  margin-bottom: var(--spacer4-4);
}

article h2:first-child,
section h2:first-child {
  margin-top: 1rem;
}

.scroll-down {
  position: absolute; 
  left: 0;
  bottom: 20px;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}
/* slideshow
  --------------------------------------------- */
.slideshow {
  position: relative;
  width: 100%;
}
.slideshow-entry{
  animation: 12s slideshow-animation infinite ease-in-out;
  position: absolute; 
  top: 0; 
  left: 0; 
  opacity: 0.0;
  display: flex;
  align-items: baseline;
  width: 100%;
  gap: var(--spacer4-3);
}
.slideshow-entry p{
  font-family: var(--sans-font);
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 2.5rem;
  color: var(--accent-tertiary);
  margin-block-end: 0;

}
.slideshow > *:nth-child(1) {animation-delay: 0s}
.slideshow > *:nth-child(2) {animation-delay: 4s}
.slideshow > *:nth-child(3) {animation-delay: 8s}


@keyframes slideshow-animation {
  0% {opacity: 0.0; left: -20px}
  4% {opacity: 1.0; left: 0}
  30.33% {opacity: 1.0; left: 0}
  33.33% {opacity: 0.0; left: 20px}
  100% {opacity: 0.0; left: 20px}
}


/* slide elements
  --------------------------------------------- */

.slide-image{
  min-height:200px;
  width: 100%;
  max-width: 700px;
  padding: var(--spacer4-6);
  padding-bottom: 0;
}

.slide-image img{
  display: block;
  width: 100%;
  max-width: 700px;
  margin: auto;

}
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  pointer-events: none; 
}
.slide-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none; 
}

/* slide backgrounds */
#slide-1 {
  height: 100vh;
  min-height: 800px;
}

#slide-1 .slide-bg {
  background-image: url("../images/bg-image1-kiter-mobile.jpg"), linear-gradient(
    rgba(62, 94, 119, 1),
    rgba(62, 94, 119, 1)
   );
  background-size: cover;
  background-repeat: no-repeat;
  background-position-y: center;
  background-position-x: center;
}
#slide-1 .slide-bg.employees-hero {
  background-image: url("../images/bg-image1-mobile.jpg"), linear-gradient(
    rgba(62, 94, 119, 1),
    rgba(62, 94, 119, 1)
   );
}
#slide-1 .slide-bg.agents-hero {
  background-image: url("../images/bg-image1-surfer-mobile.jpg"), linear-gradient(
    rgba(62, 94, 119, 1),
    rgba(62, 94, 119, 1)
   );
}
#slide-1 .slide-grid,
#slide-6 .slide-grid, 
#slide-8 .slide-grid {
  background-image: url("../images/background-grid.svg");
  background-size: 1024px auto;
  background-repeat: repeat;
  background-position-y: center;
  background-position-x: center;
  height: 100%;
}

#slide-2 .slide-bg,
#slide-3 .slide-bg,
#slide-4 .slide-bg,
#slide-5 .slide-bg,
#slide-7 .slide-bg {
  background-color: #ffffff;
  background-size: 100%
}  
#slide-6 .slide-bg {
  background-image: url("../images/bg-image6.jpg"), linear-gradient(
    rgba(62, 94, 119, 1),
    rgba(62, 94, 119, 1)
   );
  background-size: cover;
  background-repeat: no-repeat;
  background-position-y: center;
  background-position-x: center;
}

#slide-8 .slide-bg {
  background-image: url("../images/bg-image8.jpg"), linear-gradient(
    rgba(62, 94, 119, 1),
    rgba(62, 94, 119, 1)
  );
  background-size: cover;
  background-repeat: no-repeat;
  background-position-y: center;
  background-position-x: center;
}

/*#slide-3 .slide-image {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--spacer4-6);
  min-height: 0;
  width: 100%;
  max-width: 100%;
  padding-bottom: var(--spacer4-12);
}

#slide-3 .slide-image img{
  width: 100%;
  height: 100%;
}*/

#slide-4 .slide-image {
  min-height: auto;
}

.slide-last .slide-image {
  padding-bottom: var(--spacer4-12);
}
#slide-7 .slide-text {
  padding-bottom: 0;
}


/* parallax effect*/

/* Large screen layout
  --------------------------------------------- */  
  
@media screen and (min-width: 768px) {
  

  .slide-content {
    display: -webkit-flex;
    display: flex;
    align-items: center;
  }
  #slide-7 .slide-content {
    display: -webkit-flex;
    display: flex;
    align-items: start;

  }
  .slide-image, .slide-text {
    padding: 3%;
    flex: 1;
  } 
  #slide-1 .slide-text {
    padding-top: 18%;
    padding-left: 24%;

  }
  .slide:nth-child(2n) .slide-text {
    -webkit-order: 1;
    order: 1;
  }
  .nav {
    display: block;
  }
  
  #slide-1 .slide-bg {
    background-image: url("../images/bg-image1-kiter.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
    height: 100vh;
    min-height: 650px;
  }
  #slide-1 .slide-bg.employees-hero {
    background-image: url("../images/bg-image1.jpg");
  }
  #slide-1 .slide-bg.agents-hero {
    background-image: url("../images/bg-image1-surfer.jpg");
  }
 
  #slide-1 {
    position: relative;
    min-height: 650px;
  }
  #slide-5 .slide-text {
    margin-bottom: var(--spacer4-20);
  }
  #slide-7 .slide-content {
    padding-top: var(--spacer4-8);
    padding-bottom: var(--spacer4-8);
  }

  #slide-7 .slide-text {
    padding-bottom: 3%;
  }


  

  /* parallax */
  @supports ((perspective: 1px) and (not (-webkit-overflow-scrolling: touch))) {

    /*body.parallax {
      overflow: hidden;
      height: 100vh;
    }
    body.parallax {
      transform: translateZ(0px); /* Fix paint issues in Edge && Safari H/W acceleration 
    }*/
    .slides {
      position: absolute;
      width: 100%;
      height: 100vh;
      overflow-x: hidden;
      overflow-y: auto;
      perspective: 300px;
      scroll-behavior: smooth;
    }
    main {
      transform-style: preserve-3d;
    }
    .slide, .slide-content {
      transform-style: preserve-3d;
    }
    .slide-text {
      transform: translateZ(0) scale(1);
      transform-origin: 100% 50%;
    }
    .slide-image {
      transform: translateZ(70px) scale(.70);
      transform-origin: 0% 50%;
    }
    
    .slide:nth-child(2n) .slide-image {
      transform: translateZ(72px) scale(.70);
      transform-origin: 100% 50%;
    }
    .slide:nth-child(2n) .slide-text {
      transform: translateZ(0) scale(1);
      transform-origin: 0% 50%;
    }
    
    .slide:nth-child(2n) {
      z-index: 1; /* ensure slides overlay correctly */
    }

    #slide-1 .slide-text  {
      transform: translateZ(10px) scale(1);
      transform-origin: 0% 0%;
      
    }
    #slide-2 .slide-image img  {
      padding-top: 100px;
    }
  
    #slide-6 .slide-text, 
    #slide-8 .slide-text,
    #slide-7 .slide-text  {
      transform: translateZ(0) scale(1);
      transform-origin: 0% 50%;
      
    }
    #slide-7 .slide-image  {
      transform: translateZ(0) scale(1);
      transform-origin: 100% 50%;
      
    }

    #slide-1 .slide-bg,
    #slide-6 .slide-bg  {
      transform: translateZ(-50px) scale(1.3);
      transform-origin: center;
    }
    #slide-8 .slide-bg  {
      transform: translateZ(-50px) scale(1.167);
      transform-origin: center;
    }
    #slide-1 .slide-grid,
    #slide-6 .slide-grid  {
      transform: translateZ(-32px) scale(1.2);
      transform-origin: center;
    }
    #slide-8 .slide-grid  {
      transform: translateZ(-32px) scale(1.165);
      transform-origin: center;
    }
  
  }
}
@media screen and (min-width: 990px) {
  
  #slide-1 .slide-bg {
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
  }
}
/* */
.footer-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: 30px 150px 1fr;
  grid-template-rows: 30px;
  column-gap: var(--spacer4-2);
  row-gap: var(--spacer4-3);
  align-items: center;
}
.footer-grid-item{
  display: flex;
  justify-self: start;
}
.footer-grid-item p {
  margin-right: var(--spacer4-3);
  margin-top: 0;
  margin-bottom: 0;

}

.footer-grid-item p:last-child {
  margin-right: 0;
}

/* modal */
.modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  pointer-events: none; }

.modal[open] {
  display: flex; }

.modal-inner {
  display: flex;
  background-color: white;
  border-radius: var(--spacer4-4);
  min-height: 400px;
  max-width: 1200px;
  max-height: calc(100% - var(--spacer4-8));
  margin: auto;
  margin-left: var(--spacer4-4);
  margin-right: var(--spacer4-4);
  filter: drop-shadow(0 var(--spacer4-1) var(--spacer4-8) rgba(0, 24, 73, 0.5));
  overflow-x: hidden;
  pointer-events: auto; 
}
.modal-inner-small {
  max-width: 800px;
}

.modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  position: sticky;
  padding: var(--spacer4-4) var(--spacer4-6);
  top: 0;
  z-index: 1; }

.modal .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--spacer4-6);
  padding-top: 0;
  z-index: 0; 
}

.modal header h2 {
  margin-top: 0;
  margin-bottom: 0; }

#modal-overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 39;
  background-color: rgba(0, 24, 73, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px); 
}

.modal-text-hide {
  display: none;
}

.scroll-container {
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  max-height: calc(100% - var(--spacer4-6));
}
@media screen and (min-width: 768px) {
  .modal-inner {
    margin-left: var(--spacer4-8);
    margin-right: var(--spacer4-8);
    max-height: calc(100% - var(--spacer4-16));
  }
  .modal .modal-content {
    flex-direction: row;
    gap: var(--spacer4-10);
  }
  .modal .modal-content > div {
    max-width: 60%;
  }
  .modal .modal-form {
    flex-direction: column;
    gap: 0;
  }
  .modal .modal-form > div {
    max-width: 100%;
  }
  .modal-image {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    height:100%;
  }
}


/* mailchimp signup */
#mc_embed_signup {
  background:#fff; clear:left; font:16px var( --sans-font);  width:100%; max-width:700px;
}
#mc_embed_signup form {
  margin: 0;
}
#mc_embed_signup .button,
button.form-button {
  min-width: 200px;
  font-size: 1rem;
  color: white;
  min-height: var(--spacer4-12);
  border-radius: var(--spacer4-3);
  border: none;
  background-color: var(--accent-primary);
}
/*#mc_embed_signup .button {
  background-color: var(--accent-white);
  font-size: 1rem;
  height: auto;
  line-height: normal;
  padding: 0.7rem 0.9rem;
  margin: 0.5rem 0;
  border-radius: var(--spacer4-3);
  
}*/
#mc_embed_signup .button:hover,
button.form-button:hover {
  background-color: var(--accent-tertiary);
  color: var(--accent-primary);
}
#mc_embed_signup input,
input.form-field {
  border-radius: 1px solid var(--border);
  border-radius: var(--spacer4-3);
}
#mc_embed_signup input[type="text"],
#mc_embed_signup input[type="email"] {
  width: 100%;
  max-width: 700px;
}
input.form-field {
  width: 100%;
  max-width: 400px;
  border: none;
}
button.form-button,
input.form-field {
  height: var(--spacer4-10);
  min-height: var(--spacer4-10);
}

#mc_embed_signup h3 {
  margin-top: 0;
}
#mc_embed_signup .indicates-required {
  font-size: 0.9rem;
}
#mc_embed_signup .asterisk {
  color: var(--md-ref-palette-error50);
}
#mc_embed_signup .mc-field-group {
  margin-bottom: var(--spacer4-1);
}
#mc_embed_signup #mce-success-response{
  color: #8DAE0F;
}

#mc_embed_signup div#mce-responses{
  float: left;
  top: -1.4em;
  padding: 0;
  overflow: hidden;
  width: 90%;
  margin: 0 5% 0 0;
  clear: both;
}

/* animation classes */
.animate-zoom {
  animation: animatezoom 0.3s ease-out;
}

@keyframes animatezoom {
  from {
    transform: scale(0.9);
    opacity: 0;
  } 
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.animate-background {
  animation: animatebackground 0.3s ease-in;
}
@keyframes animatebackground {
  from {
    background-color: transparent;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    
  } 
  to {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    
  }
}

/* media queries */
/* mobile portrait */
@media only screen and (max-width: 768px) {

  
  h1 {
    font-size: var(--spacer4-10);
    margin-top: 420px;
  }
 

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  h4 {
    font-size: 1.25rem;
  }
  .slideshow-entry p {
    font-size: 1.8rem;
    line-height: 2rem;
  }
  .slideshow-entry img {
    width: 20px;
    height: 100%;
  }
  #fill-logo-text {
    display:none;
  }
  .footer-grid {
    grid-template-rows: 30px 30px;
  }
  .footer-links {
    grid-column: 1 / span 3;
    grid-row: 2;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
 
}
@media only screen and (max-width: 560px) {
  h1 {
    margin-top: 320px;
  }
  
}
@media only screen and (max-width: 340px) {
  h1 {
    font-size: var(--spacer4-8);
    margin-top: 240px;
  }
  h2 {
    font-size: 1.4rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  h4 {
    font-size: 1rem;
  }
  p {
    font-size: 0.8rem;
  }
  .slideshow-entry p{
    font-size: 1.5rem;
    line-height: 1.8rem;
  }
  #slide-1 {
    min-height: 650px;
  }
}
/* mobile landscape */
@media only screen and (min-width: 768px){
  
  .footer-grid {
    grid-template-rows: 30px;
  }
  .footer-links {
    grid-column: 3;
    grid-row: 1;
  }

}
/* mobile ipad */
@media only screen and (min-width: 920px){
  .teaser {
    flex-flow: row;
  }
  #slide-8 .slide-bg  {
    transform: translateZ(-50px) scale(1.4);
    transform-origin: center;
  }
}
/* desktop */
@media only screen and (min-width: 1200px){

  
}
