:root {
    --layoutSectionDarkOutlineColor: rgba(0, 123, 195, 0.5);
    --layoutSectionOutlineWidth: 8px;

    --controlSectionOutlineWidth: 4px;

    --controlElementHeight: 24px;
}

body {
    background-color: rgb(239, 227, 200);
}

body, input, table {
    font-family: monospace;
    font-size: 18px;
}

button {
    color: black;
    border: 4px solid;
    border-radius: 4px;
    padding: 0px;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease;
}
button:hover {
    transform: scale(1.1);
}

button.blue {
    background-color: rgb(136, 177, 217);
    border-color: rgb(14, 33, 133);
}
button.blue:hover {
    background-color: rgb(59, 120, 232);
}

button.lock {
    background-color: rgb(224, 224, 224);
    border-color: rgb(100, 100, 100);
}
button.lock:hover {
    background-color: rgb(161, 161, 161);
}

button.lock[active="true"] {
    background-color: rgb(86, 148, 179);
    border-color: rgb(25, 67, 88);
}
button.lock:hover[active="true"] {
    background-color: rgb(63, 112, 137);
}

button.red {
    background-color: rgb(211, 154, 154);
    border-color: rgb(107, 17, 17);
}
button.red:hover {
    background-color: rgb(196, 65, 65);
}

.functionErrorMessage {
    display: inline-block;
    background-color: rgb(212, 180, 121);
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
    line-height: 24px;
    font-size: 18px;
}


* { box-sizing:border-box;}

sub, sup {
  line-height: 0;
}




#canvWrap {
    aspect-ratio: 1;
    max-height: calc(100vh - 32px);
    margin: 0;
    position: relative;
}
#canv {
    border: var(--layoutSectionOutlineWidth) solid var(--layoutSectionDarkOutlineColor);
    border-radius: 16px;
    width: 100%;
    height: 100%;
    inset: 0;
    position: absolute;
}
#layout {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 50%);
    gap: 8px;
    align-items: start;
}
@media (max-width: 1400px) {
    #layout { grid-template-columns: 1fr; }
    #canvWrap { max-height: none; }
}

#control {
    line-height: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.controlText {
    font-weight: 1000;
    font-size: var(--controlElementHeight);
}

.controlSection {
    border-radius: var(--controlSectionOutlineWidth);
    padding: var(--controlSectionOutlineWidth);
    background-color: rgb(153, 211, 242);
}

.layoutSectionOutline {
    border: var(--layoutSectionOutlineWidth) solid var(--layoutSectionDarkOutlineColor);
    border-radius: calc(var(--layoutSectionOutlineWidth) + var(--controlSectionOutlineWidth));
}

.titleBanner {
    line-height: 42px;
    font-size: 38px;
    padding-left: 8px;
    font-weight: 1000;
    background-color: rgb(153, 211, 242);
}

#tutorialText {
    line-height: 32px;
    font-size: 18px;
}


input {
    background-color: rgb(182, 234, 232);
    border: 4px solid rgb(59, 85, 136);
    border-radius: 4px;
    height: var(--controlElementHeight);
}
input:focus {
    outline: none;
    transform: scale(1.02);
    border: 4px solid black;
}

#varColorBox {
    border-radius: 4px;
    border: 4px solid black;
}
.varText {
    font-size: calc(var(--controlElementHeight) - 4px);
    font-weight: 1000;
}

.boxIcon {
    width: var(--controlElementHeight);
    height: var(--controlElementHeight);
}
