@charset "utf-8";

html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
	height: 90%;
}
body {
    margin: 0;
	padding: 0;
    font: 1em/1.2 Arial, Helvetica, sans-serif;
	background: #FFF url(../images2/bkg-header-stripe.png) repeat-x top left;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
	height:100%; /* Need this to have full-width footer */	
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure,
div,
ol,
ul,
dl {
    margin: 0;
    padding: 0;
}

/*
h1, h2, h3, h4, h5, h6, p {
	margin-top: 0;	 /* removing the top margin gets around an issue where margins can escape from their containing block. The remaining bottom margin will hold it away from any elements that follow. 
	padding-right: 15px;
	padding-left: 15px; /* adding the padding to the sides of the elements within the blocks, instead of the block elements themselves, gets rid of any box model math. A nested block with side padding can also be used as an alternate method. 
}
*/

main,
li {
    display: block;
}
h1,
h2,
h3,
h4 {
    font-size: inherit;
}
strong {
    font-weight: bold;
}
a,
button {
    color: inherit;
    transition: .3s;
}
a {
    text-decoration: none;
}
button {
    overflow: visible;
    border: 0;
    font: inherit;
    -webkit-font-smoothing: inherit;
    letter-spacing: inherit;
    background: none;
    cursor: pointer;
}
::-moz-focus-inner {
    padding: 0;
    border: 0;
}
/*:focus {
    outline: 0;
}*/
img {
    max-width: 100% !important;
    height: auto;
    border: 0;
}


a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
	border: none;
}

/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */

h1 a:link { color: #F00; }
h1 a:visited { color: #F00; }

a:link {
	color: #42413C;
	text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
}
a:visited {
	color: #6E6C64;
	text-decoration: underline;
}
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
	text-decoration: none;
}
/* ~~ This fixed width container surrounds all other blocks ~~ */



.flex-container {
	display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
	display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
	display: -ms-flexbox;      /* TWEENER - IE 10 */
	display: -webkit-flex;     /* NEW - Chrome */
	display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
	
/*	flex-flow: row wrap;
	-webkit-flex-flow: row wrap;

    justify-content: flex-start;
	-webkit-justify-content: flex-start;
	
    align-content: flex-start;
    -webkit-align-content: flex-start;
	
	align-items: flex-start;
	-webkit-align-items: flex-start;
*/
	
	margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
	min-height:100%;
	height:100%;
	max-width:960px;
	
	border-left:1px #999 solid;
	border-right:1px #999 solid;
}
/* ~~ The header is not given a width. It will extend the full width of your layout. ~~ */
header {
	display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
	display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
	display: -ms-flexbox;      /* TWEENER - IE 10 */
	display: -webkit-flex;     /* NEW - Chrome */
	display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
	
	-webkit-flex-flow: row nowrap;
	-moz-flex-flow: row nowrap;
	flex-flow: row nowrap;
	
    -webkit-align-content: center;
    align-content: center;
	
	-webkit-align-items: center;
	align-items: center;
	
	max-height:90px;
	max-width:100%;
	width:960px;
	
	text-align:center;
}


/* 
FLEX-GROW: This defines the ability for a flex item to grow if necessary. It dictates what amount of the available space inside the flex container the item should take up. If all items have flex-grow set to 1, every child will set to an equal size inside the container. If you were to give one of the children a value of 2, that child would take up twice as much space as the others.
Example:  flex-grow: <number>; ( default 0 )
----------

FLEX-SHRINK: This defines the ability for a flex item to shrink if necessary.
Example:  flex-shrink: <number>; ( default 1 )
----------

FLEX-BASIS:  This defines the default size of an element before the remaining space is distributed. The main-size value makes it match the width or height, depending on which is relevant based on the flex-direction.  If set to 0, the extra space around content isn't factored in. If set to auto, the extra space is distributed based on it's flex-grow value.
flex-basis: <length> | auto; ( default auto )
-----------

FLEX:  This is the shorthand for flex-grow, flex-shrink and flex-basis combined. The second and third parameters (flex-shrink and flex-basis) are optional. Default is 0 1 auto.
Example:  flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]
*/


div.logo-ucla, div.logo-isap {
	-webkit-flex:1 1 0;
	-ms-flex:1 1 0;
	flex:1 1 0;
}

div.site-title {
	font-weight:bold;
	color: #FFF;
	font-size:1.5em;
	-webkit-flex:3 1 auto;
	-ms-flex:3 1 auto;
	flex:3 1 auto;	
}


@media screen and ( min-width: 351px ) and ( max-width: 885px ) {
	
	div.site-title {
		font-size:1.25em;
		-webkit-flex: 2 1 0;
		-ms-flex: 2 1 0;
		flex: 2 1 0;
	}
}

@media screen and ( max-width: 350px ) {
	
	div.site-title {
		font-size:1em;
		-webkit-flex: 2 1 0;
		-ms-flex: 2 1 0;
		flex: 2 1 0;
	}
}

/* ~~ This grouped selector gives the lists in the .content area space ~~ */
.content ul, .content ol {
	padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
}

/* ~~ The navigation list styles (can be removed if you choose to use a premade flyout menu like Spry) ~~ */


nav ul {
	list-style: none; /* this removes the list marker */
/* 	border-right: 2px solid #666; this creates the top border for the links - all others are placed using a bottom border on the LI */
/*	margin-bottom: 15px;  this creates the space between the navigation on the content below */
}
nav ul li {
	display: inline-block;
	text-align:center;
	font-weight:bold;
	margin-left:20px;
/*	border-left: 2px solid #666;  this creates the button separation */
}
nav ul a, nav ul a:link, nav ul a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */
	padding: 5px 5px 5px 5px;
	display: block; /* this gives the link block properties causing it to fill the whole LI containing it. This causes the entire area to react to a mouse click. */
	width: auto !important;  /*this width makes the entire button clickable for IE6. If you don't need to support IE6, it can be removed. Calculate the proper width by subtracting the padding on this link from the width of your sidebar container. */
	text-decoration: none;
	background: #14293F;
	color: #FFF;	
}
nav ul a:hover, nav ul a:active, nav ul a:focus { /* this changes the background and text color for both mouse and keyboard navigators */
	background: #869DC1;
	color: #000;
}

/* ~~ The footer ~~ */

#footer-wrapper ul li a:hover, #footer-wrapper ul li a:active, #footer-wrapper ul li a:focus { /* this changes the background and text color for both mouse and keyboard navigators */
	background: #869DC1;
	color: #E2E7FC;
}

#footer-wrapper a:link {
	color: #C1CBF7;
	text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
}
#footer-wrapper a:visited {
	color: #9E9E9E;
	text-decoration: underline;
}
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
	text-decoration: none;
}

footer {
	height:70px;
	padding: 20px 0;
	background: #384E6D; /* #CCDAFF; */
	max-width: 100%;
	clear:both;
	font-size:.8em;
	border-top:1px solid #869DC1;
}

.push {
	height:1px;
}


#footer-wrapper {
	margin:0 auto;
	text-align:center;
	max-width:960px;
	color: #CCC;		
}
	
#footer-wrapper ul li {
	text-align:center;
	margin:0 auto;
	display:inline;
}


/*HTML 5 support - Sets new HTML 5 tags to display:block so browsers know how to render the tags properly. 
header, section, footer, aside, nav, article, figure {
	display: block;
}*/