* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
    -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

html, body {
    position: relative;
    height: 100%; 
}

a {
    color: #0068BD;
    text-decoration: none;
}

a:hover { 
    text-decoration: underline; 
}

i {
    font-style: italic;
    color: #555;
}

/** ensures a page height which forces the footer to be stuck at page bottom */
article {
    min-height: calc(100vh - 405px);
}

article b {
    font-weight: 600;
}

small {
    font-size: 14px;
}

body {
    -webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
    -webkit-user-select: text;                  /* prevent copy paste, to allow, change 'none' to 'text' */
    color:#000;
    background:#fff;
    font-family:"Source Sans Pro", sans-serif; /* 200 = ExtraLight, 300 = Light, 400 = regular, 600 = semi-bold, 700 = bold, 900 = black */
    font-weight:400;
    font-size:18px;
    margin:0px;
    padding:0px;
    display: grid;
    align-content: start;
}

code {
    font-size:16px;
    word-wrap: break-word;
    word-break: break-all;
}

code.standout {
    padding: 2px 10px;
    border-radius: 5px;
    border: 1px solid #111;
}

.nojs::after {
    content: "Please enable JavaScript to view this site!";
}

/*** header ***/
header {
    width: 100%;
    height: auto;
    padding: 20px;
    background: #fff;
    top:0;
    border-bottom: 1px #999 solid;
    grid-row: 1;
}

header .assets {
    display: flex;
    justify-content: space-between;
    width:100%;
}

header .assets .logo.ghostscript {
    width:100px;
    height:109px;
}

header .assets .logo.artifex {
    width:200px;
    height:31px;
}

header .assets .right {
    width: 230px;
    margin-top: 52px;
}

header .assets .right button {
    height: 40px;
    cursor: pointer;
    color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    border:0;
    text-transform:uppercase;
    border-radius:5px;
}

header .assets .right .buttonA {
    width: 47.5%;
    margin: 20px 2.5% 0px 0;
    background-color: #0075cf;
}

header .assets .right .buttonB {
    width: 47.5%;
    margin: 20px 0 0px 2.5%;
    background-color: #333;
}


/*** nav ***/
nav {
    top: 91px;
    right: 300px;
    margin: 0;
    width: auto;
    height: auto;
    position: absolute;
    font-size: 16px;
}

nav .mobile {
    display: none;
}

nav .desktop {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav .desktop .folder:hover .content {
    visibility: visible;
    display: flex;
}

nav .desktop .spacer {
    width: 20px;
}

nav .desktop .folder .content {
    position: absolute;
    display: none;
    flex-direction: column;
    visibility: hidden;
    margin-left:0px;
    background: #F0F0F0;
    width:400px;
    height:auto;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
}

nav .desktop .folder .item {
    text-align: left;
    display: inline-block;
    margin: 10px;
    padding: 10px 10px 10px 10px;
    width: auto;
}

nav .desktop .folder .item.container {
    margin: 0px;
} 

nav .desktop .folder .icon .item {
    padding: 10px 10px 10px 40px;
} 

nav a {
    color: #333;
    text-decoration: none;
}

nav a:hover {
    color:#ea5842;
    text-decoration: none;
}

nav .folder .content .icon.releases {
    background: url(../images/header/icon-releases.png) 5px center no-repeat;
    background-size: auto 40px;
}

nav .folder .content .icon.download {
    background: url(../images/header/icon-download.png) 5px center no-repeat;
    background-size: auto 40px;
}

nav .folder .content .icon.performance {
    background: url(../images/header/icon-performance-driven.png) 5px center no-repeat;
    background-size: auto 40px;
}

nav .folder .content .icon.source {
    background: url(../images/header/icon-git-scm.png) 5px center no-repeat;
    background-size: auto 40px;
}

nav .folder .content .icon.open-source {
    background: url(../images/header/icon-open-source.png) 5px center no-repeat;
    background-size: auto 40px;
}

nav .folder .content .icon.commercial {
    background: url(../images/header/icon-commercial-license.png) 5px center no-repeat;
    background-size: auto 40px;
}

nav .folder .content .icon.readme {
    background: url(../images/header/icon-readme.png) 5px center no-repeat;
    background-size: auto 40px;
}

nav .folder .content .icon.api {
    background: url(../images/header/icon-api.png) 5px center no-repeat;
    background-size: auto 40px;
}

nav .folder .content .icon.language-bindings {
    background: url(../images/header/icon-language-bindings.png) 5px center no-repeat;
    background-size: auto 40px;
}

nav .folder .content .icon.doc-search {
    background: url(../images/header/icon-doc-search.png) 5px center no-repeat;
    background-size: auto 40px;
}

nav .folder .content .icon.bugs {
    background: url(../images/header/icon-bug-bounty-program.png) 5px center no-repeat;
    background-size: auto 40px;
}

nav .folder .content .icon.bugzilla {
    background: url(../images/header/icon-bugzilla.png) 5px center no-repeat;
    background-size: auto 40px;
}

nav .folder .content .icon.faq {
    background: url(../images/header/icon-faq.png) 5px center no-repeat;
    background-size: auto 40px;
}

nav .folder .content .icon.blog {
    background: url(../images/header/icon-blog.png) 5px center no-repeat;
    background-size: auto 40px;
}

/*** main ***/
main {
    display: none;
    margin:0 0 0px;
    grid-row: 2;
    overflow-y: scroll;
}

main .outer {
    max-width: 1280px;
    margin: 0px auto;
}

main .inner {
    margin: 20px;
}

main .banner {
    width: 100%;
    height: 70px;
    background-color: #0075cf;
}

main .banner h1 {
    line-height: 70px;
    color: #fff;
    max-width: 1280px;
    padding:0 20px;
    margin: 0 auto;
}

/*** footer ***/
footer {
    width: 100%;
    background-color: #e2e2e2;
    min-height: 140px;
    max-height: 140px;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

footer .inner {
    display: flex;
    flex-flow: column wrap;
    justify-content: flex-end;
    width: 50%; 
}

footer .inner .item {
    margin: 10px 0 0 20px;
    height: 25%;
}

footer .inner a {
    font-size: 12px;
    color: #000;
    text-transform: uppercase;
    text-decoration: none;
}

footer .inner .copyright {
    margin: 0px 20px 0px 0;
    display: flex;
    justify-content: flex-end;
}

footer .inner .copyright .details {
    display: flex;
    flex-flow: column wrap;
    justify-content: flex-end;
    margin: 0px 0px 15px 0;
}

footer .inner .copyright .details .logo.artifex {
    width:229px;
    height:36px;
}

footer .inner .copyright .details .text {
    font-size: 12px;
}


/*** pages ***/
h1 {
    font-size:40px;
    font-weight:300;
    margin: 20px 0;
}

h2 {
    font-weight:300;
    font-size:28px;
    margin: 20px 0;
}

h3 {
    font-weight:300;
    font-size:24px;
}

h4 {
    font-weight:600;
    font-size:20px;
}

h5 {
    font-weight:400;
    font-size:20px;
}

strong {
    font-weight:700;
    color:#058448;
}

p {
    line-height:1.5;
    margin:10px 0 30px;
}

ul {
    margin:10px auto 30px;
 
}

li {
    line-height:1.5;
    margin:0px 0 10px 20px;
    font-weight:400;
}

tt, code, pre {
    font-family: "Source Code Pro", Consolas, "Andale Mono", Monaco, monospace;
}

table {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #c0c0c0;
}

th {
    font-weight: bold;
    background-color:#666;
    color: #fff;
    border-bottom: 1px solid #c0c0c0;
    border-right: 1px solid #c0c0c0;
}

th, td {
    text-align: left;
    padding:14px;
}

td {
    border-right: 1px solid #c0c0c0;
}

table tr {
    background-color: #fff;
    border-bottom: 1px solid #c0c0c0;
}

table tr:nth-child(2n) {
    background-color: #efefef;
}

blockquote.note {
    width: 100%;
    height: auto;
    padding: 20px 20px 20px 60px;
    border-radius: 10px;
    margin: 0 0 20px 0;
    background: #eee url(../images/icon-warning.svg) 10px center no-repeat;
    background-size: 40px 40px;
}

#faq .panel {
    display: none;
}

#faq .accordion {
    color: #0068BD;
    text-decoration: none;
}

#faq .accordion:hover { 
    text-decoration: underline;
    cursor: pointer;
}

#faq .panel pre {
    background-color: #efefef;
    padding: 10px;
    border-radius: 5px;
}

/* large screens */
@media all and (min-width : 1400px)  {


}

/* < Tablet landscape */
@media all and (max-width : 1023px)  {

    footer .inner {
        width: 100%; 
    }

    nav .desktop {
        display: none;
    }

    nav {
        text-align: left;
        top: 0px;
        right: 0px;
    }

    nav .mobile {
        display: block;
    }

    nav #mobileNav.open {
        border-left: 1px solid #c0c0c0;
        border-bottom: 1px solid #c0c0c0;
    }

    nav #burger-icon {
        width: 50px;
        height: 50px;
        margin: 0 10px 0 0px;
        background: url(../images/header/icon-burger-menu.png) center center no-repeat;
        background-size: 50px 50px;
    }

    nav #burger-icon.open {
        background: url(../images/header/icon-burger-menu-x.png) center center no-repeat;
        background-size: 50px 50px;
    }

    nav #burger-menu {
        display: none;
        background-color: #fff;
        overflow-y:auto;
        overflow-x:hidden;
        bottom: 0;
        height: calc(100vh - 50px);
        border-top: 1px solid #c0c0c0;
    }

    nav .mobile .folder .content {
        padding-right: 20px;
    }

    nav .mobile .folder .item {
        text-align: left;
        display: inline-block;
        margin: 5px 5px 5px 5px;
        padding: 10px 10px 10px 50px;
        border-radius: 5px;
        width: auto;
        text-decoration: none;
    }

    nav .mobile .folder .item.container {
        font-weight: 600;
        margin: 10px;
        padding: 10px 10px 10px 0px;
    }

}


/* < Phone portrait */
@media all and (max-width : 500px)  {

    main .banner h1 {
        font-size: 30px;
    }

    header .assets .right {
        display: flex;
        flex-direction: column;
        margin-top: 30px;
        width: 120px;
    }

    header .assets .right .buttonA {
        width: 100%;
        margin: 0px 0;
    }

    header .assets .right .buttonB {
        width: 100%;
        margin: 10px 0 0 0;
    }

    footer .inner .item {
        margin: 10px 0 0 5px;
    }

    footer .inner a.item{
        font-size: 10px;
    }

    footer .inner .copyright .details .text {
        font-size: 10px;
    }

    footer .inner .copyright .details .logo.artifex {
        width:120px;
        height:19px;
    }

}











