/*
Theme Name: Appleseed School and Daycare
Theme URI: https://appleseedschool.org/
Author: SpiderLily Web Design
Author URI: http:/spiderlilyweb.com/
Description: Custom theme for Appleseed School, Inc.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asd

asd is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
*/
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700);

/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
html {
	font-family: 'Open Sans', sans-serif;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust:     100%;
}
body {
	margin:0;
}
article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary {
	display: block;
}

audio, canvas, progress, video {
	display: inline-block;
	vertical-align: baseline;
}

[hidden], template {
	display: none;
}

a {
	background-color: transparent;
	text-decoration:none;
}

a:active,
a:hover {
	outline: 0;
}

sub, sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {top: -0.5em;}

sub {bottom: -0.25em;}

img {border: 0;}

hr {
	box-sizing: content-box;
	height: 0;
}

button, input, optgroup, select, textarea {
	color: inherit;
	font: inherit;
	margin: 0;
}

button {overflow: visible;}

button, select {text-transform: none;}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	-webkit-appearance: button;
	cursor: pointer;
}

button[disabled],
html input[disabled] {
	cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

input {line-height: normal;}

input[type="checkbox"],
input[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

td, th {
	padding: 0;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body, button, input, select, textarea {
	color: black;
	font-size: 16px;
	line-height: 1.4;
	font-weight:400;
}

h1, h2, h3, h4, h5, h6 {
	clear: both;
	display:block;
	font-weight:700;
	line-height:1.1;
	margin:12px 0;
	text-align:left;
}
h1 {font-size:36px; margin:0 0 12px;}
h1.center {text-align:center;}
h2 {font-size:28px; margin:12px 0;}
h2.widget-title {padding:12px 0 3px;}

h3 {
	font-size:24px;
	margin:12px 0;
}
h4 {
	font-size:19px;
	margin:12px 0 6px;
}
p {
	margin: 0 0 8px;
}
p.small {font-size:80%;}
dfn, cite, em, i {
	font-style: italic;
}

blockquote {
  margin: 0;
  clear:both;
}
blockquote:before {
  color: #ccc;
  content: "\201C";
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.15em;
  vertical-align: -0.4em;
}
blockquote p {
  display: inline;
}
blockquote p.by {
	clear:both;
	float:right;
	font-style:italic;
	padding-bottom:18px;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
	box-sizing: border-box;
	background:#141269;
}

*: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;
}

#page {
	display: block;
	position:relative;
	max-width:1600px;
	margin: 0 auto;	
	}	
#container {
	float:left;
	width:100%;
	background:white;
}
header, #primary {
	width:100%;
	float:left;
	}	
.border-top {
	border-top: 1px solid #b90808;	
}
.logo {
	max-width:300px; 
	width:99%;
	height:auto; 
	margin:10px 0 0 1%;
	float:left;
}
.contact-info {
	float:right;
	text-align:right;
	margin:70px 12px 0 0;
	font-size:26px;	
	color:#b90808;
	font-weight:700;
}
a.phone {
	color:#b90808;
}
.twocol {
	float:left;
	width:100%;
}

.site-main {
	float:left;
	width:100%;
}
.text-block { /* limit paragraph length */
	max-width:640px;
	width:95%;
	margin:0 auto;
	padding-bottom:24px;
}
.gallery-block {
	width:99%;
	margin:0 0 0 1%;	
}
.text-block ul {
	list-style: disc;
	margin:0 0 8px 24px;
	display: table;
}
.text-block ul > li::before {
    display: table-cell; 
}
.second-block {
	margin-top:40px;
}
/* for home page link boxes */

.flex-container {
	width:100%;
	display:flex;
	margin-top:0px;	
	margin-bottom:12px;
}
.grid {
	flex-wrap:wrap;
}	
.content-block {
	flex:1;
	width:50%;
}
.grid-three {
	flex-grow: 1;
	width: 31%;
	padding:0 1%;
	position:relative;
	padding-bottom:16px;
	display:inline-block;
}
.grid-three h2 {
	text-align:center;
	font-size:21px;
	margin:3px 0;
}
.grid-three img.aligncenter {
	margin-bottom:6px;
}
.contents-left {
	float:left;
	width:90%;	
}
.contents-right {
	float:right;
	width:90%;	
}

/* responsive video */

.videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* with sidebar */

#secondary {
	float:right;
	width:30%;
	margin:24px 1% 12px 0;
}
#secondary .text {
	clear:both;
	float:left;
	width:100%;	
	margin:24px 0;
}
#secondary ul {	
	list-style:none;
}

.main-content {
	width:64%;
	float:left;
	margin:24px 0 0 1%;
}

.twocolleft {
	float:left;
	width:46%;
	margin-left:1%;
}
.twocolright {
	float:right;
	width:46%;
	margin-right:1%;
}
.map {
	padding-top: 14px;
}

a.more {
	position:absolute;
	right:12px;
	bottom:12px;
	font-style:italic;
}
a.more:after {
	content:" \00BB";
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0;
	padding:0;
}

ul {
	list-style: disc;
	list-style-position:inside;
	margin-bottom:8px;
}
ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {font-weight: 700;}

dd {margin: 0;}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/*
 * Images
 */
/*
Resize images to fit the main content area.
- Applies only to images uploaded via WordPress by targeting size-* classes.
- Other images will be left alone. Use "size-auto" class to apply to other images.
*/
img.size-auto,
img.size-full,
img.size-large,
img.size-medium,
.attachment img,
img.attachment-thumbnail,
.widget-area img,
img.featured-thumb,
img.wp-post-image {
	max-width: 100%; /* When images are too wide for containing element, force them to fit. */
	height: auto; /* Override height to match resized width for correct aspect ratio. */
}
img.featured {margin-bottom:16px;}
.wp-caption, .widget_sp_image-description {
	max-width:98% !important;
	width: auto !important;
	font-size:14px;
}	
img.alignleft {
	margin-right: 0.7em;
	margin-bottom:16px;
}
img.alignright {
	margin-left: 1em;	
	margin-bottom:16px;
}
img.aligncenter {
	margin-bottom:16px;
}
.wp-caption {
	padding: .5em;
	text-align: center;
}
.widget_sp_image-description p, .wp-caption .wp-caption-text {
	text-align:center;
	margin-bottom:16px;
}
.widget img.aligncenter {
	margin-bottom:6px;
}


/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a, a:visited {
	color: #b90808;
}
p a {font-weight:700;}
a:hover, a:focus, a:active {
	color: #141269;
}

a:focus {
	outline: thin dotted;
}

a:hover, a:active {
	outline: 0;
}

#primary a img:hover {opacity:0.8;}

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
#site-navigation {
	position: fixed;
    top: 0;
    right: 0;
    z-index: 9;
    width: auto;
    height: 40px;
    padding: 10px 0 5px;
	background:rgba(255,255,255,0.8);
}
.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
	float:right;
}

.main-navigation li {
	float: left;
	position: relative;
	padding:0 10px;
}

.main-navigation a, .main-navigation a:visited {
	display: block;
	text-decoration: none;
	transition: all .5s ease-in-out;
    color: black;
    font-size: 17px;
	padding: 5px 8px 8px;
}
.main-navigation a:hover, .main-navigation li.current-menu-item a {
	background: #b90808;
	color:white;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
	float:right;
	background:white;
}
.menu-toggle:after {content:" \25BC";}	
.toggled .menu-toggle:after {content:" \25B2";}	
.menu-toggle:before {content:url('images/nav-icon.png'); padding-right:6px; height:26px; vertical-align:text-top;}

button.menu-toggle {
	border:none;
	box-shadow:none;
	color:#161616;
	font-size:18px;
	border-radius:0;
	text-shadow:none;
	vertical-align:top;
	padding:6px;
	margin-left:10px;
}
button.menu-toggle:hover {opacity:0.8;}

/* SEARCHFORM */

#searchform {
		float:right;
		display:inline-block; 
		margin:4px 32px 0 0; 
		vertical-align:middle;
	}
#searchform input[type="text"] {
	width:280px; 
	padding:4px 3px;
	border:1px #004a00 solid;
	color:black;
	font-family: Georgia, serif;
	-webkit-border-radius: 6px 6px 6px 6px;
	border-radius: 6px 6px 6px 6px;
}
#searchform input[type="image"] {vertical-align:middle; opacity:1.0;}
#searchform input[type="image"]:hover {opacity: 0.6;}

.text-wrap {
		margin:0 auto;
		padding:12px 2%;
		max-width:640px;	
		width:96%;
	}


/* adjust when we switch to mobile menu */
@media screen and (min-width: 62em) { 
	.menu-toggle {
		display: none;
	}
	.main-navigation ul {
		display: block;
	}
	#mobile-navigation {display:none;}
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: 0 0 1.5em;
	overflow: hidden;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	float: left;
	width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}


/*--------------------------------------------------------------
# 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;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	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. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
	outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/*--------------------------------------------------------------
# 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 {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 1% 8px;
}

/* Make sure select elements fit in widgets. */
.widget select {
	max-width: 100%;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.sticky {
	display: block;
}

.hentry {
	margin: 0 0 1.5em;
}

.byline,
.updated:not(.published) {
	display: none;
}

.single .byline,
.group-blog .byline {
	display: inline;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}
.nowrap {
	white-space:nowrap;
}	
.drop {
	padding-top:12px;	
}

/*--------------------------------------------------------------
## Asides
--------------------------------------------------------------*/
.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
	display: none;
}

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/*--------------------------------------------------------------
# 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;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
	margin-bottom: 6px;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 3px 0;
}

.wp-caption-text {
	text-align: center;
}

.excerpt {
	max-width:98%;
}

/* Footer - Colophon */

#colophon {
	clear:both;
	margin:0 auto;
	padding-top:14px;
	width:100%;
	font-size:16px;
	background: #b90808;
	color:white;
}
#colophon a, #colophon a:visited {
	color:white;
}
#colophon a:hover {
	color:#141269;
}
a.top-button {display:none;}


/* switch to mobile menu */
@media screen and (max-width:66.2em) {
	#mobile-navigation {
		position:fixed;
		top:0;
		right:0;
		width:99%; max-width:170px; 
	}
	#mobile-navigation ul {
		float:left; 
		clear:both; 
		padding:6px 0; 
		margin-top:0; 
		border-left: 1px rgba(118,84,102,1.0) solid;
		border-top: 1px rgba(118,84,102,1.0) solid;
		border-bottom: 1px rgba(118,84,102,1.0) solid;
	}
	#mobile-navigation li {display:block; float:left; width:100%; text-align:left; padding:0;}
	#mobile-navigation a {display:block; width:100%; padding:8px; border-bottom: 1px rgba(118,84,102,0.5) solid;}
	.button-block {padding-top:12px;}
	.contact-info {margin-top:48px;}
	.main-content {
		clear:both;
		width:98%;
		padding:0;
	}
	#secondary, .three-col #secondary {
		clear:both;
		float:none;
		margin:0 auto;
		max-width:680px;
		width:96%;
		}	
	.three-col #secondary .widget {
		float:right;
	}	
	.contents-right {
		margin-right:2%
	}
	.contents-left {
		margin-left:2%
	}
	h2.tagline span {
		float:none;
		padding-left:0;
	}	
	.menu-footer-container {
		clear:both;
		width:100%;
	}
}


/* mobile menu and content styles */

@media screen and (max-width: 61.375em) {
	.site-branding {padding:0 0 8px;}
	.twocol, .text-block, .twocolleft, .twocolright {
		clear:both;
		width:98%;
		margin:0 1% 12px 1%;
	}
	.map {padding-top:0;}
	.flex-container.two, .flex-container.grid {display:block;}
	.excerpt {width:100%; margin-bottom:16px;}
	.grid-three {width:98%; padding:0 1%;}
	.content-block {
		width:100%;	
	}
	.text-block {max-width:98%;}
	.contents-left, .contents-right {
		width:96%;
		margin:0 2%;
		float:left;
	}
	img.alignleft,img.alignright {
		float:none;
		margin:0 auto;
		display:block;	
	}
	figure.gallery-item {
		width: 24% !important;
	}
}

@media screen and (max-width: 45em) {
	.contact-info {
		clear:both;
		float:none;
		text-align:center;
		margin:8px 0;
		width:100%;
	}
	.text-wrap {max-width:96%; padding:12px 1% 0;}
	#branding #searchform {display:none;}
	.header-social a img {
		max-width:30px;
	}
	a.subscribe {
		font-size:14px;
		padding:3px ;	
	}
	.grid-three h3 {font-size:18px;}
	.footer-menus {display:none;}
	.contact-block {width:90%;}
	#colophon a.top-button {
		display:block;
		font-weight:bold;
		text-align:center;
		background-color:#eae1d2;
		-webkit-border-radius: 3px;
		border-radius: 3px;
		font-size:16px;
		padding:3px 8px;
		float:right;
		margin:0 5px 5px 0;
		color:black;
	}
	#colophon a.top-button:hover {
		background-color:#726658;
		color:white;
	}
	h1 {margin:0 0 12px; font-size:32px;}
	figure.gallery-item {
		width: 32% !important;
	}
}
@media screen and (max-width: 36.5em) {
	.social {float:left; margin-bottom:10px;}
	.site-info, .logo, .button-block {clear:both;}
	dl {float:left; width:100%; margin-bottom:4px;}
	#secondary {margin-top:0;}
	.grid-three h3 {font-size:16px;}
	figure.gallery-item {
		width: 49% !important;
	}
	header, #primary, .flex-container {width:98%; margin-left:1%;}
	.logo {
		max-width:70%;
	}
}
