body {
    overflow-y: overlay;
}

main {
    margin-top: 2em;
    padding: 0 1em 0 1em;
    max-width: 925px;
    margin-left: auto;
    margin-right: auto;
}

/*
main div {
    border: gray;
    border-style: solid;
    border-width: 1px;
}
*/

main::after {
    clear: both;
    content: "";
    display: table;
}

.bg-dark {
    background-color: #343a40!important
}

.sidebar {
    margin-bottom: 1em;
    font-size: 15px;
}

.author_avatar {
    display: table-cell;
    vertical-align: top;
    width: 48px;
}

.author_avatar img {
    border-radius: 10%;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
}

.author_content {
    display: table-cell;
    vertical-align: top;
    padding-left: 15px;
    padding-right: 25px;
    line-height: 1;
}

.author_content h3, .author_content p {
    margin: 0;
}

/* TODO: add way to see these on small screens */
.author_urls {
    display: none;
}

.author_urls ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.author_urls li {
    white-space: nowrap;
    margin-bottom: 0.5em;
}

.author_urls a {
    display: block;
    margin-bottom: 5px;
    padding-right: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
    color: inherit;
    font-size: 1em;
    text-decoration: none;
}

@media (min-width: 768px) {
    .sidebar {
        width: 134px;
        float: left;
        position: sticky;
        top: 2em;
        padding: 0;
    }

    .page {
        width: 80%;
        float: right;
    }

    .author_avatar {
        display: block;
        width: 100%;
    }

    .author_avatar img {
        width: 100%;
        padding: 5px;
        border: 2px solid #657b83;
    }

    .author_content {
        display: block;
        padding: 0;
        line-height: 22.5px;
    }

    .author_content h3 {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .author_content p {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .author_urls {
        display: block;
    }
}

.table.cv .big_bar div {
    width: 100%;
    text-align: center;
    border-bottom: 9px solid rgb(22%, 45%, 70%); /* from moderncv blue */
    line-height: 0.1em;
    margin: 10px 0 20px;
}

.table.cv .bar div {
    width: 100%;
    text-align: center;
    border-bottom: 9px solid rgb(35%, 70%, 30%); /* from moderncv green */
    line-height: 0.1em;
    margin: 10px 0 20px;
}

.table.cv .table-heading {
    font-size: 1.75em;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: .5rem;
    display: block;
}

.table.cv tbody td, .table.cv th {
    padding: 0.25rem 0.75rem;
    border: none;
}

.table.cv th.big_bar {
    padding: 0.25rem 0;
    width: 244px;
    border: none;
}

.table.cv th.bar {
    padding: 0.25rem 0;
    width: 122px;
    border: none;
}

.table.cv thead {
    color: rgb(35%, 70%, 30%); /* from moderncv green */
}

.table.cv thead a {
    color: rgb(35%, 70%, 30%); /* from moderncv green */
}

.table.cv thead h2 a {
    color: rgb(22%, 45%, 70%); /* from moderncv blue */
}

.table.cv thead h3 a {
    color: rgb(35%, 70%, 30%); /* from moderncv green */
}

.table.cv tbody th {
    font-weight: normal;
    white-space: nowrap;
    text-align: right;
}

.table.cv .bordertop {
    border-top: 2px solid #dee2e6;
}

.table.cv span.experience {
    float: right;
    font-style: italic;
}

.table.cv a {
    color: #657b83;
    text-decoration: none;
}

.table.cv a.black {
    color: rgb(0%, 0%, 0%);
}

.code-toolbar {
    font-size: 12.5px;
}

.code-toolbar pre::-webkit-scrollbar-track
{
	background-color: #002b36;
}

.code-toolbar pre::-webkit-scrollbar
{
	width: 3px;
	background-color: #002b36;
}

.code-toolbar pre::-webkit-scrollbar-thumb
{
	background-color: #839496;
}

.code-toolbar pre {
    height: 90vh;
}

.accordion button a {
    text-decoration: none;
    color: inherit;
    margin-right: 1em;
}

.accordion-code .accordion-body {
    padding: 16px 5px;
}

.col-12 img {
  opacity: 0.7;
  cursor: pointer;
  margin: 2rem;
  width: 100%;
}

.col-12 img:hover {
  opacity: 1;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.lightbox-caption a {
    text-decoration: none;
    color: inherit;
}

.row a {
    position: relative;
}

.ribbon-behind, .ribbon {
    position: absolute;
    right: -3.8px;
    bottom: -3.8px;
    z-index: 1;
    overflow: hidden;
    width: 66px;
    height: 66px;
    text-align: right;
}

.ribbon-behind {
    z-index: -1;
}

.ribbon-behind span,
.ribbon span {
    font-size: 0.8rem;
    transform: rotate(-45deg);
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    line-height: 20px;
    width: 84px;
    height: 20px;
    display: block;
    background: #9bc90d;
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
    position: absolute;
    bottom: 12.8px;
    right: -19.2px;
}

.ribbon-behind span::before {
   content: '';
   position: absolute; 
   left: 0px; bottom: 100%;
   z-index: -1;
   border: 3px solid #79A70A;
}
.ribbon-behind span::after {
   content: '';
   position: absolute; 
   right: 0%; bottom: 100%;
   z-index: -1;
   border: 3px solid #79A70A;
}

.ribbon-top-behind, .ribbon-top {
    position: absolute;
    left: -3.8px;
    top: -3.8px;
    z-index: 1;
    overflow: hidden;
    width: 66px;
    height: 66px;
    text-align: right;
}

.ribbon-top-behind {
    z-index: -1;
}

.ribbon-top-behind span,
.ribbon-top span {
    font-size: 0.8rem;
    transform: rotate(-45deg);
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    line-height: 20px;
    width: 84px;
    height: 20px;
    display: block;
    background: #C30707;
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
    position: absolute;
    top: 12.8px;
    left: -19.2px;
}

.ribbon-top-behind span::before {
   content: '';
   position: absolute; 
   left: 0px; top: 100%;
   z-index: -1;
   border: 3px solid #8F0808;
}
.ribbon-top-behind span::after {
   content: '';
   position: absolute; 
   right: 0%; top: 100%;
   z-index: -1;
   border: 3px solid #8F0808;
}

.m-auto-left {
    margin: auto;
    margin-right: 50%;
}

.m-auto-right {
    margin: auto;
    margin-left: 50%;
}

.mtg-battle {
    transform: rotate(90deg) scale(0.85);
}

.mtg-battle-back {
    transform: scale(0.85);
}

.mtg-battle.m-auto-left {
    margin-right: 47%;
}

.mtg-battle-back.m-auto-right {
    margin-left: 54%;
}
