:root{
  --text-color: #3C4858;
  --link-color: #e91e63;
  --menu-color: #2C3878;
  --footer-front-color: white;
  --footer-back-color: black;
  --page-back-color: whitesmoke;
  --content-back-color: white;
  --content-overlay: 40px;
  --menu-border-color: #cce;
  --menu-background: linear-gradient(45deg, rgba(245,245,255,1) 0%, rgba(200,230,255,1) 100%);
  --code-color: #c7254e;
  --code-background: #f9f2f4;
}

body,html {
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.5em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--text-color);
  padding: 0;
  margin: 0;
  background: var(--page-back-color);
}
#page .container {
  background: var(--content-back-color);
  padding-bottom: 4rem;
}

h1 {
  font-size: 2.5em;
  font-weight: 400;
  line-height: 1.5em;
  margin-top: 0;
  margin-bottom: 0;
}

h2 {
  font-size: 2em;
  font-weight: 500;
  line-height: 1.5em;
  margin-bottom: 0;
}
h3 {
  font-size: 1.75em;
  font-weight: 500;
  line-height: 1.5em;
  margin-bottom: 0;
}
h4 {
  font-size: 1.5em;
  font-weight: 500;
  line-height: 1.5em;
  margin-bottom: 0;
}
h5 {
  font-size: 1.25em;
  font-weight: 500;
  line-height: 1.5em;
  margin-bottom: 0;
}

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

#menu {
  position: sticky;
  top:0;
}

#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5em;
}

#menu li ul {
  margin-left: 1em;
}

#menu li {
  margin: 0.75em 0;
}
#menu a {
  color: var(--menu-color);
}
#menu a:hover {
  color: var(--link-color);
}

code {
  padding: 2px 4px;
  font-size: 90%;
  color: var(--code-color);
  background: var(--code-background);
  border-radius: 4px;
}
pre {
  font-size: 13px;
  line-height: 1.42857143;
  word-break: break-all;
  word-wrap: break-word;
  color: #333;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
}
pre code {
  background: transparent;
  color: inherit;
}


  header{
    color: var(--code-background);
    background: linear-gradient(45deg, rgba(168,29,132,1) 0%, rgb(234,57,111) 100%);
    color: white;
    height: 150px;
    padding-bottom: var(--content-overlay);
  }
  header .container{
    display: grid;
    grid-template-columns: 1fr max-content;
    height: 100%;
    align-content: center;
    align-items: center;
  }
  .container {
    max-width: 1200px;
    padding: 0 1rem;
    margin: 0 auto;
  }
  header a:link, header a:visited {
    color: white;
  }
  header a:hover {
    text-decoration: none;
  }

  #page .container {
    background: var(--content-back-color);
  }
  #page .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr max-content;
    gap: 2rem;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
  }
  #page .container:before {
    content:'';
    display: block;
    position: absolute;
    height: var(--content-overlay);
    top: calc(var(--content-overlay) * -1);
    width: 100%;
    background: var(--content-back-color);
    border-radius: 0.8rem 0.8rem 0 0;
  }

  #menu h4 {
    margin:0;
  }
  #menu .menu-content {
    padding:0.5rem 1rem;
    border:1px solid var(--menu-border-color);
    border-radius: 0.5rem;
    background: var(--menu-background);
  }


  footer {
    color: var(--footer-front-color);
    background-color: var(--footer-back-color);
    font-size: 0.75em;
    line-height: 3rem;
    height: 3rem;
    text-align: right;
  }
  footer p {
    margin:0;
  }


  @media screen and (max-width: 768px) {
    #page .container {
      grid-template-columns: 1fr;
    }
  }

