/* .center { */
/*     margin-left: auto; */
/*     margin-right: auto; */
/*     display: block */
/*  } */

.content {
    display: block;
}

.figure-number {
    display: none;
}

figcaption {
    font-size: 75%;
}

figure {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

body table {
    font-size: 16px;
    border-collapse: collapse;
    width: 100%;
}

body ul {
    margin-top: 10px;
    margin-bottom: 10px;
}

article td,
article th {
    padding: .25rem .5rem;
    border: 1px solid #e5e5e5;
}

body {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    min-height: 100%;
    font-family: 'Open Sans', 'Helvetica Neue', 'Arial', sans-serif;
  text-rendering: optimizeLegibility !important;
}

.content p {
    margin-top: 6px;
    margin-bottom: 6px;
}

article .subtitle {
    font-family: 'Raleway', 'Helvetica Neue', 'Arial', sans-serif;
    /* text-transform: uppercase; */
    /* font-variant: small-caps; */
    /* font-weight: bold; */
    font-size: 1.1rem;
    color: #cc2a41;
    display: flex;
    line-height: 1.1;
    padding-bottom: 14px;
}

article .subtitle a {
    font-family: 'Raleway', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 1.1rem;
    color: #cc2a41;
    background-image: linear-gradient(transparent, transparent 5px, #cc2a41 5px, #cc2a41);
}

article .content h1,
article .content h2 {
    font-family: 'Raleway', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 1.3rem;
    letter-spacing: -0.005rem;
    font-weight: 700;
    /* color: #333; */
    /* margin-top: 1.75rem; */
}

.h1,
.content h1 {
    font-family: 'Raleway', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 1.75rem;
}

body h3 {
    text-decoration: none;
    font-size: 1.15rem;
}

article header .posttitle {
    font-family: 'Raleway', 'Helvetica Neue', 'Arial', sans-serif;
    text-transform: uppercase;
}

article .content h2:before {
  position: absolute;
  top: -1px;
  left: -1.2rem;
  color: #cc2a41;
  content: "#";
  font-weight: bold;
  font-size: 1.4rem;
}

#header-post #toc {
    text-align: left;
}

#header-post #toc nav > ul > li {
  font-size: 0.9rem;
}

#header-post #toc nav > ul > li > ul > li {
  font-size: 0.8rem;
}

#header-post #toc nav > ul > li > ul > li > ul > li {
  font-size: 0.8rem;
}

body hr {
    margin-top: 15px;
    margin-bottom: 15px;
}

.footnotes {
    font-size: 12px;
}

.highlight {
  overflow-x: auto;
  margin: 0 0;
  padding: 0px 0px;
  border-radius: 4px;
  background: #fafafa
  -webkit-border-radius: 4px;
}

.content code,
.highlight pre,
.highlight code {
    font-family: "Ubuntu Mono", 'Menlo', monospace;
    font-size: 1.0rem;
    background: #fafafa;
    padding: 0px;
}

pre {
    padding: 0px;
}

.content code {
    font-size: 1.0em;
}

article .content video {
    box-shadow: 0px -5px 10px #421D5D ;
    /* border-style: solid; */
    /* border-radius: 8px; */
    /* padding: 2px; */
    margin-top: 14px;
    /* /\* margin-left: 4px; *\/ */
    margin-bottom: 6px;
    /* border-color: #b79eb0; */
}

.videocontainer {
    display: flex;
    justify-content: center;
    align-items: center;
  }

details {
    border-style: solid;
    border-width: 2px;
    border-color: #b79eb0;
    /* border-color: #779591; */
    border-radius: 8px;
    padding: 12px;
    padding-right: 20px;
    margin: 10px 0px 4px 0px;
}
details summary {
    font-weight: bold;
    margin-bottom: 0px;
}
details .details {
    color: #77002a; /* blue; */
    padding: 8px;
    margin-top: 0px;
}
.detail-icon {
float: right;
max-width: 25px;
}
.warning {
    padding-left: 0.5rem;
    /* margin-left: 0.5rem; */
    box-shadow: inset 5px 0 5px -5px #77002a;
    font-style: italic;
    /* color: #7ea9a9; */
    /* color: #29627e; */
}
.warning:before {
    content: "Note";
    font-weight: bold;
    font-variant: small-caps;
    font-size: 0.8rem;
}
.apinote {
    border-color: #7f7dba;
}
.orgnote {
    border-color: #77aa99;
}
.implementation {
    border-color: #2e2e2e;
}
details.form-comments {
    border-color: #cdd3d5;
    margin-bottom: 16px;
    padding-left: 20px;
    padding-right: 20px;
}

details summary.form-comments-head {
    font-weight: normal;
    font-size: 0.9rem;
}

.blog-post-comments {
    display: inline-block;
    align-self: center;
    font-size: 0.8em;
}

/* .blog-post-comments:before { */
/*   position: relative; */
/*   top: 0.1rem; */
/*   color: #cc2a41; */
/*   content: "["; */
/*   font-weight: bold; */
/*   font-size: 1.2rem; */
/* } */

/* .blog-post-comments:after { */
/*   position: relative; */
/*   top: 0.1rem; */
/*   color: #cc2a41; */
/*   content: "]"; */
/*   font-weight: bold; */
/*   font-size: 1.2rem; */
/* } */

#comment {
    padding: 20px;
    margin: 5px;
    background-color: #cdd3d5;
    border-radius: 6px;
    border-color: #cdd3d5;
}

#comment-username {
    display: inline-block;
    vertical-align: top;
    font-size: 0.9rem;
}

#comment-body {
    pdding-left:10px;
    padding-right: 2px;
    font-size: 0.9rem;
}

.qed {
    color: #cc2a41;
    display:block;
    text-align: center;
    font-size: 1.38rem;
    margin-top: 8px;
    margin-bottom: 24px;
}

.qed:before {
    content: "∼ ⬙ ∼"
}

blockquote:before {
    content: "“";
    color: #cc2a41;
    font-size: 3.4em;
    position: absolute;
    left: 0.15em;
    line-height: 1em;
}

blockquote .attribution {
    display: flex;
    justify-content: right;
    font-size: 0.8rem;
    line-height: 0.6;
}

/* Sidenotes */
.sidenote {
    font-size: 80%;
    position: relative;
}

.grid {
    display: grid;
}

/* Wide viewport */
@media (min-width: 1366px) {
    .sidenote {
        float: left;
        clear: left;
        margin-left: -23vw;
        text-align: right;

        top: -3rem;
        width: 20vw;
        margin-top: 1rem;
    }
    /* Highlight the sidenote when mouse hovers on the sidenote number in body. */
    .sidenote-number:hover .sidenote {
        background-color: yellow;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 10px;
    }
    .column {
        float: left;
        width: 50.0%;
        padding: 5px;
    }
    .wide {
        width: min(60vw,1366px);
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    .alignright {
        float: right;
        padding-left: 6px;
    }
    .alignleft {
        float: left;
        padding-right: 6px;
    }
}

/* Narrow viewport */
@media (max-width: 1366px) {
    .sidenote {
        float: left;
        text-align: left;

        width: 100%;
        margin: 1rem 0;
        padding-left: 15%;
    }
    .wide {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .column {
        width: 75%;
        padding: 8px;
    }
}

/* Sidenote counter */
body {
    counter-reset: sidenote-counter;
}
.sidenote-number {
    counter-increment: sidenote-counter;
}
/* Counter before the sidenote in the margin. */
.sidenote::before {
    content: counter(sidenote-counter)".";
    position: relative;
    vertical-align: baseline;
    font-size: 0.9em;
    font-weight: bold;
}
/* Counter in the main body. */
.sidenote-number::after {
    content: counter(sidenote-counter);
    vertical-align: super;
    font-size: 0.7em;
    font-weight: bold;
    margin-right: 0.1rem;
    margin-left: -0.2rem;
}

/* Org-glossary links support */
a.org-gls {
    color: unset;
    background-image: none;
    text-decoration-line: underline;
    text-underline-offset: 0.18rem;
    text-decoration-skip: spaces edges;
    text-decoration-style: dotted;
}

/* Aside block to the right */
aside {
    display: inline-block;
    width: 40%;
    padding-left: 0.5rem;
    margin-left: 0.5rem;
    float: right;
    box-shadow: inset 5px 0 5px -5px #cc2a41;
    font-style: italic;
    color: #cc2a41;
}
/* #29627e */
aside > p {
    margin: 0.5rem;
}

/* Color boxes I use often */
.Purple {
text-align: center;
background: #bb90b7;
padding-left: 2px;
padding-right: 2px;
border-radius: 4px;
color: black;
}
.Orange {
text-align: center;
background: #f0ad95;
padding-left: 2px;
padding-right: 2px;
border-radius: 4px;
color: black;
}
.Green {
text-align: center;
background: #a3b09a;
padding-left: 2px;
padding-right: 2px;
border-radius: 4px;
color: black;
}
