@font-face {
  font-family: Lexend;
  src: url("https://static.smartstock.africa/font/lexend.ttf");
  font-display: swap;
}

@font-face {
  font-family: RobotoVariable;
  src: url("https://static.smartstock.africa/font/Roboto.ttf");
  font-display: swap;
}

@font-face {
  font-family: Jost;
  src: url("https://static.smartstock.africa/font/jost.ttf");
  font-display: swap;
}

@font-face {
  font-family: Figtree;
  src: url("https://static.smartstock.africa/font/figtree.ttf");
  font-display: swap;
}

* {
  transition: all 0.3s ease;
}

::selection {
  background-color: var(--body-color);
  color: white;
}

html {
  scrollbar-color: var(--font-color) var(--body-color);
  scrollbar-width: thin;
  height: 100%;
}

:root {
  --body-color: #80adbf;
  --font-color: #285166;
  --Lexend: "Lexend", sans-serif;
  --Roboto: "Roboto", sans-serif;
  --Jost: "Jost", sans-serif;
  --Figtree: "Figtree", "sans-serif";
}

body {
  margin: 0;
  background: var(--body-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--font-color);
  text-decoration: underline;
}

#loader {
  position: relative;
  z-index: 101;
  background: linear-gradient(
    90deg,
    rgb(187, 211, 221) 0%,
    rgba(128, 173, 191, 1) 20%,
    rgba(128, 173, 191, 1) 75%,
    rgb(187, 211, 221) 100%
  );
  animation: streak 8.5s linear infinite;
}

#loaderIcon,
#loader {
  height: 20px;
}

@keyframes streak {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100rem 0%;
  }
}

header {
  background: rgba(255, 255, 255, 0.5);
  height: 50px;
  display: flex;
  padding: 5px;
  position: sticky;
  top: 0;
  z-index: 99;
  backdrop-filter: blur(4px);
  justify-content: space-between;
}

.headerElement {
  margin: 5px;
  position: relative;
}

#headerImage {
  height: 100%;
}

#headerLogoContainer {
  margin-bottom: 10px;
  margin-top: 10px;
  display: flex;
}

#headerLinksContainer {
  display: flex;
  align-items: end;
  font-size: 110%;
  justify-content: center;
}

#linksContainer {
  display: flex;
  font-family: var(--Jost);
  color: var(--font-color);
  justify-content: space-between;
  flex: 0.3;
  z-index: 2;
}

#headerCTAContainer {
  display: flex;
}

#CTAButtonHolder {
  margin-left: auto;
  display: flex;
  align-items: center;
  font-family: var(--Jost);
  background-color: #35454c;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 5px;
  letter-spacing: 1px;
  color: white;
  font-weight: 500;
  box-shadow: 0px 0px 3px #00000061;
}

#headerText {
  font-family: var(--Jost);
  display: flex;
  align-items: center;
  letter-spacing: 1px;
  margin-left: 10px;
  font-weight: 500;
  color: var(--font-color);
  font-size: 150%;
}

#headerLogo {
  width: 30px;
}

#apiShip {
  flex: 1;
  position: relative;
}

#apiContainer {
  position: absolute;
  margin-top: 50px;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

#apiContent {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

section {
  width: 50%;
  height: max-content;
  background: #ffffff73;
  border-radius: 6px;
  box-shadow: 0px 0px 5px #0000003d;
  overflow: hidden;
}

h3{
  font-variant: petite-caps;
}

.sectionHeader {
  font-family: var(--Jost);
  padding: 5px;
  background: var(--body-color);
  box-shadow: 0px 0px 5px black;
  font-size: 120%;
  font-weight: 500;
  letter-spacing: 1px;
  color: black;
}

.sectionContainer {
  font-family: var(--Figtree);
  padding: 5px;
  margin: 5px;
  letter-spacing: 1px;
}

.lh {
  line-height: 2;
}

code {
  background: var(--body-color);
  padding: 2.5px;
  padding-left: 5px;
  padding-right: 5px;
  border-radius: 5px;
  border: 1px solid #00000082;
  font-family: var(--Jost);
  font-size: 80%;
  font-weight: 500;
  letter-spacing: 1px;
  z-index: 2;
  position: relative;
}

#apiSubTopicHeader {
  padding: 10px;
  background: #ffffff70;
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: var(--Figtree);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  text-align: center;
  box-shadow: 0px 0px 5px #00000073;
}

button {
  position: absolute;
  right: 5px;
  top: 5px;
}

pre {
  position: relative;
  background: var(--body-color);
  border-left: 4px solid var(--body-color);
  padding: 5px;
  padding-left: 10px;
}

pre::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: #ffffff42;
}

pre code {
  padding: 0px;
  border: none;
  background: none;
}

.answer {
  margin-left: 10px;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
}

.method {
  background: #80bf85;
  padding: 5px;
  border-radius: 5px;
  font-family: var(--Lexend);
}

#imageHelper{
    margin: 5px;
    border-radius: 5px;
    overflow: hidden;
    margin-left: 10px;
    display: flex;
  flex-direction: column;
  gap: 10px
}

.helperImage{
    width: 75%;
}

.imageCaption{
    font-size: 80%;
    width: max-content;
  background: var(--body-color);
  padding: 5px;
  border-left: 4px solid white;
}

@media (max-width: 600px) {
  #headerText {
    font-size: 120%;
  }
  #header {
    height: 35px;
  }
  #CTAButtonHolder {
    font-size: 80%;
    padding: 2.5px;
    padding-left: 5px;
    padding-right: 5px;
  }
  section {
    width: 90%;
  }
  #sectionContainer{
    letter-spacing: normal;
  }
}
