/*@import 'https://fonts.googleapis.com/css2?family=Inter:wght@300&display=swap';*/

:root {
  --container: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; } 

/* ======================================== */

* {
  box-sizing: border-box;
}

* > :first-child {
  margin-top: 0;
}

* > :last-child {
  margin-bottom: 0;
}

a,
a:visited {
  color: #16181f;
}

body {
  font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
  font-style: normal;
  font-size: 19px;
  font-weight: 500;
  background: white;
  color: #555;
  line-height: 1.5;
  overflow-x: hidden;
  color: #16181f;
  -webkit-font-smoothing: antialiased;
}

header {
  background: #FFF;
  border-bottom: 1px solid #0000000a;
  position: relative;
  z-index: 99;
}

.dark-mode header {
    border-bottom: 1px solid #ffffff0a;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin: 0 auto;
    max-width: calc(var(--container) + 40px);
}

article {
  padding: 2rem 1.5rem;
  max-width: 768px;
  margin: 0 auto;
  padding-top: 20px;
  max-width: 800px;
}

article.with-nav {
  border-left: 1px solid #ffffff0a;
  padding-left: 50px;
  margin-left: 350px;
}

p {
  margin-bottom: 30px;
  word-break: normal;
}

p, ul, ol, h1, h2, h3 {
  letter-spacing: 0.5px;
/*  font-size: 20px;*/
}

h1, h2, h3 {
  font-weight: 300;
/*  margin: 1.75em 0 1em;*/
  line-height: 1.3;
  margin-top: 15px;
  margin-bottom: 15px;
}

article h1 {
  font-weight: 200;
  font-size: 40px;
  margin: 0;
  line-height: 1;
}

.title {
  margin-top: 15px;
  word-break: break-word;
}


article h2, 
article h3 {
  font-size: 20px;
  font-weight: 400;
  border-bottom: 1px solid #00000014;
  padding-bottom: 5px;
  margin-bottom: 30px;
  margin-top: 0;
  font-weight: bold;
}

.dark-mode article h2, 
.dark-mode article h3 {
    border-bottom: 1px solid #FFFFFF14;
}

article h4, 
article h5 {
  font-size: 22px;
  font-weight: normal;
/*  border-bottom: 1px solid #00000014;*/
/*  padding-bottom: 20px;*/
/*  margin-bottom: 30px;*/
/*  margin-top: 40px;*/
}


h4 {
  font-size: 1.2em;
}

h3 {
  font-size: 1.5em;
}

h2 {
  font-size: 2em;
}

h1 {
  font-size: 2.5em;
}

a {
  text-decoration: none;
  overflow-wrap: break-word;
  word-wrap: break-word;
/*  border-bottom: 1px solid;*/
}

article a {
  border-bottom: 1px solid;
}

a:hover {
  color: #4080bf;
}

hr {
  margin: 3em 0;
  height: 2px;
  background: #ddd;
  border: none;
}

blockquote {
  padding: 1em;
  margin: 1.75rem 0;
  background: #f2f2f2;
  color: #555;
}

.dark-mode blockquote {
    background: #000000;
    color: #fff;
}

ul, ol {
  margin: 1.5rem 0;
  margin-left: 15px;
}

li {
/*  margin: 0.5em 0;*/
}

img {
  display: block;
  max-width: 100%;
/*  margin: 1.75rem 0;*/
}

code {
  background: #16181f;
  padding: 0.2em 0.4em;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 18px;
  color: #FFF;
}

pre {
  padding: 20px;
  margin: 1.75rem 0;
  background: #1f1f1f;
  overflow: scroll;
  font-family: "Consolas", "Monaco", monospace;
  line-height: 1.6;
  border-radius: 5px;
  letter-spacing: 0.3px;
}

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

abbr[title] {
  text-decoration: none;
  border-bottom: 1px dotted #555;
}

q {
  font-style: italic;
}
q:before {
  content: "";
}
q:after {
  content: "";
}

table {
  margin: 1.75rem auto;
  border-collapse: collapse;
  width: 100%;
}
table th {
  font-weight: 600;
}
table td, table th {
  text-align: left;
  padding: 0.5em 1em;
  border: 1px solid #ddd;
}
table caption {
  text-align: left;
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
  font-style: italic;
}

dl {
  margin: 1.75rem 0;
}

dt, dd {
  margin: 0.5em 0;
}

dt {
  font-weight: 600;
  margin-bottom: 0;
}

dd {
  padding-left: 1em;
  margin-top: 0;
}

/*button {
  display: block;
  margin: 1.75rem auto;
  padding: 1em 2.5em;
  border: 2px solid #666;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: white;
  color: #666;
  transition: background 0.1s, color 0.1s;
}*/

button:hover {
  background: #666;
  color: white;
}

time {
    display: block;
    margin-top: 10px;
    font-size: 19px;
    margin-bottom: 14px;
    font-style: italic;
/*    opacity: 0.8;*/
    word-break: break-word;
}

.row {
  display: flex;
  justify-content: space-around;
}

.col {
  width: 30%;
  margin: 10px 0;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1.5rem 0 1.5rem;
  font-weight: 700;
  line-height: 1.5;
}

.card {
  margin-top: 1.5rem;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease-in-out;
  margin-bottom: 25px;
  background: #FFF;
}

.dark-mode .card {
  background: #1a1a1a;
/*  background: #2f2d44;*/
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.home .card h2 {
    font-size: 25px;
    margin: 0;
    line-height: 1.1;
    font-weight: 100;
    letter-spacing: 0;
    word-break: break-word;
    margin-top: 8px;
    margin-bottom: 6px;
}

.card .card-content {
  padding: 20px;
  padding-bottom: 25px !important;
  min-height: 110px;
  padding-bottom: 0;
}
.card .card-content .kicker {
  color: #38beea;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.16rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card .card-content .kicker a {
text-decoration: none;
border-bottom: 0;
}
.card .card-content p {
  color: #adacb5;
}
.card .card-content p:last-of-type {
  margin-bottom: 0;
}
.card .card-image img {
  width: 100%;
  height: auto;
}
.card .card-footer {
  position: relative;
}
.card .card-footer .icon {
  position: absolute;
  right: 2rem;
  max-width: 20px;
  top: 55%;
  margin-top: -10px;
  transition: color 0.3s;
}
.card .card-footer a {
  background: transparent;
  border: none;
/*  color: #fff;*/
  padding: 20px 20px;
  width: 100%;
  text-align: left;
  display: block;
  opacity: 0;
  position: relative;
  top: 3px;
  font-weight: 400;
  transition: opacity 0.3s, top 0.3s ease 0s;
}
.card .card-footer a:hover {
  text-decoration: none;
  opacity: 1;
  top: 0;
}
.card .card-footer a:hover {
  box-shadow: inset 0 0 0 2px #38beea;
  outline: none;
  border-radius: 2px;
  z-index: 1090;
  position: relative;
}
.card .card-footer:after {
  content: "";
  width: 0%;
  height: 3px;
  background: #38beea;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 0.3s;
}
.card .card-footer:hover:after {
  width: 100%;
}
.card:hover .card-footer .icon, .card:focus .card-footer .icon {
  color: #38beea;
}
.card:hover .card-footer a, .card:focus .card-footer a {
  opacity: 1;
  top: 0;
}
.card:hover .card-footer:after, .card:focus .card-footer:after {
  width: 100%;
}

.home {
    padding: 10px 30px;
    max-width: 1280px;
    margin: 0 auto;
}

.dark-mode a {
  color: #FFF;
}

.dark-mode body,
.dark-mode header
{
  background: #121212;
  color: #FFF;
}

pre code.hljs {
  font-size: 17px;
}

.dark-mode pre code.hljs {
/*  font-size: 16px;*/
  color: #FFF;
}

.dark-mode .hljs-number {
  color: #2b9bff
}

.dark-mode .hljs-attr {
  color: #f2f2f2;
}

p code {
margin: 0 1px;
    border-radius: 7px;
    padding: 3px 9px;
    font-size: 16px;
    letter-spacing: 0.5px;
    font-family: monospace;
}

.dark-mode p code {
  background: #434343;
}

article {
  margin-bottom: 50px;
}

.menu-items {
  display: flex;
  align-items: center;
}

.menu-items > div {
  margin-left: 20px;
}

.nano-locked {
  margin-top: 10px !important;
}


@media (max-width: 768px) {
  .home .card h2 {
    font-size: 24px;
  }
  .col .card:not(:first-child) {
    margin-top: 0;
  }
  .title {
    margin-top: 0px;
  }
  time {
/*    margin-top: 10px;*/
/*    margin-bottom: 10px;*/
  }
  article h1 {
    font-size: 32px;
  }
}


footer {
    text-align: center;
    border-top: 2px solid var(--color);
    margin-top: 15px;
    padding: 30px 0;
    background: #FFF;
    position: relative;
}

.dark-mode footer {
  background: #121212;
}

footer .links {
  opacity: 0.5;
  font-size: 95%;
  padding: 0;
  margin: 2rem auto;
  justify-content: center;
}
footer small {
  display: block;
  max-width: var(--max-width);
  font-size: 0.75rem;
  line-height: 1.25;
  margin: 0 auto;
  padding: 1em 2rem;
}

@media (max-width: 960px) {


  .row {
    display: block;
  }
  .row .col {
    width: 100%;
    margin: 0 0 10px 0;
  }
}

.hero-img {
  margin: 30px 0;
  border-radius: 10px;
  margin-top: 20px;
}

#title a {
    border: 0;
    text-decoration: none;
}
#title h2 {
  font-size: 22px;
  margin: 0;
}

#funding-wrap .goal-stat span {
  font-size: 100% !important;
}
#funding-wrap {
  margin-bottom: 25px;
  font-size: 18px !important;
  padding: 7px !important;
}

.hljs-attr {
  color: #1bc2f6 !important;
}

.hljs-name {
  color: #ef0f77 !important;
}

.dark-mode .dark-invert {
  filter: invert(1);
}

.nano-pay-unlock-button {
/*  max-width: 400px;*/
  margin: 0 auto !important;
  margin-top: 30px !important;
  border: 2px solid #209ce9;
}

.dark-mode .nano-pay-unlock-button { 
  border: 0; 
}

.premium {
  display: none;
}

li > ul {
  margin-top: 5px;
}

p code,
li code {
  color: #1bc2f7 !important;
/*  background: white;*/
  border-radius: 5px;
}

#nav {
  display: none;
  position: fixed;
  background: transparent;
  padding: 30px;
  margin-left: -280px;
  margin-top: -20px;
  max-height: 100vh;
  overflow-y: auto;
}

#nav a {
  text-decoration: none;
  border-bottom: 0;
  opacity: 0.7;
  border-left: 1px solid #00000030;
  padding: 5px 20px;
  display: block;
}

.dark-mode #nav a {
  border-left: 1px solid #ffffff30;
}

#nav a:hover {
  opacity: 1;
}

#nav li {
  list-style: none;
}

#nav a:hover {
  opacity: 1;
  border-left: 2px solid var(--color);
}

#nav a.active {
  opacity: 1;
  border-left: 2px solid var(--color);
}

#nav .active:before {
/*  content: "❯ ";*/
/*  color: red;*/
}

.dark-mode #nav {
/*  background: #1f1f1f;*/
}

video {
  width: 100%;
}

.hero-backdrop {
  background-image: url(/img/bg.jpg);
  background-color: #000;
  background-size: cover;
  height: 100vh;
  position: absolute;
  z-index: -1;
  width: 100%;
  top: 0;
/*  animation: hue 600s infinite;*/
  filter: invert(1) hue-rotate(190deg);
}

.dark-mode .hero-backdrop {
  filter: none;
}

@keyframes hue {
  from {
    filter: hue-rotate(0);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

.hero {
  height: 91vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
/*  color: #FFF;*/
}

 .hero .button {
  color: #FFF;
}

.hero > div {
  text-align: center;
  max-width: 600px;
}
.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.button {
  display: block;
  padding: 10px 30px;
  border-radius: 30px;
  min-width: 170px;
  cursor: pointer;
  border: 0;
}

.button.gradient {
  background-image: linear-gradient(90deg, #c343fb 5.04%, #63aafe 170%);
}

.button.border {
  background: rgb(32 156 233);
}


.logos img {
  filter: invert(1);
  margin: 10px 15px 0 15px;
  max-width: 80px;
}

.dark-mode .logos img {
  filter: invert(0);
}

.hide-desktop {
  display: none;
}
@media (max-width: 960px) {
  .hide-mobile { display: none }
  .hide-desktop { display: block }
  .mobile-wrap { flex-wrap: wrap; flex-direction: column;  }
  .mobile-wrap > div {
      margin-bottom: 20px !important;
  }
}
.container {
  max-width: var(--container);
  margin: 0 auto;
}
.icons svg {

}
.icons > a {
  display: block;
  border-bottom: 0;
  text-decoration: none;
  background: #efefef;
  margin-top: 20px;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dark-mode .icons > a {
  background: #292929;
}
.icons > a:hover {
  filter: invert(1);
}
.footer-menu {
  padding: 10px 0;
}
.footer-menu > div {
  margin: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: start;
  align-self: baseline;
}
.footer-menu > div:last-child {
  margin-right: 0;
}
.menu-items > div {
  cursor: pointer;
}
.menu-items svg {
  opacity: 0.5;
}
.search-box div {
  line-height: 0;
}
.search-box svg {
  margin-right: 10px;
}
.search-box {
  cursor: pointer;
  padding: 8px 15px;
  border: 1px solid #00000042;
  border-radius: 10px;
}
.dark-mode .search-box {
  border: 1px solid #ffffff42;
}
.footer-menu b {
  display: block;
  margin-bottom: 10px;
}
.footer-menu > div > a,
.footer-menu > div > div {
  opacity: 0.8;
  font-size: 90%;
  margin: 2px 0;
}
.language svg {}

#search {
  position: fixed;
  background: #FFF;
  max-width: 700px;
  margin: 0 auto;
  left: 0;
  right: 0;
  top: 20vh;
  padding: 20px;
  border-radius: 10px;
  font-family: Arial;
  z-index: 999;
}

.dark-mode #search {
  background: #17192e;
}

.search-input {
  position: relative;
}
.search-input svg {
  stroke: #209ce9;
  position: absolute;
  top: 14px;
  left: 10px;
}
.search-input input {
  box-sizing: border-box;
  width: 100%;
  background: transparent;
  appearance: none;
  border: 1px solid;
  min-height: 50px;
  border-radius: 5px;
  padding-left: 40px;
  font-size: 17px;
  letter-spacing: 1px;
}
.dark-mode .search-input input {
  color: #FFF;
}
.search-item {
  background: #f1f1f1;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 5px;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.dark-mode .search-item {
  background: black;
}
.search-item.active,
.search-item:hover {
  background: #000;
  color: #FFF;
}

.dark-mode .search-item.active,
.dark-mode .search-item:hover {
  background: #FFF;
  color: #000;
}

.search-item h2 {
  margin: 0;
  font-size: 18px;
}
.search-item p {
  font-size: 14px;
  opacity: 0.5;
}
.search-category {
  margin-bottom: 5px;
  color: #209ce9;
  font-weight: bold;
}

.search-item-wrapper {
  margin-top: 10px;
}

#search-results .search-item-wrapper:first-child {
   margin-top: 13px;
}

#search-results {
  max-height: 400px;
  overflow: auto;
}

#search-backdrop {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #00000085;
  z-index: 99;
}

.dark-mode #search-backdrop {
    background: #000000ba;
}

#docs-nav {
  border-bottom: 1px solid #0000000a;
  padding: 10px 0;
}

.dark-mode #docs-nav {
  border-bottom: 1px solid #ffffff0a;
}

#docs-nav a {
  display: block;
  margin-right: 30px;
  padding: 5px 10px;
  border-radius: 5px;
}

#docs-nav a.active,
#docs-nav a:hover {
  background: #f1f1f1;
}

.dark-mode #docs-nav a.active,
.dark-mode #docs-nav a:hover {
  background: #2a2828;
}

#docs-nav > div a:first-child {
  margin-left: -20px;
}

.submenu {
  position: absolute;

  top: 54px;
  display: flex;
  right: 0;
  border-radius: 5px;
  display: none;
  z-index: 9999;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  background: white;
  border: 1px solid #00000014;
}

.dark-mode .submenu {
    background: black;
    border: 1px solid #ffffff14;
}

.menu-item svg {
  transition: 0.2s all;
}

.menu-item.active svg {
  transform: rotate(180deg);
}

.menu-item {
  border-bottom: 2px solid transparent;
/*  border-bottom: 1px solid attr(color);*/
}

.menu-item.active .submenu {
  display: flex;
}

.submenu > div {
  padding: 20px;
  min-width: 270px;
}

.submenu-title {
  text-transform: uppercase;
  margin-bottom: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;

  padding-bottom: 15px;
  border-bottom: 1px solid #0000000d;
}

.dark-mode .submenu-title {
  border-bottom: 1px solid #ffffff1f;
}

.submenu-title svg {
  fill: var(--color);
  margin-right: 5px;
}

.submenu-title span {
  padding-left: 5px;
}

.submenu-item {
  font-size: 17px;
  display: block;
  padding: 5px 10px;
  border-radius: 5px;
  margin-left: -5px;
}

.submenu > div > .submenu-item:not(:last-child) {
  margin-bottom: 10px;
}

.submenu-item:hover {
  background-image: linear-gradient(90deg, #c343fb 5.04%, #63aafe 170%);
/*  color: #FFF;*/
}

a.submenu-item:hover {
  color: #ffffff;
/*  background: #121212;*/
}

.submenu-description {
  opacity: 0.4;
  font-size: 90%;
}

@media (max-width: 1280px) {
  #nav {
    max-width: 215px;
  }
  article {
    margin: 0;
    padding: 20px;
  }
  header {
    padding-left: 20px;
    padding-right: 20px;
  }
  .menu-items {
    background: #FFF;
    position: absolute;
    left: 0;
    right: 0;
    flex-direction: column;
    width: 100%;
    top: 77px;
  }
  .dark-mode .menu-items {
    background: #1d1d1d;
  }
  .menu-items > div {
    margin: 0;
    margin: 10px 0;
  }
  .search-box {
    width: 90%;
  }
}

@media (max-width: 1014px) {
  .hero h1 {
  font-size: 26px;
}

.hero p {
      max-width: 90%;
    margin: 0 auto 30px auto;
    font-size: 21px;
}
  #nav { 
    display: none !important; 
  }
  .submenu {
    position: relative;
    top: 0;
    flex-direction: column;
  }
  .menu-item {
    flex-direction: column;
  }
} 

.logo-light {
  display: none;
}

.dark-mode .logo-light {
  display: block;
}

.dark-mode .logo-dark {
  display: none;
}

pre {
  padding-right: 40px;
  position: relative;
}

.copy-code {
  filter: invert(1);
  position: absolute;
  z-index: 9;
  right: 10px;
  width: 18px;
  top: 12px;
  opacity: 0.9;
  padding: 5px;
  box-sizing: content-box;
  border-radius: 5px;
}

.copy-code:hover {
  cursor: pointer;
  background: #0000001a;
}

h2 {
  cursor: pointer;
}

h2:hover:after {
  content: "#";
  margin-left: 10px;
  font-weight: lighter;
  color: #1bc2f8;
}

ul > li {
  margin-bottom: 10px;
}

.dark-menu {
  width: 36px; 
  fill: #000; 
}

.dark-mode .dark-menu {
  fill: #FFF; 
}

.dark-toggle {
  background: #f1f1f1;
  padding: 5px;
  border-radius: 21px;
  display: flex;
  align-items: start;
  justify-content: start;
  width: 60px;
  cursor: pointer;
}

.dark-toggle > div {
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-toggle svg {
  fill: #FFF;
  opacity: 1;
  max-width: 80%;
}

.sun-icon {
  stroke: #FFF;
}

.dark-mode .dark-toggle {
  background: #5da7f5;
  justify-content: end;
}

.dark-mode .dark-toggle > div {
  background: #000;
}

.dark-mode .dark-toggle > div svg {
  fill: #FFF;
}

.sun-icon {
  display: block;
}

.moon-icon {
  display: none;
}

.dark-mode .sun-icon {
  display: none;
}

.dark-mode .moon-icon {
  display: block;
}
