html {
  --bg: antiquewhite;
  --gentlebg: #0001;
  --fg: #000;
  --link: #05f;
  --button: #176ba9;
  --header1: #935300;
  --header2: #000;
  --code: #fff;
}

@media (prefers-color-scheme: dark) {
  html {
    color-scheme: dark;
    --bg: #292015;
    --gentlebg: #fff1;
    --fg: #cacaca;
    --link: #4ab2ff;
    --button: #176ba9;
    --header1: #ffdbac;
    --header2: #fff;
    --code: #000;
  }
}


html {
  font-family: "Zalando Sans", sans-serif;
  background-color: var(--bg);
  color: var(--fg);
}

* { box-sizing: border-box }

.container {
  max-width: 1200px;
  width: 90%;
  margin: 2em auto;
}

body > header {
  display: flex;
  gap: 2em;
  align-items: anchor-center;
  justify-content: space-between;
}

body > header > h1 {
  flex: 1 0 auto;
}

body > header > nav {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

body > header img {
  height: 40px;
  float: left;
  margin-right: .25em;
}


body > footer { font-size: 75% }

ul { padding-left: 20px }
li { margin-bottom: .25em }

h1 a {
  color: inherit;
  text-decoration: none;

  &:hover {
    filter: unset;
  }
}

@media (width >= 700px) {

  #leftright {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7vw;
  }

}

a {
  color: var(--link);
  &:hover { filter: hue-rotate(90deg) }
}

h1 {
  font-weight: normal;
  font-family: "Protest Guerrilla", sans-serif;
  color: var(--header1);
}

h2 {
  font-weight: normal;
  font-family: "DM Serif Text", serif;
  color: var(--header1);
}

h3 {
  font-weight: normal;
  font-family: "DM Serif Text", serif;
  color: var(--header2);
}

code {
  font-family: "Source Code Pro", monospace;
}

.buynow {
  padding: .5em 1em;
  background-color: color-mix(in srgb, currentColor 10%, #0000 90%);
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 7px;
  transition: all ease-in-out 200ms;
}

pre code.hljs {
  background-color: var(--code);
}





#search-win32-apis {
  width: 100%;
  font-family: "Source Code Pro", monospace;
  padding: .5em;
  outline: none;
  border: 0;
  background-color: var(--code);

  &:hover:not(:focus) { outline: 1px solid var(--link) }
  &:focus {             outline: 2px solid var(--link) }
}

.hlw { filter: hue-rotate(90deg) }

.results ul {
  list-style-type: none;
  padding-left: 0;
}

.results li {
  white-space: nowrap;
}

.badge {
  width: 7em;
  text-align: center;
  display: inline-block;
  text-transform: uppercase;
  font-size: 70%;
  background-color: #000;
  color: #fff;
  border-radius: 7px;
  padding: 1px 5px;
}

.viewmsdocs {
  padding: 1em;
  background-color: var(--gentlebg);
}

.badge.function  { background-color: #148b7caa }
.badge.constant  { background-color: #df43a3aa }
.badge.enumval   { background-color: #0074e7aa }
.badge.enum      { background-color: #16a7c0aa }
.badge.callback  { background-color: #c08a16aa }
.badge.typedef   { background-color: #319c00aa }
.badge.struct    { background-color: #a543dfaa }
.badge.union     { background-color: #7616c0aa }
.badge.interface { background-color: #c01616aa }

.fnbody {
  font-family: "Source Code Pro", monospace;
  background-color: var(--code);
  padding: 1em;
  overflow-x: auto;
}

.fnbody td:not(:first-child) { padding-left: 1em }

.mainbadge {
  float: right;
  margin-left: 1em;
  margin-top: .75em;
}

@media (width >= 700px) {
  .mainbadge {
    margin-top: 2.5em;
  }
}

#landingpage {

  margin-top: -1em;
  display: grid;
  gap: 2em;

  #tagline {
    justify-self: center;
    font-style: italic;
    display: block;

    font-size: 110%;

    text-decoration: none;
    border-bottom: 2px solid var(--header1);
    padding-bottom: 7px;
  }

  #buttons {

    align-self: center;
    display: flex;
    gap: 1em;
    justify-content: center;

    a {
      text-decoration: none;
      background-color: var(--button);
      color: #fff;
      padding: 1em;
    }

  }

  #features {

    align-self: center;
    display: flex;
    gap: 1em;
    justify-content: center;
    flex-direction: column;

    @media (width >= 500px) {
      flex-direction: row;
      & > section {
        flex: 0 1 300px;
      }
    }

    & > section {
      background-color: var(--gentlebg);
      padding: 0 1em;
    }

  }

}
