:root {
    --shadow-color: #0008;
}

* {
    box-sizing: border-box;
}

html, body {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ff7c00;
    background-image: url(../img/50kbg.png);
    pointer-events: none;
}

body > * {
    pointer-events: auto;
}

h1 {
    text-align: center;
    font-size: 4rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bolder;
}

nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-bottom: -15px !important;
    padding: 10px;
    padding-bottom: 1px;
    overflow: clip;
    position: relative;
    pointer-events: none;
}

main, nav a {
    border-image-source: url(../img/50kborder.png);
    border-image-slice: 25;
    border-image-width: 32px;
}

nav a {
    color: black !important;
    border-style: solid;
    border-width: 16px;
    border-bottom: 0px none transparent;
    display: inline-block;
    padding: 5px 10px;
    padding-bottom: 20px !important;
    margin-top: 15px;
    text-decoration: none;
    border-image-outset: 16px;
    background-color: white;
    border-image-width: 32px 32px 0 32px;
    z-index: -1;
    pointer-events: auto;
}

nav a.active + a {
}

nav a.active {
    padding: 7px 15px;
    margin-top: 0;
    z-index: auto;
}

nav, main {
    max-width: 960px;
    margin: auto;
}

main > div:not(.active) {
    display: none;
}

a:link {
    color: #a00;
}

a:visited {
    color: #800;
}

main {
    border-style: solid;
    border-width: 16px;
    border-image-outset: 16px;
}

main > div {
    background-color: white;
    width: 100%;
    padding: 20px;
}

input, textarea, select {
    padding: 10px;
    border: none;
    background-color: #eee;
}

footer {
    margin: 20px;
    font-size: 0.8rem;
    text-align: center;
    text-shadow: -1px -1px 0px #ff7c00,
    1px -1px 0px #ff7c00,
    -1px 1px 0px #ff7c00,
    1px 1px 0px #ff7c00;
}

button {
    border-radius: 0;
    border: none;
    font-size: 1rem;
    padding: 10px;
    font-weight: bold;
    background-color: #d20;
    color: white;
}

button:hover, button:active {
    background-color: #e30;
}

button:disabled {
    background-color: #f98;
}

main button {
    min-width: 180px;
}

#stats-image {
    display: inline-block;
}

#wordcount-input {
    width: 100%;
    aspect-ratio: 3/2;
    margin-bottom: 15px;
    resize: vertical;
}

#new-challenge > div {
    margin: 10px 0;
}

.button-box {
    display: flex;
    justify-content: space-evenly;
}

.hide {
    display: none;
}

.muted {
    pointer-events: none;
    opacity: 50%;
}

#beta {
    border: 4px dashed red;
    background: white;
    padding: 15px;
}

@media only screen and (max-width: 600px) {
    nav a span {
        display: none;
    }

    h1 {
        margin: 0;
        margin-top: 20px;
    }
}
