






/* Change default font to serif */
body,
input,
button,
select,
textarea {
  font-family: 'Muli', sans-serif;
  font-size: 14pt;
  color: #5B5B5B;
}

/* Never scroll left and right - site should always be responsive */
html, body {
    overflow-x:hidden;
}

/*
    MAIN PAGE AND NAVBAR
*/

body {
    background: black;
    padding-top: 50px; /* main content appears below navbar */
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Arapey', serif;
    color: black;
    
}

h2, h3 {
    font-size: 24pt;
}

h4 {
    font-size: 16pt;
    font-weight: bold;
}

@media (max-width: 400px) {
    h2 {
        font-size: 18pt;
    }

    h3 {
        font-size: 16pt;
    }
}

p {
    line-height: 1.6em;
}

/* Justify when there's enough space to avoid bad stretching */
@media (min-width: 400px) {
    p {
        text-align:justify;
    }
}

strong {
    color: black;
    font-style: normal;
}

a {
    font-style: italic;
    transition: color 0.6s;
    color: #972f26;
}

a strong {
    color: #972f26;
}

a:hover, a:hover strong {
    color: black;
    text-decoration: none;
    transition: color 0.2s;
}

/* Default for images: centered */
img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

ol li {
    margin-bottom: 20px;
    margin-top: ;
}

/* Embedding ul in an ol, happens on /inklewriter/kindle-ebooks/ */
ol>li>ul {
    margin-top: 10px;
}

article img {
    margin-top: 10px;
    margin-bottom: 10px;

    /* Rounded corners on all article images by default */
    border-radius: 15px;
}

hr {
    border-bottom: 1px dashed #CCC;
    width: 50%;
    margin: 0 auto;
}

/* Hide stuff that's not meant to be displayed on mobile.
   Note that it's backed up by a much more comprehensive
   JavaScript solution that removes it from the page, on
   iPad as well. */
@media (max-width: 320px) {
    .not-mobile {
        display: none;
    }
}

.col-sm-1,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-10,
.col-sm-11,
.col-sm-12 {
    margin-top: 10px;
    margin-bottom: 10px;
}

/*
    Bootstrap navbar
*/

/* inkle logo container */
.brand-container {
    position: absolute;
    left: 50%;
    margin-left: -46px;
    width: 93px;
    height: 50px;
}

.navbar a.twitter img {
    position: relative;
    top: 3px;
}

/* normal links */
.navbar ul li a {
    font-style: normal;
    font-size: 12pt;
    padding-left: 10px;
    padding-right: 10px;
}

/* for some reason, bootstrap sets margin-right to -15 pixels,
   and for some reason this isn't offset back by anything */
.navbar-nav.navbar-right:last-child {
    margin-right: 0;
}

/* Center-align links when collapsed in mobile menu */
.navbar .navbar-collapse.in ul li a, 
.navbar .navbar-collapse.collapsing ul li a {
    text-align: center;
}

.navbar a.nav-back-button {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 34px;
    height: 34px;
}

.navbar a.twitter img, 
.navbar a.nav-back-button img {
    opacity: 0.5;
    transition: opacity 0.5s;
}

.navbar a.twitter:hover img,
.navbar a.nav-back-button:hover img {
    opacity: 1.0;
    transition: opacity 0.2s;
}

.navbar a.nav-back-button img {
    width: 34px;
    height: 34px;
}

/* No back button on home page */
.home .navbar a.nav-back-button {
    display: none;
}

/* General purpose full-view dark shadow/vignette background.
   Used on cards to make text more easily readable. */
.vignette-overlay {
    position: absolute;
    z-index: 1;
    top: -25%;
    bottom: -25%;
    width: 100%;
    height: 150%;
    pointer-events: none;
}

/* For browsers that support background-size */
.backgroundsize .vignette-overlay {
    background-image: url(/img/vignette.png);
    background-size: 100% 100%;
}

/* Polyfill for browsers that don't support background-size */
.vignette-overlay img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*
    MAIN FOOTER
*/

body>footer {
    display: block;
    background: black;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    color: #333;
    font-size: 11pt;
}

body>footer a {
    color: #555;
}

body>footer a:hover {
    color: #972f26;
}

/* Support for the text fitting JS */
.fitTextToWidth {
    white-space:nowrap;
}
.fitTextToWidthContainer {
    overflow: visible;
}

/*
    CARDS
    Used on home page, as well as project pages.
    Only home page cards have 3d effects and stuff though.
    See individual page CSS for more specific settings.
*/

/* Containers for project cards. Kept separate from the cards
   themselves to allow 3d transforms etc. */
.card-container {
    position: relative;
    background: black;
    overflow: hidden;
}

/* Card itself */
.card {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #972f26;
}

/* Text-only cards have no background image (e.g. Latest news) */
.card.text-only {
    background: white;
}


/* Background images for cards on front page */
.card .background-image {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: top center;
}

.card .background-image.alignleft {
    background-position: top left;
}

/* Box containing H1 and H2 for each card */
.card .titles-box {
    position: absolute;
    bottom: 5%;
    left: 5%;
    right: 5%;
    width: 90%;
    height: auto;
    z-index: 10;
}

/* Title of project on front page */
.card .titles-box h1 {
    font-family: 'Arapey', serif;
    font-size: 100pt;
    font-weight: 100;
    margin: 0;
    padding: 0;
    letter-spacing: -0.04em;
    position: relative;
    display: block;
    float: left;
}

.card .titles-box h1,
.card .titles-box h1 a {
    color: white;
    font-weight: 100;
    font-style: normal;
}

.card .titles-box .h1Container {
    float: left;
    padding-bottom: 0;
    margin-bottom: 0;
    width: 70%;
    overflow: visible;

}

/* Subtitle for each project on front page */
.card .titles-box h2 {
    font-family: 'Muli', sans-serif;
    color: #f6f1d3;
    height: auto;
    font-size: 18pt;
    font-weight: bold;
    width: 60%;
    min-width: 230px;
    padding: 0;
    margin: 0;
    margin-right: 40%;
    float: left;
 /*   background: rgba(255, 0, 0, 0.5);*/
}

/* Titles box moves to top on Latest News card */
.card.text-only .titles-box {
    top: 5%;
    bottom: none;
}

.card.text-only .titles-box h1 {
    font-size: 50pt;
    color: black;
}
.card.text-only .titles-box h1 a {
    color: black;
}


/* Font sizes for project (sub)titles on smaller devices */
@media (max-width: 800px) {
    .card .titles-box h1 {
        font-size: 80pt;
    }
}
@media (max-width: 600px) {
    .card .titles-box h1 {
        font-size: 50pt;
    }
}
@media (max-width: 670px) {
    .card .titles-box h2 {
        font-size: 14pt;
    }
}
@media (max-width: 500px) {
    .card .titles-box h2 {
        font-size: 12pt;
    }
}

.card-text-page-container {
    position: absolute;
    top: 40%;
    left: 10%;
    right: 10%;
    bottom: 0;
    width: auto;
    height: auto;
    opacity: 0.5;
}

/* 
    FRONT PAGE
*/

.home .card-container {
    height: 500px; /* fallback */
}

/* 3d effect on home-page cards only */
/* initial class names is feature detection in Modernizr,
   so that it's disabled for older browsers */
.csstransforms3d.csstransitions .home .card-container {
    perspective: 500px;
    -webkit-perspective: 500px;
}

.csstransforms3d.csstransitions .home .card {
    transform: rotateX(-90deg);
    -webkit-transform: rotateX(-90deg);

    transform-origin: top;
    -webkit-transform-origin: top;
    opacity: 0;
}

 /* When rotation is complete, the 'done' is assigned */
 .csstransforms3d.csstransitions .home .card.done {
    transform: rotateX(0deg);
    -webkit-transform: rotateX(0deg); 
    opacity: 1;

    transition: transform 0.6s, opacity 0.3s;
    -webkit-transition: -webkit-transform 0.6s, opacity 0.3s;
}

/* Entire card is clickable */
a.full-card-anchor {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 11; /* titles box is z-index 10 */

    /* Fix for un-clickable anchor in IE8 */
    background-image: url(data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==);
}

/* Only darken non-mouse-over cards on desktop, where the concept of mouse over exists */
@media (min-width: 769px) {
    a.full-card-anchor {
        /* Fade in the hover glow slowly */
        background: rgba(0, 0, 0, 0.2);
        transition: background 0.5s;
    }
}

a.full-card-anchor .right-arrow {
    position: absolute;
    width: 70px;  /* fallback */
    height: 70px; /* fallback */
    right: 8%;
    bottom: 8%;
}

/* HACK: Use borderradius to detect > IE8,
   since IE8 can't use height: auto, so we can't
   do responsive scaling of the image. */
.borderradius a.full-card-anchor .right-arrow {
    width: 15%;
    max-width: 98px;
    min-width: 40px;
    height: auto;
}

/* Fade down the slight glow on hover over the cards */
a.full-card-anchor:hover {
    background: rgba(0, 0, 0, 0.0);
    transition: background 0.2s;
}

a.full-card-anchor:hover .right-arrow {
    transform: rotate(90deg);
    -ms-transform: rotate(90deg); /* IE 9 */
    -webkit-transform: rotate(90deg); /* Safari and Chrome */
    transition: transform 0.5s;
    -ms-transition: -ms-transform 0.5s;
    -webkit-transition: -webkit-transform 0.5s;
}

a.full-card-anchor .right-arrow {
    transition: transform 0.2s;
    -ms-transition: -ms-transform 0.2s;
    -webkit-transition: -webkit-transform 0.2s;
}

.corner-widget {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10; /* Same Z as titles widget, but below full-card anchor */
}
/*
    PAGES (Individual projects, and blog too)
*/

body.project {
    background: #ECECEC;
}

.page-container {
    position: relative;
    width: 100%;
    min-width: 320px;
    overflow: auto; /* Forces page to extend to length of blog sidebar */
    background-color: #ECECEC;
    z-index: 1;

    /* Hack for mobile safari z-index popping on blog pages:
        http://stackoverflow.com/questions/18271460/fixed-positioning-z-index-issue-in-mobile-safari  */
    -webkit-transform: translate3d(0,0,0);
}

.page-content {
    position: relative;
    background-color: #ECECEC;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.fixed-banner {
    position: fixed;
    width: 100%;
    background-size: cover;
    background-position: top center;
}

.fixed-banner.alignleft {
    background-position: top left;
}

.page-content ul:not(.nav) {
    padding-left: 3em;
}

.page-content ul:not(.nav) li {
    list-style: none;
    margin-bottom: 1em;
}

.page-content ul:not(.nav) li:before {
    content: "\2605";
    color: #972f26;
    margin-left: -2.0em;
    padding-right: 0.5em;
    float: left;
}

/*
    PROJECT PAGES
*/

.project .card, .card.top-banner {
    height: 440px;
}

.project .fixed-banner, .top-banner .fixed-banner {
    height: 440px;
}

@media (max-width: 400px) {
    .project .card, .card.top-banner,
    .project .card .fixed-banner, .top-banner .fixed-banner {
        height: 300px;
    }
}

/* Titles box shifted up slightly on project pages to make space
   for app icons to intrude into card space. */
.project .card .titles-box {
    bottom: 20%;
}

/* On project pages, the h2 generally fits on the right
   hand side, except for smaller screen sizes, where it goes back
   to its usual position on the left, beneath the h1 */

@media (min-width: 671px) {

    .project .card .titles-box .h1Container {
        width: 50%;
        bottom: 0;
        position: absolute;
    }

    .project .card .titles-box h1 {
        margin-top: 0;
    }

    .project .card .titles-box h2 {
        float: right;
        width: 40%;
        text-align: right;
        margin-right: 0;
        margin-top: 50px;
    }
}

@media (min-width: 670px) and (max-width: 1000px) {
    .project .card .titles-box h2 {
        font-size: 16pt;
    }
}

.project .page-container {
    overflow: visible; /* So that app icons can overflow above container */
}

.project .page-content {
    max-width: 900px;
    padding-left: 10px;
    padding-right: 10px;
}

.project .page-content h3 {
    text-align: center;
}

/*
    PROJECT APP ICON(s) AREA
*/

.app-icon-container {
    position: absolute;
    text-align: center;
    z-index: 10; /* Above vignette on card above */
    top: -50px;
    width: 100%;
    margin-left: -10px;
}

.app-icons-side-spacer {
    display: none;
}

.app-icons-top-spacer {
    display: block;
    height: 180px;
}

/* On desktop, the icons intersect with the banner above */
@media (min-width: 768px) {
    .app-icon-container {
        right: 0;
        width: 50%;
    }

    .app-icons-side-spacer {
        display: block;
        height: 180px;
    }

    .app-icons-top-spacer {
        display: none;
    }

}

.project .app-icon-column {
    display: inline-block;
    width: 155px;
    padding: 11px;
    float: center;
    margin-left: 8px;
    margin-right: 8px;
    border-radius: 30px;
    background: #ECECEC;
    vertical-align: top;
}

.project img.app-icon {
    width: 133px;
    height: 133px;
}

.project img.app-store {
    width: 133px;
}

.project .app-icon-column h2 {
    margin: 0;
    padding: 0;
    margin-top: 0.2em;
    margin-bottom: 0.4em;
    font-size: 16pt;
    font-style: normal;
}

.project .app-icon-column:hover h2 {
    color: #972f26;
}

.project .storeButtonImage {
    width: 135px;
    height: 41px;
}

/* On mobile, drop the size of the icon
   borders as we run out of space to display two side-by-side */
@media (max-width: 400px) {
    .project .app-icon-column {
        width: 120px;
        margin-left: 0px;
        margin-right: 0px;
        padding: 10;
        border-radius: 25px;
    }

    .project img.app-icon {
        width: 100px;
        height: 100px;
        cursor: hand;
    }

    .project img.app-store {
        width: 100px;
        cursor: hand;
    }

    .app-icons-top-spacer {
        display: block;
        height: 120px;
    }

    .project .app-icon-column h2 {
        font-size: 11pt;
    }

    .project .desktop-only {
        display: none;
    }
}

.extra-app-download-button img {
    margin-top: 5px;
    margin-bottom: 5px;
}

.extra-app-download-button.disabled {
    cursor: default;
    pointer-events: none;
}

.extra-app-download-button.disabled img {
    opacity: 0.15;
}

.extra-app-download-button:hover img {
    opacity: 0.8;
}

.extra-app-download-button.disabled:hover img {
    opacity: 0.15;
}

p.aside {
    display: block;
    font-style: italic;
    font-size: 9pt;
    text-align: center;
    clear: both;
    margin-left: 20%;
    margin-right: 20%;
}

p.caption {
    display: block;
    font-style: italic;
    font-size: 9pt;
    text-align: center;
    clear: both;
    margin-left: 20%;
    margin-right: 20%;
}

p.aside strong {
    font-style: italic;
    color: black;
}

/*
    USEFUL WIDGETS
*/

.youtube-embed {
    display: block;
    position: relative;
    width: 80%;
    height: 0;
    padding-bottom: 45%; /* 16:9 ratio * 80% */;
    border-radius: 15px;
    background: gray;
    margin: 0 auto;
    padding-top: 0;
    background-size: cover;
    background-position: center center;
    opacity: 1.0;
}

.youtube-embed:hover {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.youtube-embed img.play {
    display: block;
    position: absolute;
    pointer-events: none;
    margin: 0 auto;
    width: 92px;
    height: 92px;
    left: 50%;
    top: 50%;
    margin-left: -46px;
    margin-top: -46px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px; 
    height: 0; 
    overflow: hidden;
}

/* Hide iframes on home page (they don't seem to work, e.g. for videos) */
.home iframe {
    display: none;
}
 
.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container.no-controls {
    padding-bottom: 56.0%; /* Slightly clipped version of 16:9 (=1:0.5625) to prevent a black line */
    padding-top: 0px; 
}

.lightbox {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.lightbox iframe {
    display: block;
    margin: 0 auto;
}

.full-width-banner {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    margin-top: 15px;
    margin-bottom: 15px;
}

.round-corners {
    border-radius: 15px;
}

blockquote {
    border: 1px solid #AAA;
    border-radius: 15px;
    padding: 1em;
    min-height: 190px;
    margin-top: 10px;
    margin-bottom: 10px;
}

blockquote p, blockquote {
    font-family: Arapey;
    font-style: italic;
    font-size: 18pt;
    text-align: center;
    color: black;
}

blockquote footer {
    font-family: 'Muli', sans-serif;
    text-align: right;
    font-size: 12pt;
    margin-top: 10px;
}

/* Extend blockquotes into the far left/right margin on desktop devices */
@media (min-width: 768px) {
    blockquote.left-quote {
        margin-left: -80px;
        padding-left: 100px;
    }

    blockquote.right-quote {
        margin-right: -80px;
        padding-right: 100px;
    }
}

/* On smaller devices, don't extend so far into the margin */
@media (max-width: 767px) {
    blockquote {
        min-height: 120px;
        font-size: 16pt;
    }
    blockquote.left-quote {
        margin-left: -80px;
        margin-right: 80px;
        padding-left: 20%;
        padding-right: 10%;
    }

    blockquote.right-quote {
        margin-right: -80px;
        margin-left: 80px;
        padding-left: 10%;
        padding-right: 20%;
    }
}

/* Compress even further on true mobile devices */
@media (max-width: 400px) {
    blockquote {
        min-height: 120px;
        font-size: 14pt;
    }
    blockquote.left-quote {
        margin-left: -40px;
        margin-right: 10px;
        padding-left: 20%;
        padding-right: 10%;
    }

    blockquote.right-quote {
        margin-right: -40px;
        margin-left: 10px;
        padding-left: 10%;
        padding-right: 20%;
    }
}

.gallery {
    text-align: center;
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 15%; /* 20% (due to 5 thumbs, * 75% for 4:3 ratio) */
}
.gallery.wide {
    margin-bottom: 11.25%; /* 20% (due to 5 thumbs, * (9/16) for 16:9 ratio) */
}

.gallery .main-image {
    position: relative;
    width: 100%;
    background-repeat: no-repeat;
    background-size: 64px 64px;
    background-position: center center;
    background-image: url(/img/loading_on_white.gif);
    border-radius: 20px;
    overflow: hidden;
    padding-bottom: 75%; /* For 4:3 aspect ratio */
}
.gallery.wide .main-image {
    padding-bottom: 56%; /* For 16:9; aspect ratio */
}

.gallery .main-image img {
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 20px;
    overflow: hidden;
}

.gallery .thumbs {
    position: relative;
    display: block;
    padding: 0;
    margin: 0;
    margin-top: 4px;
}

.gallery .thumbs a {
    display: block;
    width: 20%;
    margin: 0;
    
    float: left;
    position: relative;
    overflow: hidden;

    padding-bottom: 14%;/*  4:3 to get height from 20% width (20*(3/4)), MINUS A BIT to cut off rounding errors */
}
.gallery.wide .thumbs a {
    padding-bottom: 10%;/*  16:9; to get height from 20% width (20*(9/16)), MINUS A BIT to cut off rounding errors */
}

.gallery .thumbs a:not(:first-child) {
    border-left: 1px solid white;
}

.gallery img.thumb {
    display: block;
    position: absolute;
    width: 100%;
    height: auto;
}

.gallery img.thumb:hover {
    opacity: 0.5;
}

.gallery .thumbs a:first-child {
    border-radius: 10px 0 0 10px;
    overflow: hidden;
}
.gallery .thumbs a:last-child {
    border-radius: 0 10px 10px 0;
    overflow: hidden;
}

.gallery  .main-image .loading-backer img {
    display: inline-block;
    width: auto;
}

/*
    BLOG
*/

body.blog {
    background: #ECECEC;
}

.blog .fixed-banner {
    height: 200px;
}

/* Move down to make fixed banner visible */
.blog .page-container {
    margin-top: 200px;
}

.blog h1 {
    font-family: 'Arapey', serif;
    font-size: 60pt;
    color: #B5B5B5;
    line-height: 1.1em;
    padding-top: 20px;
    margin-left: 34px;
    margin-bottom: 20px;
    margin-right: auto;
    margin-top: 0;
    letter-spacing: -0.04em;
}

.blog blockquote {
    height: auto !important;
    min-height: 0;
    margin-left: 5%;
    margin-right: 5%;
}

.blog blockquote p:before {
    position: relative;
    content: "\201C";
}

.blog blockquote p:after {
    position: relative;
    content: "\201D";
}

.page-content ul.sidebar {
    margin: 0;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 50px;
    padding: 0;
    width: 160px;
    list-style: none;
    float: left;
}

.page-content ul.sidebar li {
    font-size: 12pt;
    text-align: right;
    padding-bottom: 30px;
}

.page-content ul.sidebar li:before {
    content: none;
}

.blog-page-container {
    margin-left: 220px;
    margin-right: 12%;
}

/* Hide quick-link sidebar when view gets too small,
   and allow main content to fill the width. */
@media (max-width: 600px) {
    .page-content ul.sidebar {
        opacity: 0;
        margin-left: -100%;
        transition: opacity 0.5s, margin-left 0.5s;
    }

    .page-content h1,
    .blog-page-container {
        margin-left: 5%;
        margin-right: 5%;
        transition: margin-left 0.5s;
    }

    .page-content h1 {
        font-size: 50pt;
    }
}

/* Transitioning back in again */
.page-content h1,
.blog-page-container {
    transition: margin-left 0.5s;
}

.page-content ul.sidebar {
    transition: opacity 0.5s, margin-left 0.5s;
}


/* As we approach normal mobile resolution, reduce font size */
@media (max-width: 400px) {
    p, .page-content ul li {
        font-size: 12pt;
    }
}

.blog article header {
    margin-bottom: 20px;
}

/* Use blog class to be general for treatment of excerpt on
   front page as well without being specific to the page-content
   container */
.blog article header h1 {
    color: black;
    font-family: 'Arapey', serif;
    font-size: 26pt;
    line-height: 46px;
    margin: 0;
    padding: 0;
    line-height: 0.9em;
}

.blog article header a h1 {
    font-style: normal;
}

.blog article header a:hover h1 {
    color: #972f26;
}

.blog article header time {
    font-size: 12pt;
    font-style: italic;
    margin: 0;
    padding: 0;
}

/* General treatment of images in blog content */
.blog article img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.blog article {
    position: relative;
    margin-bottom: 10%;
}

.blog-overview-container {
    position: relative;
}

.blog-overview-container img.fade-gradient {
    position: absolute;
    width: 100%;
    height: 20em;
    bottom: 0px;
    pointer-events: none;
}

.blog-overview-container .down-arrow-container a {
    position: relative;
    display: block;
    width: 15%;
    height: 44px;
    min-width: 40px;
    height: auto;
    margin: 0 auto;
}

.blog-overview-container a.comment-count {
    background: black;
    float: right;
    font-family: Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: bold;
    text-align: center;
    font-size: 16pt;
    color: white;
    width: 1.9em;
    height: 1.9em;
    line-height: 2.0em;
    border-radius: 50%;
    margin-right: 5%;
    opacity: 0.3;
    transition: opacity 1.0s;
}

.blog-overview-container a.comment-count:hover {
    opacity: 1.0;
    background: #972f26;
}

/* Hide when comment-count when it's zero (empty).
   Only works in CSS3, but not the end of the world
   if older browsers see an empty dot. */
.blog-overview-container a.comment-count:empty {
    opacity: 0;
}

.blog.post .container {
    max-width: 700px;
    padding-top: 20px;
    position: relative;
}

a.back {
    position: absolute;
    font-size: 36pt;
    left: -60px;
    top: 20px;
    display: block;
    opacity: 0.5;
}

a.back:hover {
    opacity: 1.0;
}

@media(max-width: 820px) {
    a.back {
        position: relative;
        float: left;
        font-size: 24pt;
        left: 0;
        top: 0;
        line-height: 1.5em;
        z-index: 1;
        margin-left: -10px;
    }
}

.blog article.blog-post header h1 {
    font-size: 42pt;
    margin-bottom: 0.25em;
}

/* image swapping for down arrows */
a img.highlight, a img.no-highlight {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.5s;
}
a img.no-highlight {
    opacity: 1;
}
a img.highlight {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
}
a:hover .no-highlight {
    opacity: 0;
}
a:hover img.highlight {
    opacity: 1;
}

.blog-overview-container .down-arrow-container {
    position: absolute;
    width: 100%;
    height: 64px;
    bottom: 0px;
}

.blog .vignette-overlay {
    opacity: 0.3;
    position: fixed; /* fill entire view */
    display: none; /* fallback when opacity isn't supported */
    z-index: 20;
}

/* opacity supported - show overlay */
.opacity .blog .vignette-overlay {
    display: block;
}

.blog .pagination {
    text-align: center;
    display: block;
}

/*
    INKLEWRITER
*/

.inklewriter-button {
    display: block;
    background: #893b35;
    border-radius: 20px;
    color: white;
    font-family: 'Muli', sans-serif;
    font-weight: bold;
    font-style: normal;
    font-size: 12pt;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    transition: background 0.3s;
}

.inklewriter-button:hover {
    background: black;
    color: white;
    transition: background 0.3s;
}

.inklewriter ul.menu {
    border: 1px solid #AAA;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    width: 300px;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.inklewriter .page-content ul.menu li {
    text-indent: 0;
    margin: 0;
    text-align: center;
    display: block;
    border-top: 1px solid #AAA;
}

.inklewriter .page-content ul.menu li:first-child {
    border-top: none;
}

.inklewriter .page-content ul.menu li a {
    display: block;
    width: 100%;
    line-height: 2em;
    font-style: normal
}

.inklewriter .page-content ul.menu li a:hover {
    background: white;
}

.inklewriter .page-content ul.menu li:before {
    content: none;
}

/* Change the height of the "app icon" column,
   which is what's used to house the buttons on the inklewriter page,
   such as "START WRITING" */
.inklewriter.subpage .app-icons-top-spacer {
    height: 40px;
    display: block;
}

.inklewriter.subpage .app-icon-container {
    position: absolute;
    width: 370px;
    left: 50%;
    margin-left: -185px;
}

/* Hide the icons at the top entirely on mobile, since
   you don't want to be attempting to use inklewriter on it anyway! */
@media(max-width: 400px) {
    .inklewriter .app-icon-container {
        display: none;
    }
    .inklewriter .app-icons-top-spacer {
        display: none;
    }
}

/* Mailchimp */
#mc_embed_signup {
    padding: 25px;
    border: 1px solid #BBB;
    border-radius: 20px;
    font-family: ;
    font-weight: bold;
    text-align: center;
}

#mc_embed_signup label {
    font-size: 12pt;
    color: #777;
}

#mc_embed_signup input {
    width: 100%;
    margin: 15px auto;
}

#mc_embed_signup button {
    display: block;
    margin: 10px auto;
    font-family: 'Muli', sans-serif;
    font-weight: bold;
}

#mc_embed_signup .dontworry {
    font-style: italic;
    font-weight: normal;
    font-size: 10pt;
    color: #AAA;
}

/* Made in Creative UK logo */
.madeInCreativeUK {
    display: block; 
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 10px;
    opacity: 0.6;
    width: 144px;
    height: 78px;
}

.madeInCreativeUK:hover {
    opacity: 1.0;
}

/* PRESS KIT */

/* Prevent long URLs from making div too wide on mobile */
.presskit .press-main {
    overflow: hidden; 
    max-width: 100%;
}

.presskit h1 {
  text-align: center;
  font-size: 42pt;
}

.presskit h2 {
  border-bottom: 1px solid #AAA;
  overflow: hidden;
  color: #444;
  font-size: 18pt;
  margin-top: 2em;
}

.presskit h3 {
  font-size: 14pt;
  font-weight: bold;
}

.presskit .factsbox {
  float: right;
  border: 1px solid gray;
  border-radius: 15px;
  padding: 15px;
  max-width: 350px;
  margin: 25px;
}

.presskit .factsbox p {
  text-align: left;
  font-size: 10pt;
  text-indent: -50px;
  padding-left: 50px;
}

@media (max-width: 580px) {
  .presskit .factsbox {
    max-width: 580px;
  }
  .presskit .factboxbreaker {
    clear: both; 
  }
}

body.presskit p, body.presskit li {
  font-size: 12pt;
}

body.presskit li {

}

.presskit .image-download-link {
  text-align: center;
  font-size: 10pt;
  display: block;
  margin-bottom: 10px;
  margin-top: 10px;
}

.downloadable-image {
  margin-top: 5px;
  margin-bottom: 5px;
}

.downloadable-image h4 {
  font-size: 14pt;
  text-align: center;
}

.presskit hr {
    clear: both;
    border-bottom: none;
}

.presskit p.pressContact {
    text-align: center;
    margin-bottom: 35px;
    font-size: 12pt;
    font-style: italic;
}

/* Not sure why this is necessary - p tags are dropping below their custom bullet */
.presskit li p {
    display: inline;
}

.presskit .trailer-info h3 {
    font-size: 14pt;
    text-align: center;
}

.presskit .trailer-info p, .presskit .trailer-info a {
    text-align: center;
    font-size: 12pt;
    display: block;
    padding: 0;
    margin: 0;
}


  .eightydaysawards .award {
    display: inline-block;
    padding: 15px 30px 15px 30px;
  }

  .eightydaysawards .moreToggle {
    margin: 20px 30px 15px 30px;
    clear: both;
    display: block;
  }

  .eightydaysawards .award, .moreToggle {
    opacity: 0.65;
  }
  .eightydaysawards .award:hover, .moreToggle:hover {
    opacity: 1.0;
  }

  @media (min-width: 770px) {
    .eightydaysawards .time-full-width-only {
      display: inline-block;
    }
    .eightydaysawards .time-narrow-width-only {
      display: none;
    }
  }
  @media (max-width: 769px) {
    .eightydaysawards .time-full-width-only {
      display: none;
    }
    .eightydaysawards .time-narrow-width-only {
      display: inline-block;
    }
  }

/* Ideally we'd write section headers like this:

    <h2 id="mySection">My Section</h2>

    and link to them: <a href="...blah.html#mySection">...</a>

    Unfortunately there are two problems:
       - markdown doesn't provide syntax for it
       - even if we use an explicit h2 tag, when to follow the link
         it positions the title directly underneath the navbar :-(

    Solution is to write markdown like this:

    <div id="arcticupdate" class="hashmarker"></div>
    ## Arctic Update - released December 16th, 2014

    i.e. Just add a div with that class and the id you want whenever
    you need to link to it. Sigh.
*/
.hashmarker {
    position: relative; 
    top: -50px;
}

.nowrap {
    white-space: nowrap;
}

/* Ink page specific stuff */

.ink .ink-section-button {
    font-family: Verdana, sans-serif;
    display: block;
    color: white;
    font-style: normal;
    font-size: 10pt;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    border-radius: 5px;
    background: #C25C5C;
    padding: 15px 0 15px 0;
    max-width: 300px;
    margin: 5px auto;
}

.ink .ink-section-button:hover {
    background-color: #773232;
    cursor: hand;
}

.ink .ink-section-button.secondary {
    border: 2px solid #C25C5C;
    background: none;
    color: #C25C5C;
}

.ink .ink-section-button.secondary:hover {
    border: 2px solid #773232;
    background: white;
    color: #773232;
}

.ink .inlineGithubLogo {

    display: inline-block;
    width: 25px;
    height: 25px;
    margin-right: 5px;
}