/*
Theme Name: web-dev-learning
Author: Brian Gooding
Author URI: http://briangooding.com
Description: Practicing developing my own theme.
Version: 1.0
*/
@font-face {font-family:'San Francisco Ultralight'; /* do this in functions.php */
			src:url('fonts/sanfranciscodisplay-ultralight-webfont.ttf') format('truetype'),
				url('fonts/sanfranciscodisplay-ultralight-webfont.woff') format('woff'),
				url('fonts/sanfranciscodisplay-ultralight-webfont.woff2') format('woff2');}
@font-face {font-family:'San Francisco Regular';
			src:url('fonts/sanfranciscodisplay-regular-webfont.ttf') format('truetype'),
				url('fonts/sanfranciscodisplay-regular-webfont.woff') format('woff'),
				url('fonts/sanfranciscodisplay-regular-webfont.woff2') format('woff2');}

/*--reset--*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;border:0;padding:0;outline:0;font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit;vertical-align:baseline;}
html{box-sizing:border-box;overflow-y:scroll;}*,*:before,*:after{box-sizing:inherit;}
ul,ol,li{list-style-type:none;}
/*--end reset--*/

body,div{font-family:Avenir,Lato,'San Francisco Ultralight',cursive;}
a,abbr,acronym,address,aside,blockquote,caption,dd,dt,h1,h2,h3,h4,h5,h6,li,ol,p,pre,q,span,td,th,tr,ul,var{line-height:1.5em;font-family:Avenir,Lato,'San Francisco Regular',cursive;}
p,pre,span{font-size:1em;text-align:justify;}
h1{font-size:2em;font-family:'San Francisco Ultralight',cursive;}
h2{font-size:1.5em;}
h3{font-size:1.2em;}
h4{font-size:.8em;}
a{color:#888;text-decoration:none;transition:color .2s ease-in-out;}
a:hover{color:#000;}
img{opacity:.7;transition:.15s ease-in-out;}
img:hover{opacity:1;}
input[type="text"],input[type="email"],textarea{background-color:#ccc;font-size:.8em;font-weight:800;}

/*--some basic ones--*/
del{text-decoration:line-through;}
em{font-style:italic;}
hr{border:0;border-bottom:1px dashed #666;}
code,pre{white-space:pre-wrap;margin:.5em;font-family:monospace;color:#0d4b72;}
strong{font-weight:900;}
/**/

#content ul li{list-style:disc inside;}
#content ol li{list-style:decimal inside;}
#content ul li,#content ol li{margin-left:1.4em;color:#00f;}
#sidebar li,#sidebar a,.tagcloud{margin:.2em .5em;word-wrap:break-word;} /* margins on sidebar contents */
p{margin:1em;}
h1,h2,h3,h4,h5,h6{margin-left:.5em;}

article>h3{display:inline-block;margin-top:.5em;} /* title on pages and posts */
h3.index-post-title+h4{display:inline-block;font-style:italic;} /* post meta */
header,article,footer,div[id]{border-radius:.5em;} /* all divs that have an id */

/* try something with this */
.single article p:first-of-type::first-letter{font-size:3em;font-family:'San Francisco Ultralight',cursive;font-weight:300;}

#wrapper{display:block;width:80%;margin:1em auto;} /* wraps around #header,#sidebar,#content,#footer */
header,#sidebar,#content,footer{margin-bottom:.3em;border:2px #333 solid;}
header{background-image:linear-gradient(to bottom, #add8e6 0%, #f5f5f5 100%);}
header h1{margin:.5em .5em .5em 0;text-align:right;letter-spacing:15px;text-shadow:3px 3px 10px #999,5px 5px 20px #777;}
header>h1>a{font-family:'San Francisco Ultralight',cursive;} /* blog name */
/* #logo{position:relative;height:35px;width:200px;top:1em;left:2%;} *//* logo testing */

footer{margin-bottom:0;background-image:linear-gradient(to top, #add8e6 0%, #f5f5f5 100%);text-align:center;}
#copyright{margin:.5em auto;border:1px #f00 dotted;text-align:center;text-shadow:3px 3px 4px #888;}
#footer-menu{border:1px #f00 dotted;} /* custom menu in footer */
#copyright+p{margin:0;}

/*--layout--*/
.flex-container{display:flex;flex-direction:row;} /* #sidebar and #content are in .flex-container */
#sidebar{flex:1;margin-right:.3em;background-color:#e0ffe0;}
#content{flex:5;}
/**/

/*--page template styles--*/
body.archive #content{background-color:#afeeee;} /* applies to any archive.php */
.page #content{background-color:#f5f5dc;} /* applies to any page.php */
.post #content{background-color:#ffffa6;} /* applies to any single.php */
/**/

/*--fixes--*/
nav+aside,aside~aside{margin-top:1em;} /* create room so nav and widgets don't butt up against each other */
div.wpcf7-form,form,input[type=text],input[type=email],textarea{width:80%;} /* prevent form from hogging all of screen */
.page-id-18 img{max-width:90%;max-height:90%;} /* fix sink/edge page images from spilling out */
.post-1178 p+p{margin:.5em;} /* ?? what is this ?? */
/**/

/*--for mobile--*/
@media all and (max-width:600px){
	.flex-container{flex-direction:column;}
	#wrapper{max-width:300px;}
	#header h1{font-size:1em;text-align:center;text-shadow:none;}
	
	#sidebar{width:100%;height:26px;margin-right:0;overflow:hidden;transition:height 300ms cubic-bezier(0.755, 0.050, 0.855, 0.060);} /* testing what to do with menu overflow */
	#sidebar:hover{height:618px;transition:height 300ms cubic-bezier(0.755, 0.050, 0.855, 0.060);} /* testing what to do with menu overflow */
	
	div{margin:.1em auto;}
	img{width:25%;height:25%;opacity:1;} /* restore opacity due to no img:hover effects on mobile */
	.wpcf7-form input,.wpcf7-form textarea{max-width:230px;}
}
/**/

/*--debugging--*/
p:empty{border:1px dashed #f00;background-color:fff;} /* hightlight empty paragraphs */
#sidebar-widget-none,#second-widget-none{margin:1em;background-color:#9f9;} /* highlight widgetable areas */
/**/