/* general styles */
.clr{clear:both;}
/* Global Styles */

#top_banner .container {
	text-indent: -9999px;
	overflow: hidden;
	background: url("/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/themes/KIDS-SITE_CANADAHeader-FA.jpg") left top no-repeat;
    padding: 0;
    background-size: 100%;
    background-repeat: no-repeat;
    border: none;
    height: 150px;
}

body {
	font-family: 'Montserrat', sans-serif;
	background-image: url("/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/images/CBCKids-BGTile.jpg");
	
	/*Theme: bitmap */
		
	background-image:url('https://web-archive.nli.org.il/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/themes/CBCKidsSite-BGTilePink.jpg');
		
	background-color: #cc00cc;
			
}
.explore .coloured-label {
	color: #02a2c8;
}
.videos .coloured-label {
	color: #03be5f;	
}
.games .coloured-label {
	color: #ff7800;
}
.icon {
	vertical-align: middle;
	border-radius: 50%;
	display: inline-block;
}
.explore .icon {
	background: #02a2c8;
}
.videos .icon {
	background: #03be5f;
}
.games .icon {
	background: #ff7800;
}
.container {
	background-color: #F0F0F0;
	border-left: 1px solid #D2D2D2;
	border-right: 1px solid #D2D2D2;
	box-shadow: 5px 0px 5px -1px rgba(0,0,0,0.15), -5px 0px 5px -1px rgba(0,0,0,0.15);
	border: none;
}

/* tile styles */
.tile {
	overflow: hidden;
}
.tile .tile_link {
	width: 100%;
	display: block;
	text-decoration: none;
	color: #000;
}
.tile .tile_link .image_wrap {
	width: 100%;
}
.tile .tile_link .image_wrap img {
	width: 100%;
	-webkit-border-top-left-radius: 10px;
	-webkit-border-top-right-radius: 10px;
	-moz-border-radius-topleft: 10px;
	-moz-border-radius-topright: 10px;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	border-top: 1px solid #DEDEDE;
    border-left: 1px solid #DEDEDE;
    border-right: 1px solid #DEDEDE;
}
.tile .caption_wrap {
	background-color: #FFF;
	-webkit-border-bottom-right-radius: 10px;
	-webkit-border-bottom-left-radius: 10px;
	-moz-border-radius-bottomright: 10px;
	-moz-border-radius-bottomleft: 10px;
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 10px;
	padding: 3px 10px 0;
	border-left: 1px solid #D3D3D3;
	border-right: 1px solid #D3D3D3;
	border-bottom: 1px solid #D3D3D3;
	position: relative;
	height: 75px;
}

.tile.explore .caption_wrap { border-top: 4px solid #02A2C8; }
.tile.games 	   .caption_wrap { border-top: 4px solid #FF7800; }
.tile.videos   .caption_wrap { border-top: 4px solid #03BE5F; }

.tile .icon {
	width: 50px;
	height: 50px;
	position: absolute;
	top: -28px;
	right: 5px;
}

.tile .caption_wrap .coloured-label {
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
	margin-bottom: 3px;
	/*
	width: 70%;
	*/
}
.tile .caption_wrap .caption {
	font-size: 15px;
	line-height: 17px;
}

/* slider styles */

.right_shadow {
	border-right: 2px solid #CCC;
	/*
	box-shadow: inset -18px 0px 10px -12px rgba(51,51,51,0.25);*/
}
.left_shadow {
	border-left: 2px solid #CCC;
	/*
	box-shadow: inset 18px 0px 10px -12px rgba(51,51,51,0.25);*/
}


.slider_bar {
	-moz-user-select: none;
	-webkit-user-select: none;
	margin: 0 0 10px;
}
.slider_bar h2 {
	margin-top: 0;
}
.slider_bar h2 .slider-link {
	background: transparent url("/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/static-images/chevron2x.png") left top no-repeat;
	background-size: 15px;
    height: 25px;
    width: 25px;
    display: inline-block;
    margin-left: 5px;
    vertical-align: bottom;
}
.slider_bar a h2, .slider_bar a h2:hover {color:#333;}
.slider_bar .wrap {
	position: relative;
}

.slider_bar .slide_button {
	display: inline-block;
	width: 33px;
	height: 55px;
	top: 90px;
	overflow: hidden;
	text-indent: -9999px;
	position: absolute;
	cursor: pointer;
}
.slider_bar .slide_button.left_arrow {
	background: transparent url("/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/static-images/slider-left_arrow.png") left top no-repeat;
	left: 0px;
}
.slider_bar .slide_button.right_arrow {
	background: transparent url("/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/static-images/slider-right_arrow.png") left top no-repeat;
	right: 0px;
}

.slider_bar .mask {
	overflow: hidden;
	display: block;
	margin: 0 auto;
	/*
	border-left: 	1px solid #808080;
	border-right: 	1px solid #808080;
	*/
	padding: 10px 0;
}
.slider_bar .mask .slider_content { 
	position: relative;
}
/*
.slider_bar .mask .slider_content  .tile:first-child {
	padding-left: 0;
}
.slider_bar .mask .slider_content  .tile:last-child {
	padding-right: 0;
}
*/
@media (min-width: 992px) {
	.slider_bar .tile.custom {
		width: 292px;
		padding: 0 15px;
		float: left;
	}
	.slider_bar .tile.custom .image_wrap{
		/*max-height: 166px;*/
	}
}
/*lg view*/
@media (min-width: 1200px) {
	.slider_bar .mask {
		width: 1060px;
	}
	/*.slider_bar .mask, */
	.slider_bar .mask .slider_content {
		/*height: 241px;*/
	}
	
}
/*md view*/
@media (min-width: 992px) and (max-width: 1200px) {
	.slider_bar .mask {
		width: 838px;
	}
	#top_banner .container {
		height: 123px;
	}
}
/*sm view*/
@media (min-width: 768px) and (max-width: 992px) {
	.slider_bar .mask {
		width: 648px;
	}
	.slider_bar .tile.custom {
		width: 232px;
		float: left;
		padding-left: 7px;
		padding-right:7px;
	}
	.slider_bar .tile.custom .image_wrap{
		max-height: 122px;
	}
	
	.slider_bar .slide_button {
		width: 23px;
		height: 36px;
		top: 80px;
	}
	.slider_bar .slide_button.left_arrow {
		background: transparent url("/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/static-images/slider-left_arrow-sm.png") left top no-repeat;
	}
	.slider_bar .slide_button.right_arrow {
		background: transparent url("/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/static-images/slider-right_arrow-sm.png") left top no-repeat;
	}
	#top_banner .container {
		height: 95px;
	}
}
@media (max-width: 767px) {
	.slider_bar .mask {
		width: 90%;
	}
	
	.slider_bar .tile.custom {
		width: 242px;
		padding: 0 15px;
		float: left;
		padding-left: 7px;
		padding-right:7px;
	}
	.slider_bar .slide_button {
		/*
		*/
		display:none;
	}
	#top_banner .container {
		height: 0;
		background: url("/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/images/kidsSite_MobileHeader.png") left top no-repeat;
		background-size: 100%;
		padding-bottom: 25%;
	}
}
/*
< 480px
SM > 480px and < 992px
MD > 992px and < 1200px
LG > 1200px
*/

.games .feature-character {
	padding-top: 10px;
}
.games .game-tile {
	margin-bottom: 25px;
}
@media (min-width: 991px) {
	.games .game-tile {
		height: 188px;
		/* -3col height
		height: 165px;*/
	}
}
@media (min-width: 1199px) {
	.games .game-tile {
		height: 230px;
		/* -3col height
		height: 202px;*/
	}
}
@media (max-width: 991px) {
	.games .game-tile {
		height: inherit;
	}
}
@media (max-width: 767px) {
	
}

.games .game-tile {
	position: relative;
	color: #000;
}

.games .game-tile img {
	-webkit-border-radius: 10px;
	   -moz-border-radius: 10px;
	        border-radius: 10px;
	border: 1px solid #CECECE;
	width: 100%;
}

.games .game-tile .game_feature_tag {
	position: absolute;
	bottom: 14px;
	right: 15px;
	background-color: #FFF;
	height: 36px;
	width: 40%;
	text-align: center;  
}
.games .game-tile .tag_flag {
	padding: 0 5px;
	width: 100%;
	overflow: hidden;
}
.games .game-tile .before_tag_flag {
    position: absolute;
	left: -12px;
	content: "";
    border-left: 	12px solid transparent !important;
    border-top: 	18px solid #FFF;
    border-bottom: 	18px solid #FFF;	
}
.games .game-tile .game_feature_tag span{
	position: relative;
	top: 3px;
	font-size: 20px;
	font-weight: bold;
	font-family: 'Montserrat', sans-serif;
	color: #000;
	white-space: nowrap; 
}

.games.games-view {

}
.games.games-view h1 {
	color: #000;
}
.games.games-view .top-row{
	margin-top: 30px;
}
.games.games-view h1{
	margin-top: 0px;
}
.games.games-view h3 {
	color: #fd7822;
	font-size: 20px;
	font-weight: bold;
}
.games.games-view  .like-button-text, .games.games-view .like-button-text  b span#like-count-reaction0-count-value{
	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
	font-size: 18px !important;
	color: #4D4D4D;
	padding-left: 5px;
}
.games.games-view #games-categories {
	height: auto !important;
}
.games.games-view .related-games .game {
	margin-bottom: 30px;
}
.games.games-view .related-games .game img {
	-webkit-border-radius: 10px;
	   -moz-border-radius: 10px;
	        border-radius: 10px;
	border: 1px solid #CECECE;
	width: 100%;
}

.games.games-view .game_container .game_tile img {
	width: 100%;
}
.games h1.section_header{
	margin-bottom: 10px;
}
.games.games-view .related-header{
	font-size: 24px;
	color: #3b3b3b;
}
.games-view .game_container img {
	width: 100%;
}
/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
.fancybox-wrap,
.fancybox-skin,
.fancybox-outer,
.fancybox-inner,
.fancybox-image,
.fancybox-wrap iframe,
.fancybox-wrap object,
.fancybox-nav,
.fancybox-nav span,
.fancybox-tmp
{
	padding: 0;
	margin: 0;
	border: 0;
	outline: none;
	vertical-align: top;
}

.fancybox-wrap {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 8020;
}

.fancybox-skin {
	position: relative;
	background: #FFF;
	color: #444;
	text-shadow: none;
	-webkit-border-radius: 4px;
	   -moz-border-radius: 4px;
	        border-radius: 4px;
}

.fancybox-opened {
	z-index: 8030;
}

.fancybox-opened .fancybox-skin {
	-webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
	   -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
	        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.fancybox-outer, .fancybox-inner {
	position: relative;
}

.fancybox-inner {
	overflow: hidden;
}

.fancybox-type-iframe .fancybox-inner {
	-webkit-overflow-scrolling: touch;
}

.fancybox-error {
	color: #444;
	font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
	margin: 0;
	padding: 15px;
	white-space: nowrap;
}

.fancybox-image, .fancybox-iframe {
	display: block;
	width: 100%;
	height: 100%;
}

.fancybox-image {
	max-width: 100%;
	max-height: 100%;
}

#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
	background-image: url('/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/images/fancybox_sprite.png');
}

#fancybox-loading {
	position: fixed;
	top: 50%;
	left: 50%;
	margin-top: -22px;
	margin-left: -22px;
	background-position: 0 -108px;
	opacity: 0.8;
	cursor: pointer;
	z-index: 8060;
}

#fancybox-loading div {
	width: 44px;
	height: 44px;
	background: url('/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/images/fancybox_loading.gif') center center no-repeat;
}

.fancybox-close {
	position: absolute;
	top: -18px;
	right: -18px;
	width: 36px;
	height: 36px;
	cursor: pointer;
	z-index: 8040;
}

.fancybox-nav {
	position: absolute;
	top: 0;
	width: 40%;
	height: 100%;
	cursor: pointer;
	text-decoration: none;
	background: transparent url('/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/images/blank.gif'); /* helps IE */
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	z-index: 8040;
}

.fancybox-prev {
	left: 0;
}

.fancybox-next {
	right: 0;
}

.fancybox-nav span {
	position: absolute;
	top: 50%;
	width: 36px;
	height: 34px;
	margin-top: -18px;
	cursor: pointer;
	z-index: 8040;
	visibility: hidden;
}

.fancybox-prev span {
	left: 10px;
	background-position: 0 -36px;
}

.fancybox-next span {
	right: 10px;
	background-position: 0 -72px;
}

.fancybox-nav:hover span {
	visibility: visible;
}

.fancybox-tmp {
	position: absolute;
	top: -99999px;
	left: -99999px;
	visibility: hidden;
	max-width: 99999px;
	max-height: 99999px;
	overflow: visible !important;
}

/* Overlay helper */

.fancybox-lock {
    overflow: hidden !important;
    width: auto;
}

.fancybox-lock body {
    overflow: hidden !important;
}

.fancybox-lock-test {
    overflow-y: hidden !important;
}

.fancybox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	display: none;
	z-index: 8010;
	background: url('/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/images/fancybox_overlay.png');
}

.fancybox-overlay-fixed {
	position: fixed;
	bottom: 0;
	right: 0;
}

.fancybox-lock .fancybox-overlay {
	overflow: auto;
	overflow-y: scroll;
}

/* Title helper */

.fancybox-title {
	visibility: hidden;
	font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
	position: relative;
	text-shadow: none;
	z-index: 8050;
}

.fancybox-opened .fancybox-title {
	visibility: visible;
}

.fancybox-title-float-wrap {
	position: absolute;
	bottom: 0;
	right: 50%;
	margin-bottom: -35px;
	z-index: 8050;
	text-align: center;
}

.fancybox-title-float-wrap .child {
	display: inline-block;
	margin-right: -100%;
	padding: 2px 20px;
	background: transparent; /* Fallback for web browsers that doesn't support RGBa */
	background: rgba(0, 0, 0, 0.8);
	-webkit-border-radius: 15px;
	   -moz-border-radius: 15px;
	        border-radius: 15px;
	text-shadow: 0 1px 2px #222;
	color: #FFF;
	font-weight: bold;
	line-height: 24px;
	white-space: nowrap;
}

.fancybox-title-outside-wrap {
	position: relative;
	margin-top: 10px;
	color: #fff;
}

.fancybox-title-inside-wrap {
	padding-top: 10px;
}

.fancybox-title-over-wrap {
	position: absolute;
	bottom: 0;
	left: 0;
	color: #fff;
	padding: 10px;
	background: #000;
	background: rgba(0, 0, 0, .8);
}

/*Retina graphics!*/
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
	   only screen and (min--moz-device-pixel-ratio: 1.5),
	   only screen and (min-device-pixel-ratio: 1.5){

	#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
		background-image: url('/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/images/fancybox_sprite@2x.png');
		background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/
	}

	#fancybox-loading div {
		background-image: url('/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/images/fancybox_loading@2x.gif');
		background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/
	}
}

/* Kids' CBC 2 Custom leaving box styles */
.leaving_box .buttons {
	height: 20%;
	height: 50px\9;
}
.leaving_box .buttons a{
	width: 50%;
	height: 100%;
	display: block;
	font-family: 'Montserrat', sans-serif;
	color: #FFF;
	font-size: 3vw;
	font-size: 25px\9;
	text-align: center;
	padding: .5vw 0;
	margin: 0;
	float: right;
}
.leaving_box .buttons .cancel {
	background: #E81E20;
	border-bottom: .5vw solid #B21719;
}
.leaving_box .buttons .okay {
	background: #02A2C8;
	border-bottom: .5vw solid #0A8ECC;
}

/* UPGRADE BROWSER POPUP STYLES */
.upgrade_box {
	width: 500px;
}
.upgrade_box .message {
	color: $kidscbc-red;
	font-size: 30px;
	text-align: center;
	margin: 0 auto;
}

.upgrade_box .buttons .cancel {
	background-color: $kidscbc-red;
	text-shadow: -1px -1px 0 #870616, 1px -1px 0 #870616, -1px 1px 0 #870616, 1px 1px 0 #870616
}
	
.upgrade_box .buttons .upgrade {
	background-color: $kidscbc-blue !important;
	text-shadow: -1px -1px 0 #1779CD, 1px -1px 0 #1779CD, -1px 1px 0 #1779CD, 1px 1px 0 #1779CD;
}
/* Caitlin Styles */
.main .left-tile {
	padding-left: 0;
}
.main .left-tile .caption_wrap {
	height: 156px;
}
.main .left-tile .caption_wrap .caption {
	font-size: 28px;
    line-height: 40px;
}
.main .left-tile .caption_wrap .coloured-label {
	font-size: 16px;
	margin-top: 10px;
}
.main .left-tile .icon {
	width: 70px;
	height: 70px;
	top: -37px;
	right: 10px;
}
.main .sm-tile, .promo-tile {
	margin-bottom: 15px;
}
.left-col, .sm-tile {
	padding-right: 0;
}
.main .promo-tile img {
	border: 1px solid #DEDEDE;
	border-radius: 10px;
	width: 100%;
}
.main.left-col h3 {
	margin-top: 26px;
}
.search-results .tile {
	margin-bottom: 15px;
}
.tile .caption_wrap .caption {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;  
}
/* Search */
.search-results .search-categories ul {
	list-style: none;
	text-transform: uppercase;
	padding: 0;
}
.search-results h2 {
	font-size: 24px;
}
.search-results .image_wrap {
	height: 145px;
}
.search-results .search-categories ul li {
	display: inline-block;
}
.search-results .search-categories ul li.visible-element:after {
	content: "|"; 
}
.search-results .search-categories ul li.visible-element.last-category:after {
	content: " "; 
}
.search-results .search-categories ul li a {
	margin: 0 5px;
}
.search-results .highlight {
	color: #185bc0;
} 

.sitemap {
	
}
.sitemap h1{
    font-size: 45px;
    margin: 20px 0 0;
	font-family: 'Montserrat', sans-serif;
	font-weight: bold;
	color: #e80109;
	margin-bottom: 15px;
}
.sitemap h2 {
	margin-top: 0px;
	margin-bottom: 15px;
}
.sitemap h2 a{
	font-size: 24px;
	border-radius: 20px;
	color: #FFF;
	padding: 5px 20px;
	display: block;
	float: none;
}
.sitemap h2 a.explore{
	background-color: rgb(2, 162, 200);
}
.sitemap h2 a.videos{
	background-color: rgb(3, 190, 95);
}
.sitemap h2 a.games{
	background-color: rgb(255, 120, 0);
}

.sitemap h3 {
	margin-top: 0px;
	font-size: 20px;
}
.sitemap h3.explore {
	color: rgb(2, 162, 200);
}
.sitemap h3.videos {
	color: rgb(3, 190, 95);
}
.sitemap h3.games {
	color: rgb(255, 120, 0);
}

.sitemap ul{
	padding-left: 10px;
}
.sitemap ul li{
	list-style-type: none;
}
.sitemap ul li a{
	color: #555;
}

/********************/
/* GAMES PAGE HACKS */
/********************/

/**    321 MATH    **/
#321_math .main { background-color:#000; text-align:center; width:100%;margin-top:100px;}
#321_math .menu{display:table-cell;}
#321_math .navbar-toggle.collapsed.menu {display:none;}
#321_math .btn{ width:30%; vertical-align:bottom;}
#321_math .title img {
	width: 100%;
}




/*CSS Overrides: */


#top_banner .container {
	text-indent: -9999px;
	overflow: hidden;
	background: url(https://web-archive.nli.org.il/National_Library/20160526010038oe_/http://www.cbc.ca/kidscbc2/content/themes/KIDS-SITE_Header8-bit.jpg) left top no-repeat;
	background-size: cover;
}

