:root {
    --grey: #E0E0E0;
    --blacko: #222;
    --red: #EF5350;
    --green: #43A047;
    --headline-font: 'Permanent Marker', cursive;
    --body-font: monospace;
}

body {
    color: var(--blacko);
    font-family: var(--body-font);
    font-size: 14px;
}

h1 {
    font-family: var(--headline-font);
    font-size: 3em;
}

button {
    padding: 10px;
    border: 1px solid var(--blacko);
    border-radius: 3px;
    background: none;
    outline: none;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    min-width: 70px;
}

button:hover {
    transition-property: all;
    transition-duration: 0.1s;
}

button#btn-new:hover {
    background: var(--blacko);
    color: white;
}

button#btn-reset:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

input::selection {
    background: #222;
    color: white;
}

input[type='text'] {
    border-radius: 3px;
    border: 1px solid var(--grey);
    height: 25px;
    padding: 5px 10px;
    outline: none;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fade 0.5s;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.board {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
}

.board .controls {
    display: flex;
    margin-bottom: 15px;
}

.board .text {
    margin-top: 5px;
    margin-bottom: 5px;
    max-width: 350px;
}

.board .text span {
    display: inline-flex;
    margin: 0 5px 5px 0;
    padding: 5px;
}

.board .text span.active {
    background: var(--blacko);
    border-radius: 3px;
    color: white;
}

/** MODAL **/

.modal {
    display: none;
    opacity: 0;
    position: fixed;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: auto;
    margin: auto;
    text-align: center;
    animation: fade 0.5s;
}

.modal textarea {
    border: 1px solid black;
    border-radius: 3px;
    resize: none;
    outline: none;
}

.modal button#btn-new-confirm:hover {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.modal button#btn-new-discard:hover {
    background: var(--blacko);
    color: white;
}

@keyframes fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}