@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inconsolata:wght@700&display=swap");

:root {
  --background: #121212;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color-scheme: dark;
  font-family: "Source Sans Pro", sans-serif;
  scroll-behavior: smooth;
  scroll-margin: 5rem;
}

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

#content {
  padding-top: 54px;
}

nav {
  background: #111111;
  padding: 0 2rem;
  height: 58px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  transition: height 500ms ease;
  transition: transform 500ms ease;
}

nav.scroll-down {
  transform: translateY(-100%);
}

#nav-name {
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  margin-right: 1rem;
}

#nav-more {
  display: flex;
  align-items: center;
}

.nav-more-content {
  border-radius: 5px;
  position: absolute;
  right: -4.5rem;
  top: 45px;
  background: #282828;
  padding: 0.4rem;
  display: none;
  min-width: 10rem;
  transition: 400ms ease;
  flex-direction: column;
}

.nav-more-content button {
  width: 100%;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background: transparent;
  padding: 0.6rem;
  transition: 200ms ease;
  text-align: left;
}

.nav-more-content button:hover {
  background: #1d1d1d;
}

nav ul {
  position: relative;
  display: flex;
  gap: 0.9rem;
  list-style: none;
  align-items: center;
  margin-top: -2px;
}

nav ul li button,
#nav-search {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #a4a4a4;
  font-size: 1.1rem;
  border-radius: 5px;
  padding: 0.2rem 0.5rem;
  font-family: "Source Sans Pro", sans-serif;
}

nav ul li button:hover,
nav ul li button:focus,
#nav-search:hover {
  background: #5b5b5b20;
}

nav ul.right {
  margin-left: auto;
  margin-top: 2px;
}

#nav-support {
  background: #fff;
  color: #000000;
  line-height: 0;
  border-radius: 5px;
  padding: 1rem 0.7rem;
  margin-left: 0.2rem;
  position: relative;
  overflow: hidden;
  font-weight: 600;
  transition: 400ms ease;
}

#nav-support:hover,
#nav-support:focus {
  transform: scale(1.1);
}

#nav-menu,
.nav-menu-close {
  display: none;
}

#nav-menu img {
  width: 35px;
  height: 33px;
}

.nav-menu-close img {
  width: 37px;
  height: 37px;
}

@media (max-width: 548px) {
  nav ul,
  #nav-support {
    display: none;
  }
  nav ul.right {
    display: flex;
    margin-top: -3px;
  }
  #nav-menu {
    padding: 0;
    margin-right: -1.5rem;
    display: block;
  }
}

nav.mobile-active {
  padding-top: 1.2rem;
}

nav.mobile-active .nav-menu-close {
  display: block;
  background: transparent;
  border: none;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  cursor: pointer;
}

nav.mobile-active .nav-menu-close:hover {
  opacity: 0.5;
}

nav.mobile-active ul.right {
  position: absolute;
  bottom: 1rem;
  width: calc(100% - 4rem);
  display: flex;
  flex-direction: column;
}

nav.mobile-active #nav-support {
  display: block;
  width: calc(100vw - 3rem);
  border-radius: 5px;
  height: 3rem;
  margin-left: 0.7rem;
}

nav.mobile-active #nav-menu,
nav.mobile-active #nav-search {
  display: none;
}

nav.mobile-active ul {
  display: block;
  margin-left: -6px;
  margin-top: 1rem;
}

nav.mobile-active ul li button {
  font-size: 20px;
  margin-bottom: 0.4rem;
}

nav.mobile-active .nav-more-content {
  left: 0;
  top: 109%;
  z-index: 1;
  width: max-content;
}

nav.mobile-active .nav-more-content::before {
  position: absolute;
  left: 20%;
}

nav.mobile-active {
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: block;
}

.nav-search-overlay {
  position: fixed;
  top: 58px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  background: #1e1e1e46;
}

footer {
  z-index: 999;
  background: #181818;
  padding: 0 1rem 1.4rem 1rem;
  border-radius: 12px;
  margin: 1rem 2rem;
  margin-top: 4rem;
}

footer .content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

footer hr {
  width: 100%;
  border: none;
  height: 3px;
  border-radius: 3rem;
  background: #232323;
  background: linear-gradient(to right, #8a2387, #e94057, #f27121);
}

footer .btm-txt {
  font-size: 16px;
}

footer img {
  height: 23px;
  margin-right: 1rem;
}

.loader {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  height: 2px;
  background: #2727ff;
}

.container {
  margin: 1rem 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.container a {
  text-decoration: none;
}

.container .item {
  cursor: pointer;
  min-height: 10rem;
  background: #191919;
  padding: 0.1rem 1.4rem;
  word-wrap: break-word;
  border-top: 4px solid #232323;
  position: relative;
}

.container .item.image .info {
  bottom: 2.4rem !important;
  left: 2.5rem;
}

.container .item img {
  width: 100%;
  margin-top: 1rem;
  display: block;
  max-width: 100%;
}

.container .item.image .image-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.container .item.image .image-wrapper::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-image: linear-gradient(to top, #181818cc 0%, #17171727 100%);
  pointer-events: none;
}

.container .item .info {
  position: absolute;
  bottom: 1.4rem;
  color: #fdfdfd;
  opacity: 0.8;
}

.container .item.image .info {
  color: #fff !important;
}

.container .item::before {
  content: "";
  position: absolute;
  top: -4px;
  transition: 500ms ease;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(to right, #8a2387, #e94057, #f27121);
}

.container .item:hover:before {
  width: 100%;
}

.container .item:hover {
  background: #181818;
}

.container .item p {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  color: #fff;
  opacity: 0.8;
}

.article-wrapper {
  width: 51rem;
  max-width: 100vw;
  color: #fff;
  font-size: 20px;
  line-height: 1.4;
  padding-bottom: 3rem;
  position: relative;
  left: 50%;
  transform: translate(-50%);
  margin: 0 2rem 0 0;
  margin-top: 2rem;
}

.article-wrapper .title {
  text-align: center;
  font-size: 2rem;
}

.article-wrapper .info {
  text-align: center;
  margin-top: 1rem;
  font-size: 16px;
}

.article {
  margin-top: 2rem;
  font-size: 17.5px;
}

.article figcaption {
  font-size: 0.9rem;
  text-align: center;
  font-weight: 300;
  margin-top: -4px;
}

.article img {
  width: 51rem;
  height: auto;
  border-radius: 5px;
  max-width: 100%;
  margin: 1rem 0;
}

.article hr {
  margin: 1rem 0;
  width: 100%;
  border: none;
  border-top: 3px solid #232323;
  position: relative;
}

.article ul,
.article ol {
  margin: 1rem 0;
  margin-left: 2.5rem;
}

.article mark {
  font-family: "Inconsolata", monospace;
  color: #b6b7f6;
  border-radius: 5px;
  padding: 0.1rem 0.3rem;
  background: #141920;
  font-size: 18px;
}

.article blockquote {
  margin: 2rem 0;
  padding: 0.6rem 1rem;
  background: #4c5bff33;
  border-radius: 5px;
  color: #8f9aff;
  width: 100%;
  border: 1px solid #8f9aff1b;
}

.article table {
  text-align: left;
  border-spacing: 0;
  border-collapse: collapse;
  width: 51rem;
  max-width: 100%;
  border: 1.5px solid #232323;
  margin: 1rem 0;
}

.article table thead th {
  padding: 0.8rem 1.2rem;
  border-right: 1.5px solid #232323;
  border-bottom: 1.5px solid #232323;
  background: #171717;
}

.article table tr td {
  vertical-align: top;
  padding: 0.8rem 1.2rem;
  border-right: 1.5px solid #232323;
  border-bottom: 1.5px solid #232323;
}

.article table tr:last-child td {
  border-bottom: none;
}

.article table tr td:last-child,
.article table thead th:last-child {
  border-right: none;
}

.article pre {
  white-space: pre-wrap;
}

.article code {
  font-family: "Inconsolata", monospace !important;
  background: #191a1c !important;
  border-radius: 5px;
  white-space: pre;
  margin: 1rem 0;
  font-size: 19px;
  padding: 9px;
}

.article pre {
  white-space: -moz-pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
  max-width: 100%;
  width: 100%;
  display: block;
  border-radius: 5px;
}

.article pre code {
  display: block;
  padding: 1em;
  font-family: "Inconsolata", monospace !important;
  white-space: -moz-pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
  max-width: 100%;
  width: 100%;
}

.article pre code span {
  font-family: "Inconsolata", monospace !important;
}