:root {
    --bg-color: #f5f5f5;
    --bg-inner-color: #dddddd;
    --text-color: #111111;
    --select-text-bg-color: #afc7e2;
}

#main-title {
    text-align: center;
    padding-top: 10px;
}

#main-loaded {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;

    position: absolute;
    padding-top: 30px;
    top: 0px;
    left: 0px;
}

.main-container {
    margin: auto;
    padding: 0px 10px 20px 10px;

    max-width: 820px;
    width: 820px;

    background-color: var(--bg-inner-color);
}

.main-game {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    width: 100%;
}

.main-ui {

    margin: auto;
    width: 700px;
}

.main-ui div {
    display: inline-block;
}

.clear {
    clear: both;
}

#main-canvas {
    width: 600px;
    height: 520px;

    background-color: var(--bg-inner-color);
}

#main-results {
    width: 200px;
    height: 520px;
    max-height: 520px;

    overflow-y: scroll;

    font-family: Arial, Helvetica, sans-serif;

    line-height: 1.4;
}

#main-results div {
    position: relative;

    margin: 0;
    padding: 0;
}

#main-results p {
    display: inline-block;
    padding-left: 6px;
    padding-right: 6px;

    margin: 0;
}

#main-results div.even-row {
    background-color: #d1d1d1;
    width: 100%;
}
#main-results div.odd-row {
    background-color: #bcbcbc;
    width: 100%;
}

#main-results div:hover {
    background-color: #8dbfee;
}

#main-results div.selected-word {
    background-color: #5f9ed8;
}

/* Legend */

p.legend {
    line-height: 0.8;
    font-size: 14px;
    text-align: center;
}

p.legend span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1px solid black;
}

/* Inputs */

input {
    display: none;
}

.btn {
    background-color: #04AA6D;
    border: none;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    cursor: pointer;

    line-height: 1.2;
    font-size: 16px;
}

.btn-input {
    padding: 4px 12px;
    margin: 4px;
}

.btn:hover {
    background-color: #0acb84;
}

.btn.btn-disabled {
    background-color: #80af9e;
    pointer-events: none;
}

.btn.btn-disabled:hover {
    background-color: #80af9e;
}

select {
    appearance: none;
    width: 100%;
    line-height: 1.2;
    font-size: 16px;

    padding: 5px 12px;
    margin: 0px;
}

.btn-select-container {
    position: relative;
    width: 230px;
}

.btn-select-container:after {
    --size: 0.5rem;

    position: absolute;
    content: "";
    right: 1rem;
    pointer-events: none;

    border-left: var(--size) solid transparent;
    border-right: var(--size) solid transparent;
    border-top: var(--size) solid white;

    top: 45%;
}