@use 'settings' as *;

@font-face {
  font-family: 'Share Tech';
  font-style: normal;
  font-weight: 400;
  src: local('Share Tech'), local('ShareTech-Regular'), url(/fonts/ShareTech-Regular.woff2) format('woff2'), url(/fonts/ShareTech-Regular.ttf) format('truetype');
}

@font-face {
  font-family: 'Libertinus Math';
  font-style: normal;
  font-weight: 400;
  src: local('Libertinus Math'), local('LibertinusMath-Regular'), url(/fonts/LibertinusMath-Regular.woff2) format('woff2');
}

* {
  background-color: transparent;
  font-family: $base-font-family;
}

body,
.jumbotron {
  background-color: $background-color;
}

body {
  padding-top: 52px;
}

.jumbotron {
  margin: 0;
  padding: 0;

  .post-title {
    font-size: 42px;
    font-weight: normal;
  }

  & > hr {
    background-color: #333;
    height: 1px;
    border: 3px #333 solid;
    width: 300px;
  }
}

.navbar {
  background-color: $background-color;
  border: none;
  /*box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);*/
  .divider-vertical {
    height: 20px;
    margin: 14px 6px;
    border-right: 1px solid $nav-link-color;
    border-left: 1px solid $nav-link-color;
  }
}

.navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse {
  max-height: 600px;
}

ul.navbar-right {
  display: flex;
}

ul.navbar-right li {
  flex: 1;
  white-space: nowrap;
}

ul.navbar-right li#spacer {
  flex: 0;
}

ul.navbar-nav li a {
  color: $nav-link-color !important;
}

.btn-default {
  border: 0;
  background-color: transparent;
  color: $nav-link-color;
}

a {
  color: $nav-link-color;

  &:visited {
    color: $nav-link-color;
  }
}

#large-header {
  background: #222 url('/images/logowall.svg') center top;
  background-size: 450px;
  height: 228px;
  margin: 0 0 170px 0;

  img {
    position: relative;
    top: 30px;
    height: 300px;
  }
}

ul.nav > li > a {
  color: $nav-link-color;
}

@media (min-width: 768px) and (max-width: 1200px) {
  .navbar > .container {
    width: auto;
    margin-right: 15px;
    margin-left: 15px;
  }

  .navbar .divider-vertical {
    margin-right: clamp(1px, calc(1.16vw - 7.92px), 6px);
    margin-left: clamp(1px, calc(1.16vw - 7.92px), 6px);
  }

  ul.navbar-nav li a {
    padding-right: clamp(5px, calc(2.32vw - 12.84px), 15px);
    padding-left: clamp(5px, calc(2.32vw - 12.84px), 15px);
  }
}

.post-content img {
  display: block;
  margin: auto;
}

.status {
  display: none;
  border: 0;
}

.status {
  color: #fff !important;
}

.unknown {
  background-color: #808080;
}

.open, .open a {
  background-color: #29A900 !important;
}

.closed, .closed a {
  background-color: #D9534F !important;
}

.ifopen, .ifclosed, .ifunknown {
  display: none !important;
}

.status.open .ifopen,
.status.closed .ifclosed,
.status.unknown .ifunknown {
  display: unset !important;
}

#status_bar {
  margin: 0;
  border-width: 4px 0;
  border-color: transparent;
}

.navbar-inverse .divider-vertical {
  border-right-color: #222222;
  border-left-color: #111111;
}

.navbar-brand {
  display: none;
}

@media (max-width: 768px) {
  #large-header {
    display: none;
  }
  #large-header.mobile-large-logo {
    display: block;
    height: 160px;
    margin-bottom: 96px;

    img {
      top: 16px;
      height: 220px;
      max-width: calc(100vw - 30px);
    }
  }
  .navbar-header {
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
  }
  .navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 8px 15px;
  }
  .navbar-brand-logo {
    display: block;
    width: auto;
    height: 34px;
  }
  .navbar-collapse .nav > .divider-vertical {
    display: none;
  }
}

rect.bordered {
  stroke: $background-color;
  stroke-width: 1px;
}

#posts {
  div div p img {
    max-width: 123px;
    float: left;
    margin-right: 5px;
  }
}

footer hr {
  border-color: $grey-color-dark;
}

.elevator-button {
  text-align: center;
  margin: auto;
  cursor: pointer;
  color: $nav-link-color;
}
