/* AoC-ish minimal theme */
:root {
    --bg: #0f0f23;
    --fg: #cccccc;
    --muted: #3d3d3d;
    --link: #009900;
    --link2: #99ff99;
    --panel: #10101a;
    --border: #333340;
    --code: #cccccc;
    --star: #ffff66;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: "Source Code Pro", monospace;
    font-weight: 300;
    font-size: 14pt;
    min-width: 60em;
}

main {
    display: block;
}

h1,
h2 {
    font-size: 1em;
    font-weight: 300;
}

p.wrap {
    width: 45em;
}

/* AoC links */
a {
    outline: 0;
    color: var(--link);
    text-decoration: none
}

a:hover,
a:focus {
    color: var(--link2);
}

/* AoC header style */
header {
    white-space: nowrap;
    cursor: default;
    z-index: 100;
    margin-bottom: 2em;
}

header h1 {
    display: inline-block;
    margin: 0;
    padding-right: 1em;
    font-weight: 400;
}

header h1 a,
header h1 span {
    display: inline-block;
    text-decoration: none;
    color: var(--link);
    text-shadow: 0 0 2px var(--link), 0 0 5px var(--link);
}

header h1.title-event .title-event-wrap {
    opacity: .33;
    white-space: pre;
}

header .user {
    display: inline-block;
    padding-left: 1em;
}

header .user .star-count {
    color: var(--star);
}

header nav {
    display: inline-block;
}

header nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

header nav li {
    display: inline-block;
    padding: 0 .6em;
}

header nav li .fakelink {
    color: var(--muted);
}

header nav a {
    display: inline-block;
    text-decoration: none;
    outline: none;
}

/* AoC article style */
article {
    width: 45em;
    margin-bottom: 2em;
    margin-top: 2em;
}

article:first-of-type {
    margin-top: 0;
}

article em {
    color: #ffffff;
    font-style: normal;
    text-shadow: 0 0 5px #ffffff;
}

article em-star {
    color: var(--star);
    font-style: normal;
    text-shadow: 0 0 5px var(--star);
}

article h2 {
    color: #ffffff;
    margin-top: 1em;
    margin-bottom: 1em;
    white-space: nowrap;
}

article ul {
    list-style-type: none;
    padding: 0;
}

article li {
    padding-left: 2.5em;
    position: relative;
}

article li:before {
    content: "\00a0\00a0-\00a0";
    position: absolute;
    left: 0;
    top: 0;
}

/* AoC answer field */
input[type="text"],
textarea {
    background: transparent;
    color: inherit;
    border: 1px solid #666666;
    background: #10101a;
    padding: 0 2px;
    font-family: inherit;
    font-size: inherit;
    margin: 0;
    vertical-align: top;
}

input[type="submit"] {
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    padding: 0;
    color: var(--link);
    cursor: pointer;
}

input[type="submit"]:hover,
input[type="submit"]:focus {
    color: var(--link2);
}

/* AoC codeblock */
pre,
code {
    font-family: "Source Code Pro", monospace;
}

code {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0;
}

code:before {
    z-index: -1;
    content: "";
    position: absolute;
    display: block;
    left: -2px;
    right: -2px;
    top: 3px;
    bottom: 0px;
    border: 1px solid var(--border);
    background: var(--panel);
}

pre.wrap {
    max-width: 100%;
    white-space: pre-wrap;
}