:root {
    --color-white: #ffffff;
    --color-nav: rgba(0, 0, 0, 0.5);
    --color-black: #000;
    --color-border: #ebeaeb;
    --color-body: #fff;
    --card-bg: var(--color-white);
    --card-bg-support: #eee;
    --box-shadow: 0 0 30px 25px rgba(72, 76, 108, .1);
    --box-shadow-two: 0 0.5em 1em -0.125em rgba(10, 10, 10, .1), 0 0 0 1px rgba(10, 10, 10, .02);
    --box-shadow-three: 0 10px 30px rgba(0, 0, 0, 0.1);
    --color-logo: var(--color-black);
    --post-author-bg: #f6f6f6f6;
    --color-section-bg: #f6f6f6f6;
    --color-white-smoke: #f6f6f6f6;
    --color-table: var(--color-black);
    --table-thead-bg: var(--ghost-accent-color);
    --color-banner-bg: #f6f6f6f6;
    --table-body-bg: rgb(252, 252, 252);
    --table-body-bg-even: white;
    --color-light: #f6f6f6f6;
    --color-light-dark: #1A1A1A;
    --color-light-gray: #f6f6f6f6;
    --color-border-bottom: #f6f6f6f6;
    --bg-black: #101B3B;
    --bg-code-wrapper: #f6f6f6f6;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --color-primary: #4ea8f1;
    --color-primary-bg: var(--color-primary);
    --color-heading: #091e42;
    --color-text: #6d6e71;
    --color-code-bg: #242933;
}
html {
    scroll-padding-top: 90px; /* height of the sticky header */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-body);
    color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
h7,
h8 {
    color: #1A1A1A;
}
h1>a,
h2>a,
h3>a,
h4>a,
h5>a,
h6>a,
h7>a,
h8>a {
    color: #1A1A1A;
    text-decoration: none;
}

h1, h2, h3 {
    margin-bottom: 30px;
}

nav.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1020;
    padding: 20px 0;
}

nav.navbar .navbar-content {
    max-width: 1300px;
}

/* make navbar smaller on desktop */
@media (min-width: 1199.98px) {
    nav.navbar>.container-fluid {
        width: 70%;
        font-size: 18px;
    }
}

.nav-logo {
    margin: auto 20px;
}

/* fix bootstrap dropdown to hover */
.dropdown:hover>.dropdown-menu {
    display: block;
}

.dropdown>.dropdown-toggle:active {
    /*Without this, clicking will make it sticky*/
    pointer-events: none;
}

.dropdown-menu-right {
    left: auto;
    right: 0;
}

/* tutorial styling */
.example {
    border: 1px solid lightgrey;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.example h4 {
    text-align: center;
    margin: 10px 0px 30px 0px;
}

.example h1 {
    text-align: center;
}

@media (min-width: 576px) {
    .main {
        margin: 20px;
    }
}


.main {
    margin: 0;
    box-shadow: var(--box-shadow-two);
    border-radius: 25px;
    margin-bottom: 30px;
    margin-top: 10px;
    padding: 30px;
}

.tutorial img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.tutorial code {
    border-radius: 0 10px 10px 10px;
}

.main {
    max-width: 100%;
}

.app {
    margin-left: 20px;
    margin: 20px auto;
}

.tutorial {
    max-width: 90ch;
    padding: 20px;
    margin: 20px auto;
}

.tutorial.hidden {
    display: none;
    /* visibility: hidden; */
}
.tutorial .hidden {
    display: none;
}

@media (min-width: 576px) {
    .toggle-tutorial {
        transform: rotate(-90deg) translateY(50%);
    }
}
.toggle-tutorial {
    transform: rotate(-90deg) translateY(50%) scale(0.75);
    transform-origin: top left;
    left: -10px;
    top: 250px;
    float: left;
    max-width: 12ch;
    padding: 5px;
    border-radius: 10px;
    background-color: #4ea8f1;
    color: white;
    border: none;
    position: absolute;
    font-weight: 700;
    letter-spacing: 0.05rem;
}

.toggle-tutorial::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}


h1,
.tutorial h2,
.tutorial h3 {
    text-align: center;
}

.title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    grid-gap: 10px;
}

.title h1 {
    grid-column: 2;
}
.title a {
    align-self: start;
    text-decoration: none;
    padding: 5px;
    max-width: 12ch;
    text-align: center;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.app h1,
.app h2,
.app h3 {
    text-align: center;
}

.tutorial h2 {
    margin-top: 30px;
}

.tutorial p,
.tutorial ol {
    color: #6d6e71;
    line-height: calc(1ex / 0.32);
}

.tutorial img.big {
    margin-left: calc(min(calc((min(100ch, 100vw) - 80ch) / 2 * -1), -20px));
    max-width: calc(min(100ch, calc(100vw - 20px)));
    width: 100vw;
}

.info:before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-exclamation-diamond' viewBox='0 0 16 16'%3E%3Cpath d='M6.95.435c.58-.58 1.52-.58 2.1 0l6.515 6.516c.58.58.58 1.519 0 2.098L9.05 15.565c-.58.58-1.519.58-2.098 0L.435 9.05a1.482 1.482 0 0 1 0-2.098L6.95.435zm1.4.7a.495.495 0 0 0-.7 0L1.134 7.65a.495.495 0 0 0 0 .7l6.516 6.516a.495.495 0 0 0 .7 0l6.516-6.516a.495.495 0 0 0 0-.7L8.35 1.134z'/%3E%3Cpath d='M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z'/%3E%3C/svg%3E");
    display: inline;
}

.info p {
    margin: 0;
    display: inline;
}

.info {
    background: aliceblue;
    padding: 15px;
    border-radius: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary-bg);
}

div.player-link {
    font-size: smaller;
    text-align: right;
    margin: 5px;
    padding: none;
}

div.player-link a {
    text-decoration: none;
}

div.player-link a:before {
    content: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg class='iconify iconify--twemoji' width='18px' height='18px' aria-hidden='true' role='img' version='1.1' viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36 32a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h28a4 4 0 0 1 4 4v28z' fill='%234ea8f1'/%3E%3Cpath d='M8 7l22 11L8 29z' fill='%23FFF'/%3E%3C/svg%3E");
    margin-right: 0.5ch;
    pointer-events: all;
    text-align: center;
    vertical-align: middle;
}

/* PRODUCT previews */
.row.product {
    margin: 20px;
    box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, .1), 0 0 0 1px rgba(10, 10, 10, .02);
    border-radius: 15px;
    padding: 10px;
}

.row.product .img-thumbnail {
    border-radius: 15px;
    border: none;
}

.product h3>a {
    text-decoration: none;
}

.product .price::before {
    content: "$";
}

/* details fix */
details summary {
    cursor: pointer;
}

details summary>* {
    display: inline;
}

.tutorial details summary {
    cursor: pointer;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;

}

.tutorial details.heading summary {
    text-align: center;
    font-size: xx-large;
}

/* PRODUCT */
img.img-responsive {
    max-width: 100%;
}

/* .tutorial hr, .tutorial p, .tutorial h1, .tutorial h2, .tutorial h3, .tutorial h4 {
    max-width: 70ch;
    margin-left: auto !important;
    margin-right: auto !important;
}
.tutorial>*{
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100ch;
} */

/* hover images */
a[data-hover] {
    color: #b9792b;
    text-decoration: none;
}

.hover {
    max-width: 800px;
    display: none;
    position: absolute;
    border: 2px solid lightgrey;
}

/* PRODUCT */

a.variant span.variant-color {
    display: inline-block;
    min-width: 20px;
    min-height: 20px;
    margin-right: 5px;
    vertical-align: middle;
    border: 1px solid lightgrey;
}

a.variant.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

img.product-img.active {
    max-width: 100%;
    margin: 0 auto;
    order: -1;
}

img.product-img {
    margin-top: 10px;
    max-width: 100px;
}

.highlight {
    background: var(--color-code-bg);
    padding: 20px;
    border-radius: 10px;
}

.highlight pre {
    margin-bottom: 0;
}

/* ------------------ TABS ------------------------- */

.tabs {
    margin-bottom: 20px;
}
.tabs ::-webkit-scrollbar 
{
    width: 0px;
}

.tabs>div.active[data-tab] {
    color: white;
    background: var(--color-code-bg);
    border: 1px solid #2e3440;
    border-bottom: none;
}

.tabs>div[data-tab] {
    cursor: pointer;
    background: white;
    color: #2e3440;
    display: inline-block;
    border-bottom: none;
    margin: 0;
    padding: 5px 20px;
    border-radius: 5px 5px 0px 0px;
}

.tabs>div.active:not([data-tab]) {
    display: block;
}

.tabs>div:not([data-tab]) {
    margin: 0;
    display: none;
    background: var(--color-code-bg);
    border: 1px solid var(--color-code-bg);
    border-radius: 0 10px 10px 10px;
    color: white;
}

div.section-cards h3{
    margin-top:10px;
    padding: 5px;
}

div.article-cards h3 {
    font-size: 22px;
}

div.tool-cards {
    margin-bottom: 20px;
}

a.card {
    text-decoration: none;
    color: var(--color-text);
}
a.card:hover {
    border-color: var(--color-primary);
}

a.card img {
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 0;
    margin-top: 0;
}

a.card .card-body {
    padding-top: 0;
}
