body{
	background:#333;
}
#all{
	width:90%;
	margin-left:auto;
	margin-right:auto;
	background:#FFF;
}
#main_content{
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-flow: row wrap;
	-ms-flex-flow: row wrap;
	flex-flow: row wrap;
	-webkit-justify-content: space-between;
	-ms-flex-pack: justify;
	justify-content:space-between;
  /* Step 1: Align sidebar with the top of the columns */
  align-items: flex-start;
}

a:link{
	text-decoration:none;
	font-weight:bold;
	font-size:1.12em;
	color:#960;
}
a:active{
	text-decoration:underline;
	font-weight:bold;
	font-size:1.12em;
	color:#F90;
}
a:hover{
	text-decoration:underline;
	font-weight:bold;
	font-size:1.12em;
	color:#F90;
}
a:visited{
	text-decoration:none;
	font-weight:bold;
	font-size:1.12em;
	color:#960;
}
/* -------------------------------------------------- 
   top navigation styles
-----------------------------------------------------*/
nav{
	border-bottom:solid 1.5px #FF9900;
}
nav ul {
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	flex-wrap: wrap; /* Step 2: Allow navigation links to wrap in smaller viewports */
}
nav a{
  /* Step 2: Prevent text from overlapping */
  word-break: break-all;
}

nav li {
	margin:.2em;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-align-items:center;
	-ms-flex-align:center;
	align-items:center;
}
nav li.search-form {
	margin-right: 1em;
	margin-left:auto;
}

/* -------------------------------------------------- 
   sidebar
-----------------------------------------------------*/
aside{
	-webkit-flex-direction:column;
	-ms-flex-direction:column; /* origin one is "-ms-flex-direction:colum;" I add n after it */
	flex-direction:column;
	-webkit-flex:.5;
	 -ms-flex:.5;
	 flex:.5;
}
.links{
	list-style: none;
}
.links li {
	margin:.5em auto .5em -.5em;
}
.side a:link{
	text-decoration:none;
	font-weight:bold;
	font-size:.9em;
	color:#960;
}
.side a:active{
	text-decoration:underline;
	font-weight:bold;
	font-size:.9em;
	color:#F90;
}
.side a:hover{
	text-decoration:underline;
	font-weight:bold;
	font-size:.9em;
	color:#F90;
}
.side a:visited{
	text-decoration:none;
	font-weight:bold;
	font-size:.9em;
	color:#960;
}	
/* -------------------------------------------------- 
   main content columns
-----------------------------------------------------*/
.left{
	-webkit-flex:2;
	 -ms-flex:2;
	 flex:1;/* Step 3: Make all three columns equal width */
	 padding:.5em;
	 /* Step 4: Give the left column its own color scheme */
	background-color: #f4cccc;  /* light red background */
	color: #660000;            /* dark red text */
}
.center{
	-webkit-flex:2;
	 -ms-flex:2;
	 flex:1;/* Step 3: Make all three columns equal width */
	 padding:.5em;
	 /* Step 4: Give the center column its own color scheme */
	background-color: #d9ead3;  /* light green background */
	color: #003300;            /* dark green text */
}
.right{
	-webkit-flex:1;
	 -ms-flex:1;
	 flex:1;
	 padding:.5em;
	/* Step 4: Give the right column its own color scheme */
	background-color: #cfe2f3;  /* light blue background */
	color: #003366;            /* dark blue text */
}
/* -------------------------------------------------- 
   footer
-----------------------------------------------------*/
footer{
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	/* Step 5: Center align footer content */
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
}
.footer_info{
	padding:.3em;
	font-size:1.1em;
}
/* add media query for displays under 700 pixels in width */

@media (max-width: 700px) {

  /* Step 6.1: Stack columns vertically */
  #main_content {
    flex-direction: column; /* from row → column */
  }

  /* Step 6.2: Make sidebar links horizontal */
  aside .links {
    display: flex;
    flex-direction: row; /* change from column to row */
    flex-wrap: wrap;     /* allow wrapping */
    justify-content: center; /* center horizontally */
  }

  aside .links li {
    margin: auto .3em auto; /* Step 6 requirement */
  }

  /* Step 6.3: Make footer wrap horizontally */
  footer {
    flex-direction: row; /* items side by side */
    flex-wrap: wrap;     /* allow wrapping if too long */
    justify-content: center; /* center footer info */
  }
}