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

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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 and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

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


/*-------------------------- resets --------------------*/

h1, h2, h3, h4, h5, h6, p, ul, li, hr {
    margin: 0;
    padding: 0;
    font-weight: 400;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

a:hover {
    filter: alpha(opacity=80);
    -moz-opacity: 0.8;
    opacity: 0.8;
}

body, input {
    font-size: 100%;
    font-family: "Muli", "Arial", sans-serif;
}

input, textarea {
    outline: none;
}

img {
    max-width: 100%;
}

.form-thankyou {
    padding: 10px;
}

/*-------------------------- typography --------------------*/

h1 {
    color: #2997d2;
    font-family: "Economica",sans-serif;
    font-size: 1.6875em; /* 27 / 16 */
    line-height: 1.148148148; /* 31 / 27 */
    margin-bottom: 10px;
}

h2, .span-h2 {
    color: #2997d2;
    font-family: "Economica", sans-serif;
    font-size: 1.375em; /* 22 / 16 */
    line-height: 1.181818182; /* 26 / 22 */
    margin-bottom: 10px;
}

h3 {
    color: #2997d2;
    font-family: "Economica", sans-serif;
    font-size: 1.125em; /* 18 / 16 */
    line-height: 1.277777778; /* 23 / 18 */
    margin-bottom: 10px;
}

h4 {
    color: #2997d2;
    font-family: "Economica", sans-serif;
    font-size: 1.125em; /* 18 / 16 */
    line-height: 1.181818182; /* 26 / 22 */
    margin-bottom: 10px;
}

p {
    font-size: .75em; /* 12 / 16 */
    color: #787878;
    line-height: 1.916666667; /* 23 / 12 */
    margin-bottom: 10px;
}

a {
    color: #2997d2;
}

/*-------------------------- header --------------------*/

.header-outer {
    background: #f5f3f4 url('../img/header-outer.jpg') bottom repeat-x;
    border-top: 6px solid #005688;
}

.header {
    margin: 0 auto;
    max-width: 978px;
    padding: 10px 0 0;
    overflow: hidden;
}

.header-logo {
    float: left;
    margin-bottom: 10px;
    padding: 0 2%;
}

.header-subpage-title {
	padding: 15px 0 10px;
    float: left;
    font-size: 27px;
    color: #2997d2;
    font-family: "Economica", sans-serif;
    overflow: hidden;
    width: 25%;
    height: 30px;
}

.header-contact {
    float: right;
    text-align: right;
    padding: 5px 2% 0;
}

.header-contact-phone {
    position: relative;
    top: -3px;
}

.header-contact-title {
    line-height: 30px;
    color: #05547E;
    font-size: 1.5em; /* 24 / 16 */
}

.header-contact-title-span {
    color: #808183;
}

.header-nav {
    clear: both;
}

.header-nav-list {
    overflow: hidden;
    background: url('../img/header-nav-list.jpg') top right;
}

.header-nav-item {
    position: relative;
    float: left;
    height: 44px;
    background: url('../img/header-nav-item-seperator.jpg') left no-repeat;
}

.header-nav-item-arrow {
    display: none;
    position: absolute;
    bottom: -4px;
    left: 45%;
}

.header-nav-item:hover,
#home .header-nav-item-home,
#buying-and-selling .header-nav-item-buying-and-selling,
	#buyers-information .header-nav-item-buying-and-selling,
	#sellers-info .header-nav-item-buying-and-selling,
	#current-listings .header-nav-item-buying-and-selling,
	#recently-sold .header-nav-item-buying-and-selling,
	#agents .header-nav-item-buying-and-selling,
#landlords .header-nav-item-landlords,
    #property-management .header-nav-item-landlords,
        #penthouses .header-nav-item-landlords,
        #waterfront-mansions .header-nav-item-landlords,
        #beachfront-homes .header-nav-item-landlords,
        #apartments .header-nav-item-landlords,
    #why-gcrp .header-nav-item-landlords,
    #property-portfolio .header-nav-item-landlords,
    #faqs .header-nav-item-landlords,
#tenants .header-nav-item-tenants,
    #executive-rentals .header-nav-item-tenants,
    #application-forms .header-nav-item-tenants,
    #listings .header-nav-item-tenants,
#holiday-rentals .header-nav-item-holiday-rentals,
#our-team .header-nav-item-our-team,
#media .header-nav-item-media,
#contact .header-nav-item-contact {
    background: url('../img/header-nav-item-hover.png') left no-repeat;
}

.header-nav-item-last:hover {
    background: url('../img/header-nav-item-seperator.png') left no-repeat;
}

.header-nav-item-first {
    background: url('../img/header-nav-item-first.jpg') left repeat-x;
}

.header-nav-item-link {
    display: block;
    height: 36px;
    color: #fff;
    font-family: "Economica", sans-serif;
    font-size: 20px;
    padding: 8px 15px 0;
}

.header-nav-item-facebook {
    padding: 10px 0 0 20px;
}

.header-subnav-list {
    background: #2378a5;
    overflow: hidden;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.header-subnav-item {
    float: left;
    background: url('../img/header-subnav-item.png') right no-repeat;
}

.header-subnav-item-last {
    background: none;
}

.header-subnav-item-link {
    display: block;
    color: #88C0DF;
    font-family: "Economica", sans-serif;
    font-size: 17px;
    padding: 3px 15px 5px;
}

.header-subnav-item-link:hover,
#buyers-information .header-subnav-item-buyers-information,
	#buyers-information .header-subnav-item-buyers-information,
	#sellers-info .header-subnav-item-sellers-info,
	#current-listings .header-subnav-item-current-listings,
	#recently-sold .header-subnav-item-recently-sold,
	#agents .header-subnav-item-agents,
#property-management .header-subnav-item-property-management,
#why-gcrp .header-subnav-item-why-gcrp,
#property-portfolio .header-subnav-item-property-portfolio,
    #penthouses .header-subnav-item-property-portfolio,
    #waterfront-mansions .header-subnav-item-property-portfolio,
    #beachfront-homes .header-subnav-item-property-portfolio,
    #apartments .header-subnav-item-property-portfolio,
#faqs .header-subnav-item-faqs,
#executive-rentals .header-subnav-item-executive-rentals,
#application-forms .header-subnav-item-application-forms,
#listings .header-subnav-item-listings {
    color: #fff;
}




.header-subnav-item-highlight {
    background: url('../img/header-subnav-item-highlight.png') repeat-x;
}

.header-subnav-item-link-highlight {
    color: #fff;
}

/*-------------------------- features --------------------*/

.features-outer {
    background: none repeat scroll 0 0 #f5f4f4;
    border-top: 1px solid #dddcdd;
}

.features {
    margin: 0 auto;
    max-width: 978px;
    overflow: hidden;
    padding: 30px 2% 0px;
}

.feature-col {
    float: left;
    width: 20.5%;
    margin: 0 0 20px 2%;
    border-radius: 10px;
    padding: 10px 1%;
}

.feature-col-hover {
    background: #e2e1e1;
}

.feature-col-first {
    padding: 10px 0px;
    width: 22.5%;
    margin: 0 0 20px 2%;
}

.feature-col-last {
    margin-right: 0px;
}

.feature-icon {
    float: left;
    margin: 0 5px 10px 0;
}

.feature-title {
    position: relative;
    top: 10px;
    float: left;
    padding-bottom: 10px;
    font-size: 20px;
}

.feature-break {
    display: block;
    clear: both;
    margin: 0 0 10px;
}

.feature-read-more {
    background: #2997d2;
    color: #fff;
    font-size: 1em; /* 16 / 16 */
    padding: 5px 10px;
    border-radius: 3px;
    font-family: "Economica", sans-serif;
}

/*-------------------------- footer --------------------*/

.footer-outer {
    background: url("../img/footer-outer.jpg") repeat-x scroll center top #05547E;
}

.footer {
    margin: 0 auto;
    max-width: 978px;
    padding: 30px 2%;
    overflow: hidden;
}

.footer-col {
    float: left;
    width: 22.5%;
    margin: 0 0 0 2%;
}

.footer-col-last {
    margin-right: 0px;
}

.footer-title-link {
    color: #2997d2;
}

.footer-text, .footer-link {
    color: #fff
}

.footer-icons {
    overflow: hidden;
    margin-bottom: 10px;
}


.footer-icons-item {
    float: left;
    margin-right: 3%;
}

.footer-form-input {
    width: 90%;
    color: #fff;
    background: transparent;
    border: 1px solid #0c6594;
    font-size: .75em; /* 12 / 16 */
    padding: 3px 5px;
    font-style: italic;
    margin-bottom: 5px;
    outline: none;
    -moz-box-shadow: inset 1px 1px 2px #02385e;
    -webkit-box-shadow: inset 1px 1px 2px #02385e;
    box-shadow: inset 1px 1px 2px #02385e;
}

.footer-form-textarea {
    height: 50px;
    resize: none;
}

.footer-form-submit {
    background: #2997d2;
    color: #fff;
    font-size: .75em; /* 12 / 16 */
    padding: 5px 30px;
    border-radius: 3px;
}

/*-------------------------- bottom --------------------*/

.bottom-outer {
    background: #909192;
    overflow: hidden;
}

.bottom {
    margin: 0 auto;
    max-width: 978px;
    overflow: hidden;
    padding: 10px 2% 0px;
}

.bottom-text {
    color: #636364;
}

.bottom-copyright {
    float: left;
    width: 48%;
    text-align: right;
}

.bottom-design {
    float: right;
    width: 48%;
    text-align: left;
}

.bottom-design-image {
    position: relative;
    top: 0px;
}

/*-------------------------- main --------------------*/

.main-outer {
    background: #fff;
    overflow: hidden;
}

.main {
    margin: 20px auto;
    max-width: 978px;
    overflow: hidden;
}

.main-row {
    clear: both;
    width: 96%;
    padding: 0 2%;
}

.main-break {
    clear: both;
    margin-top: 20px;
    margin-bottom: 20px;
}

.main-two-thirds {
    float: left;
    width: 64.666%;
    margin-right: 2%;
    overflow: hidden;
}

.main-one-third {
    float: left;
    width: 31.333%;
    margin-right: 2%;
}

.main-one-third-last {
    width: 33.333%;
    margin-right: 0px;
}

.main-half {
    float: left;
    width: 48%;
    margin-right: 2%;
}

.main-button {
    color: #fff;
    font-family: "Economica", sans-serif;
    background: #54acdb;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 18px;
}


/*-------------------------- slideshow --------------------*/

.slideshow {
    position: relative;
}

.slideshow-images {
    position: absolute;
    padding: 0% 2%;
    width: 96%;
    margin-top: 10px;
}

.slideshow-images-posts {
	position: relative;
}

.slideshow-image {
    width: 96%;
    margin: 0 2%;
}

/*-------------------------- new-slideshow --------------------*/

.new-slideshow {
	position: relative;
}

.new-slideshow-images {
	position: relative;
}

.new-slideshow-tabs {
	margin-bottom: 20px;	
}

.new-slideshow-tabs-list-item {
	float: left;
	width: 24.8%;
	margin: 1px 0.2% 20px 0;
	position: relative;
}

.new-slideshow-triangle {
	display: none;
	position: absolute;
	right: 20px;
	top: -20px;
	z-index: 9999;
}

.new-slideshow-tabs-list-item-last {
	width: 25%;
	margin: 1px 0 0;
}

.new-slideshow-tabs-list-item-text {
	float: left;
	margin: 20px 15px;
}

.new-slideshow-tabs-list-item-img {
	float: right;
}

.new-slideshow-1 {
	background: #edeeee url('../img/new-slideshow-buying-and-selling.png') 0px 0px no-repeat;
}

.new-slideshow-1:hover {
	background: #2997d2 url('../img/new-slideshow-buying-and-selling.png') 0px -95px no-repeat;
}

.new-slideshow-2 {
	background: #edeeee url('../img/new-slideshow-property-management.png') 0px 0px no-repeat;
}

.new-slideshow-2:hover {
	background: #2997d2 url('../img/new-slideshow-property-management.png') 0px -95px no-repeat;
}

.new-slideshow-3 {
	background: #edeeee url('../img/new-slideshow-property-rentals.png') 0px 0px no-repeat;
}

.new-slideshow-3:hover {
	background: #2997d2 url('../img/new-slideshow-property-rentals.png') 0px -95px no-repeat;
}

.new-slideshow-4 {
	background: #edeeee url('../img/new-slideshow-holiday-rentals.png') 0px 0px no-repeat;
}

.new-slideshow-4:hover {
	background: #2997d2 url('../img/new-slideshow-holiday-rentals.png') 0px -95px no-repeat;
}

.new-slideshow-tabs-list-item:hover .new-slideshow-tabs-list-item-text { color: #fff; }
.new-slideshow-tabs-list-item:hover .new-slideshow-triangle { display: block; }

.new-slideshow-caption {
	display: none;
	position: absolute;
	z-index: 9999;
	top: 73px;
	left: 3.7313433%;
	background: #2997d2;
	padding: 20px 2.665245203% 10px;
	border-right: 9px solid #fff;
	width: 35.181236674%;
}

.new-slideshow-caption-title, .new-slideshow-caption-text {
	color: #fff;
}

.new-slideshow-caption-title-data, .new-slideshow-caption-text-data {
	display: none;
}

/*-------------------------- sidebar --------------------*/

.sidebar-image {
    display: block;
    margin-bottom: 10px;
    width: 100%;
}

.sidebar-image-no-break {
    margin-bottom: 0px;
}


/*-------------------------- property-portfolio-thumbnails --------------------*/

.property-portfolio-thumbnails {

}

.property-portfolio-thumbnails-item {
    float: left;
    width: 23%;
    margin-right: 2.666666667%;
}

.property-portfolio-thumbnails-item-last {
    margin-right: 0%;
}

.property-portfolio-thumbnails-item-image {
    background: #e6e5e5;
    width: 90%;
    padding: 5%;
    margin-bottom: 5px;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    border-bottom: 1px solid #d8d7d7;
    border-right: 1px solid #d8d7d7;
}

.property-portfolio-thumbnails-item-link {
    color: #2997d2;
    margin-top: 5px;
}

/*-------------------------- free-property-appraisal-form --------------------*/

.form {
    float: left;
    width: 100%;
    background: #e7e5e6; 
    margin-top: 10px;  
    -moz-box-shadow: 0px 3px 3px #bcbcbc;
    -webkit-box-shadow: 0px 3px 3px #bcbcbc;
    box-shadow: 0px 3px 3px #bcbcbc;
}

.form-title {
    background: #3ca1d5;
    color: #fff;
    font-family: "Economica", sans-serif;
    font-size: 1.5em; /* 24 / 16 */
    padding: 10px 5%;
}

.form-fields {
    padding: 10px 3%;
}

.form-input {
    float: left;
    font-family: "Muli", sans-serif;
    font-size: 12px;
    padding: 5px 0;
    margin-bottom: 5px;
    border-top: 1px solid #aaa;
    border-left: 1px solid #aaa;
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
    border-radius: 5px;
    width: 97%;
    text-indent: 10px;
}

:-moz-placeholder {
    color: #787878;
}

textarea:-moz-placeholder {
    color: #787878;
}


.form-input-half {
    width: 47%;
    margin-right: 2%;
}

.form-input-half-last {
    margin-right: 0%;
} 

.form-textarea { 
    height: 75px;
    resize: none;
}

.form-submit {
    clear: both;
    display: block;
    text-align: center;
}

.form-select-holder {
    clear: both;
    position: relative;
    margin-bottom: 5px;
    width: 97%;
}

.form-select-holder-half {
    float: left;
    position: relative;
    margin-bottom: 5px;
    width: 47%;
    margin-right: 2%;
}

.sbHolder {
    background-color: #fff;
    font-family: "Muli", sans-serif;
    height: 26px;
    border-top: 1px solid #aaa;
    border-left: 1px solid #aaa;
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
    border-radius: 5px;
    width: 100%;
}

/*-------------------------- override jquery.selector --------------------*/

.sbSelector{
    height: 26px;
    line-height: 26px;
    width: 100%;
}

.sbSelector:link, .sbSelector:visited, .sbSelector:hover{
    color: #aaa;
    outline: none;
    text-decoration: none;
}

.sbToggle{
    background: url("../img/select-icons.png") 0 -116px no-repeat;
    height: 26px;
    width: 26px;
}

.sbToggle:hover{
    background: url("../img/select-icons.png") 0 -167px no-repeat;
}

.sbToggleOpen{
    background: url("../img/select-icons.png") 0 -16px no-repeat;
}

.sbToggleOpen:hover{
    background: url("../img/select-icons.png") 0 -66px no-repeat;
}

.sbOptions{
    background-color: #fff;
    border: solid 1px #aaa;
    top: 26px;
}

.sbOptions a{
    border-bottom: none;
    padding: 3px 0 3px 3px;
}

.sbOptions a:link, .sbOptions a:visited{
    color: #787878;
}

.sbOptions a:hover,
.sbOptions a:focus,
.sbOptions a.sbFocus{
    color: #787878;
}

/*-------------------------- maps --------------------*/

.view-location-map-title {
    background: #3ca1d5;
    color: #fff;
    font-family: "Economica", sans-serif;
    font-size: 1.5em; /* 24 / 16 */
    padding: 10px 5%;
}

.view-location-map-image {
    margin-bottom: 10px;
}

.contact-map {
    max-width: 938px;
    height: 300px;
    width: 96%;
    padding: 0 2%;
}

/*-------------------------- banner --------------------*/

.banner-portfolio {
    width: 96%;
    padding: 0% 2% 20px;
    background: url('../img/banner-bkg.png') no-repeat;
    background-size: 100%;
}

.banner-portfolio img {
    width: 100%;
    padding: 8px 0%;
}

#carousel-vert {
    position: relative;
    width: 100%;
    height: 306px;
    margin-bottom: 20px;
}

#carousel-vert a#carousel-vert-prev {
    position: absolute;
    left: 45%;
    top: 0px;
}

#carousel-vert a#carousel-vert-next {
    position: absolute;
    left: 45%;
    bottom: 0px;
}

#carousel-vert-images, #carousel-vert-images div {
    position: absolute;
    width: 100%;
    height: 224px;
    top: 41px;
    left: 0px;
}

#carousel-vert-images div {
    top: 0px;
}

#carousel-vert-images a {
    float: left;
    margin: 0 20px 2% 0;
    width: 40px;
    height: 103px;
    position: relative;
}

#carousel-vert-images a.carousel-vert-last {
    margin: 0 0 18px 0;
}

#carousel-vert-images div a {
    padding: 12px 3% 0 3%;
    width: 40%;
    height: 91px;
    background: #e6e5e5;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    border-bottom: 1px solid #d8d7d7;
    border-right: 1px solid #d8d7d7;
}

/*-------------------------- tenant-application-forms --------------------*/

.tenant-application-forms {
    clear: both;
    padding-top: 20px;
}

.tenant-application-forms-list {
    width: 100%;
}

.tenant-application-forms-list-item {
    margin: 20px 0 10px;
    float: left;
    width: 48%;
    margin-right: 2%;
    text-align: center;
    position: relative;
}

.tenant-application-forms-list-item-last {
    margin-right: 0%;
}

.tenant-application-forms-rollover {
    z-index: 9999;
    position: absolute;
    top: -10px;
    left: 20px;
    display: none;
    width: 107px;
    height: 37px;
    background: url('../img/tenant-application-forms-rollover.png');
    text-align: left;
    padding: 3px 0 0 10px;
}

.tenant-application-forms-rollover p {
    color: #fff;
    font-size: 10px;
}

/*-------------------------- carousel --------------------*/

.property-carousel {
    clear: both;
    background: #e3e1e2;
    border-radius: 5px;
    overflow: hidden;
    border-bottom: 1px solid #d1d1d1;
    border-right: 1px solid #d1d1d1;
    margin-bottom: 20px;
}

.property-carousel-nav-left {
    float: left;
    width: 5%;
    text-align: center;
}

.property-carousel-nav-right {
    float: right;
    width: 4.5%;
    text-align: center;
}

.property-carousel-nav-link {
    font-size: 80px;
    color: #7b7b7b;
    line-height: 130px;
    font-family: "Economica", sans-serif;
}

.property-carousel-holder {
    float: left;
    background: #f3f3f3;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #c9c9c9;
    width: 90%;
    margin: 5px 0;
}

.property-carousel-images-list {
    overflow: hidden;
}

.property-carousel-images {
    padding: 5px 1%;
}

.property-carousel-image {
    float: left;
    width: 23.9%;
    margin-right: 1.333333333%;
}

.property-carousel-image-last {
    margin-right: 0%;
}

.property-carousel-link {
    color: #7b7b7b;
    font-size: .6875em; /* 11px / 16 */
    line-height: 1; /* 11 / 11 */
}

/*-------------------------- listings --------------------*/

.listing-image {
    background: url('../img/listing-image.jpg') no-repeat;
    padding: 5px 5px 20px 5px;
    margin-bottom: 20px;
}

.recently-sold-date {
	float: right;
	font-family: "Economica", sans-serif;
	color: #fff;
	background: #3ca1d5;
	font-size: 16px;
	padding: 5px 10px;
}

.recently-sold-pagination {
	float: right;
}

.agent-image {
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
}

.agent-image:hover {
    filter: none;
    -webkit-filter: grayscale(0%);
}

.agent-icon {
	float: left;
	width: 35px;
}

.agent-text {
	float: left;
	width: 70%;
	padding-top: 72px;
}

.agent-button {
	float: right;
	padding-top: 135px;
}

.agent-detail-text {
	float: left;
	width: 35%;
	padding-top: 180px;
	margin-bottom: 20px;
}

.agent-detail-image {
	float: right;
	width: 63%;
	margin-bottom: 20px;
}

.agent-detail-testimonials {
	padding: 20px 15px 10px;
	background: #f5f4f4;
}

.break {
	clear: both;
	height: 10px;
}


/* ==========================================================================
   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: 100%;
}

/*
 * 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.
   Theses 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 only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* 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;
    }
}
