body {
    width: 100%;
    height: 100%;
}

img, svg {
    max-width: 80%;
    height: auto;
}

a svg {
    background: none;
}

@media (max-width: 1036px) {
  #panel {
      min-width: 100%;
  }
}

#bookPadding a:link {
    background-color: #fdefe8;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

#bookPadding a:active {
    outline-width: 0;
}

#bookPadding a:hover {
    background-color: #fcdcce;
    border-bottom-color: #1a1a1a;
}
#bookPadding a.logo {
    background: none;
    border: none;
}

#bookPadding a.logo svg {
    max-width: 50%;
}

section {
    line-height: 1.7;
    font-size: 24px;
    font-weight: 300;
    color: #6d6d6d;
    margin-top: 40px;
}

section.sub,
section.sub p {
    line-height: 1.7;
    font-size: 20px;
    font-weight: 300;
    color: #6d6d6d;
    margin-top: 40px;
}

h1 {
    color: #282c34;
    margin-bottom: 0;
    margin-top: 80px;
    font-size: 50px;
    line-height: 65px;
    font-weight: 700;
}

h2 {
    font-size: 35px;
    margin-top: 100px;
    padding-bottom: 20px;
    line-height: 1.2;
    border-bottom: 1px solid #ececec;
}

h3 {
    font-size: 20px;
    margin-top: 100px;
    padding-bottom: 10px;
    line-height: 1.2;
    font-weight: bold;
}

#menu h3 {
    font-size: 26px;
    padding: 20px 20px 0 20px;
    line-height: 1.2;
    font-weight: bold;
    margin: 0px;
}

p {
    margin-top: 30px;
    font-size: 17px;
    line-height: 1.7;
}

#menu code {
    background: rgba(254, 249, 172, 0.3);
    color: #fff;
}

code {
    background: rgba(254, 249, 172, 0.4);
    color: #000000;
}

#language-js {
    background: #000000;
    color: #fff;
}

.notes {
    background-color: #f6e1d7;
    border-left-color: #e66225;
    border-left-width: 9px;
    border-left-style: solid;
    padding: 20px 45px 20px 26px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.notes p {
    margin-top: 0px;
    font-size: 14px;
}

.notes ol {
    margin: 20px 0 0 20px;
}

.notes ol li {
    margin: 20px 0 0 0;
    font-size: 14px;
    line-height: 1.7;
}

ul {
    margin: 20px 0 20px 40px;
    list-style: initial;
}

ol {
    margin: 20px 0 20px 40px;
}

ol li,
ul li {
    margin: 20px 0 0 0;
    line-height: 1.7;
}

.notes dl dd {
    margin-bottom: 20px;
}

hr {
    border: none;
    height: 20px;
    background-color: #ececec;
    margin: 50px 0 100px 0;
}

.slideout-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 356px;
    min-height: 100vh;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    z-index: 0;
    display: none;
    background-color: #272727;
}

.slideout-menu-left {
    left: 0;
}

.slideout-menu-right {
    right: 0;
}

.slideout-panel {
    position: relative;
    z-index: 1;
    will-change: transform;
    background-color: #fff;
    /* A background-color is required */
    min-height: 100vh;
}

#bookPadding {
    margin-left: auto;
    margin-right: auto;
    max-width: 1024px;
    padding: 0 5%;
    overflow: hidden;
}

.slideout-open .slideout-panel {
    margin-right: 356px;
}

.slideout-open .slideout-menu {
    display: block;
}

#menuButton {
    background: radial-gradient(closest-side, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    cursor: pointer;
    position: sticky;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    z-index: 2;
}

#toc {
    padding: 20px 20px;
    font-size: 18px;
}

#toc a:focus,
#toc a:hover {
    background-color: #000000;
    border-bottom-color: #fff;
    text-decoration: underline;
}

#toc a:link,
#toc a:active,
#toc a:visited {
    color: #e7e7e7;
}

#toc h6 {
    margin-left: 10px;
    margin: 10px 0 0 10px;
    line-height: 1.8em;
}

#toc h5 {
    margin-top: 30px;
    margin-bottom: 20px;
    line-height: 1.6em;
}

p+div.code-toolbar {
    margin-top: 30px;
}

.codesandboxlink,
.codesandboxlinkNotDynamic {
    font-size: 10px;
    margin-top: 15px;
    text-align: right;
    margin-right: 10px;
}

#panel .codesandboxlink a:link,
#panel .codesandboxlinkNotDynamic a:link {
    background-color: rgba(0, 0, 0, 0);
    border-bottom: 1px solid rgba(0, 0, 0, 0);
    color: #1a1a1a;
    padding: 0 4px;
}

#panel .codesandboxlink a:active,
#panel .codesandboxlinkNotDynamic a:active {
    outline-width: 0;
}

#panel .codesandboxlink a:hover,
#panel .codesandboxlinkNotDynamic a:hover {
    background-color: #bbeffd;
    border-bottom-color: rgba(0, 0, 0, 0);
}

.FmCta {
    align-items: flex-start;
    background: #000;
    color: #fff;
    display: flex;
    gap: 15px;
    line-height: 2;
    padding: 10px 15px;
    position: relative;
    z-index: 10;
}

.FmCtaLogo svg {
    fill: #c02d28;
    vertical-align: middle;
    width: 25px;
}

.FmCtaLogo:hover svg {
    fill: #dd625e;
}

.FmCtaText {
    display: flex;
    flex: 1;
    gap: 15px;
}

.FmCtaText a {
    color: #ccc;
    font-weight: bold;
}

.FmCtaText a:hover {
    color: #fff;
}

.FmCtaClose {
    background: none;
    border: none;
    color: #888;
    font-size: 25px;
    height: 30px;
    line-height: 1;
    outline: none;
    padding-bottom: 5px;
    width: 30px;
}

.FmCtaClose:hover {
    color: #fff;
}