@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100..900&display=swap');

.preview {
    height: 20px;
    width: 65px;
    cursor: zoom-in;
}
line {
    stroke-width:10;
    stroke-linecap: round;
}
.preview text {
    alignment-baseline: middle;
    fill: #1e6ae5;
}
body {
    font-family: "Roboto", sans-serif;
    --puzzle-color: #c7d9ff;
    background-color: oklch(from var(--puzzle-color) 0.95 .007 h);
}
.body-wrap {
    max-width: 820px;
    margin-inline: auto;
    background-color: white;
    padding-inline: 10px;
    position: relative;
}

h1 {
    color: #5f5f5f;
    font-size: 3em;
    margin-bottom:-5px;
    max-width: calc(100% - 35px);
}

h2 {
    color: #5f5f5f;
}

.fa-copy {
    cursor: copy;
}
.dataTable td {
    border-bottom: 1px solid #ddd;
}
.dataTable th {
    border-bottom: 1px solid #bbb;
    border-top: 1px solid #bbb;
}

.dataTable {
   margin-inline: auto;
   max-width: 650px;
}

.subtitle{
    margin-bottom: 10px;
    font-size:1.5em;
    color: #757575;
}
i.fa-solid, i.fa-brands {
    margin-right: 10px;
}
.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: #00000070;
    cursor: pointer;
}

.carousel-indicators { cursor: pointer; }

.overlay-container:hover .overlay {
    opacity: 1;
}
.overlay-container { position: relative }
.overlay-text {
    color: white;
    font-size: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

span.dt-column-title {
    font-weight: 500;
}

.faq-p:not(:last-child){
    margin-bottom: .6em;
}

.print-only { display: none }

@media print {
    .print-only {display: initial}
    #preview_container{ display: none !important }
    .collapse {
        display: block !important;
        height: auto !important;
    }
    body {
        margin: 10px
    }
    .alert {
        display: none;
    }
  . accordion-item {
        break-inside: avoid;
    }
}

.slider-container {
    position: relative;
    height: 40px;
}

.slider-label {
    position: absolute;
    font-size: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    user-select: none;
}

.slider-canvas {
    border-radius:20px;
    width: calc(100% - 25px);
    height: 30px;
    margin-block: 5px;
    margin-left: 25px;
    position: absolute;
}

.color-range {
    position: absolute;
    left: 20px;
    width: calc(100% - 15px);
    -webkit-appearance: none;
    height: 40px;
    background: transparent;
    cursor: pointer;
}

.color-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 35px;
    background: white;
    cursor: pointer;
    border: 2px solid #333;
    border-radius: 5px;
}

.color-range::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 6px; /*? needs different width for same look compared to chrome*/
    height: 35px;
    background: white;
    cursor: pointer;
    border: 2px solid #333;
    border-radius: 5px;
}

.color-output-container {
    padding: 4px 10px;
    margin: 1px solid;
    border: 1px solid grey;
    border-radius: 6px;
    margin-bottom: 8px;
}

.color-output-container > *:not(:last-child) {
    margin-right: 10px;
}

.dropdown-toggle::after {
    display: none;
}

.burger-bar {
    width: 22px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
}

.dropdown-toggle {
    outline: 1px solid;
    padding: 2px 5px;
}

button:focus:not(:focus-visible) {
    outline: 1px solid;
}

.nav-dropdown {
    position: absolute; right: 10px; top: 10px
}

h3 {
    color: #5f5f5f;
}

@media (prefers-color-scheme: dark) {
    body {
        color: #ccc;
        background: #050505;
        --bs-accordion-bg: black;
        --bs-accordion-btn-color: #d9d9d9;
        --bs-accordion-color: #d1d1d1;
        --bs-body-bg: #272727;
        --bs-code-color: oklch(0.8 0.21 355.49 / 1);
    }
    .accordion {
        --bs-accordion-bg: black;
        --bs-accordion-btn-color: #d9d9d9;
        --bs-accordion-color: #d1d1d1;
        --bs-accordion-active-bg: #333;
        --bs-accordion-active-color: #ddd;
    }
    .body-wrap {
        background: #191919;
    }
    h1,
    h2,
    h3 {
        color: oklch(0.79 0.010 170.66 / 1);
    }
    .subtitle {
        color: #aaa;
    }
    a {
        color: rgb(151 193 255)
    }
    .btn-primary {
        --bs-btn-bg: #285493;
        --bs-btn-border-color: #416dad;
    }
}

