* {
    box-sizing: border-box;
    line-height: 1;
    margin:0;
    padding:0;
}

.container {
    margin: 0 20px;
    font-family: Arial, Helvetica, sans-serif;
    display: grid;
    grid-template:
        "header" 150px
        "main" 1fr
        "footer" 61px;
    height: 100vh;
}

header {
    margin: 0 15px;
    grid-area: header;
}

main {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-area: main;
    align-items: center;
}

#delayVal {
    margin-left: 8px;
}

#legend {
    font-size: 14px;
    margin-top: 6px;
}

#sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 230px;
    padding: 10px;
    margin: 0 auto;
    position: fixed;
    right: 0;
    top: 0;
    background: aliceblue;
}

button {
    background-color: #5a6ccb;
    color: white;
    border: none;
    padding: 7px;
    border-radius: 3px;
    transition: all .3s;
}

button:disabled:hover,
button:disabled {
    background-color: grey;
    filter: brightness(1)
}


button:hover {
    filter: brightness(1.1);
}

input {
    padding: 4px;
    width: 60%;
}

label span {
    display: inline-block;
    width: 130px;
}

fieldset {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}


canvas#canvas {
    margin-top: 20px;
}

.canvasContainer {
    text-align: center;
}


.current-cell,
.stack-index,
.coordinates,
.chosen,
.fgh {
    display: inline-block;
    margin-left: 8px;
}

.dot span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 4px;
}
.current-cell span {
    background: yellow;
}

.chosen span {
    background: green;
}

.stack-index span {
    color: white;
    background: red;
    padding: 2px 4px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 4px;
}

.coordinates span {
    color: green;
    margin-right: 4px;
}

.fgh span {
    margin-right: 4px;
}

footer {
    grid-area: footer;
}