* {
    box-sizing: border-box !important;
}

body {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    background-color: #000;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: #00ffcc;
}

a:hover {
    color: #b3fff0;
    text-shadow: 0 0 15px #00ffcc;
}

main {
    flex-grow: 1;
}

main .pageWidth {
    position: relative;
}

main p {
    line-height: 1.5em;
}

h1,
h2,
h3,
h3 {
    color: dodgerblue;
}

nav {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
}

nav a {
    padding: 10px;
    font-size: 1.3rem;
    flex-grow: 1;
    text-align: center;
    text-decoration: none;
    border-top-left-radius: 1em;
    border-top-right-radius: 1em;
}

nav a.selected {
    border-left: 1px solid dodgerblue;
    border-right: 1px solid dodgerblue;
    background-color: #0a2642;
}

nav a:hover {
    text-decoration: none;
    background-color: dodgerblue;
    color: white;
    box-shadow: 0 0 25px dodgerblue;
}

textarea {
    resize: vertical;
}

input,
textarea {
    margin: 5px;
    background-color: black;
    color: #ccc;
    padding: 5px;
    border: 2px inset #ccc;
    border-radius: 0.5em;
}

input[type="number"] {
    color: #c49c00;
    border-color: #c49c00;
}

input[type="text"],
textarea {
    color: #99c0ff;
    border-color: #99c0ff;
}

select {
    padding: 5px;
    margin: 5px;
    background-color: black;
    color: #00ffcc;
    border: 1px inset #00ffcc;
    border-radius: 0.5em;
}

fieldset {
    border: 2px inset #5e5e5e;
    border-radius: 0.5em;
    background-color: #181818;
    margin-bottom: 1em;
}

fieldset legend {
    background-color: #5e5e5e;
    padding: 0.5em;
    border: 2px outset #5e5e5e;
    border-radius: 0.5em;
}

button {
    margin: 5px;
    padding: 10px;
    border: 2px outset aquamarine;
    color: aquamarine;
    background-color: black;
    border-radius: 0.2em;
    cursor: pointer;
}

button:hover {
    background-color: aquamarine;
    color: black;
}

button:disabled {
    color: grey;
    border-color: grey;
    cursor: not-allowed;
}

button:disabled:hover {
    background-color: white;
}

button.delBtn {
    margin: 5px 0;
    padding: 10px;
    border: 2px outset red;
    color: red;
    background-color: black;
    border-radius: 0.5em;
    cursor: pointer;
}

button.delBtn:hover {
    background-color: red;
    color: black;
}

li {
    margin-bottom: 1em;
}

.pageWidth {
    max-width: 960px;
    margin: 0 auto;
    padding: 10px;
    background-color: #222;
    min-height: 100%;
    color: #ccc;
}

.scrollOverflow {
    width: 100%;
    height: 90vh;
    position: relative;
}

#sizeCalc {
    padding: 2px;
}

#stopDrawingBtn {
    border: 2px solid red;
    color: red;
}

#stopDrawingBtn:hover {
    color: white;
    background-color: red;
}

.navHolder {
    width: 100%;
    background-color: #111;
    border-bottom: 2px solid dodgerblue;
}

.area {
    margin-top: 30px;
    margin-bottom: 60px;
}

.discarded{
    color: #f55d5d;
}

.diceInputHolder{
    display: flex;
}

.diceInput{
    font-size: 3em;
    margin: 0.5em 0;
    padding: 0.5em;
    flex-grow: 1;
}

#result{
    font-size: 4em;
    padding: 0.5em;
    text-align: center;
}

.error{
    color: red;
}