.center {
    text-align: center;
}

.wrap h3>p {
    margin-bottom: 0;
}

.font-italic {
    font-style: italic;
}

.font-weight-bold {
    font-weight: bold;
}

.font-strike {
    text-decoration: line-through;
}

.font-smallcaps {
    font-variant: small-caps;
    font-family: Verdana;
}

.font-serif-italic {
    font-family: "serif";
    font-style: italic;
}

.wrap h3 {
    margin-bottom: 1rem;
    border-left: 10px solid #005ecb;
    border-bottom: 3px solid #005ecb;
    padding-bottom: 5px;
    padding-left: 10px;
    color: #005ecb;
    padding-top: 5px;
}

/* Warning */

.warning {
    font-family: 'Source Code Pro', 'Noto Sans KR', monospace;
    background-color: rgba(252, 222, 199, 1);
    border: 1px solid rgb(254, 104, 67);
    padding: 10px;
    font-size: 0.75em;
    margin-bottom: 15px;
}

.warning-text {
    font-size: 1em !important;
}

.warning p {
    margin-top: 0;
    margin-bottom: 0;
}

.warning-text a {
    color: rgb(247, 22, 22);
    font-weight: bold;
}

.info {
    font-family: 'Source Code Pro', 'Noto Sans KR', monospace;
    background-color: rgb(231, 253, 181);
    border: 1px solid rgb(159, 211, 49);
    padding: 15px;
    font-size: 1em;
    color: #404040;
    border-radius: 4px;
}

.info p {
    margin-bottom: 0;
}

pre.info-term {
    font-family: 'Source Code Pro', monospace;
    color: #33ff33;
    background-color: #2d2a2e;
    border: 1px solid #2d2a2e;
    font-size: 15px;
    border-radius: 8px;
}

pre.info-verb {
    font-family: 'Source Code Pro', monospace;
    color: whitesmoke;
    background-color: #2d2a2e;
    border: 1px solid #2d2a2e;
    font-size: 15px;
    border-radius: 8px;
}

.compiler-warning-title {
    background-color: #f57a6e;
    margin-bottom: 0px;
    color: white;
    padding: 8px 0px 8px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: bold;
}

.compiler-warning-title i {
    padding-right: 5px;
}

.compiler-warning {
    background-color : #fdf3f2;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.lec-info-title {
    background-color: #24b92f;
    margin-bottom: 0px;
    color: white;
    padding: 8px 0px 8px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: bold;
}

.lec-info-title i {
    padding-right: 5px;
}

.lec-info {
    background-color : #f0fde8;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-bottom: 10px;
    padding: 10px;
}


.lec-warning {
    background-color:  #fdf3f2;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-bottom: 10px;
    padding: 10px;
}

.exec-preview {
    font-family: 'Source Code Pro', 'Noto Sans KR', monospace;
    background-color: #2d2a2e;
    border: 1px solid #2d2a2e;
    color: white;
    padding: 10px;
    font-size: 0.9em;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.exec-preview-title {
    margin-bottom: 0px;
    margin-top: 5px;
    padding: 8px 0px 8px 15px;
    background-color: #1b6ef3;
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.edit {
    margin-left: auto;
    margin-right: 3px;
    margin-top: 4px;
    float: right;
    margin-top: 4px;
    background: #6b6464 linear-gradient(to bottom, #bbb7b7, #6b6464);
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    transition: background-position 0.1s linear;
    color: white;
    padding: 7px 20px 7px 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
}

.plain-code {
    overflow-y: scroll!important;
}

.exec-result {
    background-color: black;
    color: white;
    margin-top: 0px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.exec-result-title {
    margin-bottom: 0px;
    margin-top: 10px;
    padding-bottom: 8px;
    padding-top: 8px;
    padding-left: 15px;
    font-size: 0.95em;
    background-color: #e8e8e8;
    color: #101010;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.compile-error-title {
    margin-left: 10px;
    color: red;
    font-size: 0.7em;
}

.run-success-title {
    margin-left: 10px;
    color: green;
    font-size: 0.7em;
}

.compiler-error-line {
    background: lightcoral;
    width: 8px !important;
    left: 3px;
}

.button-group {
    overflow: hidden;
    display: flex;
    flex-direction: row;
    margin-bottom: 5px;
    padding-bottom: 10px;
}

.stdin {
    flex: 2;
    margin-right: 10px;
    margin-top: 5px;
}

.stdin::placeholder {
    padding-left: 10px;
}

.stdin-label {
    margin-top: 10px;
    margin-right: 10px;
    font-size: 0.8em;
    color: black;
}

.run {
    margin-top: 4px;
    background: #51a351 linear-gradient(to bottom, #62c462, #51a351);
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    transition: background-position 0.1s linear;
    color: white;
    padding: 7px 20px 7px 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
}

.monaco-container {
    margin-top: 20px;
}

@media (max-width: 48em) {
    #open-sidebar {
        position: absolute;
        top: 10px;
        left: 10px;
        font-size: 1.5em;
        display: none;
        z-index: 100;
    }
}

@media (min-width: 49em) {
    #open-sidebar {
        position: absolute;
        top: 35px;
        left: 20px;
        font-size: 1.5em;
        display: none;
        z-index: 100;
    }
}

#open-sidebar-btn {
    cursor: pointer;
}

.page-nav-btns {
    display: flex;
    max-width: 46rem;
    margin-right: auto;
    margin-top: 40px;
    padding-left: 1em;
}

.page-nav-btns p {
    text-align: center;
    margin-top: 0;
}

.page-nav-btns p:first-of-type {
    margin-bottom: 5px;
}

p.nav-page-title {
    font-size: 0.7em;
    font-weight: lighter;
    margin-bottom: 0;
    color: #515151;
}

.page-btn-common {
    flex: 1;
    font-size: 1em;
    padding: 15px 25px;
    background-color: white;
    border: 1px solid #dddddd;
    font-weight: bold;
    cursor: pointer;
    color: black;
}

.page-btn-common:hover {
    color: white;
    background-color: #0085a1;
    border: 1px solid #0085a1;
    text-decoration: none;
}

.page-btn-common:hover p {
    color: white;
}

.prev-page-btn {
    margin-left: 5%;
    margin-right: 5%;
}

.next-page-btn {
    margin-left: auto;
    margin-right: 5%;
}

thead>tr {
    white-space: nowrap;
    text-align: center;
    font-weight: bold;
    background-color: #cccccc;
}

table p {
    margin-bottom: 0;
}

h2.ref-header {
    font-family: "Source Code Pro", 'Noto Sans KR', monospace;
    font-size: 1.8rem;
    border-bottom: 5px solid rgb(232, 232, 232);
    padding-bottom: 4px;
    position: relative;
}

h2.ref-header::before {
    position: absolute;
    background: black;
    height: 5px;
    content: '';
    width: 20%;
    bottom: -5px;
    left: 0;
}

h3.lecture-header {
    border: none;
    font-size: 1.2em;
    padding: 0;
    margin-bottom: 3px;
    color: #ea5e5e;
}

h3.lecture-header+p {
    margin-left: 10px;
}

.content-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.chroma {
    font-family: 'Source Code Pro', 'Noto Sans KR', monospace;
    font-size: 13px;
    line-height: 20px;
    border: 1px solid black;
    background: #2d2a2e;
    color: white;
    overflow-x: auto!important;
    word-wrap: normal;
    white-space: pre;
}

@media (max-width: 1453px) {
    .sidenote {
        font-size: smaller;
        border-top: 1px solid #e6e6e6;
        border-bottom: 1px solid #e6e6e6;
        padding-top: 10px;
        padding-bottom: 10px;
        color: #5e6973;
        margin-bottom: 10px;
    }
}

@media (min-width: 1454px) {
    .sidenote {
        position: absolute;
        left: 780px;
        width: 288px;
        font-size: smaller;
        border-top: 1px solid #e6e6e6;
        border-bottom: 1px solid #e6e6e6;
        padding-top: 10px;
        padding-bottom: 10px;
        color: #5e6973;
    }
}

.shrink-btn {
    background: none;
    border-top: 1px solid black;
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-bottom: none;
    padding-top: 5px;
    padding-bottom: 5px;
    cursor: pointer;
    margin-right: 5px;
}

.inline-note {
    padding: 10px;
    background-color: #f5f5f5;
    font-size:small;
}

.inline-note > p {
    margin: 0;
}

.shrink-btn:hover {
    background: grey;
    color: white;
}

.toc-sidebar {
    list-style: none;
    padding-left: 20px;
}

.toc-sidebar .toc-H2 {
    font-size: 140%;
    font-weight: bold;
}

.toc-sidebar .toc-H3 {
    font-size: 125%;
}

.toc-sidebar .toc-H4 {
    padding-left: 15px;
}

.toc-sidebar li {
    margin-bottom: 7px;
}

.toc-header {
    font-size: 140%;
    margin-left: 20px;
    border-bottom: 1px solid;
    padding-bottom: 2px;
    margin-right: 15px;
    margin-bottom: 5px;
    color: white;
    font-weight: bold;
}

p.quote {
    padding: 0 1em;
    color: #6a737d;
    border-left: 0.25em solid #dfe2e5;
}

a.link-code {
    font-family: "Source Code Pro";
    color: #0645ad;
    font-size: 95%;
}

.adsense-container-top {
    display: inline-block;
    width: 100%;
}

.adsense-content-bottom {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    margin-top: 1rem;
}

@media (max-width: 159px) {
    .adsense-sidebar {
        display: none !important;
    }
}

.adsense-sidebar {
    margin-left: auto;
    margin-right: auto;
    width: 160px;
}

.adsense-column {
    float: left;
    width: 50%;
    margin-bottom: 20px;
}

@media (max-width: 800px) {
    .adsense-column-hideable {
        display: none !important;
    }
    .adsense-column {
        width: 100% !important;
    }
}

@media (max-width: 474px) {
    .btn-text {
        display: none;
    }
    .edit {
        padding: 7px 7px 7px 7px !important;
    }
    .run {
        padding: 7px 7px 7px 7px !important;
    }
}

figcaption {
    text-align: center;
    color: #888888;
}

.hangul_fallback {
    font-family: "Noto Sans KR"!important;
    font-size: 90%;
}

.td-align-center {
    text-align: center;
}

.code-language {
    background: none;
    border-top: 1px solid black;
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-bottom: none;
    padding-top: 8px;
    padding-bottom: 5px;
    margin-right: 5px;
    padding-bottom: 5px;
}

.code-language:hover {
    background: grey;
    color: white;
}

.code-language.python {
    background: #1f7dce;
    color: white;
}

.code-language.cpp {
    background: #f36d1e;
    color: white;
}

.next-lecture-box {
    font-family: 'Noto Sans KR', 'Malgun Gothic';
    background-color: rgba(252, 222, 199, 1);
    border: 1px solid rgb(254, 104, 67);
    padding: 10px;
}

.next-lecture {
    text-align: right;
    margin-top: 15px;
}

.next-lecture>a {
    color: #3c3c3c;
    font-weight: bold;
    font-size: 130%;
}

.lecture-title {
    font-weight: bold;
}

.additional-info > .publish-date {
    font-size: 65%!important;
    padding: 5px;
    color: white;
    background-color: green;
    border-radius: 4px;
}

.additional-info > .view-cnt {
    font-size: 65%!important;
    padding: 5px;
    color: white;
    background-color: #bd4979;
    border-radius: 4px;
}

.lec-summary {
    background: #f6f8f2;
    padding: 10px 10px 5px 10px;
    margin-bottom: 10px;
}

.lec-summary-content {
    font-size: 16px;
    padding-left: 12px;
}

.lec-summary-content p:before {
    content: "»";
    margin-right: 5px;
}

.lec-summary h3 {
    border: none;
    margin-top: 0px;
    margin-bottom: 7px;
    padding-left: 3px;
    font-size: 18px;
    color: rgb(68, 68, 68)
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 20px;
    height: 20px;
    margin: 2px;
    border: 3px solid #454545;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #454545 transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.search-box {
    margin: 1em;
    border: 2px solid #dedede;
}

.cse {
    width: 99%;
}

.search-bar-text {
    margin-top: 10px;
    font-size: 120%;
    font-weight: bolder;
}

.cpp-ref-link a {
    color: #155724;
    font-weight: bold;
}

.cpp-ref-link {
    border: 1px solid transparent;
    padding: 0.75rem 1.25rem;
    background-color: #d4edda;
    border-color: #c3e6cb;
    border-radius: 0.25rem;
    color : #155724;
}

.cpp-lec-introduce {
    border-color : #f5c6cb;
    background-color: #f8d7da;
    border: 1px solid transparent;
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
    color: #721c24;
}

.cpp-lec-introduce a {
    color: #721c24;
    font-weight: bold;
}

li p br {
    display: block;
    content: "";
    margin-top: 11px;
}

/* Tool tip */

.page-tooltip {
    border-bottom: 1px dotted #000;
    text-decoration: none;
}

[data-tooltip] {
    display: inline-block;
    position: relative;
    cursor: help;
}

/* Tooltip styling */
[data-tooltip]:before {
    content: attr(data-tooltip);
    display: none;
    position: absolute;
    background: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 14px;
    line-height: 1.4;
    min-width: 400px;
    text-align: center;
    border-radius: 4px;
}
/* Dynamic horizontal centering */
[data-tooltip-position="top"]:before,
[data-tooltip-position="bottom"]:before {
    left: 50%;
    -ms-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}
/* Dynamic vertical centering */
[data-tooltip-position="right"]:before,
[data-tooltip-position="left"]:before {
    top: 50%;
    -ms-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
[data-tooltip-position="top"]:before {
    bottom: 100%;
    margin-bottom: 6px;
}
[data-tooltip-position="right"]:before {
    left: 100%;
    margin-left: 6px;
}
[data-tooltip-position="bottom"]:before {
    top: 100%;
    margin-top: 6px;
}
[data-tooltip-position="left"]:before {
    right: 100%;
    margin-right: 6px;
}

/* Tooltip arrow styling/placement */
[data-tooltip]:after {
    content: '';
    display: none;
    position: absolute;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
}
/* Dynamic horizontal centering for the tooltip */
[data-tooltip-position="top"]:after,
[data-tooltip-position="bottom"]:after {
    left: 50%;
    margin-left: -6px;
}
/* Dynamic vertical centering for the tooltip */
[data-tooltip-position="right"]:after,
[data-tooltip-position="left"]:after {
    top: 50%;
    margin-top: -6px;
}
[data-tooltip-position="top"]:after {
    bottom: 100%;
    border-width: 6px 6px 0;
    border-top-color: #000;
}
[data-tooltip-position="right"]:after {
    left: 100%;
    border-width: 6px 6px 6px 0;
    border-right-color: #000;
}
[data-tooltip-position="bottom"]:after {
    top: 100%;
    border-width: 0 6px 6px;
    border-bottom-color: #000;
}
[data-tooltip-position="left"]:after {
    right: 100%;
    border-width: 6px 0 6px 6px;
    border-left-color: #000;
}
/* Show the tooltip when hovering */
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
    display: block;
    z-index: 50;
}

.video-container > iframe {
    margin: 0 auto;
    display: block;
    margin-bottom: 30px;
}