:root {
    --editor-highlight: rgba(0, 253, 253, 0.464);
    --editable-outline: rgba(0, 178, 178, 0.3);
    --editable-outline-focused: rgb(214, 0, 36);
    --editor: rgb(0, 178, 178);
    --editor-dirty: rgb(214, 0, 36);
    --editor-code: rgb(255, 106, 106);
    --editor-highlight-2: rgb(0, 182, 164);
    --etb-link-bg-hover: #9fe1ee;
    --etb-link-bg-hover-dark: #007982;
    --etb-callout-bg: #e5e5e5;
    --etb-callout-border: #cbcbcb;
    --etb-callout-header-bg: #cccccc;
    --etb-callout-header-bg-good: #9feebb;
    --etb-callout-header-bg-bad: #ee9f9f;
    --etb-callout-header-bg-objectives: #9fe1ee;
    --etb-callout-header-bg-exercises: #c99fee;
    --etb-callout-header-bg-info: #c4ee9f;
    --etb-callout-bg-dark: #484848;
    --etb-callout-border-dark: #545454;
    --etb-callout-header-bg-dark: #9fe1ee;
    --bg-rainbow: linear-gradient(90deg, #00f5ac, #f5b302, #00b8f5, #f57c00, #3585a0);
    --bg-rainbow-sm: linear-gradient(90deg, #3585a0, #00b8f5);
    --border-rainbow: #00b8f5;
    --font-size: 18px;
    --editor-tray-bg: #3d3f42;
    --editor-tray-line: #858b93;
    --editor-highlight: #26b1cd;
    --editor-highlight-dark: #0f4651;
    --etb-theme1: #00f5ac;
    --etb-theme1-dark: #017b55;
    --etb-theme2: #f5b302;
    --etb-theme2-dark: #7b5a01;
    --etb-theme3: #00b8f5;
    --etb-theme3-dark: #015c7b;
    --etb-theme4: #f57c00;
    --etb-theme4-dark: #7b3e01;
    --etb-theme5: #3585a0;
    --etb-theme5-dark: #1b434f;
    --etb-cyan: #10a6c4;
    --etb-teal: #199d75;
    font-synthesis-style: auto;
    font-synthesis-weight: none;
}

body {
    font-family: Roboto, Arial, sans-serif;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  color: #000;
  padding: 8px 16px;
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

@font-face {
    font-family: Roboto;
    src: url(/styles/fonts/Roboto/Roboto-Regular.ttf)
}

@font-face {
    font-family: Roboto-Bold;
    src: url(/styles/fonts/Roboto/Roboto-Bold.ttf)
}

@font-face {
    font-family: Roboto-Black;
    src: url(/styles/fonts/Roboto/Roboto-Black.ttf)
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Roboto-Bold;
}

h2 {
    margin-top: 1em;
    margin-bottom: .6em;
}

.fw-bold {
    font-family: Roboto-Bold;
}

strong {
    font-family: Roboto-Black;
}

[data-index-term],
[data-glossary-term-id] {
    cursor: pointer;
    font-family: Roboto-Bold;
}

div#super-tray {
    max-width: 80px;
}

[data-pulse] {
    animation: pulse 1s ease;
}

@keyframes pulse {
    0% {
        transform: scaleX(1) scaleY(1);
        background-color: var(--editor-highlight);
    }

    50% {
        transform: scaleX(1.01) scaleY(1.01);
    }

    100% {
        transform: scaleX(1) scaleY(1);
        background-color: none;
    }
}

div#book-nav {
    max-width: 300px;
    width: 300px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
}

div#editor-tray {
    background-color: var(--editor-tray-bg);
    color: white;
    position: fixed;
    right: 60px;
    top: 0;
    width: 400px;
    max-width: 400px;
    height: 100%;

    [contenteditable] {
        outline: none;
    }

    #code-box-parents button {
        font-size: 14px;
    }

    button.btn {
        color: white;
    }

    button.btn.active {
        border-color: var(--editor-highlight) !important;
    }

    button.btn:hover {
        border-color: var(--editor-highlight) !important;
    }

    div#editor-tray-snippets {
        button.btn {
            border: 1px var(--editor-tray-line) solid;
        }
    }

    div#editor-tray-context-menu {
        div#context-menu-contents {
            div.context-menu-block {
                margin: 0;
                border-left: 1px var(--editor-tray-line) solid;

                div.context-menu-block {
                    padding: 0 0 0 4px;
                    margin: 0 0 0 8px;
                }

                div.context-menu-block-contents {
                    padding: 8px 12px;
                }

                div.context-menu-block-contents:empty {
                    display: none;
                }

                div.input-group {
                    span.input-group-text {
                        background-color: transparent;
                        border-color: var(--editor-tray-line);
                        color: white;
                    }

                    button {
                        border-color: var(--editor-tray-line);
                    }

                    button.active {
                        background-color: var(--editor-highlight);

                    }
                }

            }

            div.context-menu-block:first-child {
                border-left: none;
            }
        }
    }
}

div#editor-tray-controls {
    position: fixed;
    right: 0;
    top: 0;
    width: 60px;
    max-width: 60px;
    height: 100%;

    button {
        color: white;
        border: 0;
        background-color: transparent;
        font-size: 34px;
        display: block;
        width: 100%;
        padding: 8px 0 8px 0;
    }

    button.active {
        background-color: var(--editor-tray-bg);
    }
}

#author-badges img {
    max-height: 60px;
}

#searchButton {
    border: 1px var(--border-rainbow) solid;
}

#searchShortcut {
    font-size: 12px;
    background-color: #3585a0;
}

#searchShortcut::before {
    padding-right: 4px;
}

#badges img {
    max-height: 80px;
}

img.bio-pic {
    max-height: 300px;
    max-width: 300px;
}

.copyright img {
    min-height: 40px;
    max-height: 40px;
}

.placeholder {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-top: 4px;
    margin-bottom: 4px;
}

#user-link img {
    max-height: 30px;
}

.keyword {
    font-size: .8em;
}

.footer-heading::before,
a.dropdown-item::before,
.icon-text-link::before,
button.dropdown-item::before,
footer a::before,
.theme-menu-button::before {
    padding-right: 12px;
}

modal-settings table#entity-settings th[colspan] {
    font-size: 1.4em;
    font-weight: bolder;
    background: var(--bs-light);
    color: var(--bs-dark);
    text-align: center;
    border-radius: 4px;
    padding: 4px 8px 4px 8px;
}

.bi-logo-etb::before {
    content: url('../images/custom_icons/logo-etb.svg');
    width: 1em;
    height: 1em;
}

.bi-logo-etb-simple::before {
    content: url('../images/custom_icons/logo-etb-simple.svg');
    width: 1em;
    height: 1em;
}

.bi-plus-etb::before {
    content: url('../images/custom_icons/plus-etb.svg');
    width: 1em;
    height: 1em;
}

.bi-google-scholar::before {
    content: url('../images/custom_icons/gscholar.svg');
    width: 1em;
    height: 1em;
}

.bi-size-xs::before {
    content: url('../images/custom_icons/size-xs.svg');
    width: 1em;
    height: 1em;
}

.bi-size-sm::before {
    content: url('../images/custom_icons/size-sm.svg');
    width: 1em;
    height: 1em;
}

.bi-size-md::before {
    content: url('../images/custom_icons/size-md.svg');
    width: 1em;
    height: 1em;
}

.bi-size-lg::before {
    content: url('../images/custom_icons/size-lg.svg');
    width: 1em;
    height: 1em;
}

.bi-size-xl::before {
    content: url('../images/custom_icons/size-xl.svg');
    width: 1em;
    height: 1em;
}

.bi-image-center::before {
    content: url('../images/custom_icons/image-center.svg');
    width: 1em;
    height: 1em;
}

.bi-image-full::before {
    content: url('../images/custom_icons/image-full.svg');
    width: 1em;
    height: 1em;
}

.bi-image-left::before {
    content: url('../images/custom_icons/image-left.svg');
    width: 1em;
    height: 1em;
}

.bi-image-right::before {
    content: url('../images/custom_icons/image-right.svg');
    width: 1em;
    height: 1em;
}

.bi-image-left-sm::before {
    content: url('../images/custom_icons/image-left-sm.svg');
    width: 1em;
    height: 1em;
}

.bi-image-right-sm::before {
    content: url('../images/custom_icons/image-right-sm.svg');
    width: 1em;
    height: 1em;
}

.bi-heading-down::before {
    content: url('../images/custom_icons/heading-down.svg');
    width: 1em;
    height: 1em;
}

.bi-heading-up::before {
    content: url('../images/custom_icons/heading-up.svg');
    width: 1em;
    height: 1em;
}

.bi-byu::before {
    content: url('../images/custom_icons/byu.svg');
    width: 1em;
    height: 1em;
}

.btn-byu {
    background-color: #002255;
    color: #ffffff;
}

.btn-byu:hover {
    background-color: #003688;
    color: #ffffff;
}

.bi-ensign::before {
    content: url('../images/custom_icons/ensign.svg');
    width: 1em;
    height: 1em;
}

.btn-ensign {
    background-color: #006241;
    color: #ffffff;
}

.btn-ensign:hover {
    background-color: #007e54;
    color: #ffffff;
}

.bi-orcid::before {
    content: url('../images/custom_icons/orcid.svg');
    width: 1em;
    height: 1em;
}

.btn-orcid {
    background-color: #A6CE39;
    color: #ffffff;
}

.btn-orcid:hover {
    background-color: #80a123;
    color: #ffffff;
}

.btn-edit,
.btn-edit:focus,
.btn-edit:visited,
.btn-edit:active {
    background-color: var(--etb-theme5) !important;
    color: #ffffff;
}

.btn-edit:hover {
    background-color: var(--etb-theme5-dark) !important;
    color: #ffffff;
}

.btn-edit2 {
    background-color: var(--bs-cyan);
    color: #ffffff;
}

.btn-edit:hover {
    background-color: #9d1f5e;
    color: #ffffff;
}

.bi-scopus::before {
    content: url('../images/custom_icons/scopus.svg');
    width: 1em;
    height: 1em;
}

.bi-researchgate::before {
    content: url('../images/custom_icons/researchgate.svg');
    width: 1em;
    height: 1em;
}

#main-upper .btn {
    border-radius: 0;
}

.vr {
    margin-left: 8px;
    margin-right: 8px;
    border-left: 1px gray solid;
}

.expander {
    color: var(--bs-primary) !important;
    border-radius: 0;
}

.expander::before {
    transition: transform 0.5s ease;
}

.rotate-icon::before {
    transform: rotate(-180deg);
}

.editable-element {
    border-bottom: 2px var(--editable-outline) dotted;
    padding: 8px 12px;
    outline: none;
}

[contenteditable]:empty::before,
.editable-element:empty::before {
    content: attr(placeholder);
}

.editable-element:focus,
.editable-element[data-dirty] {
    border-bottom-color: var(--editable-outline-focused);
}

.editable-element[data-format="code"] {
    background: #e5e5e5;
    color: #333333 !important;
}

.editable-element[data-format="code"] .highlight {
    color: var(--editor-highlight) !important;
}

.editable-element[data-format="code"] .highlight .highlight {
    color: var(--editor-highlight-2) !important;
}

.editable-element-unsaved {
    border-color: var(--editor-dirty);
}

.editor-code {
    color: var(--editor-code);
}

table thead tr th {
    border-bottom-color: rgb(162, 166, 170);
}

table[data-etb-role="entity-options"] * {
    font-size: 14px;
    border-radius: 0;
}

table[data-etb-role="entity-options"] tr th {
    background: var(--editor);
    color: white;
    padding: 4px 8px 4px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    min-width: 120px;
}

.spinner-xl {
    width: 10rem;
    height: 10rem;
    border-width: 1em;
}

#page-container {
    #page-contents {
        margin-top: 2em;
        margin-bottom: 2em;
    }
}

#toast-container {
    z-index: 9999 !important;
}

#chapter-contents {
    font-size: 18px;

    counter-reset: footnote-link-counter footnote-counter;

    .table_figure_number {
        font-weight: bold;
        font-family: Roboto-Black;

    }

    .table_figure_title {
        font-style: italic;
    }

    th {
        font-family: Roboto-Black;
        font-weight: bold;
    }

    .table p {
        margin-bottom: 0;
    }
}

#chapter-contents sup.footnote {
    font-size: 0.8em;
    cursor: pointer;
    color: var(--bs-primary);
    padding-left: 0.2em;
    padding-right: 0.2em;
}

#chapter-contents p.footnote {
    padding-left: 3em;
    text-indent: -3em;
    display: block;
    word-wrap: break-word;
    word-break: break-word;
}
#chapter-contents p.footnote::before {
    counter-increment: footnote-counter;
    content: counter(footnote-counter) ". ";
    display: inline;
    cursor: pointer;
}

@media print {
    #main-upper * {
        color: black !important;
    }

    .vh-100 {
        height: auto !important;
    }

    #chapter-links {
        display: none !important;
    }

    .overflow-y-auto,
    .overflow-hidden {
        overflow: visible !important;
    }

    .shadow {
        box-shadow: none !important;
    }

    .fs-6,
    #chapter-contents {
        font-size: 12px !important;
    }

    .fs-5 {
        font-size: 13px !important;
    }

    .fs-4 {
        font-size: 14px !important;
    }

    .fs-3 {
        font-size: 15px !important;
    }

    .fs-2 {
        font-size: 16px !important;
    }

    .fs-1 {
        font-size: 18px !important;
    }
    .collapse {
        display: block !important;
    }
}

.book-nav-link {
    span::after {
        content: '. ';
    }

    span:empty {
        display: none;
    }

    a {
        border-radius: 0;
    }
}

.book-nav-link[data-level="1"],
.chapter-nav-link[data-level="1"] {
    margin-left: 1em;
}

.book-nav-link[data-level="2"],
.chapter-nav-link[data-level="2"] {
    margin-left: 2em;
}

.book-nav-link[data-level="3"],
.chapter-nav-link[data-level="3"] {
    margin-left: 3em;
}

.book-nav-link[data-level="4"],
.chapter-nav-link[data-level="4"] {
    margin-left: 4em;
}

.book-nav-link[data-level="5"],
.chapter-nav-link[data-level="5"] {
    margin-left: 5em;
}

.book-nav-link[data-level="6"],
.chapter-nav-link[data-level="6"] {
    margin-left: 6em;
}

.book-nav-link a.active,
.book-nav-link a:hover,
.chapter-nav-link a.active,
.chapter-nav-link a:hover {
    background-color: var(--bs-primary);
}

a.breadcrumb-item {
    text-decoration: none;
}

.bg-info {
    background-color: var(--etb-link-bg-hover) !important;
    color: black !important;
}

.toc-row a:hover {
    background-color: var(--bs-primary-bg-subtle);
}

#editor-ribbon,
#toc-ribbon {
    background-color: var(--bs-light-bg-subtle);
    border-bottom: 1px var(--bs-secondary-bg-subtle) solid;
    border-top: 1px var(--bs-secondary-bg-subtle) solid;

    .container {
        border-left: 1px var(--bs-secondary-bg-subtle) solid;
        border-right: 1px var(--bs-secondary-bg-subtle) solid;

    }

    button {
        border-radius: 0;
    }
}

[data-type="equation"] {
    margin-top: 1em;
    margin-bottom: 1em;
}

.book-border {
    padding: 8px;
}

.book-border:hover {
    padding: 0;
    border: 8px solid var(--bs-cyan);
}

#main {
    [data-template]::before {
        content: "Loading...";
    }

    [data-template] {
        background: var(--bs-dark-bg-subtle);
        border-radius: .4em;
        padding: 1em 1.4em 1em 1.4em;
        margin: 1em 0 1em 0;
        cursor: wait;
    }

    [contenteditable] {
        outline: none;

        .editor-selected {
            background-color: var(--editor-highlight);
        }

        [data-template]::before {
            content: attr(placeholder);
        }

        [data-type="equation"],
        .equation {
            background-color: var(--bs-teal);
            border: 1px solid;
            padding: 4px 8px;
            min-height: 1.4em;
        }

        [data-type="equation"]::before,
        .equation::before {
            content: "Equation: "
        }

        div.clearfix {
            content: 'Content Break';
            background: var(--bs-cyan);
            color: white;
            text-align: center;
            min-height: 100px;
            line-height: 1em;
            cursor: pointer;
            vertical-align: middle;
        }

        [data-template] {
            content: attr(data-element-name);
            background: var(--bs-teal);
            color: white;
            text-align: center;
            min-height: 100px;
            line-height: 1em;
            cursor: pointer;
            vertical-align: middle;
        }
    }
}

#browse-ribbon {
    i {
        font-size: 40px;
    }

    .active {
        border-color: #00445b !important;
        background-color: #3585a0 !important;
        color: white !important;
    }
}

@media (prefers-reduced-motion: no-preference) {

    .zoom-in {
        transition: transform 0.2s ease-in-out;
    }

    .zoom-in:hover {
        transform: scale(1.25);
        z-index: 9999;
    }

}

.clearfix {
    clear: both;
}

h2,h3,h4,h5,h6 {
    .back-to-top {
        display: none;
    }
}
h2:hover, h3:hover, h4:hover, h5:hover, h6:hover {
    .back-to-top {
        display: inline-block;
    }
}
blockquote {
    margin-left: 3em;
    margin-right: 1em;
    margin-top: 1.4em;
    margin-bottom: 1.4em;
    font-style: italic;
}

#doi:before {
    content: 'DOI: ';
}

#main-nav-left a {
    border-radius: 0;
}

div#main-upper {
    #editor-notes:empty {
        display: none !important;
    }

    #announcement:empty {
        display: none !important;
    }

    #published_year:empty {
        display: none !important;
    }

    #language_id:empty {
        display: none !important;
    }


    #doi:empty {
        display: none !important;
    }

    #isbn:before {
        content: 'ISBN: ';
    }

    #isbn:empty {
        display: none !important;
    }

    #issn:before {
        content: 'ISBN: ';
    }

    #issn:empty {
        display: none !important;
    }
}

div#chapter-container,
div#page-container {
    margin-top: 40px;
    margin-bottom: 80px;

    #chapter-title-container {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    #order-number {
        font-size: 2em;
        font-weight: bolder;
        padding: .4em .8em;
        margin-top: 40px;
        background-color: var(--bs-light-bg-subtle);
        border-color: var(--etb-callout-border);
        border-width: 1px;
        border-style: solid;
        border-radius: 4px;
    }

    .inline-code {
        color: rgb(214, 51, 132);
        font-family: var(--bs-font-monospace);
        font-size: .875em;
    }

    #order-number:empty {
        display: none;
    }

    #abstract_wrapper {
        padding: 4em 4em 4em 4em;
        font-style: italic;
    }

    table {
        max-width: 100%;
    }

    img.img-left {
        float: left;
        margin-left: 0 !important;
    }

    img.img-center {
        margin: auto;
        display: block;
    }

    img.img-right {
        float: right;
        margin-right: 0 !important;
    }

    img.img-sm {
        min-width: 300px;
        max-width: 25%;
    }

    img.img-md {
        min-width: 300px;
        max-width: 50%;
    }

    img.img-lg {
        min-width: 300px;
        max-width: 75%;
    }

    code {
        display: block;
        margin-bottom: 1rem;
    }

    input[data-role="fib"] {
        min-width: 80px;
        margin-left: 4px;
        margin-right: 4px;
        padding-right: calc(1.5em + .75rem);
        background-repeat: no-repeat;
        background-position: right calc(.375em + .1875rem) center;
        background-size: calc(.75em + .375rem) calc(.75em + .375rem);
        border-radius: 4px;
        border-color: var(--bs-border-color);
        margin-top: 4px;
        margin-bottom: 4px;
    }

    input[data-role="fib"].is-invalid {
        border-color: var(--bs-form-invalid-border-color);
        outline-color: var(--bs-form-invalid-border-color);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    }

    input[data-role="fib"].is-valid {
        border-color: var(--bs-form-valid-border-color);
        outline-color: var(--bs-form-valid-border-color);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    }

    #chapter-child-links {
        a {
            background-color: var(--bs-light-bg-subtle);
            border-radius: 0px;
            border-bottom-width: 0px !important;
            padding-left: .8em;
            padding-right: .8em;
        }

        a:first-child {
            border-radius: 8px 8px 0 0;
        }

        a:last-child {
            border-radius: 0 0 8px 8px;
            border-bottom-width: 1px !important;
        }

        a:hover {
            color: white;
            background-color: var(--bs-primary);
        }

        a span {
            margin-right: .4em;
        }

        a span:empty {
            display: none;
        }

        a span::after {
            content: '. ';
        }
    }

    .accordion {
        margin-top: 1em;
        margin-bottom: 2em;
    }

    .accordion-button {
        border: 1px #51bfff solid;
        background-color: #afe1fd;
        padding: .4em .8em;
        background-position: right 1em center;
        background-repeat: no-repeat;
        background-size: 1em;
    }

    .accordion-button.collapsed {}

    .accordion-body {
        border: 1px #51bfff solid;
        border-top: none;
        padding: .8em 1.4em;
    }

    li p {
        margin-bottom: 0;
    }
}

body.tray-active {
    padding-right: 460px !important;
}

body.nav-active {
    padding-left: 300px !important;
}

div#mobile-links {
    position: fixed;
    bottom: 0;
    height: 60px;
    z-index: 1021;
    width: 100%;
}

body.nav-active div#mobile-links {
    width: calc(100% - 300px);
}

body.tray-active div#mobile-links {
    width: calc(100% - 460px);
}

body.tray-active.nav-active div#mobile-links {
    width: calc(100% - 760px);
}

div#audio-player {
    position: fixed;
    bottom: 0px;
    height: 120px;
    z-index: 1021;
    width: 100%;
}

body.nav-active div#audio-player {
    width: calc(100% - 300px);
}

body.tray-active div#audio-player {
    width: calc(100% - 460px);
}

body.tray-active.nav-active div#audio-player {
    width: calc(100% - 760px);
}

.bg-rainbow {
    background: var(--bg-rainbow);
    background-attachment: fixed;
    min-height: 2px;
}

.bg-rainbow-sm {
    background: var(--bg-rainbow-sm);
}

.progress-bar {
    transition: width 0.5s ease;
}

div.callout {
    background-color: var(--etb-callout-bg);
    border-radius: 16px;
    color: black;
    padding: 24px;
    border-color: var(--etb-callout-border);
    border-width: 1px;
    border-style: solid;
    margin: 2em 0;

    h3 {
        border-radius: 0;
    }

    h3:first-child {
        background-color: var(--etb-callout-header-bg);
        color: black;
        border-radius: 16px 16px 0 0;
        padding: 16px 24px;
        margin: -24px -24px 24px -24px;
    }

}

[data-bs-theme="dark"] {
    .toc-row a:hover {
        background-color: var(--bs-primary);
    }

    div.callout {
        background-color: var(--etb-callout-bg-dark);
        color: white;
        border-color: var(--etb-callout-border-dark);

        h2,
        h3,
        h4,
        h5,
        h6 {
            background-color: var(--etb-callout-header-bg-dark);
            color: #222;
        }
    }

    .accordion-button {
        color: black;
    }
}

.code-editor-id {
    color: teal;
}

.reference {
    padding-left: 3em;
    text-indent: -3em;
    display: block;
    word-wrap: break-word;
    word-break: break-word;
}

/* Color helpers */
.teal,
.bi-teal::before {
    color: var(--etb-teal);
}

.pink,
.bi-pink::before {
    color: var(--bs-pink);
}

.orange,
.bi-orange::before {
    color: var(--bs-orange);
}

.blue,
.bi-blue::before {
    color: var(--bs-blue);
}

.green,
.bi-green::before {
    color: var(--bs-green);
}

.yellow,
.bi-yellow::before {
    color: var(--bs-yellow);
}

.purple,
.bi-purple::before {
    color: var(--bs-purple);
}

.red,
.bi-red::before {
    color: var(--bs-red);
}

.cyan,
.bi-cyan::before {
    color: var(--etb-cyan);
}

.gray,
.bi-gray::before {
    color: var(--bs-gray);
}

/* JS Fiddle */
.btn-jsfiddle {
    width: 100%;
    display: flex;
    align-items: center;
    border: 1px #cde7fc solid;
    color: #487aa5;
}

.btn-jsfiddle:hover {
    border-color: #487aa5;
    color: black;
}

.btn-jsfiddle::before {
    content: url('../images/custom_icons/jsfiddle.svg');
    font-family: 'bootstrap-icons';
    margin-right: 1em;
    width: 2em;
}

/* Practice quiz */
.practice_quiz {
    margin-bottom: 1em;
    margin-top: .4em;
}

.pq-multiple-choice {
    padding-top: .4em;
    padding-bottom: .4em;
    margin-top: .4em;
    margin-bottom: .4em;
}

.pq-multiple-choice>p:first-child {
    font-family: Roboto-Black;
}

.pq-active {
    cursor: pointer;
}

[data-click="lightbox"] {
    cursor: zoom-in;
}

[data-etb-pq-value] {
    display: flex;
    align-items: center;
}

[data-etb-pq-value]::before {
    content: "\F584";
    font-family: 'bootstrap-icons';
    margin-right: 1em;
}

[data-pq-clicked][data-etb-pq-value="0"]::before,
[contenteditable] [data-etb-pq-value="0"]::before {
    color: var(--bs-danger);
    content: "\F628";
}

[data-pq-clicked][data-etb-pq-value="0"],
[contenteditable] [data-etb-pq-value="0"] {
    color: var(--bs-danger);
}

[data-pq-clicked][data-etb-pq-value="1"]::before,
[contenteditable] [data-etb-pq-value="1"]::before {
    color: var(--bs-success);
    content: "\F26C";
}

[data-pq-clicked][data-etb-pq-value="1"],
[contenteditable] [data-etb-pq-value="1"] {
    color: var(--bs-success);
}

[data-pq-eliminated]::before {
    color: var(--bs-secondary);
    content: "\F628";
}

[data-pq-eliminated] {
    color: var(--bs-secondary);
}

/* Color picker */
.color-chart {
    display: flex;
}

.color-group {
    width: 15px;
}

.color-block {
    width: 15px;
    height: 15px;
}

.js-color {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

figcaption {
    font-size: .8em;
    opacity: .65;
    margin-top: 1em;
    margin-bottom: 1em;
    font-style: italic;
    margin-right: 2em;
    margin-left: 2em;
}

.caption {
    font-size: .8em;
    opacity: .65;
    margin-top: 1em;
    margin-bottom: 2em;
    font-style: italic;
    margin-right: 2em;
    margin-left: 2em;
    text-align: center;
}

.opacity-hover-100:hover {
    opacity: 1 !important;
}

.bg-purple {
    background-color: var(--bs-purple);
}

.bg-blue {
    background-color: var(--bs-blue);
}

.bg-cyan {
    background-color: var(--etb-cyan);
}

.bg-teal {
    background-color: var(--etb-teal);
}

.bg-red {
    background-color: var(--bs-red);
}