/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.45;
    height: 100%;
}
body {
    font-family: 'Cairo', Roboto, sans-serif;
    font-size: 18px;
    height: 100%;
}
h2 {
    font-weight: 200;
    font-size: 2.2em;
    margin-top: 0px;
    color: rgba(0, 0, 0, .5);
}
h3 {
    padding-bottom: 8px;
    margin-bottom: 0px;
    font-size: 1.7em;
}
a:link,
a:hover,
a:visited {
    color: rgba(41, 143, 159, 1);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
header {
    z-index: 5;
}
.desktop {
    color: #ffffff;
    background-color: #252525;
    width: 100%;
    position: fixed;
    top: 0;
}
.mobile {
    color: #ffffff;
    background-color: #252525;
    width: 100%;
    position: fixed;
    top: 0;
    text-align: center;
    display: none;
}
.mobile .header-content {
    padding: 0em 0em 0em 0em;
    display: block;
}
.desktop .header-content {
    padding: 0em 20% 0em 20%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.header-content a {
    color: #e0e0e0;
}
.header-content .title a {
    color: #ffffff;
}
.header-content a:hover {
    color: #ffffff;
    text-decoration: none;
}
.title {
    padding: 8px 8px 8px 0px;
    font-weight: 700;
}
.desktop .title:before {
    content: "";
    width: 24px;
    height: 24px;
    display: inline-block;
    border-radius: 12px;
    background-image: url("../img/conloquium.svg");
    background-size: 24px;
    margin-right: 8px;
    vertical-align: -7px;
}
.nav-links {
    margin-left: 0px;
    list-style: none;
    margin-top: 0px;
    margin-bottom: 0px;
}
.nav-links li {
    display: inline-block;
    padding: 8px;
}
footer {
    display: block;
    width: 100%;
    background-color: rgba(109, 51, 39, 1);
    color: #ffffff;
    padding-bottom: 50px;
}
.footer-content {
    padding: 0em 20% 0em 20%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
}
.footer-content h4 {
    margin-bottom: 0px;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: .15em;
}
footer a:link,
footer a:hover,
footer a:visited {
    color: #ffffff;
    text-decoration: underline;
}
.footer-content p {
    font-size: .8em;
}
.footer-content section {
    width: 30%;
    display: block;
    min-width: 250px;
}
.license {
    text-align: center;
    font-size: .7em;
}
.license img {
    margin-bottom: 8px;
    margin-top: 8px;
}
.citation {
    display: block;
    max-width: 400px;
    height: 100vh;
    position: fixed;
    right: -450px;
    z-index: 600;
    background-color: #f1f1f1;
    border-left: 1px solid #e0e0e0;
    box-shadow: -5px 0px 7px 0px rgba(0, 0, 0, 0.2);
}
.citation-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 0px 16px 0px 16px;
}
.citation-header a:hover {
    text-decoration: none;
}
.citation-content {
    overflow-y: scroll;
    height: calc( 100% - 70px );
    padding-bottom: 100px;
    padding: 16px;
    font-size: .75em;
}
.closer {
    font-size: 1.7em;
    vertical-align: -2px;
}
article {
    padding: 2em 20% 2em 20%;
}
article a {
    font-weight: 600;
}
.reference {
    margin-top: 0px;
    font-weight: 300;
    padding-top: 0px;
    color: rgba(0, 0, 0, .5);
    border-top: 1px solid #e0e0e0;
    padding-left: 0px;
    padding-bottom: 16px;
}
.reference li {
    display: inline-block;
    border-right: 1px solid #e0e0e0;
    padding: 8px 12px 0px 0px;
}
.reference li span {
    display: block;
}
.reference li:last-child {
    border-right: 0px;
    padding: 8px 12px 0px 12px;
}
main {
    counter-reset: parent-counter 0;
}
.ask li {
    counter-increment: parent-counter;
    list-style-type: none;
    position: relative;
    padding-left: 8px;
    margin-bottom: 8px;
}
.ask li:before {
    content: counter(parent-counter) ".";
    display: block;
    position: absolute;
    margin-left: -50px;
    font-weight: 400;
}
.ask {
    font-size: 1.3em;
    font-weight: 300;
}
.final .ask li:before {
    margin-left: -55px;
}
.tweet {
    display: inline-block;
    padding: 4px 8px 4px 25px;
    background-image: url("../img/twitter.svg");
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: 5px 5px;
    font-size: .65em;
    border: 1px solid rgba(0, 172, 237, 1);
    border-radius: 3px;
    font-weight: 400;
    line-height: 100%;
    margin-left: 8px;
    opacity: .3;
    vertical-align: 2px;
}
a:link.tweet,
a:hover.tweet,
a:visited.tweet {
    color: rgba(0, 172, 237, 1);
    text-decoration: none;
}
a:hover.tweet {
    opacity: 1;
}

.timeline-holder {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    padding: 24px 16px 16px 16px;
}
.timeline {
    border-radius: 3px;
    width: 25%;
    min-width: 200px;
    border: 1px solid #e0e0e0;
    padding: 16px;
    background-color: #ffffff;
    margin-bottom: 16px;
}
.photo-background {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    text-shadow: 0px 0px 12px rgba(0, 0, 0, 1);
    color: #ffffff;
    padding: 2em 20% 2em 20%;
    font-weight: 600;
}
.photo-background h2 {
    color: #ffffff;
    font-weight: 300;
}
.photo-background p {
    text-align: center;
}
.brain {
    background-image: url("../img/brain.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.brasilia {
    background-image: url("../img/brasilia.jpg");
    background-size: cover;
    background-position: center;
}
.cdf1975 {
    background-color: rgba(230, 240, 156, .4);
}
.cdf1986 {
    background-color: rgba(192, 239, 231, .5);
}
.cdf1992 {
    background-color: rgba(242, 249, 144, .6)
}
.cdf2003 {
    background-color: rgba(237, 99, 14, .1)
}
.italians1 {
    background-color: rgba(184, 198 ,72, 1);
    color: #ffffff;
    padding: 2em 20% 2em 20%;
    font-weight: 400;
    font-size: 1.5em;
    text-align: center;
}
.gaudium-spes {
    background-color: rgba(237, 99, 14, 1);
    color: #ffffff;
    padding: 4em 20% 2em 20%;
    font-weight: 400;
    font-size: 1.2em;
    text-align: center;
}
.intro {
    color: #ffffff;
    padding: 2em 20% 2em 20%;
    background-color: rgba(41, 143, 159, 1)
}
.intro p:last-child {
    font-weight: 700;
    font-size: 1.2em;
}
.sagrada-familia {
    background-image: url("../img/sagrada-familia.jpg");
    font-size: 3em;
    text-align: center;
    -webkit-text-stroke: 1px #252525;
}
.gaudium {
    background-image: url("../img/francis1.jpg");
    padding: 12em 20% 2em 20%;
    text-align: center;
    font-size: 1.2em;
}
.francis2 {
    background-image: url("../img/francis2.jpg");
    padding: 12em 20% 2em 20%;
    text-align: center;
    font-size: 1.5em;
}
.stonewall {
    background-image: url("../img/stonewall.jpg");
    font-size: 2em;
}
.aids {
    background-image: url("../img/aids.jpg");
    font-size: 2em;
}
.deesis {
    background-image: url("../img/deesis.jpg");
    background-position: top;
    padding-top: 12em;
    font-size: 1.2em;
}
.guadalupe {
    background-image: url("../img/guadalupe.jpg");
    padding-top: 12em;
    font-size: 1.2em;
}
.cologne {
    background-image: url("../img/koelner-dom.jpg");
    font-size: 2em;
}
.luther {
    background-image: url("../img/luther.jpg");
    font-weight: 700;
    padding-top: 12em;
}
.luther p {
    font-size: 3em;
}
.luther p {
    margin-top: 0px;
    margin-bottom: 0px;
}
.luther p.reformanda {
    font-size: 2em;
    font-weight: 300;
}
.luther p.reformation {
    text-transform: uppercase;
    letter-spacing: .25em;
}
.final {
    background-color: rgba(237, 99, 14, 1);
    color: #ffffff;
    font-size: 1.4em;
}
.final .tweet {
    background-size: 26px;
    padding-left: 35px;
}
.quote-source {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .7em;
    font-weight: 300;
}
.follow {
/*    width: 226px;*/
    padding: 24px 0px 0px 0px;
    text-align: center;
/*    display: block;
    margin: auto auto;
    position: relative;*/
}


/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}



/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}


/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */


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

/* Smartphones (portrait and landscape) ----------- */
@media screen and (max-width: 800px) { 

    .mobile {
        display: block;
    }
    .desktop {
        display: none;
    }
    .footer-content,
    .header-content {
        padding: 0em 1em 0em 1em;
    }
    .gaudium-spes {
        padding: 4em 1em 2em 1em;
    }
    .gaudium, 
    .francis2 {
        padding: 12em 1em 2em 1em;
    }
    article,
    .photo-background,
    .italians1,
    .intro {
        padding: 2em 1em 2em 1em;
    }
    .sagrada-familia {
        font-size: 1.5em;
    }
    .cologne,
    .stonewall,
    .aids {
        font-size: 1.5em;
    }
    .aids {
        background-position: left;
    }
    .final {
        font-size: 1.3em;
    }
    .reference li {
        border-right: 0px;
        padding: 8px 12px 0px 0px;
    }
    .reference li:last-child {
        border-right: 0px;
        padding: 8px 12px 0px 0px;
    }
    .luther p {
        font-size: 1.5em;
    }
    .title {
        padding: 8px 0px 0px 0px;
    }
    .nav-links {
        display: block;
        padding-left: 0px;
    }
    .footer-content {
        padding: 0em .3em 0em .3em;
    }
    .ask {
        font-size: 1.2em;
    }
    .tweet {
        opacity: 1;
    }

}
@media screen and (max-width: 479px) {
    .photo-background.gaudium p {
        text-align: left;
        width: 70%;
    } 
    article#year1975,
    article#year1986,
    article#year1992,
    article#year1997,
    article#year2003 {
        padding: 3.5em 1em 2em 1em;
    }
}

@media screen and (min-width: 1680px) { 
    body {
        font-size: 26px;
    }
    .desktop .header-content {
        padding: 0em 30% 0em 30%;
    }
    .footer-content {
        padding: 0em 30% 0em 30%;
    }
    .gaudium-spes {
        padding: 4em 30% 2em 30%;
    }
    .gaudium, 
    .francis2 {
        padding: 12em 30% 2em 30%;
    }
    article,
    .photo-background,
    .italians1,
    .intro {
        padding: 2em 30% 2em 30%;
    }
    .deesis,
    .guadalupe,
    .francis2,
    .gaudium,
    .luther {
        padding: 20em 30% 2em 30%;
        min-height: 650px;
    }
    .final .tweet {
        background-size: 26px;
        padding-left: 35px;
    }
}



/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

}
