/*! HTML5 Boilerplate v5.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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 {
    color: #222;
	color: #686868;
    font-size: 1em;
    line-height: 1.4;
	font-family: 'Lato', sans-serif;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets 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;
}
hr.bright-alternate {
	border-top: double 3px #FFC98F
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
	/*background: #184d64 url('../img/texture_tealbrick.png') repeat;*/
	background: #1d5f7a;
}
   
.body_wrapper{
	background-color: white;
	/*max-width: 960px;*/
	width: 100%;
	
	margin-left: auto;
	margin-right: auto;
	
	/*
	-webkit-box-shadow: 4px 4px 18px -1px rgba(24,77,100,1);
	-moz-box-shadow: 4px 4px 18px -1px rgba(24,77,100,1);
	box-shadow: 4px 4px 18px -1px rgba(24,77,100,1);
	*/
	
	border-bottom-right-radius: 0.5em;
	border-bottom-left-radius: 0.5em;
	
}   
  
.secondarypage_content, .secondarypage_subcontent {
	width: 90%;
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
}  
	.secondarypage_content {
		font-size: 1.1em;
	}
	.secondarypage_subcontent { /* buttons above the footer */
		margin-top: 2%;
		font-size: 1.0em;
	}
  
.header {
	background: #528cad url('../img/math_collage.png') repeat;
	background-position: top right;
	
	/*background-size: contain;*/
	width: 100%;
	border-bottom: solid 5px #165a8a;
	
	/*
-webkit-box-shadow: 1px 1px 10px -1px rgba(24,77,100,1);
	-moz-box-shadow: 1px 1px 10px -1px rgba(24,77,100,1);
	box-shadow: 1px 1px 10px -1px rgba(24,77,100,1);
	*/
}
   
.mrlogo {
	background: white url('../img/mrlogo_tree_alone.png') no-repeat;	
	background-position: 15px 15px;
	height: 110px;
	border-top-right-radius: 80px;
	border-bottom-right-radius: 80px;
	
	/* new */
	border-top-left-radius: 80px;
	margin-left: 5%;
	
	-webkit-box-shadow: 4px 0px 18px -2px rgba(24,77,100,1);
	-moz-box-shadow: 4px 0px 18px -2px rgba(24,77,100,1);
	box-shadow: 4px 0px 18px -2px rgba(24,77,100,1);
	padding: 15px 40px 15px 15px;
	
	max-width: 380px;
	width: 80%;	
}
	.mrlogo .logo_text_asimg {
		max-width: 110%;
		margin-left: 0px;
		
		
	}
	
.mrsubcontent {
	background: #e8e8e8 url('../img/shadow_mathcollage-01.png');
	margin-top: 3.0em;	
	border-top-right-radius: 0.5em;
	border-top-left-radius: 0.5em;
	border-top: dashed 1px #cdcdcd;
	padding-bottom: 2.0em;
	
	font-size: 1.1em;

}	

.footer {
	clear: both;
	background: #1d5f7a;
	color: #e8e8e8;
	font-size: 0.8em;
	text-align: center;
	padding: 0.5em 1em 0.5em 1em;
	border-bottom-right-radius: 0.5em;
	border-bottom-left-radius: 0.5em;
	border-top: solid 5px #528cad;
	
}
	.footer a{
		color: #b7e0fe;
		padding-left: 10px;
		padding-right: 10px;
	}
	.secondary_footerlinks a{
		color: #cdcdcd;
		padding-left: 10px;
		padding-right: 10px;
		background-color: #184d64;
		text-decoration: none;
		padding: 0.5em;
		border-radius: 5px;
		line-height: 2.6em; /* to keep them from crashing when they wrap on small screen */
	}
	.secondary_footerlinks a:hover {
		background-color: #ffde42;
		color: #184d64;
		
	}	

h1 {
	font-size: 1.5em;
	color: #292929;
}
	
h2 {
	color: #4eb7e8; /* medium blue */\
	margin-bottom: 0.5em;
	margin-top: 0.8em;
}
	h2 a, h2 a:visited {
		color: #4eb7e8;
		text-decoration: none;
	}
	h2 a:hover {
		color: #72d1f7;
		text-decoration: underline;
	}
	.featurebox h2 {
		line-height: 0.7em;
	}

h3 {
	font-size: 1.2em;
	color: #165a8a;
}

.brightlist
{
	list-style-image: url('../img/brighttriangle.gif');
}

nav.primary, nav.secondary {
	background: #f8f8f8;
	padding: 0.2em 0px 0.5em 2%;
	color: #bcbcbc; /* color of vertical dividers */

	
	background: #165a8a;
	color: #165a8a;
	border-bottom-left-radius: 0.5em;
	border-bottom-right-radius: 0.5em;
	margin-left: 0.5em;
	margin-right: 0em;
	margin-top: 0px; /* to over-lap the logo drop-shadow a little */
	
	width: 95%;
	/*max-width: 19.5em; */ /* with products: 31em; 22 */
	
	-webkit-box-shadow: 1px 1px 10px -1px rgba(24,77,100,1);
	-moz-box-shadow: 1px 1px 10px -1px rgba(24,77,100,1);
	box-shadow: 1px 1px 10px -1px rgba(24,77,100,1);
	
}
	nav.primary a, nav.secondary a{
		font-size: 0.9em;
		color: #7d8e96;
		text-decoration: none;
		padding-right: 1.1em;
		padding-left: 1.1em;
		padding-top: 0.5em;
		padding-bottom: 0.5em;
		border-top: solid 1px transparent;
		border-bottom: solid 1px transparent;
		line-height: 1.8em;
		text-transform: uppercase;
		
		color: #b7e0fe;
	}
	nav.primary a:hover {
		background: #ffde42;
		border-top: solid 1px #ffde42;
		border-bottom: solid 1px #ffde42;
		color: #ffffff;
		border-radius: 2px;
		
		
		transition-property: background;
		transition-duration: 0.5s;
		transition-timing-function: linear;
		transition-delay: 0s;
	}

/* Specific to secondary navigation menu: */
nav.secondary {
	/*border-top: solid 4px #ffde42;*/
	background-color: white /* #b7e0fe*/;
	margin-top: -3px;
	padding-top: 6px;
}	
	nav.secondary a{
		color: #000000;
		text-transform: none;
		padding: 0.2em 0.2em 0.2em 0.2em;
		line-height: 1.8em;
	}
	nav.secondary a:hover{
		color: #e76352;
		text-decoration: underline;
	}
	
#services_menu {
	display: none;
}	
	
.focus_statement {
	background-color: #b7e0fe;
	background-image: url('../img/shadow_mathcollage-01.png');
	padding: 0.5em;
	border-radius: 0.5em;
	color: #165a8a;
	padding: 0.5em 1.5em 0.5em 1.5em;
	font-size: 1.1em;
	
	
	
	-webkit-animation: bkrdfade 3s;
   -moz-animation: bkrdfade 3s;
    -ms-animation: bkrdfade 3s;
     -o-animation: bkrdfade 3s;
        animation: bkrdfade 3s; /* this comes last */
	
}	

	@-moz-keyframes bkrdfade{
		from { background-color: white; }
		to { background-color: #b7e0fe;  }
	}

	@-webkit-keyframes bkrdfade{
		from { background-color: white; }
		to { background-color: #b7e0fe;  }
	}
	@-o-keyframes bkrdfade{
		from { background-color: white; }
		to { background-color: #b7e0fe;  }
	}
	@keyframes bkrdfade {	
		from { background-color: white; }
		to { background-color: #b7e0fe;  }
	}



a { white-space: nowrap; }
	
.yellowhighlight {
	background-color: #ffffc2;
	padding-left: 0.2em;
	padding-right: 0.2em;
}	
.date_stamp {
	color: #cdcdcd;
	font-style: italic;
	font-size: 0.8em;
}
	
.yellowbtn {
	background-color: #ffde42;
	border-radius: 0.3em;
	padding: 0.5em 0.6em 0.5em 0.6em;
	border: none;
	color: #e76352;
	/*border-bottom: solid 2px #b59b30;*/
	
	-webkit-box-shadow: 1px 1px 10px -1px rgba(0,0,0,0.2);
	-moz-box-shadow: 1px 1px 10px -1px rgba(0,0,0,0.2);
	box-shadow: 1px 1px 10px -1px rgba(0,0,0,0.2);
	
	font-weight: 700;
	margin-bottom: 0.2em;
	text-decoration: none;
	margin-right: 0.5em;
	display: inline-block;
}	
	.yellowbtn:hover {
		background-color: #ffe783;
	}	

.bluebtn {
	background-color: #7d8e96;
	border-radius: 0.3em;
	padding: 0.5em 0.6em 0.5em 0.6em;
	border: none;
	color: #ffffff;
	/*border-bottom: solid 2px #69777c;*/
	
	-webkit-box-shadow: 1px 1px 10px -1px rgba(0,0,0,0.2);
	-moz-box-shadow: 1px 1px 10px -1px rgba(0,0,0,0.2);
	box-shadow: 1px 1px 10px -1px rgba(0,0,0,0.2);
	
	text-decoration: none;
	margin-top: 0.2em;
	margin-bottom: 0.2em;
	margin-right: 0.5em;
	display: inline-block;
}	
	.bluebtn:hover {
		background-color: #99adb5;
	}

.project_img_right {
	float: right; 
	margin-left: 5%;
	width: 90%; 
	/* max-width set directly on img */
	border-radius: 4px;

	margin-bottom: 15px;
	
	-webkit-box-shadow: 1px 1px 10px -1px rgba(24,77,100,1);
	-moz-box-shadow: 1px 1px 10px -1px rgba(24,77,100,1);
	box-shadow: 1px 1px 10px -1px rgba(24,77,100,1);
}
	
.showcaseCarousel {
	background: url('../img/white_relief-01.png') no-repeat;
	background-position: center center;
	margin-left: 5%;
	margin-right: 5%;
	padding: 0em 1.5em 0em 1.5em;
	padding-top: 0px;
	font-size: 1.1em;
}

	.showcaseCarousel h2 {
		margin-bottom: 0.2em;
	}
		.showcaseCarousel h2 a{
			white-space: normal;
			word-wrap: break-word;
		}
	
	.showcaseCarousel p {
		margin-top: 0.5em;
		color: #333333;
	}
	.showcaseCarousel img {
		max-width: 480px;
		width: 100%;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 0.5em;
	}


.featurebox{
	margin-left: 5%;
	margin-right: 5%;
	/*width: 40%;*/
	
	width: 90%;
	max-width: 382px;/*20em;*/
	
	float: left;
	/*padding-bottom: 1.0em;*/
	
	font-size: 0.92em;
}
	.featurebox_thumbnail {
		float: left;
		border: solid 5px white;
		-webkit-box-shadow: 1px 1px 4px 2px #cdcdcd;
		-moz-box-shadow: 1px 1px 4px 2px #cdcdcd;
		box-shadow: 1px 1px 4px 2px #cdcdcd;
		margin-right: 30px;
	
	}

/*	
.programming_snippet {
	border-radius: 5px;
	border: solid 4px #b7e0fe;
}*/	
	
.right_floated_img {
	float: right;
	margin-left: 5%;
	margin-right: 5%;
	/* max width set on the image itself */
	width: 90%;
	margin-bottom: 5%;
	margin-top: 1%;
	border-radius: 1.2em;
}	
.center_img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	/* max width set on the image itself */
	width: 90%;
	margin-top: 1.2em;
	margin-bottom: 0.8em;
	border-radius: 0.8em;
}


/* Join our group */
.join {
  text-align: center;
}
.join form {
  display: inline-block;
  text-align: left;
  width: 500px;
}
.join form div {
  margin-bottom: 20px;
}
.join form > span {
  margin-bottom: 20px;
}
.join form label {
  white-space: nowrap;
}
.join form fieldset > * {
  float: left;
}
.join form fieldset legend {
  margin-right: 25px;
}
.join form fieldset label {
  margin-right: 15px;
}
.join form input[type=text],
.join form input[type=file],
.join form textarea {
  width: 320px;
}
.join form input[type=file] {
  width: 326px;
}
.join form input[type=file] {
  display: inline-block;
}
.join form label[for=hours] .form-label {
  width: 198px;
}
.join form label[for=hours] .form-description {
  margin-left: 210px;
}
.join form label[for=hours] input[type=text] {
  width: 272px;
}
.join .form-label {
  display: inline-block;
  margin-right: 10px;
  min-width: 150px;
  text-align: right;
  vertical-align: top;
}
.join .form-description {
  display: block;
  font-size: 16px;
  opacity: .8;
}
.join label .form-description {
  font-size: 14px;
  margin-left: 162px;
}
.join form .submit {
  margin: 30px 0 0;
  text-align: center;
}
	
/* ==== Numberline 'range' slider style: */

.numberline { /* default is mobile style */
	float: right;
	width: 354px;
	padding-top: 10px;
	margin-right: 15px;
}

input[type=range] {
    /*removes default webkit styles*/
    -webkit-appearance: none;
    
    /*fix for FF unable to apply focus style bug */
    border: 1px solid white;
    
    /*required for proper track sizing in FF*/
    width: 354px;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 354px;
    height: 5px;
    background: #b7e0fe;
	/*
	background: transparent url('../img/numberline.png');
	height: 16px;
	*/
	
    border: none;
    border-radius: 3px;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ffde42;
    margin-top: -4px;
	
	/*
	background: url('../img/numberline_point.png');
	*/
	
}
input[type=range]:focus {
    outline: none;
}
input[type=range]:focus::-webkit-slider-runnable-track {
    background: #b7e0fe;
}

input[type=range]::-moz-range-track {
    width: 354px;
    height: 5px;
    background: #b7e0fe;
	
	/*
	background: transparent url('../img/numberline.png');
	height: 16px;
	*/
	
    border: none;
    border-radius: 3px;
}
input[type=range]::-moz-range-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ffde42;
	
	/*
	background: url('../img/numberline_point.png');
	*/
}

/*hide the outline behind the border*/
input[type=range]:-moz-focusring{
    outline: 1px solid white;
    outline-offset: -1px;
}

input[type=range]::-ms-track {
    width: 354px;
    height: 5px;
    
    /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
    background: transparent;
    
    /*leave room for the larger thumb to overflow with a transparent border */
    border-color: transparent;
    border-width: 6px 0;

    /*remove default tick marks*/
    color: transparent;
}
input[type=range]::-ms-fill-lower {
    background: #777;
    border-radius: 10px;
}
input[type=range]::-ms-fill-upper {
    background: #b7e0fe;
	/*
	background: transparent url('../img/numberline.png');
	height: 16px;
	*/
	
    border-radius: 10px;
}
input[type=range]::-ms-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ffde42;
	
	/*
	background: url('../img/numberline_point.png');
	*/
}
input[type=range]:focus::-ms-fill-lower {
    background: #b7e0fe;
}
input[type=range]:focus::-ms-fill-upper {
    background: #b7e0fe;
}





/* end Numberline style. ==== */




/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, 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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These 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 print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
