
/*! 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 {
    color: #222;
    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,
svg,
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;
}

.browsehappy a:link, .browsehapy a:visited, .browsehapy a:active{
    text-decoration: underline;
    color: #666;
}

.browsehappy a:hover{
    text-decoration: underline;
    color: #000;
} 

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

/**
*
* Hides the flickering color on "click" for touch devices
*
**/

*{
    -webkit-tap-highlight-color:transparent;
}

/**
*
* I like explicitly adding anchor styles :)
*
**/

body a:link, body a:visited, body a:active{
    text-decoration: none;
    color: inherit; 
}

/**
*
* Resetting default anchor styles for page content...
* hypocritical...probably...
*
**/

.ezedit_body a:link, .ezedit_body a:visited, .ezedit_body a:active{
    text-decoration: underline;
    /*color: #43adce;*/
}
.ezedit_body a:hover{
    text-decoration: underline;
    color: #767a7d;
}

/**
*
* Keeps viewport width the same by always having scrollbar...* 
* and remedies inconsitencies of how mobile devices display the scrollbar
* and effects of page transitions
*
**/

html{

    overflow-x: hidden !important;

}

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


/*===================================
=            Back to Top            =
===================================*/

.btp-wrapper{
    
    position: fixed;
    z-index: 99;
    width: 100%;
    bottom: 3.5em;

     -webkit-transition: all 0.3s ease-out; 
     -moz-transition: all 0.3s ease-out; 
       -o-transition: all 0.3s ease-out; 
          transition: all 0.3s ease-out;

}

.btp-container{
    
    position: relative;
    width: 100%;
    margin: 0;

}



.back-to-top{
    
    position: absolute; 
    bottom: 0;
    right: 1em;
    cursor: pointer;
    display: none;

}

.no-mobile .back-to-top{
    right: 1.75em;
}

.back-to-top img{

    opacity: 0.5;
    -webkit-transition: 0.25s opacity ease-out;
    -moz-transition: 0.25s opacity ease-out;
    -ms-transition: 0.25s opacity ease-out;
    -o-transition: 0.25s opacity ease-out;
    transition: 0.25s opacity ease-out;

}

.back-to-top:hover img{
    opacity: 1;
}

.btp-target{
    
    position: absolute;
    left: 0;
    top: 1.25em;

}


/*===================================
=            Social Plugins         =
===================================*/

.plusone{
    width: 58px !important;
    vertical-align: bottom !important;
    margin-bottom: 5px !important;
}

iframe[id^='twitter-widget']{
    
    vertical-align: bottom;
    margin-bottom: 0.375em;

}

.fb_iframe_widget{

    margin-bottom: 5px !important;

}


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

/*
 * 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;
}

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

   /* 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;
    }

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

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