*
{
    box-sizing: border-box;
}

body 
{
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    padding-bottom: 1rem;
}

main, section
{
    min-height: 100vh;
    width: 100vw;
}

main 
{
    background-color: rgb(214, 71, 39);
    display: flex;
    justify-content: center;
    align-items: center;
}

svg 
{
    z-index: 1 !important;
}

canvas 
{
    z-index: 2 !important;
}

#prompt
{
    color: white;
    text-shadow: 0 4px 0px rgb(133, 35, 13);
    margin: 0;
    margin-bottom: 1rem;
    transition: 0.125s ease;
}

#container
{
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}

button
{
    border: 1px solid lightgray;
    background-color: white;
    border-radius: 3px;
    padding: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}

#load
{
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    border: 0;
    background-color: rgb(133, 35, 13);
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid rgb(174, 45, 17);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

#restart, #add, #export, #JSON, #prune
{
    margin-top: 1rem;
}

#add, #export, #JSON, #prune
{
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    background-color: rgb(214, 71, 39);
    color: white;
}

.mistake
{
    color: orange !important;
    text-shadow: 0 4px 0px black!important;
}

.correct
{
    color: limegreen !important;
    text-shadow: 0 4px 0px black!important;
}

section
{
    width: 80vw;
    max-width: 1000px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 0;
    padding-top: 1rem;
}

section > h2
{
    margin-top: 0;
}

table 
{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: max-content;
    border-collapse: collapse;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid lightgray;
}

td
{
    text-align: left;
    border: 1px solid lightgray;
}

tr:first-child > td
{
    border-top: none;
}

td:first-child
{
    border-left: none;
}

tr:last-child > td
{
    border-bottom: none;
}

td:last-child
{
    border-right: none;
}

td > input
{
    border: none;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
}

.trash
{
    border: 0;
    box-shadow: none;
}

tbody:first-child > tr > td
{
    background-color: rgb(214, 71, 39);
    color: white;
    border-bottom: 1px solid lightgray;
    border-right: 1px solid rgb(174, 45, 17);
    padding: 0.25rem 0.5rem;
}

tbody:first-child > tr > td:last-child
{
    border-right: none;
}

.buttons
{
    display: flex;
    justify-content: center;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    width: max-content;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid lightgray;
    border-radius: 3px;
    overflow: hidden;
}

.buttons > button
{
    display: inline;
    margin-left: 0;
    margin-right: 0;
    border: 0px;
    box-shadow: none;
    margin-top: 0 !important;
    border-radius: 0;
}

.buttons > button:not(:last-child)
{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 1px solid rgb(174, 45, 17);
}

.buttons > button:last-child
{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#restart, #reveal, #next_char, #retry
{
    border-right: 1px solid lightgray;
}