// 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;
    @include media-breakpoint-down(md) {
        font-size: 15px;
    }
    // @include media-breakpoint-down(sm) {
    //     font-size: 14px;
    // }
}

/*------------------------------
# Typography
------------------------------*/
body,
button,
input,
select,
textarea {
	color: $color__text;
	font-family: $font__main;
	@include rem('font-size', 14px);
	line-height: 1.7;
	background: #FFFFFF;
}
/*------------------------------
# Links
------------------------------*/
a {
	color: inherit;;
	text-decoration: none;

	&:visited {
		color: inherit;;
	}
	&:hover,
	&:focus,
	&:active {
		color: inherit;
		text-decoration: underline;
	}
	&:focus {
		outline: thin dotted;
		text-decoration: none;
	}
	&:hover,
	&:active {
		outline: 0;
	}
}

/*------------------------------
# Heading
------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
    clear: both;
    color: $color__heading;
    font-family: $font__heading;
    line-height: 1.2;
	font-weight: 400;
	margin-top: 0;
	@include rem('margin-bottom', 20px);
    a:hover {
        color: $color__meta;
        text-decoration: none;
    }
}

h1 {
	line-height: 1.2;
	letter-spacing: -0.3px;
	@include rem('font-size', 29px);
	@include media-breakpoint-up(md) {
		@include rem('font-size', 32px);
	}
}

h2 {
	line-height: 1.2;
	letter-spacing: -0.2px;
	@include rem('font-size', 25px);
	@include media-breakpoint-up(md) {
		@include rem('font-size', 28px);
	}
}

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

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

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

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

/*------------------------------
# Base
------------------------------*/
ul,ol,dl,p,details,address,.vcard,figure,pre,fieldset,table,dt,dd,hr {
	@include rem('margin-bottom', 20px);
	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', 0 0 20px 0);
	p {
		font-style: italic;
	}
	cite {
		font-style: normal;
		@include rem('margin-bottom', 20px);
		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: 8px;
    vertical-align: middle;
    text-align: center;
}

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: none;
	background: #000000;
	box-shadow: none;
	color: $color__white;
	font-size: 12px;
	padding: 8px 24px;
	@include border-radius(3px);
	cursor: pointer;
	text-shadow: none;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	&:hover {
		background: #444444;
	}
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
	color: $color__text;
	border: 1px solid $color__border;
	border-radius: 0px;
	font-size: 13px;
	margin: 0 0 10px;
	&:focus {
		outline: none;
		border: 1px solid #cccccc;
	}
	padding: 7px 12px;
}
textarea {
	width: 100%;
}

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

	&:hover,
	&:active,
	&:focus {
		background-color: $color__border;
		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 {
	content: "";
	display: table;
	table-layout: fixed;
}

.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;
}

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




@-webkit-keyframes uilsquare {
  0% {
    background-color: #9b9b9b;
  }
  1% {
    background-color: #3f3f3f;
  }
  11% {
    background-color: #3f3f3f;
  }
  21% {
    background-color: #9b9b9b;
  }
  100% {
    background-color: #9b9b9b;
  }
}
@-webkit-keyframes uilsquare {
  0% {
    background-color: #9b9b9b;
  }
  1% {
    background-color: #3f3f3f;
  }
  11% {
    background-color: #3f3f3f;
  }
  21% {
    background-color: #9b9b9b;
  }
  100% {
    background-color: #9b9b9b;
  }
}
@-moz-keyframes uilsquare {
  0% {
    background-color: #9b9b9b;
  }
  1% {
    background-color: #3f3f3f;
  }
  11% {
    background-color: #3f3f3f;
  }
  21% {
    background-color: #9b9b9b;
  }
  100% {
    background-color: #9b9b9b;
  }
}
@-ms-keyframes uilsquare {
  0% {
    background-color: #9b9b9b;
  }
  1% {
    background-color: #3f3f3f;
  }
  11% {
    background-color: #3f3f3f;
  }
  21% {
    background-color: #9b9b9b;
  }
  100% {
    background-color: #9b9b9b;
  }
}
@-moz-keyframes uilsquare {
  0% {
    background-color: #9b9b9b;
  }
  1% {
    background-color: #3f3f3f;
  }
  11% {
    background-color: #3f3f3f;
  }
  21% {
    background-color: #9b9b9b;
  }
  100% {
    background-color: #9b9b9b;
  }
}
@-webkit-keyframes uilsquare {
  0% {
    background-color: #9b9b9b;
  }
  1% {
    background-color: #3f3f3f;
  }
  11% {
    background-color: #3f3f3f;
  }
  21% {
    background-color: #9b9b9b;
  }
  100% {
    background-color: #9b9b9b;
  }
}
@-o-keyframes uilsquare {
  0% {
    background-color: #9b9b9b;
  }
  1% {
    background-color: #3f3f3f;
  }
  11% {
    background-color: #3f3f3f;
  }
  21% {
    background-color: #9b9b9b;
  }
  100% {
    background-color: #9b9b9b;
  }
}
@keyframes uilsquare {
  0% {
    background-color: #9b9b9b;
  }
  1% {
    background-color: #3f3f3f;
  }
  11% {
    background-color: #3f3f3f;
  }
  21% {
    background-color: #9b9b9b;
  }
  100% {
    background-color: #9b9b9b;
  }
}
.uil-squares-css {
  background: none;
  position: relative;
  width: 200px;
  height: 200px;
}
.uil-squares-css div {
  position: absolute;
  z-index: 1;
  width: 40px;
  height: 40px;
  background-color: #9b9b9b;
}
.uil-squares-css div > div {
  position: absolute;
  top: 0;
  left: 0;
  -ms-animation: uilsquare 0.45s linear infinite;
  -moz-animation: uilsquare 0.45s linear infinite;
  -webkit-animation: uilsquare 0.45s linear infinite;
  -o-animation: uilsquare 0.45s linear infinite;
  animation: uilsquare 0.45s linear infinite;
  width: 40px;
  height: 40px;
}
.uil-squares-css > div:nth-of-type(1) {
  top: 30px;
  left: 30px;
}
.uil-squares-css > div:nth-of-type(1) > div {
  -ms-animation-delay: 0s;
  -moz-animation-delay: 0s;
  -webkit-animation-delay: 0s;
  -o-animation-delay: 0s;
  animation-delay: 0s;
}
.uil-squares-css > div:nth-of-type(2) {
  top: 30px;
  left: 80px;
}
.uil-squares-css > div:nth-of-type(2) > div {
  -ms-animation-delay: 0.05625s;
  -moz-animation-delay: 0.05625s;
  -webkit-animation-delay: 0.05625s;
  -o-animation-delay: 0.05625s;
  animation-delay: 0.05625s;
}
.uil-squares-css > div:nth-of-type(3) {
  top: 30px;
  left: 130px;
}
.uil-squares-css > div:nth-of-type(3) > div {
  -ms-animation-delay: 0.1125s;
  -moz-animation-delay: 0.1125s;
  -webkit-animation-delay: 0.1125s;
  -o-animation-delay: 0.1125s;
  animation-delay: 0.1125s;
}
.uil-squares-css > div:nth-of-type(4) {
  top: 80px;
  left: 130px;
}
.uil-squares-css > div:nth-of-type(4) > div {
  -ms-animation-delay: 0.16875s;
  -moz-animation-delay: 0.16875s;
  -webkit-animation-delay: 0.16875s;
  -o-animation-delay: 0.16875s;
  animation-delay: 0.16875s;
}
.uil-squares-css > div:nth-of-type(5) {
  top: 130px;
  left: 130px;
}
.uil-squares-css > div:nth-of-type(5) > div {
  -ms-animation-delay: 0.225s;
  -moz-animation-delay: 0.225s;
  -webkit-animation-delay: 0.225s;
  -o-animation-delay: 0.225s;
  animation-delay: 0.225s;
}
.uil-squares-css > div:nth-of-type(6) {
  top: 130px;
  left: 80px;
}
.uil-squares-css > div:nth-of-type(6) > div {
  -ms-animation-delay: 0.28125s;
  -moz-animation-delay: 0.28125s;
  -webkit-animation-delay: 0.28125s;
  -o-animation-delay: 0.28125s;
  animation-delay: 0.28125s;
}
.uil-squares-css > div:nth-of-type(7) {
  top: 130px;
  left: 30px;
}
.uil-squares-css > div:nth-of-type(7) > div {
  -ms-animation-delay: 0.3375s;
  -moz-animation-delay: 0.3375s;
  -webkit-animation-delay: 0.3375s;
  -o-animation-delay: 0.3375s;
  animation-delay: 0.3375s;
}
.uil-squares-css > div:nth-of-type(8) {
  top: 80px;
  left: 30px;
}
.uil-squares-css > div:nth-of-type(8) > div {
  -ms-animation-delay: 0.39375s;
  -moz-animation-delay: 0.39375s;
  -webkit-animation-delay: 0.39375s;
  -o-animation-delay: 0.39375s;
  animation-delay: 0.39375s;
}
