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

.rb-grid > li {
	width: 166px;
	height: 166px;
	margin: 3px;
	background: #8CC7DF;
	color: #fff;
	display: block;
	float: left;
	padding: 0;
	cursor: pointer;
	position: relative;
}
.rb-grid li ul li{margin: 0; width: auto; height: auto;}
.rb-grid li ol li{margin: 0; width: auto; height: auto;}
.rb-grid li.nolink{cursor: default;}

.rb-grid li.rb-span-2 {
	width: 339px;
}

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

.rb-grid li h3 {
	font-size: 2.6em;
	font-weight: 100;
}

.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: 15px;
	opacity: 0.5;
	-webkit-transition: opacity 0.5s ease-in-out;
	-moz-transition: opacity 0.5s ease-in-out;
	transition: opacity 0.5s 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: -15px;
	width: 100%;
	height: 100%;
	font-size: 3em;
	line-height: 0.6;
	text-align: center;
	text-indent: 0px;
}
.contactclose{color: #000;}
.rb-week {
	width: 100%;
	height: 100%;
}

.rb-week > div {
	width: 100%;
	height: 100%;
	float: left;
	position: relative;
	padding: 2%;
	text-align: left;
}

/* Colors */

/* Grid */
.rb-grid li:nth-child(1) { background: #3399CC; }
.rb-grid li.logo{background: url('../images/block/bg_logo.jpg') no-repeat left top;}
.rb-grid li:nth-child(2) { background: #000; }
.rb-grid li:nth-child(3) { background: #F57F26; }
.rb-grid li:nth-child(4) { background: #996699; }
.rb-grid li:nth-child(5) { background: #C24747; }
.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; }
.rb-grid li:nth-child(12) { background: #3399CC; }
.rb-grid li:nth-child(13) { background: #33CCCC;}
.rb-grid li:nth-child(14) { background: #996699; }
.rb-grid li:nth-child(15) { background: #C24747; }
.rb-grid li:nth-child(16) { background: #FFDA00; }
.rb-grid li:nth-child(17) { background: #000; }
.rb-grid li:nth-child(18) { background: #e2674a; }
.rb-grid li:nth-child(19) { background: #FFCC66; }
.rb-grid li:nth-child(20) { background: #99CC99; }
.rb-grid li:nth-child(21) { background: #00AEF0; }
.rb-grid li:nth-child(22) { background: #669999; }
.rb-grid li:nth-child(23) { background: #CC6699; }
.rb-grid li:nth-child(24) { background: #339966; }
.rb-grid li:nth-child(25) { background: #666699; }
.rb-grid li:nth-child(26) { background: #3399CC; }
.rb-grid li:nth-child(27) { background: #33CCCC;}
.rb-grid li:nth-child(28) { background: #996699; }


/* Overlay Columns */
.rb-grid li:nth-child(1) .rb-week > div:nth-child(1) { background: #3399CC; }
.rb-grid li:nth-child(2) .rb-week > div:nth-child(1) { background: #F57F26; }
.rb-grid li:nth-child(3) .rb-week > div:nth-child(1) { background: #00AEF0; }
.rb-grid li:nth-child(4) .rb-week > div:nth-child(1) { background: #FFDA00; }
.rb-grid li:nth-child(5) .rb-week > div:nth-child(1) { background: #FFF; }
.rb-grid li:nth-child(6) .rb-week > div:nth-child(1) { background: #FFCC66; }
.rb-grid li:nth-child(7) .rb-week > div:nth-child(1) { background: #99CC99; }
.rb-grid li:nth-child(8) .rb-week > div:nth-child(1) { background: #669999; }
.rb-grid li:nth-child(9) .rb-week > div:nth-child(1) { background: #CC6699; }
.rb-grid li:nth-child(10) .rb-week > div:nth-child(1) { background: #339966; }
.rb-grid li:nth-child(11) .rb-week > div:nth-child(1) { background: #666699; }
.rb-grid li:nth-child(12) .rb-week > div:nth-child(1) { background: #3399CC; }
.rb-grid li:nth-child(13) .rb-week > div:nth-child(1) { background: #33CCCC; }
.rb-grid li:nth-child(14) .rb-week > div:nth-child(1) { background: #996699; }
.rb-grid li:nth-child(15) .rb-week > div:nth-child(1) { background: #C24747; }
.rb-grid li:nth-child(16) .rb-week > div:nth-child(1) { background: #FFDA00; }
.rb-grid li:nth-child(17) .rb-week > div:nth-child(1) { background: #FFF; }
.rb-grid li:nth-child(18) .rb-week > div:nth-child(1) { background: #99CC99; }
.rb-grid li:nth-child(19) .rb-week > div:nth-child(1) { background: #FFCC66; }
.rb-grid li:nth-child(20) .rb-week > div:nth-child(1) { background: #99CC99; }
.rb-grid li:nth-child(21) .rb-week > div:nth-child(1) { background: #00AEF0; }
.rb-grid li:nth-child(22) .rb-week > div:nth-child(1) { background: #669999; }
.rb-grid li:nth-child(23) .rb-week > div:nth-child(1) { background: #CC6699; }
.rb-grid li:nth-child(24) .rb-week > div:nth-child(1) { background: #339966; }
.rb-grid li:nth-child(25) .rb-week > div:nth-child(1) { background: #666699; }
.rb-grid li:nth-child(26) .rb-week > div:nth-child(1) { background: #3399CC; }
.rb-grid li:nth-child(27) .rb-week > div:nth-child(1) { background: #33CCCC; }
.rb-grid li:nth-child(28) .rb-week > div:nth-child(1) { background: #996699; }



@media screen and (max-width: 340px) {
	
	.rb-grid li,
	.rb-grid li.rb-span-2,
	.rb-grid li.rb-span-4 {
		width: 100%;
		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: left;
	}
	
	.block{width: 100%; height: 100%;}
	.text{bottom: 0;}
}
