/*
 * Copyright 2020 Adobe. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

 @import "fonts.css";

 html, body {
  scroll-behavior: smooth !important;
  overflow-y: scroll;
}

* {
  scroll-behavior: smooth;
  scrollbar-width: auto;
  scrollbar-color: #406e0c #191b22;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 12px;
}

*::-webkit-scrollbar-track {
  background: #191b22;
}

*::-webkit-scrollbar-thumb {
  background-color: #406e0c;
  border-radius: 10px;
  border: 3px solid #191b22;
}

 :root {
  /* colors */
  --link-color: #62a814;
  --link-hover-color: #406e0c;
  --background-color: #272B36;
  --background-color-2: #191b22;
  --overlay-background-color: #272B36;
  --highlight-background-color: #232323;
  --text-color: #FFFFFF;
  

  /* fonts */
  --body-font-family: roboto, roboto-fallback;
  --heading-font-family: poppins-var, poppins-bold, 'Segoe UI', Helvetica, Arial, sans-serif;
  --fixed-font-family: 'Roboto Mono', menlo, consolas, 'Liberation Mono', monospace;
  --code-font-family: "Roboto Mono", source-code-pro, "Courier New", monospace;

  /* body sizes */
  --body-font-size-m: 22px;
  --body-font-size-s: 18px;
  --body-font-size-xs: 16px;

  /* heading sizes */
  --heading-font-size-xxl: 48px;
  --heading-font-size-xl: 40px;
  --heading-font-size-l: 32px;
  --heading-font-size-m: 24px;
  --heading-font-size-s: 20px;
  --heading-font-size-xs: 18px;
  --border-radius: 0.8rem;

  /* shadows */
  --shadow-lg: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 0 10px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 0, 0, 0.07), 0 0 30px rgba(0, 0, 0, 0.04);

  /* nav height */
  --nav-height: 72px;

  /* background colors */
  --code-bg-color: #201f1f;


}

@font-face {
  font-family: roboto-fallback;
  size-adjust: 100.06%;
  ascent-override: 95%;
  src: local('Courier New');
}


@media (min-width: 900px) {
  :root {
    --heading-font-size-xxl: 60px;
    --heading-font-size-xl: 48px;
    --heading-font-size-l: 36px;
    --heading-font-size-m: 30px;
    --heading-font-size-s: 24px;
    --heading-font-size-xs: 22px;
  }
}


h2 {
  color: #62a814;
}

body {
  font-size: var(--body-font-size-m);
  margin: 0;
  font-family: var(--body-font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  display: none;
}

body.appear {
  display: unset;
}

header {
  height: var(--nav-height);
}


h1, h2, h3,
h4, h5, h6 {
  font-family: var(--heading-font-family);
  font-weight: 600;
  line-height: 1.25;
  margin-top: 1em;
  margin-bottom: .5em;
  scroll-margin: calc(var(--nav-height) + 1em);
}

h1 { font-size: var(--heading-font-size-xxl) }
h2 { font-size: var(--heading-font-size-xl) }
h3 { font-size: var(--heading-font-size-l) }
h4 { font-size: var(--heading-font-size-m) }
h5 { font-size: var(--heading-font-size-s) }
h6 { font-size: var(--heading-font-size-xs) }

p, dl, ol, ul, pre, blockquote {
  margin-top: 1em;
  margin-bottom: 1em;
}

hr {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 0;
  border-bottom: 1px solid var(--overlay-background-color);
}

code, pre, samp {
  font-family: var(--fixed-font-family);
  font-size: var(--body-font-size-s);
}

code, samp {
  padding: .125em;
}

pre {
  overflow: scroll;
}

main pre {
  background-color: var(--overlay-background-color);
  padding: 1em;
  border-radius: .25em;
  overflow-x: auto;
  white-space: pre;
}

a:any-link {
  color: var(--link-color);
  text-decoration: none;
}

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

/* buttons */
a.button:any-link, button {
  font-family: var(--body-font-family);
  display: inline-block;
  box-sizing: border-box;
  text-decoration: none;
  border: 2px solid transparent;
  padding: 5px 30px;
  text-align: center;
  font-style: normal;
  font-weight: 600;
  cursor: pointer;
  color: var(--background-color);
  background-color: var(--link-color);
  margin: 16px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 1rem;
}

a.button:hover, a.button:focus, button:hover, button:focus  {
  background-color: var(--link-hover-color);
  cursor: pointer;
}

button:disabled, button:disabled:hover {
  background-color: var(--overlay-background-color);
  cursor: unset;
}

a.button.secondary, button.secondary {
  background-color: unset;
  border: 2px solid currentcolor;
  color: var(--text-color)
}

main input {
  font-size: 1.25rem;
  width: 100%;
  max-width: 50rem;
  display: block;
  margin-bottom: 1rem;
  padding: 0.75rem 0.6rem;
  border-radius: 0.25rem;
  box-sizing: border-box;
  border: 1px solid var(--text-color);
  color: var(--text-color);
  background-color: var(--background-color);
}

main input:hover {
  border: 1px solid var(--text-color);
}

main blockquote {
  font-style: italic;
  margin: 3rem;
  text-indent: -1rem;
  hanging-punctuation: first;
}

main blockquote p::before {
  content: "“";
  line-height: 0;
}

main blockquote p::after {
  content: "”";
  line-height: 0;
}

main img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon svg {
  height: 100%;
  width: 100%;
}

main .section {
  padding: 48px 16px;
}

@media (min-width: 600px) {
  main .section {
    padding: 48px 32px;
  }
}

@media (min-width: 900px) {
  .section > div {
    max-width: 1200px;
    margin: auto;
  }
}

/* section metadata */
main .section.highlight {
  background-color: var(--highlight-background-color);
}

::selection {
  color: white;
  background-color: #62a814;
}

/* inline code styles */
code {
  font-family: var(--code-font-family);
  letter-spacing: -0.08px;
  line-height: 1.8;
}

pre code {
  font-size: 14px;
  border: unset;
}

code:not(pre > code) {
  font-size: 14px;
  overflow-wrap: break-word;
  border: 1px solid #e5e5e5;
  background-color: var(--code-bg-color);
  color: var(--dark-spectrum-blue);
  padding: 1px 4px;
  border-radius: 4px;
}

@media screen and (min-width: 600px) {
  pre code {
    font-size: 16px;
  }
}

pre {
  width: 100%;
  
}

main table pre {
  margin: 0;
  padding: 0.5em;
}

pre:not(:has(.hljs)) {
  overflow-x: hidden;
  background-color: #010700;

}

/* inline code styles */
code {
  font-family: var(--code-font-family);
  letter-spacing: -0.08px;
  line-height: 1.8;
}

pre code {
  font-size: 14px;
  color: #00a30b;
  overflow: hidden;
}

code:not(pre > code) {
  font-size: 14px;
  overflow-wrap: break-word;
  border: 1px solid #e5e5e5;
  background-color: var(--code-bg-color);
  color: var(--dark-spectrum-blue);
  padding: 1px 4px;
  border-radius: 4px;
}

@media screen and (min-width: 600px) {
  pre code {
    font-size: 16px;
  }
}

.section.hero-container h1{
  font-family: var(--heading-font-family);
  position: relative;
  font-size: 3rem;
  font-weight: 500;
  text-shadow: 0px 4px 3px rgba(0,0,0,0.4), 0px 8px 13px rgba(0,0,0,0.1), 0px 18px 23px rgba(0,0,0,0.1);
}

div.bg-dark{
  background-color: var(--background-color-2);
}

div.blog-post-bg-fade{
  background-color: var(--bg-color-2);
  animation: scroll-color-fade linear;
  animation-timeline: scroll();
  animation-range: 0% 100%;
  border-bottom: 1.5px solid var(--link-color);
  box-shadow: var(--shadow-xl);
  padding-top: 64px;
}

@media (max-width: 600px) {
  div.blog-post-bg-fade{
    padding-top: 32px;
  }
}

@keyframes scroll-color-fade {
  0% {
    background-color: var(--bg-color-2);
  }
  100% {
    background-color: var(--bg-color-1);
  }
}

div.border-bottom-glow{
  border-bottom: 1.5px solid;
  border-color: var(--link-hover-color);
  box-shadow: 0 4px 12px var(--background-color-1), var(--shadow-lg);
  animation: glowPulse2 8s infinite ease-in-out;
}
@keyframes glowPulse2 {
  0% {
    border-color: rgba(64, 110, 12, 0.3);
  }
  50% {
    border-color: rgba(64, 110, 12, 1);
  }
  100% {
    border-color: rgba(64, 110, 12, 0.3);
  }
}