@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@200;400&display=swap');

.gui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* margin: 0 auto; */
    pointer-events: none;
    font-family: Oxanium;
    font-weight: 400;
}

.grid {
    /* margin: 0 auto; */
    pointer-events: none;
    position: relative;
    display: block;
    /* justify-content: center; */
    /* align-items: center; */
    /* height: 100vh; */
    /* width: 60%; */
}

.detach-panel, .collapse-panel {
    pointer-events: all;
    cursor: pointer;
}

.gui:focus {
    outline: none;
}

.cell {
    /* display: block; */
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    /* background:
        linear-gradient(0deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 75%, rgba(0,0,0,0.2) 100%); */
    background-color: rgba(0,0,0,0.2);
    border-radius: 10px;
    cursor: pointer;
    margin: 5px;
    color: white;
    transition: background-color 0.3s ease-in, opacity 0.3s ease-in;
    pointer-events: all;
}

.cell--hole, .cell--ghost {
    pointer-events: none;
}


.gui.--light .cell--button .button__icon,
.gui.--light .cell--choice .button__icon {
    stroke: black !important;
}


.gui-arrow {
    transition: transform 0.3s ease-in;
}

.gui-toggle circle {
    transition: stroke 0.3s ease-in;
}

.selected {
    background-color: rgba(0,200,200,0.2);
}

.focused {
    background-color: rgba(200,0,200,0.2);
}

.focused.selected {
    background-color: rgba(0,200,0,0.2);
}

.focused--0 {
    /* TODO */
    background-color: rgba(200,0,200,0.5);
    /* color: rgba(0, 255, 255, 1); */
}

.focused--1 {
    background-color: rgba(200,0,200,0.4);
    /* color: rgba(0, 255, 255, .8); */
}

.focused--2 {
    background-color: rgba(200,0,200,0.3);
    /* color: rgba(0, 255, 255, .6); */
}

.focused--3 {
    background-color: rgba(200,0,200,0.2);
    /* color: rgba(0, 255, 255, .4); */
}

.focused--4 {
    background-color: rgba(200,0,200,0.1);
    /* color: rgba(0, 255, 255, .2); */
}

.focused--5 {
    background-color: rgba(200,0,200,0);
    /* color: rgba(0, 255, 255, 0); */
}

.level--0 {
    opacity: 1;
}

.level--1 {
    opacity: 0.8;
}

.level--2 {
    opacity: 0.5;
}

.level--3 {
    opacity: 0.3;
}

.level--4 {
    opacity: 0.2;
}

.level--5, .level--6, .level--7 {
    opacity: 0;
}

.gui-ghost {
    background-color: rgba(0,0,0,0.1);
}

.hole {
    /* border-color: #333;
    background-color: rgba(0, 0, 0, 0.3); */
    border-color: transparent;
    background: none;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome and Opera */
}


.cell--debug {
    pointer-events: all;
    position: absolute;
    border: 1px solid black;
    background: white;
    margin: 7px;
    max-width: 72px;
    max-height: 72px;
    font-size: 10px;
    padding: 3px;
    dominant-baseline: hanging;
}

.cell__label {
    text-anchor: middle;
    dominant-baseline: middle;
    font-size: 11px;
}

.cell--button .button__label,
.cell--choice .button__label
{
    dominant-baseline: central;
}

.cell--button.cell--single .button__label,
.cell--choice.cell--single .button__label
{
    text-anchor: middle;
}

.cell--text text {
    text-anchor: middle;
    dominant-baseline: central;
}

.cell--text .text--edit input {
    position: relative;
    outline: none;
    border: none;
    background-color: transparent;
    font-family: \"IBM Plex Sans\", sans-serif;
    text-align: center;
}

.plate--debug {
    position: fixed;
    border: 3px double gray;
    background: beige;
    box-sizing: border-box;
    font-size: 10px;
    dominant-baseline: hanging;
}

.plate-controls__title {
    dominant-baseline: hanging;
    text-transform: uppercase;
    font-size: 9px;
    text-anchor: middle;
    line-height: 3vh;
    letter-spacing: 1px;
}

/* .cell--knob .knob__value { */
.knob__value {
    dominant-baseline: central;
    text-anchor: middle;
    font-size: 13px;
}
