/*! Adapted from HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/* ==========================================================================
   Base styles from Boilerplate, condensed
   ========================================================================== */

::-moz-selection { background: #b3d4fc; text-shadow: none; }
::selection { background: #b3d4fc; text-shadow: none; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
audio,canvas,img,video { vertical-align: middle; }
fieldset { border: 0; margin: 0; padding: 0; }
textarea { resize: vertical; }

/* ==========================================================================
   Font Faces
   ========================================================================== */

@font-face {
    /* License: public domain http://www.fontsquirrel.com/license/Goudy-Bookletter-1911 */
    font-family: GoudyBookletter;
    src: url(GoudyBookletter1911.otf);
}
@font-face {
    font-family: Trypewriter;
    src: url(Kingthings_Trypewriter_2.ttf);
}
@font-face {
    /* License: GPL http://www.fontsquirrel.com/license/Cantarell */
    font-family: Cantarell;
    src: url(Cantarell-Regular.ttf);
}

html {
    /* set default font face */
    font-family: Cantarell, sans-serif;
}

/* ==========================================================================
   Color Scheme

           lightest -------------> darkest
   Greens: #b6d690 #76a557 #4d6a32 #2f3e29
   Grays:  #cecfd3 #929081 #53575a #2d2928

   ========================================================================== */

html,button,input,select,textarea {
    color: #2d2928;
}

body {
    background-color: #929081;
}

.articler, .fullarticle, #bio, .comment, .wallbox, .descrip {
    background-color: #cecfd3;
    border: solid #53575a;
    border-width: 0 .2em .2em 0;
}

.fullimage img {
    border: solid #53575a;
    border-width: 0 .4em .4em 0;
}

h1,h2,h3,h4,h5,h6 {
    color: #4d6a32;
}
h1 a,h2 a,h3 a,h4 a,h5 a,h6 a {
    color: #4d6a32;
}

a {
    color: #4d6a32;
}
a:visited {
    color: #2f3e29;
}
a:hover {
    color: #76a557;
}

.articler .timestamper, .fullarticle .timestamper {
    color: #2d2928;
    background-color: #76a557;
    border-bottom: .2em solid #4d6a32;
}

.tags .tag {
    background-color: #76a557;
}

#navigation {
    background-color: #4d6a32;
}

#navigation a, #subnav a, #bottomnav a, .infoboxer a {
    color: #76a557;
}
#navigation a:hover, .infoboxer a:hover {
    color: #b6d690;
}

#navigation .active, header, #subnav .active {
    background-color: #2d2928;
    color: #929081;
}

#sitename a, #sitename a:visited, #links a, #links a:visited {
    color: #76a557;
}
#sitename a:active, #sitename a:hover, #subnav a:active, #subnav a:hover, #links a:hover, #links a:active, #bottomnav a:hover, #bottomnav a:active {
    color: #cecfd3;
}

#bottomnav {
    background-color: #53575a;
    border: solid #2d2928;
    color: #cecfd3;
    border-width: 0 .2em .2em 0;
}

footer {
    background-color: #2d2928;
    color: #cecfd3;
    border-top: .2em solid #cecfd3;
}

footer h3 {
    color: #b6d690;
}

header {
    border-bottom: .2em solid #53575a;
}

.infoboxer {
    background-color: #53575a;
    border: solid #2d2928;
    border-width: 0 .2em .2em 0;
    color: #cecfd3;
}

.infoboxer h4 {
    color: #b6d690;
    margin: .2em;
}

table#music tr, table#writings tr {
    background-color: #cecfd3;
}

table#music tr.dark, table#writings tr.dark {
    background-color: #b6d690;
}

table#music thead tr, table#writings thead tr {
    background-color: #4d6a32;
    color: #cecfd3;
    font-weight: bold;
}

.wallbox thead {
    color: #2d2928;
    background-color: #76a557;
    border-bottom: .2em solid #4d6a32;
}
/* ==========================================================================
   Images (experimental!)
   ========================================================================== */

header, footer, #navigation .active {
    background: url(concrete_darkest.jpg) fixed repeat;
}

body {
    background: url(concrete_medium.jpg) fixed repeat;
}

.articler, .fullarticle, #bio {
    background: url(dotted-v2.png) repeat;
    background-position-y: 14px;
    border-radius: 1em 0 0 1em;
}


/* ==========================================================================
   Layout and styling that's not colors
   ========================================================================== */
html { font-size: 1em; }

#wrapcore {
    margin: 0 auto 40px auto;
}

#navigation {
    text-align: center;
    vertical-align: center;
    font-size: 20px;
}

#navigation ul {
    list-style: none;
    margin: 0; padding: 0;
    display: inline;
}

#navigation li {
    margin: 0; padding: 0;
}
#navigation .links li {
    display: inline;
}

#navigation li a {
    text-decoration: none;
    font-weight: bold;
    padding: 0 1em;
}

#navigation .active {
    text-align: center;
    font-weight: bold;
    padding: .5em 1em 2em 1em;
}

#subnav, #bottomnav {
    text-align: center;
    margin: .5em 0 0 0;
    font-size: 18px;
}

#bottomnav {
    margin: 0 auto 2em auto;
    width: 620px;
}

#subnav ul, #bottomnav ul
{
    text-align: center;
    font-weight: bold;
	padding: 0;
    list-style-type: none;
    margin: 0;
    display: inline;
}

#subnav li, #bottomnav li {
	display: inline;
    padding: 0 5px;
}

#subnav .active, #bottomnav .active {
    padding: 0 1em;
}

#subnav a, #bottomnav a {
    text-decoration:none;
}

#sitename {
    float:left;
    padding: .1em 20px;
}
#sitename h1 {
    margin: 0; padding: 0;
    font-family: Trypewriter, sans-serif;
    font-size: 2.6em;
    font-weight: normal;
    height: 40px;
}
#sitename a {
    text-decoration:none;
}
#site_subtitle {
    font-size: .9em;
}

#links {
    text-align: center;
    width: 700px;
    margin: auto;
}

footer {
    text-align: center;
    padding: 1em;
    clear: both;
}

header {
    text-align: center;
    padding: 0 0 0.5em 0;
    position: sticky;
    top: 0; right: 0;
    width: 100%;
    z-index: 9999
}

#links li {
    display: inline;
    margin: 1em;
}

#search {
    float:right;
    font-size: .8em;
    margin: .3em;
}
#search input {
    width: 8em;
}

#search p {
    margin: 0;
}


.articler, .fullarticle, #comments {
    margin: 1em auto;
    width: 700px;
}

#comments label {
    font-weight: bold;
}

#comments label strong {
    font-style: italic;
}

#bio {
    padding: 1em;
    margin: 1em auto;
    width: 700px;
}

.articler {
    padding-bottom: 14px;
}

.articler div, .fullarticle div, #bio {
    font-family: GoudyBookletter, Times New Roman, serif;
    font-size: 16pt;
}

.articler p, .fullarticle p, #bio p {
    padding: 0 30px 0 30px;
    text-indent: 42px;
}

.articler .insert, .fullarticle .insert {
    padding: 14px;
    text-indent: 0;
    text-align: center;
}

.side.insert {
    float: right;
}

.articler img, .fullarticle img {
    max-width: 100%;
}

.articler div h2, .articler div h3, .articler div h4, .articler div h5, .articler div h6,
.fullarticle div h2, .fullarticle div h3, .fullarticle div h4, .fullarticle div h5, .fullarticle div h6  {
    margin: 24px 28px 0 28px;
    padding-bottom: 4px;
}

.articler h3, .fullarticle h3 {
    font-size: 32px;
    line-height: 28px;
}

.articler p, .fullarticle p,
.articler ol, .fullarticle ol,
.articler ul, .fullarticle ul {
    margin: 28px 28px 0 28px;
    padding: 0;
    list-style-position: inside;
}

.flush-top {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.articler ul ul,
.fullarticle ul ul {
    margin-top: 0;
}

h2 a, #writings h2 {
    font-family: Trypewriter, sans-serif;
    text-decoration:none;
    font-size: 38px;
    font-weight: normal;
    margin: 28px;
    line-height: 28px;
    padding: 14px 0 0 0;
    display: block;
}

.timestamper {
    display:block;
    font-size: 13pt;
    margin: 0 0 0 -30px;
    padding: 0 10px;

}

.cardimg,
[src*="https://api.gatcg.com/cards/"] {
    border-radius: 10px;
    width: 175px;
    height: 245px;
    padding-top: 4px;
    padding-bottom: 3px;
}
.fullarticle p.cardspread {
    text-indent: 0;
}
.fullarticle li p.cardspread {
    margin-top: 0;
    margin-bottom: 28px;
}

.tags {
    position: relative;
    left: 703px;
    height: 0;
    overflow:visible;
    width: 10em;
    margin: 0;
    margin-top: -15px;
}

.tags .tag {
    display: block;
    text-align: left;
    margin: 0 0 20px 0;
    font-family: sans-serif;
    font-size: 12pt;
    padding: 0 10px 0 20px;
    text-decoration: none;
    font-weight: bold;
    color: #2d2928;
    border: solid #4d6a32;
    border-width: 0 0 .2em 0;
}

.tag:hover {
    margin-left: -10px;
    padding-left: 30px;
    color: #2f3e29;
}

.comment {
    padding: .5em;
}

.comment .header {
    margin: 0; padding: .1em .2em;
    font-weight: bold;
    font-style: italic;
}

.comment .avatar {
    float: left;
    margin: 0 .5em .5em 0;
}

.admin.comment {
    background-color: #b6d690;
}

.wallbox {
	display: inline-block;
	width: 205px;
	text-align: center;
	margin: 1em .4em 0 .4em;
}

.wallbox .type {
    position: absolute;
    background-color: white;
    padding: 2px;
    opacity: 0.5;
}

.wallbox thead {
    font-weight: bold;
}

.infoboxer {
    margin: 1em auto;
    padding: .5em;
    width: 700px;
}

.infoboxer.side {
    float: right;
    width: 210px;
    margin: 1em;
}

.fullimage {
    text-align: center; /*actually for aligning the image, not text */
}

.fullimage .descrip {
    float: center;
    width: 700px;
    margin: 1em auto;
    text-align: left;
    padding: 1em;
}

table#music, table#writings {
    margin: 2em;
}

table#music td, table#writings td {
    padding: .5em;
}

.articler table, .fullarticle table {
    margin: 0 2em;
    text-align: center;
    font-family: Cantarell, sans-serif;
}

.articler table thead, .fullarticle table thead {
    background: url("concrete_darkest.jpg") repeat fixed 0 0 rgba(0, 0, 0, 0);
    color: #76A557;
}

.articler table td, .fullarticle table td {
    border: 1px solid #4d6a32;
}

.articler .note, .fullarticle .note {
    vertical-align: super;
    font-size: small;
    line-height: 1.8;
}

.articler .footnotes, .fullarticle .footnotes {
    border-top: 1px solid black;
    font-size: 18px;
    line-height: 27px;
    margin-top: 24px;
    padding-top: 14px;
}
.footnotes p:first-child {
    margin-top: 24px;
}

blockquote {
    position: relative;
    font-style: italic;
    margin-top: 28px;
    margin-bottom: 28px;
}

.articler blockquote p, .fullarticle blockquote p {
    text-indent: .5em;
    margin: 0;
}

blockquote:before {
    display: block;
    content: "\201C";
    font-size: 60px;
    position: absolute;
    top: -20px;
    left: -20px;
    color: #7a7a7a;
}

blockquote:after {
    display: block;
    content: "\201D";
    font-size: 60px;
    position: absolute;
    bottom: 0;
    right: 0;
    color: #7a7a7a;
}

cite:before {
    content: "\2014";
}

cite {
    display: block;
    font-style: normal;
    text-align: right;
    margin: 0;
}

.footnote_anchor {
    position: relative;
    top: -100px;
}

.strike {
    text-decoration: line-through;
}

/* ==========================================================================
   Helper classes, condensed
   ========================================================================== */

.hidden { display: none !important; visibility: hidden; }

/* ==========================================================================
   Breakpoints & media queries
   ========================================================================== */

@media screen and (max-width: 700px) {
    body {
        background-attachment: local;
    }
    .timestamper {
        margin-left: -13px;
    }
    .articler p, .fullarticle p {
        margin: 28px 14px 0 14px;
        text-indent: 28px;
    }
    .articler div h2, .articler div h3, .articler div h4, 
    .articler div h5, .articler div h6,
    .fullarticle div h2, .fullarticle div h3, .fullarticle div h4, 
    .fullarticle div h5, .fullarticle div h6  {
        margin-left: 14px;
    }
    .articler .side.insert, .fullarticle .side.insert {
        margin: 0;
        max-width: 55%;
    }
    .articler, .fullarticle, #comments {
        width: auto;
        margin: 10px;
    }
    .articler .cardspread, .fullarticle .cardspread {
        margin: 14px 13px -14px 13px;
    }
    .articler ol, .fullarticle ol,
    .articler ul, .fullarticle ul {
        margin: 28px 14px 0 14px
    }
    .cardspread [src*="https://api.gatcg.com/cards/"] {
        width: 160px;
        height: 217px;
    }
    .articler ol .cardspread, .fullarticle ol .cardspread,
    .articler ul .cardspread, .fullarticle ul .cardspread {
        margin-left: 0;
        margin-right: 0;
        font-size: 16px;
    }
    #search {
        /* search otherwise overlaps weirdly with tabs at this width */
        float:none;
        text-align: right;
    }
    #navigation .active {
        padding: 0.2em;
    }

    /* Fixed header breaks down at this height, so make it absolute instead */
    #sitename {
        float:none;
    }
    header {
        display: block;
        position: static;
    }

    #navigation .links li, #navigation ul.links {
        display: inline-block;
    }

    #navigation .active {
        padding: 0.2em;
        line-height: 2.1em;
    }
    #bottomnav {
        width: auto;
    }

    #links, .articler, .fullarticle, #navigation, .fullimage, #bio, .infoboxer {
        width: auto;
    }
    #search {
        text-align: center;
    }

    .tags {
        position: static;
        display: block;
        height: auto;
        width: auto;
        margin: -22px 0 34px 0;
    }
    .tags .tag {
        display: inline-block;
        margin: 0;
        line-height: 14px;
        padding: 4px;
        padding-right: 8px;
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links,
     * the blog post title, or GA Index links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }
    h2 a[href]:after {
        display:none;
    }
    a[href^="https://index.gatcg.com/card/"]:after {
        display: none;
    }


    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2, h3, h4 {
        page-break-after: avoid;
    }

    #everything > header {
        display: none;
    }

    .tags {
        position: static;
        display: block;
        height: auto;
        width: auto;
        margin: -22px 0 34px 0;
    }
    .tags .tag {
        display: inline-block;
        margin: 0;
        line-height: 14px;
        padding: 4px;
        padding-right: 8px;
    }
    .articler, .fullarticle {
        width: auto;
        border-width: 0;
    }
    #commentform {
        display: none;
    }
    footer #links {
        display: none;
    }
}
