@font-face {
  font-family: 'Moderat-Bold';
  src: url(Moderat-Bold.woff) format('woff');
}

@font-face {
  font-family: 'Moderat-Regular';
  src: url(Moderat-Regular.woff) format('woff');
}

@font-face {
  font-family: 'QuincyCF-BlackItalic';
  src: url(QuincyCF-BlackItalic.woff) format('woff');
}

body {
  color: var(--body-colour);
}

.loading-wrapper {
  height: 100vh;
  width: 100vw;
  background: rgb(0, 0, 0);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.login-wrapper {
  height: 100vh;
  width: 100vw;
  background: rgb(0, 0, 0);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 2;
  #error {
    color: white;
    margin-top: 15px;
  }
  .logo {
    width: 200px;
    max-width: 80%;
    height: auto;
    svg {
      width: 100%;
      max-width: unset;
      height: auto;
      margin: unset;
      fill: rgb(58, 58, 58);
      /* fill: url(#init-gradient); */
      opacity: 0.5;
      transition: all 800ms ease;
    }
  }
  input {
    border-radius: 50px;
    padding: 15px;
    border: 1px solid black;
    font-size: 18px;
    width: 300px;
    margin-top: 60px;
    transition: all 600ms ease;
    &:focus {
      outline: none;
      box-shadow: 0 0 20px 11px #ffffff45, 0 0 100px 20px #637089;
    }
  }
  &:has(input:focus) .logo svg {
    fill: rgb(54, 66, 81);
    opacity: 1;
  }
}

/* Small only overides */
@media print, screen and (max-width: 39.99875em) {
  h1,
  .h1 {
    font-size: 2rem;
  }
  h2,
  .h2 {
    font-size: 1.8rem;
  }
  h3,
  .h3 {
    font-size: 1.4rem;
  }
}

h1,
h2,
h3 {
  font-family: 'QuincyCF-BlackItalic', serif;
  margin-bottom: 30px;
}

p,
ol,
ul,
li,
table,
form,
span {
  font-family: 'Moderat-Regular', sans-serif;
  margin-top: 0;
  font-size: 1.2rem;
}

strong,
h4,
h5,
h6 {
  font-family: 'Moderat-Bold';
}

html,
body,
main {
  scroll-behavior: smooth;
}

/* Main layout */

.content {
  max-width: 880px;
  margin: 15px auto;
  padding: 15px;
}

@media print, screen and (min-width: 40em) {
  .content {
    max-width: 880px;
    margin: 30px auto;
    padding: 30px;
  }
}

@media print, screen and (min-width: 40em) and (max-width: 1480px) {
  #sidebar {
    min-width: 267px;
  }
  .app-body {
    width: calc(100vw - 267px) !important;
  }
}

.grey-container {
  background: var(--light-grey);
}

.app-icon {
  width: 100px;
  position: relative;
  left: -4px;
  margin-right: 15px;
}

.app-content-box {
  display: flex;
  align-items: center;
}

.app-content-box p,
.app-content-box span {
  font-size: 1.4rem;
}

hr {
  margin-bottom: 30px;
  margin-top: 30px;
}

a {
  color: var(--body-colour);
  text-decoration: none;
}

ul li {
  margin-bottom: 10px;
}

.styled-list {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  margin: 0;
}

.styled-list li {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--light-grey);
  margin-right: 10px;
  margin-bottom: 10px;
}

.banner-subheading-blue {
  margin-top: 30px;
  margin-bottom: 30px;
}

.banner-subheading-blue strong {
  border-radius: 8px;
  padding: 12px;
  color: white;
  display: block;
}

/* Milestones */

.milestone {
  background: var(--light-grey);
  border-radius: 12px;
  padding: 15px 0;
  margin-bottom: 15px;
}

.milestone h3 {
  line-height: 1;
}

.timeframe {
  border-radius: 8px;
  font-size: 16px;
  padding: 5px;
  color: white;
  display: inline-block;
}

.milestone .medium-8 p:last-of-type {
  margin-bottom: 0;
}

@media print, screen and (min-width: 40em) {
  .milestone {
    padding: 30px;
    margin-bottom: 30px;
  }
  .banner-subheading-blue strong {
    display: inline;
  }
}

/* Small only overides */
@media print, screen and (max-width: 39.99875em) {
  .milestone h3 {
    margin-bottom: 12px;
  }
  .milestone .timeframe {
    display: inline-block;
    margin-bottom: 20px;
  }
}

/* Sidebar */

#sidebar {
  background-color: var(--light-grey);
  z-index: 1;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.menu-items,
.menu-items li a {
  list-style: none;
  margin: 0;
  padding: 0;
  transition: color 200ms ease;
}

.menu-items li a img {
  width: 17px;
  transform: scale(0.5);
  opacity: 0;
  transition: transform 300ms ease;
  position: relative;
  top: -1px;
}

.menu-items li a.active img {
  transform: scale(1);
  opacity: 1;
}

.menu-items li {
  font-size: 18px;
  margin-bottom: 6px;
}

.logo {
  text-align: center;
}

.logo svg {
  max-width: 180px;
  margin-bottom: 30px;
  fill: var(--body-colour);
}

.sidebar-contact {
  margin-top: auto;
}

.sidebar-contact span {
  font-family: 'QuincyCF-BlackItalic', serif;
  font-size: 18px;
  display: block;
}

.sidebar-contact span a {
  font-family: 'Moderat-Bold', sans-serif;
  font-size: 16px;
}

@media print, screen and (min-width: 40em) {
  .logo {
    text-align: left;
  }
  .sidebar-menu {
    position: sticky;
    top: 0px;
    height: calc(100vh);
    overflow-y: scroll;
    padding: 30px;
  }
}
