@import '/elements.css';

* {
    box-sizing: border-box;
}

.fixed-point {
    background: var(--SeaBlue);
    color: var(--Sand);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    width: calc(25 * 1.5rem);

    input[type="number"] {
        background: var(--Sand);
        border: 2px solid;
        color: var(--SeaBlue);
        margin: .5rem 0;
        padding: .25rem;
        text-align: right
    }

    /* bits */

    input[type="checkbox"] {
        align-items: center;
        appearance: none;
        background: none;
        border: 3px solid;
        border-style: solid dotted solid none;
        border-right-width: 2px;
        color: var(--Sand);
        display: inline-flex;
        font-weight: bold;
        height: 1.5rem;
        justify-content: center;
        margin: 0;
        user-select: none;
        width: 1.5rem
    }

    input[type="checkbox"]:first-child {
        border-left-style: solid
    }

    input[type="checkbox"]:nth-child(16), .resolution {
        border-right-style: solid !important
    }

    input[type="checkbox"]::before {
        content: "0"
    }

    input[type="checkbox"]:checked::before {
        content: "1"
    }

    /* resolution slider */

    input[type="range"] {
        accent-color: var(--Sand);
        margin: .5rem auto .5rem calc(1.5rem - .5rem); /* .5rem = estimated size of thumb (TODO fix) */
        width: calc(15 * 1.5rem - .75rem)
    }
}
