@import url('boilerplate.26-11-25.css');
@import url('themes.26-11-25.css');


body, .screen {
    background-color: var(--color-page-background);
    height: 100vh;
    width: 100vw;
    padding: 0px;
    margin: 0px;
    font-family: "gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--color-text2);
}

/* unvisited link */
a:link {
    color: var(--color-link);
}

/* visited link */
a:visited {
    color: var(--color-link);
}

/* mouse over link */
a:hover {
    color: var(--color-link);
}

/* selected link */
a:active {
    color: var(--color-link);
}

.full {
}

.title {
    text-align: center;
    vertical-align: bottom;
    margin: 5px;
    font-size: 28px;
    color: var(--color-page-background);
    white-space: nowrap;
}

.mainframe {
    position: fixed;
    width: 1270px;
    height: 750px;
    background: var(--color-panel-background);
    border-radius: 15px;
    font-family: "gotham", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
    color: var(--color-text);
    margin: 0px;
    padding: 0px;
    top: 50%;
    left: 50%;
    transform-origin: top left;
    background-color: var(--color-panel-background);
    background-image: url(../img/grid.svg);
    background-size: cover;
}

.contentframe {
    width: 1180px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visible {
    display: block;
}

.input[readonly] {
    caret-color: transparent;
    cursor: initial;

    &:focus {
        outline: none;
    }
}

.number {
    background-color: var(--color-input-background);
    font-family: "Abel", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 10px;
    font-size: 60px;
    text-align: center;
    border: none;
    width: 150px;
}

.bit {
    width: 40px;
    caret-color: transparent;
    cursor: pointer;

    &:focus {
        outline: none;
    }
}

.bit[readonly] {
    cursor: initial;
}

.gap {
    width: 50px;
    height: 100%;
    display: inline-block;
}

.symbol {
    height: 80px;
    position: relative;
    top: -50px;
    font-size: 80px;
    line-height: 80px;
}

.bit::-webkit-outer-spin-button,
.bit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

.bit[type=number] {
    -moz-appearance: textfield; /* Firefox */
}

.nibble {
    width: 230px;
}

.denary {
    width: 482px;
}

.nospin::-webkit-outer-spin-button,
.nospin::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

.nospin[type=number] {
    -moz-appearance: textfield; /* Firefox */
}


.right {
    background-color: lightgreen;
}

.fade {
    color: #cccccc;
}

.wrong {

}

.btn {
    color: white;
    text-align: center;
    font-size: 22px;
    padding: 8px;
    background-color: var(--color-page-background);
    border-radius: 10px;
    border-top-left-radius: 10px;
    -webkit-transform: skew(-14deg);
    -ms-transform: skew(-14deg);
    transform: skew(-14deg);
    border: none;
    display: block;
    margin: auto;
    margin-top: 30px;
}

.btn:hover {
    background-color: var(--color-button-hover);
}

.fullscreen {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 0px;
    border: none;
    background: transparent;
    z-index: 1000;
    width: 16px;
    height: 16px;
}

.fullscreen:hover {
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
}

.fullscreenimg {
    width: 100%;
    height: 100%;
}

.copyright {
    position: absolute;
    top: 15px;
    left: 15px;
    bottom: 20px;
    width: 190px;
    height: 85px;
    background-image: url(../img/CnD-logo-dark-inline.svg);
    background-size: contain;
    background-repeat: no-repeat;
}


.topbar {
    position: absolute;
    left: 205px;
    top: 20px;
    height: 35px;
    width: 1020px;
    font-size: 16px;
    padding: 10px;
    background-color: var(--color-page-background);
    border-bottom-right-radius: 10px;
    border-top-left-radius: 10px;
    -webkit-transform: skew(-14deg);
    -ms-transform: skew(-14deg);
    transform: skew(-14deg);
    background-image: linear-gradient(to left, var(--color-contrast-background), rgba(0, 128, 128, 0) 100%);
}

.topbar-table {
    width: 100%;
    border-collapse: collapse;
}

.bartext {
    color: white;
    font-size: 35px;
    line-height: 30px;
    margin: 0px;
}

.data {
    text-align: right;
}


.number-line {
    text-align: center;
    vertical-align: bottom;
    font-size: 16px;
}

.line {
    background-color: black;
    height: 3px;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    margin: 0;
    margin-bottom: 5px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.switchslider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-slider-background);
    -webkit-transition: .4s;
    transition: .4s;
    margin: 0px;
    border: 1px solid var(--color-border);

}

.switchslider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:hover + .switchslider {
    opacity: 1;
}

input:checked + .switchslider {
    background-color: var(--color-slider-on);
}

input:focus + .switchslider {
    box-shadow: 0 0 1px var(--color-panel-background);
}

input:checked + .switchslider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

/* Rounded sliders */
.switchslider.round {
    border-radius: 20px;
}

.switchslider.round:before {
    border-radius: 50%;
}

.slider--input {
    margin: 0;
    display: none;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 18px;
    padding: 2px;
    background: var(--color-slider-on);
    outline: none;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 25px;
    border: 1px solid var(--color-border);
    margin: 5px 5px 5px 0;
}

.slider:hover {
    opacity: 1;
    background: var(--color-slider-hover);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 17px;
    height: 17px;
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
}


.smaller {
    font-size: 20px;
    white-space: nowrap;
}

.tiny {
    font-size: 16px;
    padding-bottom: 10px;
}

.radio_container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    white-space: nowrap;
}

/* Hide the browser's default radio button */
.radio_container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom radio button */
.radio_checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--color-slider-background);
    border-radius: 50%;
    border: 1px solid var(--color-border);
}

/* On mouse-over, add a grey background color */
.radio_container:hover input ~ .radio_checkmark {
    background-color: var(--color-slider-hover);
}

/* When the radio button is checked, add a blue background */
.radio_container input:checked ~ .radio_checkmark {
    background-color: var(--color-slider-on);
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.radio_checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.radio_container input:checked ~ .radio_checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.radio_container .radio_checkmark:after {
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.binary-grid {
    display: grid;
    gap: 0;
    margin: auto;
    border: none;
}

.binary-grid .row {
    display: contents;
    border: none;
}

.binary-grid .cell {
    border: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.binary-grid .cell.th,
.binary-grid .cell.smaller {
    font-weight: bold;
    background: rgba(0, 0, 0, 0);
    text-align: center;
    display: flex;
    align-items: center; /* vertical centering */
}

.binary-grid .gap {
    background: transparent;
    font-size: 16px;
}

.binary-grid .line {
    height: 6px;
    background: #000;
}

.binary-grid .point {
    padding: 0;
    margin: 0;
    text-align: center;
    position: absolute;
    top: -20px;
    right: -7px;
    z-index: 1000;
    line-height: 80px;
    height: 80px;
    font-size: 80px;
}

.binary-grid .marker {
    color: red;
    z-index: 700 !important;
}

.options-grid {
    display: grid;
    gap: 0;
    margin: auto;
    border: none;
    grid-template-columns: min-content min-content min-content min-content; /* adjust width as needed */

}


.options-grid .row {
    display: contents;
    border: none;
}

.options-grid .cell {
    border: none;
    box-sizing: border-box;
    margin: 5px;
    padding: 0;
    line-height: 22px;
}

.span-2 {
    grid-column: span 2;
}

.span-4 {
    grid-column: span 4;
}

.span-5 {
    grid-column: span 5;
}

.span-6 {
    grid-column: span 6;
}

.span-7 {
    grid-column: span 7;
}

.span-8 {
    grid-column: span 8;
}

.next {
    position: absolute;
    bottom: 20px;
    right: 40px;
}

.dropzone {
    position: absolute;
    width: 36px;
    height: 100px;
    top: 0;
    right: -18px;
    z-index: 800;
    /*border: 2px dashed var(--color-border);*/
    /*pointer-events: none;*/
}

.dragging {
    pointer-events: initial !important;
}

.dragme {
    margin: 0;
    width: 18px;
    height: 40px;
    border: none;
    position: absolute;
    top: -30px;
    z-index: 999;
    cursor: pointer !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4) translateY(-8px);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    color: black;
    animation: pulse 2s infinite;
}

.help {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    position: absolute;
    top: 325px;
    left: 150px;
    padding: 10px;
    background-color: var(--color-panel-background);
    font-size: 14px;
}

.settings {
    background-color: var(--color-panel-background);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    position: absolute;
    top: 100px;
    left: 10px;
    padding: 4px;
    line-height: 18px;
    font-size: 14px;
    z-index: 1000;
    cursor: pointer;
}

.settings-button {
    line-height: 20px;
}

.open {
    background-color: #f8f8f8;
    box-shadow: 0 0 10px 0 var(--color-page-background);
}

.settings-img {
    width: 20px;
    height: 20px;
}

.seed {
    font-size: 16px;
    width: 50px;
    text-align: right;
}

.seed::-webkit-outer-spin-button,
.seed::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;

}

/* Firefox */
.seed[type=number] {
    -moz-appearance: textfield;
}



