/*
Theme Name:     First Readings 2013 twentytwelve Child
Theme URI:      http://library.brown.edu/hayrenovation
Description:    a child theme
Author:         brown university library
Author URI:     unknown
Template:       twentytwelve
Version:        0.1.0
*/

@import url("../twentytwelve/style.css");

/* banner */
div#banner-area
{
	display:block;
	width:100%;
	height:105px;
	position:fixed;
	top:0;
	left:0;
	bottom:0;
	overflow:hidden;
	z-index: 10;
 	background: #fefdf4 url(http://library.brown.edu/create/firstreading2013/wp-content/uploads/sites/26/2013/05/BULheader.png) repeat-x;
}

#wrapper 
{
	margin: auto;
	width: 91%; /* forces left & right visual margins to display at narrower browser window widths */
	min-height: 1px;
}

#header {
	clear: both;
	position: relative;
	float: left;
	width: 100%;
	height: 87px;
	margin-top: 17px;
	overflow: hidden;
	z-index: 9999;
	background: url(http://library.brown.edu/create/firstreading2013/wp-content/uploads/sites/26/2013/05/BULheader_940x87_narrow.png) no-repeat;
}

#header .BUhomelink {
	position: relative;
	float: left;
	width: 50px;
	height: 87px;
}

#header .BULhomelink {
	position: relative;
	float: left;
	margin-left: 10px;
	margin-top: 31px;
	width: 440px;
	height: 30px;
}

p.top_header_links {
	margin-top: 43px;
	margin-right: 1.9em;
	font-weight: normal;
	font-size: .875em;
	color: #ad8d89;
	line-height: 190%;
	float: right;
}

.top_header_links a {
	font-weight: normal;
	font-size: 1.0em;
	border-bottom: 1px dotted #efcc00;
	color: #efcc00;
	text-decoration: none;
}

.top_header_links a:hover {
	font-weight: normal;
	font-size: 1.0em;
	border-bottom: 1px dotted #efcc00;
	color: white;
	text-decoration: none;
}

body .site {
	margin-top: 9em;
}

body.custom-background {
background-color: #e9dfd3;
}

#page {
  background: #ffffff;
}

.site-header {
	padding: 0;
	width: 100%;
}

img.header-image {
	border-radius: 0px;
	box-shadow: 0 0px 0px;
	width: 100%;
	margin-top: 0;
}

.site-content article {
	-webkit-hyphens: none;
	-moz-hyphens: none;
	hyphens: none;
}

.main-navigation {
margin-top: 4px;
}

.entry-content img {
	border-radius: 0;
}

/* collapse o matic */

.collapseBox {
	background-color: #ECEFF9;

}

.collapseomatic {
	background-color: #ECEFF9;
	color: #B0773B;
	font-size:28px;
	background-position: right;
	padding: 0 20px 0 16px;
	width: 100%
}

.wowBox {
	margin-right: 15px;
	padding-bottom: 15px;

}

/*color box grid */

.container {
	width: 100%;
}

.rb-grid {
	list-style: none;
	text-align: center;
	margin: 0 auto;
}

.rb-grid li {
	width: 24%;
	height: 15em;
	margin: 0.5%;
	color: #fff;
	display: block;
	float: left;
	padding: 1.6em;
	position: relative;
}

.rb-grid li.rb-span-2 {
	width: 49%;
}

.rb-grid li.rb-span-4 {
	width: 99%;
}

.rb-grid li h3 {
	font-size: 1.6em;
	line-height: 1.3em;
	font-weight: 100;
}

.rb-grid li h3 a{
	color: #eee;
	text-decoration: none;
}

.rb-grid li[class^="icon-"]:before,
.rb-grid li[class*=" icon-"]:before {
	font-size: 10em;
	position: absolute;
	display: block;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	line-height: 3;
	opacity: 0.4;
	text-align: right;
	pointer-events: none;
}

.rb-temp {
	display: block;
	font-size: .8em;
	opacity: 0.5;
	-webkit-transition: opacity 0.3s ease-in-out;
	-moz-transition: opacity 0.3s ease-in-out;
	transition: opacity 0.3s ease-in-out;
}

.rb-grid li:hover .rb-temp {
	opacity: 1;
}

.rb-overlay {
	opacity: 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	-webkit-transition: all 0.4s ease;
	-moz-transition: all 0.4s ease;
	transition: all 0.4s ease;
	z-index: -1;
	pointer-events: none;
	cursor: default;
}

.rb-close {
	position: absolute;
	top: 0.4em;
	right: 0.4em;
	width: 2em;
	height: 2em;
	text-indent: -9000px;
	cursor: pointer;
	z-index: 1000;
}

.rb-close::before {
	content: 'x';
	font-weight: 100;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	font-size: 3em;
	line-height: 0.6;
	text-align: center;
	text-indent: 0px;
}

.rb-week {
	width: 100%;
	height: 100%;
}

.rb-week > div {
	width: 10%;
	height: 100%;
	float: left;
	position: relative;
	padding: 3% 0;
}

.rb-week > div:first-child {
	width: 30%;
}

.rb-week span {
	padding: 5% 0;
	font-size: 2em;
	font-weight: 100;
	display: block;
	margin: auto 0;
	height: 30%;
	width: 100%;
	line-height: 0.8;
}

.rb-week span.rb-city {
	font-weight: 700;
	padding: 1% 10%;
	font-size: 1em;
	line-height: 1.2;
}

.rb-week [class^="icon-"]:before {
	font-size: 2.5em;
	font-weight: normal;
}

.rb-week > div:first-child [class^="icon-"] {
	opacity: 0.1;
}

/* Colors */

/* Grid */
.rb-grid li:nth-child(1) { background: #3399CC; }
.rb-grid li:nth-child(2) { background: #33CCCC; }
.rb-grid li:nth-child(3) { background: #996699; }
.rb-grid li:nth-child(4) { background: #C24747; }
.rb-grid li:nth-child(5) { background: #e2674a; }
.rb-grid li:nth-child(6) { background: #FFCC66; }
.rb-grid li:nth-child(7) { background: #99CC99; }
.rb-grid li:nth-child(8) { background: #669999; }
.rb-grid li:nth-child(9) { background: #CC6699; }
.rb-grid li:nth-child(10) { background: #339966; }
.rb-grid li:nth-child(11) { background: #666699; }

@media screen and (max-width: 63.125em) {
	
	.rb-grid li,
	.rb-grid li.rb-span-2,
	.rb-grid li.rb-span-4 {
		width: 85%;
		height: 10em;
		text-align: left;
	}

	.rb-grid li[class^="icon-"]:before,
	.rb-grid li[class*=" icon-"]:before {
		font-size: 6em;
		left: auto;
		right: 0;
		line-height: 2.5;
	}

	.rb-grid li > div {
		text-align: center;
	}
}

/* profile image grid */

.cbp-rfgrid {
	margin: 0px 0 0 0;
	padding: 0;
	list-style: none;
	position: relative;
	width: 100%;
}

.cbp-rfgrid li {
	position: relative;
	float: left;
	overflow: hidden;
	width: 16.6666667%; /* Fallback */
	width: -webkit-calc(100% / 6);
	width: calc(100% / 6);
}

.cbp-rfgrid li a,
.cbp-rfgrid li a img {
	display: block;
	width: 100%;
	cursor: pointer;
}

.cbp-rfgrid li a img {
	max-width: 100%;
}

/* Flexbox is used for centering the heading */
.cbp-rfgrid li a div {
	position: absolute;
	left: 0px;
	top: 20px;
	right: 0px;
	bottom: 20px;
	background: rgba(71,163,218,0.2);
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: flex;
	-webkit-align-items: center;
	-moz-align-items: center;
	-ms-align-items: center;
    align-items: center;
    text-align: center;
    opacity: 0;
}

.cbp-rfgrid li a:hover div {
	opacity: 1;
}

.cbp-rfgrid li a div h3 {
	width: 100%;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.2em;
	letter-spacing: 2px;
	padding: 0;
}

/* Example for media query: change number of items per row */

@media screen and (max-width: 1190px) {
	.cbp-rfgrid li {
		width: 20%; /* Fallback */
		width: -webkit-calc(100% / 5);
		width: calc(100% / 5);
	}
}

@media screen and (max-width: 945px) {
	.cbp-rfgrid li {
		width: 25%; /* Fallback */
		width: -webkit-calc(100% / 4);
		width: calc(100% / 4);
	}
}

@media screen and (max-width: 660px) {
	.cbp-rfgrid li {
		width: 33.3333333%; /* Fallback */
		width: -webkit-calc(100% / 3);
		width: calc(100% / 3);
	}
}

@media screen and (max-width: 660px) {
	.cbp-rfgrid li {
		width: 33.3333333%; /* Fallback */
		width: -webkit-calc(100% / 3);
		width: calc(100% / 3);
	}
}

@media screen and (max-width: 400px) {
	.cbp-rfgrid li {
		width: 50%; /* Fallback */
		width: -webkit-calc(100% / 2);
		width: calc(100% / 2);
	}
}

@media screen and (max-width: 300px) {
	.cbp-rfgrid li {
		width: 100%;
	}
}
