.rb-grid {
	list-style: none;
	text-align: center;
	margin: 0 auto;
}

.rb-grid li {
	width: 24%; /*Promena vel.kocke*/
	height: 15em;
	margin: 0.5%;
	background: #8CC7DF;
	color: #fff;
	display: block;
	float: left;
	padding: 1.6em;
	cursor: pointer;
	position: relative;
}

.rb-grid li.rb-span-2 {
	width: 24%; /*Promena vel.kocke*/
}

.rb-grid li.rb-span-4 {
	width: 24%; /*Promena vel.kocke*/
}

.rb-grid li h3 {
	font-size: 2.4em;/*pocetna vel.slova*/
	font-weight: 100;
	font-family: "Comic Sans MS", cursive;
}

.rb-grid li[class^="icon-"]:before,
.rb-grid li[class*=" icon-"]:before {
	font-size: 10em;/*vel.slov.poc.ikon.*/
	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: 2em;
	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: 20%; /*promena vel.preloma*/
	height: 100%;
	float: left;
	position: relative;
	padding: 3% 0;
}

.rb-week > div:first-child {
	width: 40%; /*promena vel.preloma*/
}

.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:24px;
	line-height: 1.2;
	font-family: "Comic Sans MS", cursive;
}

.rb-week [class^="icon-"]:before {
	font-size: 2.5em;
	font-weight: normal;
}

.rb-week > div:first-child [class^="icon-"] {
	opacity: 0.1;
}

.spread-image{
    background-size: contain;
}

/* boja kockica*/
.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; }
.rb-grid li:nth-child(12) { background: #a983e3; }
.rb-grid li:nth-child(13) { background: #99CC99; }

/* Overlay Columns */
.rb-grid li:nth-child(1) .rb-week > div:nth-child(1) {background: #3399CC; }
.rb-grid li:nth-child(1) .rb-week > div:nth-child(2) { background: #2c87b4; }
.rb-grid li:nth-child(1) .rb-week > div:nth-child(3) { background: #297ba3; }
.rb-grid li:nth-child(1) .rb-week > div:nth-child(4) { background: #256d93 }

.rb-grid li:nth-child(2) .rb-week > div:nth-child(1) { background: #33CCCC;}
.rb-grid li:nth-child(2) .rb-week > div:nth-child(2) { background: #2eb4b5;}
.rb-grid li:nth-child(2) .rb-week > div:nth-child(3) { background: #29a3a4;}
.rb-grid li:nth-child(2) .rb-week > div:nth-child(4) { background: #259394;}

.rb-grid li:nth-child(3) .rb-week > div:nth-child(1) { background: #996699;}
.rb-grid li:nth-child(3) .rb-week > div:nth-child(2) { background: #936192;}
.rb-grid li:nth-child(3) .rb-week > div:nth-child(3) { background: #885a88;}
.rb-grid li:nth-child(3) .rb-week > div:nth-child(4) { background: #7b527a;}

.rb-grid li:nth-child(4) .rb-week > div:nth-child(1) { background: #C24747;}
.rb-grid li:nth-child(4) .rb-week > div:nth-child(2) { background: #b93d3d;}
.rb-grid li:nth-child(4) .rb-week > div:nth-child(3) { background: #a93938;}
.rb-grid li:nth-child(4) .rb-week > div:nth-child(4) { background: #9a3334;}

.rb-grid li:nth-child(5) .rb-week > div:nth-child(1) { background: #e2674a;}
.rb-grid li:nth-child(5) .rb-week > div:nth-child(2) { background: #e15b3e;}
.rb-grid li:nth-child(5) .rb-week > div:nth-child(3) { background: #dd4d2b;}
.rb-grid li:nth-child(5) .rb-week > div:nth-child(4) { background: #d34321;}


.rb-grid li:nth-child(6) .rb-week > div:nth-child(1) { background: #FFCC66; }
.rb-grid li:nth-child(6) .rb-week > div:nth-child(2) { background: #ffc146;}
.rb-grid li:nth-child(6) .rb-week > div:nth-child(3) { background: #ffbb34;}
.rb-grid li:nth-child(6) .rb-week > div:nth-child(4) { background: #ffb420;}

.rb-grid li:nth-child(7) .rb-week > div:nth-child(1) { background: #99CC99;}
.rb-grid li:nth-child(7) .rb-week > div:nth-child(2) { background: #85c185;}
.rb-grid li:nth-child(7) .rb-week > div:nth-child(3) { background: #78bb78;}
.rb-grid li:nth-child(7) .rb-week > div:nth-child(4) { background: #6bb46b;}

.rb-grid li:nth-child(8) .rb-week > div:nth-child(1) { background: #669999;}
.rb-grid li:nth-child(8) .rb-week > div:nth-child(2) { background: #629292;}
.rb-grid li:nth-child(8) .rb-week > div:nth-child(3) { background: #5b8788;}
.rb-grid li:nth-child(8) .rb-week > div:nth-child(4) { background: #527a7a;}

.rb-grid li:nth-child(9) .rb-week > div:nth-child(1) { background: #CC6699;}
.rb-grid li:nth-child(9) .rb-week > div:nth-child(2) { background: #c8578f;}
.rb-grid li:nth-child(9) .rb-week > div:nth-child(3) { background: #c34785;}
.rb-grid li:nth-child(9) .rb-week > div:nth-child(4) { background: #b93d7b;}

.rb-grid li:nth-child(10) .rb-week > div:nth-child(1) { background: #339966;}
.rb-grid li:nth-child(10) .rb-week > div:nth-child(2) { background: #2e895d;}
.rb-grid li:nth-child(10) .rb-week > div:nth-child(3) { background: #297952;}
.rb-grid li:nth-child(10) .rb-week > div:nth-child(4) { background: #246c47;}

.rb-grid li:nth-child(11) .rb-week > div:nth-child(1) { background: #666699;}
.rb-grid li:nth-child(11) .rb-week > div:nth-child(2) { background: #626294;}
.rb-grid li:nth-child(11) .rb-week > div:nth-child(3) { background: #595a88;}
.rb-grid li:nth-child(11) .rb-week > div:nth-child(4) { background: #53527a;}

.rb-grid li:nth-child(12) .rb-week > div:nth-child(1) { background: #a983e3;}
.rb-grid li:nth-child(12) .rb-week > div:nth-child(2) { background: #a983e3;}
.rb-grid li:nth-child(12) .rb-week > div:nth-child(3) { background: #a983e3;}
.rb-grid li:nth-child(12) .rb-week > div:nth-child(4) { background: #a983e3;}

.rb-grid li:nth-child(13) .rb-week > div:nth-child(1) { background: #99CC99;}
.rb-grid li:nth-child(13) .rb-week > div:nth-child(2) { background: #85c185;}
.rb-grid li:nth-child(13) .rb-week > div:nth-child(3) { background: #78bb78;}
.rb-grid li:nth-child(13) .rb-week > div:nth-child(4) { background: #6bb46b;}

@media screen and (max-width: 63.125em) {

	.rb-grid li,
	.rb-grid li.rb-span-2,
	.rb-grid li.rb-span-4 {
	width: 100%;
	height: 10em;
	text-align: left;
	font-weight: bold;
	font-family: "Lucida Console", Monaco, monospace;
	}

	.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;
	}
}
