// main: style.scss

*,
*:before,
*:after { /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    font-size: 16px;
}

/*------------------------------
# Typography
------------------------------*/
body,
button,
input,
select,
textarea {
	color: $color__text;
	font-family: $font__main;
	font-size: 1rem;
	line-height: 1.7;
	background: #f3f4f6;
}

.date:before,
.byline:before,
.featured-post:before,
.comments-link:before,
.cat-links:before,
.tags-links:before,
.edit-link:before,
.nav-previous a:before,
.nav-next a:after {
	-moz-osx-font-smoothing: grayscale;
	font-family: "FontAwesome";
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	text-decoration: inherit;
	text-transform: none;
}
/*------------------------------
# Links
------------------------------*/
a {
	color: $color__primary;
	text-decoration: none;

	&:hover,
	&:focus,
	&:active {
		color: #666666;
	}
	&:focus {
		outline: thin dotted;
	}
	&:hover,
	&:active {
		outline: 0;
	}
	img {
		border: 0 none;
	}
}

/*------------------------------
# Heading
------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
    clear: both;
    color: inherit;
    font-family: $font__heading;
    line-height: 1.2;
	margin-top: 0;
	font-weight: 500;
	@include rem('margin-bottom', 20px);
	a {
		color: $color__text;
		&:hover {
			color: $color__primary;
		}
	}
}

h1 {
	line-height: 1.3;
	@include rem('font-size', 32px);
	@include media-breakpoint-up(md) {
		@include rem('font-size', 37px);
	}
}

h2 {
	line-height: 1.3;
	@include rem('font-size', 25px);
	@include media-breakpoint-up(md) {
		@include rem('font-size', 30px);
	}
}

h3 {
	line-height: 1.3;
	@include rem('font-size', 23px);
}

h4 {
	@include rem('font-size', 20px);
}

h5 {
	@include rem('font-size', 19px);
}

h6 {
	@include rem('font-size', 18px);
}

/*------------------------------
# Base
------------------------------*/
.break {

}
ul,ol,dl,p,details,address,.vcard,figure,pre,fieldset,table,dt,dd,hr {
	@include rem('margin-bottom', 17px);
	margin-top: 0;
}
p,ul,ol,dl,blockquote {
	@extend .break !optional;
}


/*------------------------------
# Content
------------------------------*/
img {
	height: auto;
	max-width: 100%;
	vertical-align: middle;
}

b,
strong {
	font-weight: bold;
}

blockquote {
	clear: both;
    @include rem('margin', 20px 0px 25px);
    box-shadow: 2px 2px 13px #eeeeee;
    border: 1px solid $color__border;
    border-left: 3px solid $color__primary;
    @include rem('padding', 10px 15px);
	@include rem('font-size', 18px);
	font-weight: 100;
	font-style: italic;
	p {
        &:last-child {
            margin-bottom: 3px;
        }
    }
    cite {
        font-style: normal;
        @include rem('margin-bottom', 16px);
        font-size: 13px;
    }
}

dfn,
cite,
em,
i {
	font-style: italic;
}

hr {
	border: 0;
	border-top: 1px solid $color__border;
	height: 1px;
	@include rem('margin-bottom', 20px);
}

pre {
	overflow: auto;
	white-space: pre-wrap;
	max-width: 100%;
	line-height: 1.7;
	@include rem('margin', 0 0 20px 0);
	@include rem('padding', 20px);
	background: #f8f9f9;
	@extend .break !optional;
}

details {
	summary {
		font-weight: bold;
		@include rem('margin-bottom', 20px);
	}
	:focus {
		outline: none;
	}
}

abbr,
acronym,
dfn {
	cursor: help;
	font-size: .95em;
	text-transform: uppercase;
	border-bottom: 1px dotted $color__border;
	letter-spacing: 1px;
}

mark {
	background-color: #fff9c0;
	text-decoration: none;
}

small {
	font-size: 82%;
}

big {
	font-size: 125%;
}

dt {
	font-weight: bold;
}

dd {
    @include rem('margin', 0 20px 20px);
}

/*------------------------------
# Table
------------------------------*/
table {
	width: 100%;
	border: 1px solid $color__border;;
	border-collapse: collapse;
    border-spacing: 0;
}

table > thead > tr > th,
table > tbody > tr > th,
table > tfoot > tr > th,
table > thead > tr > td,
table > tbody > tr > td,
table > tfoot > tr > td {
    border: 1px solid $color__border;
    line-height: 1.3;
   	padding: 10px;
    vertical-align: middle;
    text-align: center;
	font-weight: normal;
}

table > thead > tr > th, table > thead > tr > td {
    border-bottom-width: 2px;
}

table th {
	//font-size: 14px;
}

/*------------------------------
# Form
------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-radius: 0px;
	background: $color__black;
	box-shadow: none;
	color: $color__white;
	padding: 5px 15px;
	cursor: pointer;
	text-shadow: none;
	@include border-radius(2px);
	&:hover {
		background: #666666;
	}
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
	color: $color__text;
	border: 2px solid $color__border;
	border-radius: 0px;
	background: #FFF;
	margin: 0 0 10px;
	@include border-radius(2px);
	&:focus {
		outline: none;
		border-color: $color__primary;
	}
	padding: 5px 10px;
}
textarea {
	width: 100%;
}

/*------------------------------
# Accessibility
------------------------------*/
/* Text meant only for screen readers */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;

	&:hover,
	&:active,
	&:focus {
		background-color: #f8f9f9;
		border-radius: 3px;
		box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
		clip: auto !important;
		color: $color__text;
		display: block;
		@include font-size(0.875);
		font-weight: bold;
		height: auto;
		left: 5px;
		line-height: normal;
		padding: 15px 23px 14px;
		text-decoration: none;
		top: 5px;
		width: auto;
		z-index: 100000; /* Above WP toolbar. */
	}
}

/*------------------------------
# Alignments
------------------------------*/
.alignleft {
	display: inline;
	float: left;
	@include rem('margin-right', 25px);
}

.alignright {
	display: inline;
	float: right;
	@include rem('margin-left', 25px);
}

.aligncenter {
	@include center-block;
}

/*------------------------------
# Clearings
------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after,
.container::before,
.container:after,
.nav-links::before,
.nav-links::after,
.widget_categories > ul:after,
.widget_meta > ul:after,
.widget_archive > ul:after {
	content: "";
	display: table;
	clear:both;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after,
.post-list:after,
.container:after,
.nav-links:after {
	clear: both;
}

/*------------------------------
# Infinite Scroll
------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation, /* Older / Newer Posts Navigation (always hidden) */
.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
	display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*------------------------------
# Helper.
------------------------------*/
.hide {
	display: none;
}

.clearleft {
	clear: left;
}

.btn {
	border: 2px solid $color__meta;
	color: $color__meta;
	@include rem('padding', 8px 20px);
	text-transform: uppercase;
	display: inline-block;
	@include border-radius(3px);
	&:hover {
		border-color: $color__primary;
		color: $color__primary;
	}
}

.btn-ghost {
	border: 2px solid #FFFFFF;
	color: #FFFFFF;
	@include rem('padding', 8px 20px);
	text-transform: uppercase;
	display: inline-block;
	@include border-radius(2px);
	&:hover {
		color: rgba(255, 255, 255, 0.8);
		border-color: rgba(255, 255, 255, 0.8);
	}
}

// Animated for slider.

.transition5 {
	-webkit-transition: all .5s ease;
	-moz-transition: all .5s ease;
	-o-transition: all .5s ease;
	transition: all .5s ease;
}

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes fadeInLeft {
  from {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@-webkit-keyframes fadeInRight {
  from {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

.fadeInRight {
  -webkit-animation-name: fadeInRight;
  animation-name: fadeInRight;
}

.fadeInLeft {
  -webkit-animation-name: fadeInLeft;
  animation-name: fadeInLeft;
}
