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

body {
  font-family: "Open Sans", sans-serif;
  background-color: #090609;
  color: #c6c6c4;
  display: flex;
  flex-direction: column;
  font-size: 18px;
  min-height: 100vh;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

main {
  max-width: 1000px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1rem;
  flex: 1;
    line-height: 1.6;


  text-align: justify;

  & h1,
  & h2,
  & h3,
  & h4,
  & h5,
  & h6 {
    text-align: left;
  }

  /* .frame-block {
    overflow-x: auto !important;
    max-width: 100% !important;
  } */

  .scroll-x {
    overflow-x: auto;
    max-width: 100%;
  }

  & .content {
    & a {
      color: #4AD566;
    }
    
    & a:hover {
      text-decoration: underline;
    }

    & .zebraw-code-block {
      min-width: 100%;
    }

    .zebraw-code-lang {
      z-index: 1;
    }

    & figure {
      margin: 1rem 0;
      display: flex;
      flex-direction: column;
      align-items: center;

      & figcaption {
        font-size: 1rem;
        color: #858a9b;
        margin-top: 0.5rem;
      }
    }

    @media screen and (max-width: 600px) {
      figure {
        /* display: block; */
        max-width: 100%;
      }

      .frame-block {
        display: block;
        max-width: 100%;
      }

      .zebraw-code-block {
        overflow-x: auto;
        max-width: 100% !important;
      }
    }

    & ul {
      list-style-type: disc;
      margin-left: 1.5rem;
    }

    & ol {
      list-style-type: decimal;
      margin-left: 1.5rem;
    }

    .align-center {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  }
}

h1 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

h3 {
  margin: 0.5rem 0;
}

h4,
h5,
h6 {
  margin: 0.5rem 0;
}

h1 {
  color: white;
}

h2,
h3 {
  color: #4ADE80;
  margin-top: 1.5rem;
}

main p, h4 {
  margin-top: 1.5rem;
}

h1+p,
h2+p,
h3+p,
h4+p,
h5+p,
h6+p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

footer {
  padding: 1rem 2rem;
  width: 100%;
  margin: 1rem 0;

  & .contain {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
  }

  & a {
    color: #545454
  }

  & a:hover {
    color: #878787;
  }
}

footer span {
  display: flex;
  gap: 1rem;
  font-family: "Azeret Mono", monospace;
  font-weight: normal;
  font-size: 1rem;
}



.github-icon {
  width: 1.2em;
}



code,
pre {
  font-family: "Source Code Pro", monospace;
}

.frame-block {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  /* background-color: #f5eff5; */
  /* padding: 1rem; */
  /* border-radius: 5px; */
}

.table-center td {
  text-align: center;
}

.declare {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;

  justify-content: space-between;

  & a {
    color: #ababab;
  }

  & a:hover {
    text-decoration: underline;
  }
}

.date {
  font-size: 1rem;
  color: #ababab;
  margin-bottom: 4rem;
}

html,
body {
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
  max-width: 100vw;
  position: relative;
}

img,
video,
svg {
  max-width: 100% !important;
  height: auto !important;
}

.expressive-code {
  margin-top: 1rem;

  --ec-borderRad: 0.2em;
  --ec-codePadBlk: 0.34em;
  --ec-codePadInl: 0.34em;
  
  /* Dark theme colors */
  --ec-codeFg: #e4e4e7 !important;
  --ec-codeBg: #1e1e1e !important;
  --ec-langBg: #2d2d2d !important;
  --ec-langFg: #a0a0a0 !important;
  --ec-copyBg: #2d2d2d !important;
  --ec-copyFg: #a0a0a0 !important;
  --ec-gutterBg: #1e1e1e !important;
  --ec-gutterGap: 0.25rem !important;
  --ec-gutterPadLeft: 0.5rem !important;
  --ec-codeFontSize: 1rem !important;
  --ec-codeLineHeight: 1.5 !important;
  --ec-copyBgHover: #3a3a3a !important;
  --ec-copyBgFocus: #3a3a3a !important;
  --ec-copyFgHover: #ffffff !important;
  --ec-copyFgFocus: #ffffff !important;
  --ec-hlBg: #2d4a45 !important;
  --ec-commentBg: #2d2d2d !important;
  --ec-gtrFg: #6b6b6b !important;
  --ec-gtrHighlightFg: #9b9b9b !important;
  --ec-gtrBrdCol: #6b6b6ba6 !important;
}

.expressive-code .code {
  color: #ffffff;
}

/* Additional dark theme styling */
.expressive-code .code-lang {
  color: var(--ec-langFg);
  background: var(--ec-langBg);
}

.expressive-code .copy-button {
  background: var(--ec-copyBg);
  color: var(--ec-copyFg);
  border: 1px solid #3a3a3a;
}

.expressive-code .copy-button:hover {
  background: var(--ec-copyBgHover);
  color: var(--ec-copyFgHover);
}

.expressive-code .ec-header,
.expressive-code .ec-footer {
  background: #1e1e1e !important;
}

.expressive-code .ec-line {
  --lineBg: #1e1e1e !important;
}

.expressive-code .gutter .ln {
  color: var(--ec-gtrFg);
  margin: 0 0.25rem;
}