/* color palette */
:root {
  --primary-color: #363732;
  --secondary-color: #e5e5e5;
  --tertiary-color: #000000;
  --accent: #fca311;
  --highlight: #ffffff;
  --dark: #14213d;
}
html {
  scroll-behavior: smooth;
}

:target:before {
  content: "";
  display: block;
  height: 100px;
  margin: -100px 0 0;
}
/* fonts */
@font-face {
  font-family: "leauge-spartan";
  src: url("https://static.igem.wiki/teams/4373/wiki/fonts/leaguespartan-bold.woff2")
    format("woff2");
  font-weight: bold;
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "libre-baskerville";
  src: url("https://static.igem.wiki/teams/4373/wiki/fonts/librebaskerville-italic.woff2")
    format("woff2");
  font-weight: normal;
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "libre-baskerville";
  src: url("https://static.igem.wiki/teams/4373/wiki/fonts/librebaskerville-bold.woff2")
    format("woff2");
  font-weight: bold;
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "libre-baskerville";
  src: url("https://static.igem.wiki/teams/4373/wiki/fonts/librebaskerville-regular.woff2")
    format("woff2");
  font-weight: normal;
  font-weight: 400;
  font-style: normal;
}

::-moz-selection {
  /* Code for Firefox */
  background: var(--primary-color);
  color: var(--secondary-color);
}
::selection {
  background: var(--primary-color);
  color: var(--secondary-color);
}
a {
  transition: 0.3s;
  color: var(--accent);
  font-weight: bold;
  text-decoration: underline;
}
a:hover {
  color: var(--tertiary-color);
  text-decoration: underline;
}
.navbar-dark .navbar-nav .nav-link {
  color: var(--accent);
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--secondary-color);
}
body {
  padding-top: 56px;
  font-weight: 370;
}
h2,
h3,
h4,
h5,
h6 {
  font-family: libre-baskerville;
  font-style: italic;
}
h1 {
  font-family: leauge-spartan;
}
h2 {
  font-size: calc(0.6*(1.325rem + .9vw));
}
h3 {
  font-size: calc(0.6*(1.3rem + .6vw));
}
h4 {
  font-size: calc(0.6*(1.275rem + .3vw));
}

/* navbar style */
body .navbar {
  border-left: var(--accent);
  border-left-style: solid;
  border-width: 8px;
  font-family: leauge-spartan;
}
body #sidenav h4{
  font-family: leauge-spartan;
  font-style: normal;
  font-size: calc(1.275rem + .3vw);
}
#navbar-brand-container {
  padding: 0;
  margin: 0;
  height: 100%;
  display: block;
}
.navbar-brand {
  height: 47px;
  display: block;
  margin-top: -28px;
  position: absolute;
}
#bee {
  stroke: var(--tertiary-color);
  stroke-width: 10pt;
  fill: none;
  transition: 0.2s;
  height: 100%;
  display: block;
  position: absolute;
}
#hexagon {
  fill: var(--accent);
  transition: 0.2s;
  height: 100%;
  display: block;
  position: absolute;
}
.navbar-brand:hover #bee {
  stroke: var(--accent);
}
.navbar-brand:hover #hexagon {
  fill: var(--secondary-color);
}

/* header */
header {
  color: var(--secondary-color);
  font-weight: bold !important;
  position: relative;
  z-index: 1;
  background-position: center;
}
header .container {
  z-index: 3;
  position: relative;
}
header p {
  font-size: 1.25rem;
}
header h1 {
  font-size: calc(1.475rem + 2.7vw);
}
.left-aligned {
  margin-left: auto;
}
.bg-dark {
  background-color: var(--primary-color) !important;
}
.bg-hero {
  background-size: cover;
}
#content,
strong {
  scroll-margin-top: 76px;
}
header .overlay {
  z-index: 2;
  background-image: url("https://static.igem.wiki/teams/4373/wiki/video/grid-overlay.png");
  background-size: 3px 3px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.7;
}
.color-overlay {
  background-color: black;
  opacity: 0.5;
  height: 100%;
  width: 100%;
  position: absolute;
}

/*Sidenav*/
#sidenav {
  flex-direction: column;
  overflow-y: auto;
  position: sticky;
  height: fit-content;
  top: 40%;
  padding: 15px;
  width: fit-content;
  max-width: fit-content;
}
#sidenav ul {
  list-style: none;
  padding-left: 0px;
}
#sidenav_container {
  height: auto;
  background-color: var(--primary-color);
  border-left-style: solid;
  border-left-width: 8px;
  border-left-color: var(--accent);
}
#sidenav a:hover {
  color: var(--highlight);
}

/* CALLOUT */
.bd-callout {
  padding: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e9ecef;
  border-left-width: 0.25rem;
  border-radius: 0.25rem;
}
.bd-callout h4 {
  margin-bottom: 0.25rem;
}
.bd-callout p:last-child {
  margin-bottom: 0;
}
.bd-callout code {
  border-radius: 0.25rem;
}
.bd-callout + .bd-callout {
  margin-top: -0.25rem;
}
.bd-callout-info {
  border-left-color: #5bc0de;
}
.bd-callout-warning {
  border-left-color: #f0ad4e;
}
.bd-callout-danger {
  border-left-color: #d9534f;
}

/* footer */
footer {
  text-align: center;
  border-left: var(--accent);
  border-left-style: solid;
  border-width: 8px;
}
footer h3{
  font-family: var(--bs-font-sans-serif);
  font-style: normal;
}
footer a {
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
}
footer a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}
#social_media_links {
  justify-content: center;
}
footer hr {
  height: 2px !important;
}
#social_media_links a {
  display: inline-block;
  outline: none;
  position: relative;
  margin: min(2%, 15px);
  width: 50px;
  padding: 0;
}
#social_media_links a svg {
  width: inherit;
}
#social_media_links a svg path {
  fill: var(--accent);
  transition: 0.2s;
}
#social_media_links a:hover svg path {
  fill: var(--secondary-color);
}
