@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: normal;
  src: url('./fonts/Poppins/Poppins-Regular.ttf');
 }

 @font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: bold;
  src: url('./fonts/Poppins/Poppins-Bold.ttf');
 }

 @font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: normal;
  src: url('./fonts/Poppins/Poppins-Italic.ttf');
 }

 @font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: bold;
  src: url('./fonts/Poppins/Poppins-BoldItalic.ttf');
 }

body, html {
  margin: 0;
}

body {
  font-family: 'Poppins', 'Sans Serif';
  font-weight: normal;
  font-size: 14px;
  background-color: #2c2f33;
  color: #aad1a5;
}

.site {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  margin-bottom: 50px;
}

.site-wrapper {
  display: flex;
  flex-direction: row;
}

.site-wrapper main footer {
  flex-grow: 0;
}

h1 {
  margin: 0;
  font-weight: normal;
  font-size: 1.5rem;
}

a {
  color: #c6a2ff;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.side-bar {
  background-color: #2c2f33;;
  box-sizing: border-box;
  color: #999;
  flex-basis: 300px;
  flex-grow: 0;
  flex-shrink: 0;
  padding: 20px;
}

.side-bar h1 {
  display: inline-block;
  color: #eeb12d;
  font-size: 1.5rem;
}

.side-bar h2 {
  font-size: 0.9rem;
  margin: 0 0 10px 0;
  color: #ff7e67;
}

.side-bar .toggle {
  display: none;
  vertical-align: middle;
}

.side-bar .toggle .desc {
  text-transform: uppercase;
  font-size: 0.9rem;
}

.side-bar .toggle .indicator {
  display: inline-block;
  transition: transform 0.2s;
  margin-left: 5px;
}

.side-bar header {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.side-bar header .logo {
  flex-grow: 1;
}

.side-bar header .logo > * {
  display: block;
}

.side-bar ul {
  list-style-type: square;
  padding: 0 0 0 15px;
  margin: 0;
}

.side-bar ul li {
  margin-bottom: 5px;
}

.side-bar ul li a.selected {
  color: #fff;
}

.side-bar ul.tags {
  padding: 0;
  margin: 0;
  list-style-type: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 6px;
  row-gap: 0px;
}

.side-bar ul.tags li a {
  background-color: #373a3f;
  color: #ccc;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 0.8rem;
}

.side-bar ul.tags li a:hover {
  background-color: #52555a;
}

.side-bar ul.tags li a.selected {
  background-color: #52555a;
}

.side-bar section {
  margin-top: 20px;
}

.side-bar section.navigation .nav-loader {
  text-align: center;
}

main {
  flex-grow: 1;
  overflow: hidden;
}

main .article-wrapper {
  background-color: #373a3f;
  border-radius: 5px;
  overflow: auto;
  padding: 20px;
}

footer {
  border-top: 1px solid #2c2f33;
  color: #999;
  padding-top: 10px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

footer p {
  font-size: 0.8rem;
  margin: 0;
  padding: 0;
}

footer p.copyright {
  flex-grow: 1;
}

footer p.disclaimer {
  flex-basis: 50%;
  color: #999;
  font-size: 0.7rem;
  text-align: center;
}

footer nav {
  flex-grow: 1;
  font-size: 0.8em;
}

footer nav ul {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  align-items: center;
  justify-content: end;
  margin: 0;
  padding: 0;
  gap: 10px;
}

footer nav ul li {
  text-align: center;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 

@media only screen and (max-width: 1024px) {
  .site-wrapper {
    display: block;
    width: auto;
    margin-bottom: 0;
  }

  .side-bar {
    height: 100%;
    left: 0px;
    overflow: hidden;
    position: fixed;
    top: 0px;
    transition: height 0.2s;
    width: 100%;
    padding: 10px;
  }

  .side-bar {
    height: 60px;
  }

  .side-bar header .logo sup {
    display: none;
  }

  .side-bar.open {
    height: 100%;
  }

  .side-bar .toggle {
    display: inline-block;
    margin-left: 10px;
  }

  .side-bar.open .toggle .indicator {
    transform-origin: center; 
    transform: rotate(180deg);
  }

  main {
    margin-top: 50px;
  }

  main .article-wrapper {
    padding: 15px;
  }

  footer {
    display: block;
    text-align: center;
  }

  footer nav ul {
    justify-content: center;
  }
}