* {
  box-sizing: border-box;
}

body {
    background: #121618;
    margin: 0;
    color: #EEEEEC;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* TODO: Actually pick these colours */
a {
    color: #1e8ad6;
}

a:hover {
    color: #3ba0e6;
}

input, textarea {
    border-radius: 3px;
    border: 1px solid hsl(195, 7%, 20%);
    margin-top: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3) inset;
    outline: none;
    color: rgb(255, 255, 255);
    background: rgb(36, 39, 41);
    padding: 5px;
}

textarea {
  display: block;
  width: 100%;
  min-height: 15em;
  resize: vertical;
}

input[type="submit"] {
  padding: 5px 10px;
  font-size: 1em;
}

label {
  color: hsl(0, 0%, 70%);
}

#wrapper {
    margin: 1em auto 2em;
    max-width: 800px;
    padding: 0 1em;
}

.quote .timestamp {
    font-style: italic;
    cursor: help
}

.quote .username {
    font-weight: bold;
}

.quote_text {
    font-family: monospace;

    background: #232729;
    border-radius: 4px;

    box-shadow: inset 0 0 5px 2px rgba(0, 0, 0, 0.2);
    border-style: solid;
    border-width: 1px;
    border-color: #181a1d;

    padding: 10px 0;
    margin: 5px 0 2em;
}

.quote_meta * {
    display: inline-block;
    vertical-align: top;
}

.quote_meta > span {
  margin-top: 2px;
}

.quote_id {
    color: hsl(205, 30%, 50%);
}

.quote_info {
    color: hsl(0, 0%, 40%);
    font-size: 0.8em;
    font-weight: lighter;
}

.star_container {
    float: right;
    opacity: 0.4;
}

.star_count {
    font-size: 0.8em;
}

input.star_button {
    background: url("/static/fgn/img/star.svg") no-repeat;
    cursor: pointer;
    border: none;
    padding: 0 8px;
    margin: 0;
}
.star_button.star_toggled {
    background: url("/static/fgn/img/star-solid.svg") no-repeat;
}

/*** Navbar ***/
.header {
    background: #1E2224;
}

.navbar {
    margin: auto;
    max-width: 800px;
    /*height: 3em;*/
    padding-right: 1em; /* keep alignment with the nav bar */
}

.navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.navbar li {
    float: left;
    transition: background 0.25s ease-out;
}

.navbar li:hover {
    /*background: #23252b;*/
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.25s ease-out;
}

.navbar a {
    text-decoration-line: none;
    display: inline-block;
    text-align: center;

    padding: 0.75em 1em;
    color: hsl(0, 0%, 50%);
}

.navbar a:hover {
    color: hsl(0, 0%, 80%);
}

/* TODO: XXX: HACK: Fix this hacky mess */
.search_box {
    float: right;
    margin-top: -3em;
    width: 25vw;
    max-width: 250px;
}

.search_box:focus::placeholder {
    opacity: 0.2;
}


/*** Pagination ***/
.pagination {
    margin-top: 1em;
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    font-weight: lighter;
}

.pagination .page_next {
    text-align: left;
}

.pagination .page_prev {
    text-align: right;
}

.pagination .page_current {
    text-align: center;
}


/*** Quote Formatting ***/
.fmt_fmt {
    color: #D3D3D1;
}

.fmt_pre {
    color: #D3D3D1;
}

.fmt_usr {
    color: #A9DC76;
}

.fmt_usr1 {
    color: #FF6188;
}

.fmt_usr2 {
    color: #A9DC76;
}

.fmt_usr3 {
    color: #FFD866;
}

.fmt_usr4 {
    color: #FC9867;
}

.fmt_usr5 {
    color: #AB9DF2;
}

.fmt_usr6 {
    color: #78DCE8;
}

.fmt_txt {
    color: #FFFFFD;
}

/*** Invite List ***/
.invite {
    margin-bottom: 5px;
    height: 32px;
}

.invite .copy-button {
    background: hsla(0, 0%, 100%, 0.1);
    display: inline-block;
    height: 100%;
    width: 32px;
    padding: 3px 3px 3px 9px;
    border: 1px solid hsl(195, 7%, 20%);
    border-radius: 3px 0 0 3px;
    margin-right: -4px;
    cursor: copy;
    vertical-align: top;
}

.invite .invite-code {
    height: 100%;
    width: calc(100% - 33px);
    padding: 3px 8px 3px 5px;
    border-radius: 0 3px 3px 0;
    margin: 0;
    font-size: 1em;
    color: hsla(0, 0%, 100%, 0.7);
    vertical-align: top;
}

/*** Tree ***/
/* Taken from lobste.rs, under the MIT license */
.tree,
.tree ul {
    margin: 0 0 0 0.5em;
    padding: 0;
    list-style: none;
    position: relative;
}

.tree ul {
    margin-left: 0.5em;
}

.tree:before,
.tree ul:before {
    /* Vertical lines */
    border-left: 1px solid #bbb;
    bottom: 0;
    content: "";
    display: block;
    left: 0;
    position: absolute;
    top: 0;
    width: 0;
}

.tree li {
    margin: 0;
    padding: 0 1.1em;
    position: relative;
}

.tree li:before {
    /* Horizontal lines */
    border-top: 1px solid #bbb;
    content: "";
    display: block;
    height: 0;
    left: 0;
    margin-top: -1px;
    position: absolute;
    top: 0.8em;
    width: 8px;
}

.tree li:last-child:before {
    /* Page background colour - hides columns (set to something bright to see) */
    background-color: #121618;
    border-left: 0;
    bottom: 0;
    height: auto;
}

li.noparent:before,
ul.noparent:before {
    border-top: 0 !important;
    border-left: 0 !important;
}

ul.user_tree {
    color: #888;
}
