/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

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

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

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

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

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

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

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    background-color: #ECECEC;
}

h1 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    line-height: 26px;
}
h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-variant: normal;
    font-weight: 500;
    line-height: 15px;
}
p {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: .95em;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    line-height: 20px;
}
blockquote {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 21px;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    line-height: 30px;
}
pre {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    line-height: 18px;
}

a {
    text-decoration: none;
    color: #FCA8DD;
}

a:hover {
    opacity: .5;
}

#header {
    position: fixed;
    top: 0px;
    z-index: 15;
    width: 100%;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
    cursor: pointer;
}

#top {
    font-size: 18px;
    width: 71%;
    margin: auto;
}

    #social {
        float: left;
        text-align: left;
        padding: 15px;
        color: #888888;
    }

    #details {
        float: right;
        width: 10%;
        color: #888888;
        padding: 15px;
        text-align: right;
    }

    #contact {
        text-align: center;
        margin: auto;
        padding: 15px;
    }

    #contact img {

    }


.all {

}

.all .loading {
    position: absolute;
    top: 70%;
    left: 50%;
    -moz-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, 0);
    color: #5AAFF9;
    text-align: center;
    font-style: italic;
}

#about {
    position: fixed;
    top: 50%;
    width: 50%;
    height: auto;
    right: -60%;
    padding: 3%;
    z-index: 10;
    -moz-transform: translate(0%, -50%);
    -o-transform: translate(0%, -50%);
    -ms-transform: translate(0%, -50%);
    -webkit-transform: translate(0%, -50%);
    transform: translate(0%, -50%);
    -webkit-transition: all 350ms ease-out;
    -moz-transition: all 350ms ease-out;
    -ms-transition: all 350ms ease-out;
    -o-transition: all 350ms ease-out;
    transition: all 350ms ease-out;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.05);
    padding-right: 25px;
    border: 1px solid #ededed;
    opacity: .9;
    display: flex;
    display: -webkit-flex;
    -webkit-align-items: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-justify-content: center;
}

#about div {
    width: 80%;
    margin: 10px;
}

#about div h3 {
    font-weight: bold;
}

#about div p {
    width: 100%;
    margin-bottom: 10px;
}

#about.open {
    right: 20%;
}

#content {
    margin-top: 35px;
    width: 100%;
    overflow: hidden;
}

#content img {
    width: 100%;
}

#content::after {
/* make the bottom fade out */
}

.datesep {
    clear: both;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #B0B0B0;
    font-weight: bold;
    opacity: .7;
    margin: 0 0 12px;
    padding-top: 24px;
}

.text {
    border-radius: 10px;
    clear: both;
    margin: 13px;
    max-width: 80%;
    padding: 5px 15px;
    position: relative;
    width: 33%;
}

    .text::before {
        border-radius: 50% 50% 50% 50%;
        border-style: solid;
        border-width: 0 20px;
        bottom: 0;
        clip: rect(20px, 35px, 42px, 0px);
        content: " ";
        height: 40px;
        position: absolute;
        right: -50px;
        width: 30px;
        z-index: -1;
    }

    .text::after {
        position: absolute;
        font-size: .8em;
        color: #B0B0B0;
        content: attr(data-after);
        bottom: -21px;
    }

.me {
    background: #FCA8DD;
    float: right;
    color: #fff;
    right: 15%;
}

    .me::before {
        color: #FCA8DD;
    }

    .me::after {
        right: 5px;
    }

.optimism {
    background: #FFFFFF;
    color: #888888;
    float: left;
    left: 15%;
}

    .optimism::before {
        left: -50px;
        color: #FFFFFF;
        -webkit-transform: rotateY(180deg);
        -moz-transform: rotateY(180deg);
        transform: rotateY(180deg);
    }

    .optimism::after {
        left: 5px;
    }

.pessimism {
    background: #888888;
    color: #fff;
    float: left;
    left: 15%;
}

    .pessimism::before {
        left: -50px;
        color: #888888;
        -webkit-transform: rotateY(180deg);
        -moz-transform: rotateY(180deg);
        transform: rotateY(180deg);
    }

    .pessimism::after {
        left: 5px;
    }

#footer {
    position: fixed;
    z-index: 15;
    background: #fff;
    color: #888888;
    opacity: .5;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    bottom: 0;
    right: 40%;
    width: 20%;
    height: 25px;
    text-align: center;
    padding: 9px;
    cursor: pointer;
}

#footer:hover {
    opacity: 1;
}

.wrap {
  -webkit-transition: all 250ms ease-out;
  -moz-transition: all 250ms ease-out;
  -ms-transition: all 250ms ease-out;
  -o-transition: all 250ms ease-out;
  transition: all 250ms ease-out;
}

.hide {
  opacity: .5;
}

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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

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

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

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

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media (max-width: 640px) {
    #header {
        width: 100%;
        font-size: 3.2vw;
    }

    #contact img {
        width: 100%;
    }

    #top {
        width: 100%;
    }

    #about {
        width: 90%;
        right: -110%;
    }

    #about.open {
        right: 0%;
    }

    .text {
        width: 46%;
    }

        .me {
            right: 3%;
        }

        .optimism {
            left: 3%;
        }

        .pessimism {
            left: 3%;
        }

    #content div .assets {
    
    }
}

@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
     */

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

    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 {
        page-break-after: avoid;
    }
}
