@charset "utf-8";
@import "normalize";
@import "bootstrap";

/*!
 * Start Bootstrap - Creative Bootstrap Theme (http://startbootstrap.com)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

$key_color: #4a90d9;

$neutral_color: #919191;

$neutral_color_dark: #333;
$text_color_dark: rgba(255, 255, 255, 0.6);
$background_color_dark: #262626;

$fontface: Inter, sans-serif;

html,
body {
  width: 100%;
  height: 100%;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: $background_color_dark;
    color: $text_color_dark;
  }

  .navbar-default {
    background-color: $background_color_dark !important;
    color: $text_color_dark;
    border-color: $background_color_dark !important;
  }

  .navbar-default .nav > li > a,
  .navbar-default .nav > li > a:focus {
    color: $text_color_dark !important;
  }

  .navbar-default .navbar-toggle:focus,
  .navbar-default .navbar-toggle:hover {
    background-color: $neutral_color_dark;
  }

  .navbar-collapse {
    border-color: $background_color_dark !important;
  }

  pre,
  code {
    border-color: darken($background_color_dark, 5%);
    background-color: darken($background_color_dark, 5%);
    color: $text_color_dark;
  }

  h3 {
    color: $text_color_dark;
  }

  h4 {
    color: $text_color_dark;
  }

  .bg-secondary {
    background-color: $neutral_color_dark !important;
    color: $text_color_dark;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: $fontface;
  font-size: 13pt;
  font-weight: 400;
  font-variation-settings: 'wght' 400;
  font-style: normal;
}

hr {
  max-width: 50px;
  border-color: #f05f40;
  border-width: 3px;
}

hr.light {
  border-color: #fff;
}

a {
  color: $key_color;
  -webkit-transition: all 0.35s;
  -moz-transition: all 0.35s;
  transition: all 0.35s;
}

ul {
  font-size: 12pt;
  &.dotless {
    display: block;
    padding: 0;
    li {
      list-style: none;
      display: block;
      margin-bottom: 3em;
    }
  }
}

a:hover,
a:focus {
  color: lighten($key_color, 5%);
}

a[name] {
  /* add some padding to named anchors for external linking */
  display: block;
  position: relative;
  top: -80px;
  visibility: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: $fontface;
  margin-top: 1.5em;
  &:first-child {
    margin-top: 0.3em;
  }
  &.voffset {
    margin-top: 3em;
  }
}

h1 {
  font-size: 180%;
}
h2 {
  font-size: 160%;
}
h3 {
  font-size: 130%;
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  color: $neutral_color;
}
h4 {
  font-size: 120%;
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  color: $neutral_color;
}

p {
  margin-bottom: 1.5em;
  line-height: 1.5;
  &.spaced {
    margin: 3em 0;
  }
}

.offbydefault {
  display: none;
}

.bg-primary {
  background-color: $key_color;
  padding-bottom: 16em;
  h3,
  h4 {
    color: transparentize(#fff, 0.5);
    margin-bottom: 0;
  }

  ul {
    display: block;
    li {
      list-style: none;
      display: block;
      margin-bottom: 3em;
    }
  }

  a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    font-variation-settings: 'wght' 600;
    &:hover {
      color: #fff;
    }
  }

  .btn-primary {
    color: $key_color;
  }
}

.bg-secondary {
  background-color: lighten($neutral_color, 40%);
}

#appsplash {
  padding: 3em 0 3em 0;
}
#devsplash {
  padding: 0 0 3em 0;
  ul {
    text-align: left;
  }
}

.bg-black {
  color: #fff;
  background-color: #000;
}

.text-faded {
  color: rgba(255, 255, 255, 0.7);
}

section {
  padding: 100px 0;
  flex: 1;
}

.imagebanner {
  background: url(/img/container.webp) no-repeat center bottom;
  @media (prefers-color-scheme: dark) {
    filter: brightness(70%);
  }
  background-size: cover;
  color: #fff;
  min-height: 50vh;
  z-index: 1;
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  p {
    max-width: 30em;
    margin: auto;
  }
}

aside {
  padding: 50px 0;
}

.no-padding {
  padding: 0;
}

.logos span {
  display: inline-block;
  margin: 10px;
}

.navbar-default {
  border-color: rgba(34, 34, 34, 0.05);
  background-color: #fff;
  -webkit-transition: all 0.35s;
  -moz-transition: all 0.35s;
  transition: all 0.35s;
}

.navbar-default .navbar-header .navbar-brand {
  font-family: $fontface;
  font-weight: 700;
  font-variation-settings: 'wght' 700;
  color: $key_color;
}

.navbar-default .navbar-header .navbar-brand:hover,
.navbar-default .navbar-header .navbar-brand:focus {
  color: lighten($key_color, 5%);
}

.navbar-default .nav > li > a,
.navbar-default .nav > li > a:focus {
  font-size: 13px;
  font-weight: 700;
  font-variation-settings: 'wght' 700;
  color: #222;
}

.navbar-default .nav > li > a:hover,
.navbar-default .nav > li > a:focus:hover {
  color: #f05f40;
}

.navbar-default .nav > li.active > a,
.navbar-default .nav > li.active > a:focus {
  color: #f05f40 !important;
  background-color: transparent;
}

.navbar-default .nav > li.active > a:hover,
.navbar-default .nav > li.active > a:focus:hover {
  background-color: transparent;
}

@media (min-width: 768px) {
  .navbar-default {
    border-color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.8);
    /* background-image: linear-gradient(to bottom,transparentize(#fff,.1),transparentize(#fff,0.9)); */
  }

  .navbar-default .navbar-header .navbar-brand {
    /* color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.6); */
  }

  .navbar-default .navbar-header .navbar-brand:hover,
  .navbar-default .navbar-header .navbar-brand:focus {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  }

  .navbar-default .nav > li > a,
  .navbar-default .nav > li > a:focus {
  }

  .navbar-default .nav > li > a:hover,
  .navbar-default .nav > li > a:focus:hover {
    color: $key_color;
  }

  .navbar-default.affix {
    border-color: rgba(34, 34, 34, 0.05);
    background-color: #fff;
  }

  .navbar-default.affix .navbar-header .navbar-brand {
    font-size: 15px;
  }

  .navbar-default.affix .navbar-header .navbar-brand:hover,
  .navbar-default.affix .navbar-header .navbar-brand:focus {
  }

  .navbar-default.affix .nav > li > a,
  .navbar-default.affix .nav > li > a:focus {
    color: #222;
  }

  .navbar-default.affix .nav > li > a:hover,
  .navbar-default.affix .nav > li > a:focus:hover {
    color: #f05f40;
  }
}

header {
  position: relative;
  width: 100%;
  min-height: auto;
  text-align: center;
  color: #fff;
  background-color: $key_color;
  background-position: center, center top, center;
  background-repeat: no-repeat;
  background-size: cover;
}

header .header-content {
  position: relative;
  width: 100%;
  padding: 100px 15px;
  text-align: center;
}

header .header-content .header-content-inner h1 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

header .header-content .header-content-inner hr {
  margin: 30px auto;
}

header .header-content .header-content-inner p {
  margin-bottom: 50px;
  font-size: 16px;
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

pre {
  margin: 2em 0;
}

@media (min-width: 768px) {
  header {
    min-height: 100%;
  }

  header .header-content {
    position: absolute;
    top: 50%;
    padding: 0 50px;
    transform: translateY(-15%);
  }

  header .header-content .header-content-inner {
    margin-right: auto;
    margin-left: auto;
    max-width: 1000px;
  }

  header .header-content .header-content-inner p {
    margin-right: auto;
    margin-left: auto;
    max-width: 80%;
    font-size: 18px;
  }
}

.section-heading {
  margin-top: 0;

  .emphasize {
    color: $key_color;
  }
}

.service-box {
  margin: 50px auto 0;
  max-width: 400px;
}

@media (min-width: 992px) {
  .service-box {
    margin: 20px auto 0;
  }
}

.service-box p {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .portfolio-box
    .portfolio-box-caption
    .portfolio-box-caption-content
    .project-category {
    font-size: 16px;
  }

  .portfolio-box
    .portfolio-box-caption
    .portfolio-box-caption-content
    .project-name {
    font-size: 22px;
  }
}

.call-to-action h2 {
  margin: 0 auto 20px;
}

.text-primary {
  color: #f05f40;
}

.no-gutter > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

.btn-default {
  color: #fff;
  background-color: $key_color;
  -webkit-transition: all 0.35s;
  -moz-transition: all 0.35s;
  transition: all 0.35s;
  .hader-content &,
  .bg-primary & {
    color: #222;
    background-color: #fff;
  }
}

.btn-default:hover,
.btn-default:focus,
.btn-default.focus,
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
  background-color: lighten($key_color, 10%);
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
  background-image: none;
  border-color: rgba(0, 0, 0, 0);
}

.btn-default.disabled,
.btn-default[disabled],
fieldset[disabled] .btn-default,
.btn-default.disabled:hover,
.btn-default[disabled]:hover,
fieldset[disabled] .btn-default:hover,
.btn-default.disabled:focus,
.btn-default[disabled]:focus,
fieldset[disabled] .btn-default:focus,
.btn-default.disabled.focus,
.btn-default[disabled].focus,
fieldset[disabled] .btn-default.focus,
.btn-default.disabled:active,
.btn-default[disabled]:active,
fieldset[disabled] .btn-default:active,
.btn-default.disabled.active,
.btn-default[disabled].active,
fieldset[disabled] .btn-default.active {
  background-color: #fff;
}

.btn-default .badge {
  color: #fff;
  background-color: #222;
}

.btn-primary {
  color: $key_color;
  background-color: lighten($neutral_color, 37%);
  -webkit-transition: all 0.35s;
  -moz-transition: all 0.35s;
  transition: all 0.35s;
  &:hover,
  &:focus,
  &.focus,
  .open > .dropdown-toggle.btn-primary {
    color: #333;
    background-color: lighten($neutral_color, 40%);
  }
  &:active,
  &.active,
  .open > .dropdown-toggle.btn-primary {
    background-image: none;
  }
  .badge {
    color: #f05f40;
    background-color: #fff;
  }
  &:hover,
  &:focus {
    border-color: rgba(0, 0, 0, 0.1);
  }
  &:active {
    /* fixme */
    border-color: rgba(0, 0, 0, 0);
  }

  &.disabled,
  &[disabled],
  fieldset[disabled] &,
  &.disabled:hover,
  &[disabled]:hover,
  fieldset[disabled] &:hover,
  &.disabled:focus,
  &[disabled]:focus,
  fieldset[disabled] &:focus,
  &.disabled.focus,
  &[disabled].focus,
  fieldset[disabled] &.focus,
  &.disabled:active,
  &[disabled]:active,
  fieldset[disabled] &:active,
  &.disabled.active,
  &[disabled].active,
  fieldset[disabled] &.active {
    background-color: #f05f40;
  }
}

.btn {
  border-radius: 6px;
  /* text-transform: uppercase; */
  font-weight: 700;
  font-variation-settings: 'wght' 700;
  .appslist & {
    margin: 4px;
  }
  border-width: 0 0 2px 0;
  border-color: rgba(0, 0, 0, 0.05);
  &:active {
    border-color: rgba(0, 0, 0, 0);
  }
}

.btn-xl {
  padding: 15px 30px 13px 30px;
}

::-moz-selection {
  text-shadow: none;
  color: #fff;
  background: #222;
}

::selection {
  text-shadow: none;
  color: #fff;
  background: #222;
}

img::selection {
  color: #fff;
  background: 0 0;
}

img::-moz-selection {
  color: #fff;
  background: 0 0;
}

img.full,
.container img {
  display: block;
  width: 100%;
  height: auto;
}
img.fright {
  display: block;
  width: auto;
  height: auto;
  float: right;
}
iframe.full {
  display: block;
  min-height: 400px;
  width: 100%;
  aspect-ratio: 16 / 9;
}

body {
  webkit-tap-highlight-color: #222;
}

.wide {
  width: 100%;
}
.largegap {
  margin-top: 5em;
}
.mediumgap {
  margin-top: 2em;
}
.largegapafter {
  margin-bottom: 10em;
}
.right {
  text-align: right;
}
.floatright {
  display: inline-block;
  float: right;
}
.toneddown {
  opacity: 0.5;
}
.centered {
  text-align: center;
}
.appslist {
  margin-top: 3em;
  &:first-child {
    margin-top: 1em;
  }
  :not(.right) {
    padding-top: 7px;
  }
}

.capheight {
  max-height: 20em;
  overflow-y: auto;
}

blockquote {
  font-style: italic;
  border-width: 0;
  margin: 0;
  padding: 0 0 3em 0;

  em {
    font-weight: bold;
    font-variation-settings: 'wght' 600;
    font-style: normal;
  }

  .author {
    margin: 1em 0;
  }
  .title {
    display: block;
    font-size: 80%;
    font-style: normal;
    opacity: 0.5;
  }
}

table {
  border-collapse: collapse;
  margin-bottom: 3em;
  tr {
    &:hover {
      background-color: lighten($neutral_color, 40%);
    }
  }
  td {
    padding: 0.4em 0.5em;
    &:first-child {
      font-weight: bold;
      font-variation-settings: 'wght' 600;
      font-size: 90%;
      color: $neutral_color;
    }
  }
  th {
    font-size: 80%;
    text-transform: uppercase;
    padding: 0.5em;
  }
  .nowrap {
    white-space: nowrap;
    min-width: 12em;
  }
  &.full {
    width: 100%;
    border: 1px solid lighten($neutral_color, 30%);
    th {
      background-color: $key_color;
      color: #fff;
    }
  }
}

.distrogrid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(128px, 1fr)
  ); /* autofit for smaller than 768px */
  grid-gap: 16px;

  a {
    display: block;
    &:hover {
      transform: scale(1.2);
    }
  }

  .icon {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    min-width: 64px;
    min-height: 64px;
  }
}

ol.distrotut {
  list-style-type: none;
  margin: 0;
  padding: 0;

  li {
    counter-increment: step-counter;
    padding: 0 0 10px 100px;

    &::before {
      position: absolute;
      content: counter(step-counter);
      margin-left: -90px;
      font-size: 140%;
      font-weight: 300;
      font-variation-settings: 'wght' 300;
      background-color: $neutral_color;
      padding: 0.6em 1em;
      border-radius: 50%;
      color: #fff;
    }
  }
}

.appgrid {
  max-width: 900px;
  margin: 32px auto;
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(64px, 1fr)
  ); /* repeat(6, 1fr); */
  grid-auto-flow: row;
  grid-gap: 16px;
  justify-items: center;
  align-items: center;

  .icon {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    min-width: 64px;
    min-height: 64px;
    &.featured {
      /* grid-row: span 2; */
    }
    /*
    &:nth-child(5) { grid-row: 1 / span 2; align-self: stretch; justify-self: stretch;}
    &:nth-child(3) { grid-row: 2 / span 2; grid-column: 3; justify-self: stretch; align-self: stretch; }
    &:nth-child(7) { grid-row: 3 / span 2; grid-column: 4; justify-self: stretch; align-self: stretch; }
    &:nth-child(6) { grid-row: 3 / span 2; grid-column: 1; justify-self: stretch; align-self: stretch; }
    */
  }
}

#quicksetupbtn {
  width: 100%;

  &:focus,
  &:hover {
  }

  &:active {
  }
}

.timeline {
  display: grid;
  grid-template-columns: 100%;
  grid-gap: 15px;
  align-items: baseline;

  @media (min-width: 768px) {
    grid-template-columns: 1fr 2fr;
  }
}

.date {
  font-size: 80%;
  color: $neutral_color;
  font-weight: bold;
  font-variation-settings: 'wght' 600;
  letter-spacing: 0.1em;
  margin-top: 2em;
  @media (min-width: 768px) {
    text-align: right;
    margin-top: 0;
  }
}

#footer {
  font-size: 90%;
  flex: 0.3;
  a {
    font-weight: bold;
    font-variation-settings: 'wght' 600;
    color: $neutral_color;
    &:hover {
      color: lighten($neutral_color, 20%);
    }
    &:active,
    &:focus {
      color: #fff;
    }
  }
  .navbar-brand {
    display: block;
    padding-top: 0;
    color: #fff;
    font-family: $fontface;
    font-weight: bold;
    font-variation-settings: 'wght' 600;
    height: inherit;
    width: 100%; height: auto;
  }
  ul {
    display: block;
    @each $quirk in ("-moz-", "-ms-", "-webkit-", "") {
      #{$quirk}column-count: 1; /* just one column for small res */
    }
    li {
      list-style: none;
      display: block;
      &.toplevel {
        margin-bottom: 1em;
      }
      a {
        display: block;
      }
      ul {
        @each $quirk in ("-moz-", "-ms-", "-webkit-", "") {
          #{$quirk}column-count: 1;
        }
        margin: 0;
        padding: 0;
        li {
          text-transform: none;
          /* padding-left: 1em; */
          a {
            color: darken($neutral_color, 20%);
          }
        }
      }
    }
  }
}

//2 column footer nav for large sizes
@media (min-width: 768px) {
  .distrogrid {
    grid-template-columns: repeat(6, 1fr);
  }
  #footer ul {
    @each $quirk in ("-moz-", "-ms-", "-webkit-", "") {
      #{$quirk}column-count: 2;
    }
  }
}

.unselectable {
  @each $quirk in ("-moz-", "-ms-", "-webkit-", "") {
    #{$quirk}user-select: none;
  }
  color: $neutral_color;
  font-weight: bold;
  font-variation-settings: 'wght' 600;
  font-size: 90%;
}

terminal-command {
  @extend pre;
  display: flex;
  align-items: center;
  gap: 1em;
  code {
    flex: 1;
    padding: 1em;
  }
  button {
    padding: 0.5em;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    svg {
      width: 1.5em;
      height: 1.5em;
    }
  }
}