@import url('https://fonts.googleapis.com/css2?family=Passion+One&family=Roboto&display=swap');

body {
    margin: 0;
    background-image: url('./assets/background.png');

    width: 100%;
    height: 100%;

    font-family: 'Roboto', sans-serif;
}

.title {
    text-align: center;
    font-family: 'Passion One', sans-serif;
    font-size: 3rem;
}

.delay-settings>input[type="number"] {
    width: 3rem;
}

.seed-settings>input[type="number"] {
    width: 8rem;
}

.settings-table {
    margin: auto;
}

.settings-table td:first-child {
    text-align: left;
}

.settings-table td:not(td:first-child) {
    text-align: right;
}

.algorithm {
    margin: 0.3rem 0.5rem;
    padding: 0.2rem 1rem;

    border: solid black;
    border-radius: 0.3rem;
}

.algorithm>div:nth-child(1) {
    display: flex;
}

.algorithm>div:nth-child(1)>* {
    cursor: pointer;
    user-select: none;
}

.algorithm>div:nth-child(1)>*:nth-child(1) {
    flex-grow: 1;
    font-weight: bold;
}

.algorithm table {
    width: 100%;
}

.algorithm input[type="number"] {
    width: 3rem;
}

#main-content {
    margin: 2rem auto;
    padding: 1rem 4rem;
    max-width: 50rem;
    border-radius: 0.5rem;
    background-color: rgb(133 133 133);
}

#main-content>div {
    padding: 0.25rem 0rem;
}

#main-controls {
    margin: auto;
    width: fit-content;
    text-align: center;
}

#main-panel {
    display: flex;
    column-gap: 1rem;
}

#main-panel>canvas {
    flex-grow: 1;
    aspect-ratio: 1;
}

#algorithms-panel {
    padding: 1rem 1rem;
    width: 16rem;
    background-color: rgb(61, 61, 61);
    border-radius: 0.2rem;
}

#algorithms-panel>hr {
    border-color: black;
}

#algorithms-settings {
    text-align: center;
}

#algorithms-settings table {
    width: 80%;
}

#algorithms-list {
    max-height: 25rem;
    overflow: auto;
}

#text-boxes {
    display: flex;
    column-gap: 1rem;
    justify-content: space-between;
}

#text-boxes>* {
    width: 100%;
    height: 12rem;
    font-family: monospace;
}

#console {
    background-color: #363636;
    padding: 0rem 0.5rem;
    border: solid 1px rgb(118, 118, 118);
    overflow: auto;
}

#jscode {
    resize: none;
    width: 100%;
    height: 100%;
    padding: 0px;

    text-align: left;
}

#jscode:focus {
    border: solid 1px rgb(118, 118, 118);
    outline: none;
}

#jscode:hover {
    border: solid 1px rgb(118, 118, 118);
    outline: none;
}

#algorithms-add {
    text-align: center;
}

.console-red {
    color: red;
}

.console-yellow {
    color: yellow;
}

.console-green {
    color: lime;
}