/*
-----------------------------------------------
WGBH Digital
Martha Speaks mobile stylesheet
originally built by Bharat Battu
modified June 2014 by kal_gieber@wgbh.org
-----------------------------------------------
*/

#pbs-ga-overlay { display: none; }

/* FONTS
-------------------------------------------------------------- */

@font-face {
    font-family: 'Nunito Bold';
    src: url('../font/Nunito-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Nunito Regular';
    src: url('../font/Nunito-Regular.ttf') format('truetype');
}

/* BASE RESET
-------------------------------------------------------------- */

*, td, img {margin : 0; padding : 0;}
img {border: 0;}
p {padding: 0 0 1em 0; margin: 0 0 0 0}
body {
margin: 0 0 20px 0;
padding: 0;
background: #9ed45c;
font: normal 87.5%/114.4% arial, sans-serif; /*approx 14px/16px*/
color: #3a5125;
}
img, .spot-art {
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-user-select: none;
-webkit-touch-callout: none;
}


/* SHARED ELEMENT STYLES
-------------------------------------------------------------- */
a, a:visited { text-decoration: none; font-weight: bold; }

a, a:visited { text-decoration: none; font-weight: bold; color: #cb353d; }
a:active { color: #8f3035; }

p {
	color: #595b49;
	font-family: 'Nunito Regular', sans-serif;
}

.centered { text-align: center; }

.centered li {
	list-style-type: none;
	display: inline;
	}


#home h2, .inner-pg h2, .inner-pg h3, #iphone-app a {
	text-align:center;
	font-family: 'Nunito Bold', sans-serif;
	}

#mb-about h2 {
	text-align:left;
}

#section-btns h2, .inner-pg h3 {
	color: #3e3e3e;
	}

.contain-bg {
	-webkit-background-size: contain;
	-o-background-size: contain;
	-khtml-background-size: contain;
	-moz-background-size: contain;
	background-size: contain;
	}

.full-width { width:100%; }

.fl-left { float:left; }

.fl-right { float:right; }

/* HEADERS
-------------------------------------------------------------- */

.header * {
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-user-select: none;
	}

.header {
	position:relative;
	-webkit-user-select: none;
	}

.header img {
	height: 100%;
	}

.header #pbs-logo {
	position:absolute;
	top:0;
	left:0;
	}

.header h1 {
	text-align:center;
	}

/*  HOME  */

#home .header {
	margin: 8px 0 0 0;
}

#home .header, #home .header #martha, #home .header h1 {
	height:78px;
	}

#home .header #pbs-logo {
	height: 40px;
	padding: 8px 4px;
	}

#home .header #martha {
	position:absolute;
	top:0;
	right:0px;
	width:64px;
	overflow:hidden;
	}

/*	INNER  */

.inner-pg .header {
	height:40px;
	overflow:hidden;
	}

.inner-pg .header #pbs-logo {
	height:34px;
	top:3px;
	left: 3px;
	}

.header #home-link {
	display:block;
	width:190px;
	margin:0 auto;
	padding-top:5px;
	height:35px;
	}

.inner-pg .header h1 {
	height:30px;
	}

/*  button lists  */
.box-buttons h2, {
	font-size: 1.35em;	/* 22/16 */
	}

.games-btns h3 {
	font-size: 1.125em;	/* 18/16 */
	}

/* SHARED MODULE STYLES
-------------------------------------------------------------- */
/* inner header styles  */

.inner-header {
	position:relative;
	height:46px;
	padding:8px 5px 8px 5px;
	overflow:hidden;
}

.inner-header h2 {
	font-size: 1.75em;	/* 28/16 */
	line-height:46px;
	background-color:#c4fa82;
	color:#594b9f;
	}

.inner-header img {
	position:absolute;
}

.inner-header img.r-indent {
	width:98%
}

.inner-header .border_top { top:0; left:5px; }
.inner-header .border_left { top:4px; left:0; }
.inner-header .border_right { top:4px; right:0; }
.inner-header .border_bottom { bottom:0; left:5px; }

/* end inner header styles */

/* Bar width sections */

.bar, .bar:visited {
	width: 228px;
	min-height: 16px;
	padding: 11px;
	margin: 0 auto 12px auto;
	overflow: auto;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	}

p.bar {
	padding: 5px 0;
	width: 245px;
	font-size: .8927em;
	}

.bar-buttons a {
	font-family: 'Nunito Bold', sans-serif;
	}

.bar-buttons a, .bar-buttons a:visited {
	-moz-box-shadow: 1px 1px 1px #476928;
	-webkit-box-shadow: 1px 1px 1px #476928;
	box-shadow: 1px 1px 1px #476928;
	background: #6f9e45;
	color: #ebf0a1;
	display: inline-block;
	}

.bar-buttons a:active {
	color: #ffff33;
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
	box-shadow: none;
	margin: 2px 0 10px 2px;
	}


#home #site-links {
	margin-bottom:16px;
	}

/* end bar width elts */

/* Featured button */

.feature {
	min-height: 31px;
	text-align: left;
	background-color: #ebf0a1;
	padding: 8px 10px;
	}

.feature .label {
	float: left;
	width: 140px;
	color: #48662e;
	font-weight: bold;
	padding:  0;
	}

.feature .btn {
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	float: right;
	width: 49px;
	min-height: 36px;
	padding: 2px 10px 0 10px;
	border: 3px solid #004158;
	background: #3b96c5;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px;
	-moz-box-shadow: 1px 1px 1px #004158;
	-webkit-box-shadow: 1px 1px 1px #004158;
	box-shadow: 1px 1px 1px #004158;
	text-align: center;
	color: #fff;
	font-size: 14px;
	}
/*
.wf-inactive .feature .btn { font-size: 1em; }
.wf-loading .feature .btn { visibility: hidden; }
*/

.feature .btn:active {
	background: #025f90;
	margin: 1px -1px 0 0;
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
	box-shadow: none;
	}

.feature p {
	clear: both;
	}

/* end featured button */

/* Box button style lists */

.box-buttons, .games-btns {
	list-style-type: none;
	overflow: hidden;
	}

.box-buttons {
	margin: 28px auto;
	}

.games-btns {
	margin-top:20px;
	}

.box-buttons li {
	min-height: 172px;
	width: 50%;
	margin-bottom: 20px;
	float: left;
	text-align: center;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	}

.games-btns li {
	width: 154px;
	padding-bottom:25px;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	}

.box-buttons li a, .box-buttons li a:visited {
	width: 130px;
	display: block;
	margin: 0 auto;
	}

.games-btns li a, .games-btns li a:visited {
	display: block;
	}

.box-buttons .hm-btn {
	display: block;
	width: 119.5px;
	height: 116px;
	margin: 0 auto 10px auto;
	-webkit-user-select: none;
	}

.games-btns .gm-btn, .box-buttons .gm-btn {
	display: block;
	background-image: url(../i/game-icons.png);
	background-color: #fff;
	margin: 0 0 14px 0;
	-moz-box-shadow: 4px 4px 0 #597734;
	-webkit-box-shadow: 4px 4px 0 #597734;
	box-shadow: 4px 4px 0 #597734;
	-webkit-background-size: 500%;
	-o-background-size: 500%;
	-khtml-background-size: 500%;
	-moz-background-size: 500%;
	background-size: 500%;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	}

.games-btns .gm-btn:active, .box-buttons .gm-btn:active {
	-moz-box-shadow: 1px 1px 1px #597734;
	-webkit-box-shadow: 1px 1px 1px #597734;
	box-shadow: 1px 1px 1px #597734;
	background-color: #ffff33;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	}

.box-buttons .ts-li, .box-buttons .ts-li a {
	width: 162px;
	margin:0;
	}

.box-buttons .ts-li {
	margin-left:87px;
	}

.box-buttons .gm-btn {
	width: 162px;
	height: 106px;
	background-position: 0 0;
	}

.box-buttons .gm-btn {
	-webkit-transform: rotate(-2deg);
	-moz-transform: rotate(-2deg);
	transform: rotate(-2deg);
	margin: 0 0 24px 0;
	}

.box-buttons .gm-btn:active {
	margin: 4px 0 20px 4px;
	}

.games-btns .gm-btn {
	margin: 0 0 14px 0;
	}

.games-btns .gm-btn:active {
	margin: 4px 0 10px 4px;
	}

.games-btns .gm-btn {
	width: 150px;
	height: 98.5px;
	}

/* end box button style lists */


/* MAIN CONTENT AREA - HOME PAGE
-------------------------------------------------------------- */

#mobile-app-link {
	width: 135px;
	display: block;
	margin: 0 auto 5px auto;
	}

#mobile-app-link img {
	width: 100%;
	}

.note {
	font-size: .7857em;
	color: #0b5873;
	padding-top: 3px;
	padding-bottom: 0;
	}

/* game icons */

#section-btns {
	width: 336px;
	}

#section-btns .hm-btn {
	background-image: url(../i/home-icons.png);
	-webkit-background-size: 400%;
	-o-background-size: 400%;
	-khtml-background-size: 400%;
	-moz-background-size: 400%;
	background-size: 400%;
	}

#section-btns #games-bt { background-position: -236px 0; }
#section-btns #videos-bt { background-position: 0 0; }

#section-btns #games-bt:active { background-position: -354px 0; }
#section-btns #videos-bt:active { background-position: -118px 0; }

/* MAIN CONTENT AREA - GAMES PAGE
-------------------------------------------------------------- */

#games-col {
	width:320px;
	min-height:540px;
	margin:12px auto 0 auto;
	}
.games-btns #gm-steaks { background-position: -149px 0; }
.games-btns #gm-seeks { background-position: -298px -98.5px; }
.games-btns #gm-space { background-position: -447px 0; }
.games-btns #gm-summer { background-position: 0 -98.5px; }
.games-btns #gm-ice { background-position: -596px 0; }
.games-btns #gm-pup { background-position: -298px 0; }
.games-btns #gm-magic { background-position: -149px -98.5px; }

/* FOOTER
-------------------------------------------------------------- */

#funders {
	margin: 0 auto 7px auto;
	text-indent: -999999px;
	width: 320px;
	height: 203px;
	background: transparent url(../i/sponsors-iphone.png) no-repeat;
	-webkit-background-size: 100% 100%;
	-o-background-size: 100% 100%;
	-khtml-background-size: 100% 100%;
	-moz-background-size: 100% 100%;
	background-size: 100% 100%;
	}

#funders a {
	float: left;
	/* uncomment for styling funder updates: */
	/*
	background: rgba(100, 100, 100, .5);
	*/
	}

#wgbh { width: 67px; height: 25px; margin: 39px 16px 0px 70px; }
#dhx  { width: 62px; height: 32px; margin: 36px 22px 0px 16px; }
#cpb  { width: 58px; height: 90px; margin: 20px 17px 0px 61px; }
#cec  { visibility:hidden;}
#oasis { width: 84px; height: 63px; margin: 14px 13px 0px 53px; }
#abcf  { width: 102px; height: 63px; margin: 14px 8px 0 25px; }

#fine-print h2, #fine-print-body {
	font-size: .8571246em;
	clear: both;
	margin: 10px auto 0 auto;
	width: 300px;
	}

#fine-print-trigger {
	padding: 0px 18px 0px 18px;
	background-image: url(../i/info-icon.png);
	background-repeat: no-repeat;
	-webkit-background-size: 14px 28px;
	-o-background-size: 14px 28px;
	-khtml-background-size: 14px 28px;
	-moz-background-size: 14px 28px;
	background-size: 14px 28px;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	}

.closed {
	background-position: 0 0;
	}

.open {
	background-position: 0px -14px;
	}

.footer {
	padding-top: 30px;
	}

#home .footer {
	padding-top: 0px;
	}

#fine-print-body {
	margin-top:18px;
	}

/* MAIN CONTENT AREA - ABOUT PAGE
-------------------------------------------------------------- */

.article img {
	display: none;
	}

.article {
	background: #f4f4c6;
	padding: 0 8.3333335%;
	font-size: 1.144em;
	line-height: 1.3125em;
	color: #434534;
	}

.article h1, .article h2, .article h3, article h4 { font-family: 'Nunito Bold', sans-serif; color: #202114; }
.article h1 { font-size: 1.775em; line-height: 1.9em; padding-top: 15px; }
.article h2 { font-size: 1.3em; line-height: 1.3em; }

/* BREAKPOINTS
-------------------------------------------------------------- */

/* min 400 phone - bigger portrait */
@media screen and (min-width:25em){

	#games-col {
		width:356px;
		min-height:566px;
		}

	.games-btns li {
		width: 166px;
		}

	.games-btns .gm-btn {
		width: 162px;
		height: 106px;
		}

	.box-buttons .ts-li {
		margin-left:72px;
		}

	.games-btns #gm-steaks { background-position: -161px 0; }
	.games-btns #gm-seeks { background-position: -322px -106px; }
	.games-btns #gm-space { background-position: -483px 0; }
	.games-btns #gm-summer { background-position: 0 -106px; }
	.games-btns #gm-ice { background-position: -644px 0; }
	.games-btns #gm-pup { background-position: -322px 0; }
	.games-btns #gm-magic { background-position: -161px -106px; }

}

/* min 480 phone - landscape */

@media screen and (min-width:30em){
	#home .header #martha {
		right:12px;
		width:117px;
		}

}

/* min 600  tablet - portrait */

@media screen and (min-width:37.5em){

	#home .header, #home .header h1 {
		height:120px;
		}

	.box-buttons .hm-btn {
		width: 139px;
		height: 135px;
		}

	#section-btns #games-bt { background-position: -275px 0; }
	#section-btns #videos-bt { background-position: 0 0; }

	#section-btns #games-bt:active { background-position: -412.5px 0; }
	#section-btns #videos-bt:active { background-position: -137.5px 0; }

	.inner-pg .header {
		height:54px;
		}

	.inner-pg .header #pbs-logo {
		height:40px;
		top:7px;
		left:5px;
		}

	.header #home-link {
		width:264px;
		padding-top:6px;
		height:48px;
		}

	.inner-pg .header h1 {
		height:42px;
		}

	#games-col {
		width:414px;
		min-height:630px;
		}

	.games-btns li {
		width: 196px;
		}

	.games-btns h3 {
		font-size: 1.35em;	/* 22/16 */
		}

	.games-btns .gm-btn, .box-buttons .gm-btn {
		width: 190px;
		height: 125px;
		}

	.box-buttons .ts-li, .box-buttons .ts-li a {
		width: 190px;
		}

	.games-btns #gm-steaks { background-position: -189px 0; }
	.games-btns #gm-seeks { background-position: -378px -125px; }
	.games-btns #gm-space { background-position: -567px 0; }
	.games-btns #gm-summer { background-position: 0 -125px; }
	.games-btns #gm-ice { background-position: -756px 0; }
	.games-btns #gm-pup { background-position: -378px 0; }
	.games-btns #gm-magic { background-position: -189px -125px; }

	#funders {
		width: 590px;
		height: 118px;
		background: transparent url(../i/sponsors-ipad.png);
		}

	#wgbh { margin: 40px 23px 0 68px; }
	#dhx  { margin: 36px 14px 0 2px; }
	#cpb  { margin: 21px 6px 0 20px; }
	#cec  { visibility:hidden;}
	#oasis   { width: 104px; margin: 20px 8px 0 50px; }
	#abcf  { width: 124px; height: 63px; margin: 18px 8px 0 32px; }

	#mobile-app-link {
		margin-top: 5px;
		float: left;
		}

	#iphone-app {
		width: 510px;
		}

	#iphone-app .label {
		margin-left: 27px;
		width: 205px;
		clear: none;
		}

	#iphone-app .btn {
		width: 110px;
		padding: 7px;
		min-height: 13px;
		}

	#iphone-app .note {
		margin: 5px 0 0 163px;
		clear: none;
		}

	#home #site-links {
		margin-top:42px;
		}

	/* about page */
	.article {
		padding: 0 9.1145835%;
		}

	.article img {
		display: block;
		float: right;
		margin-right: -40px;
		}

	#spot-art-about {
		padding: 0px 0px 40px 35px;
		}

	#fine-print-body {
		width: 568px;
		}

}

/* min 768 */

@media screen and (min-width:48em){

    #home .header {
        height:11vw;
        max-height:180px;
        min-height:120px;

    }

	#home .header #martha { /* 239x160 */
		height:80%;
		left:21%;
		top:8%;
		overflow:visible;
		}

	#home .header #martha img {
		-moz-transform: scaleX(-1);
		-webkit-transform: scaleX(-1);
		transform: scaleX(-1);
		}

	#home .header #marthatitle {
		height:100%;
		left:42%;
		position:absolute;
		}

	#spot-art-1 {
		position: absolute;
		left: 10vw;
		top: 360px;
		width: 96px;
		height: 70px;
		background-image: url(../i/art/squirrel.png);
		}

	#spot-art-2 {
		position: absolute;
/*		right: 0;*/
		left:68%;
		top: 263px;
		width: 32%;
		height: 216px;
		background-image: url(../i/art/dogs-running.png);
		background-repeat:no-repeat;
		overflow: hidden;
		}

	#mb-games #spot-art-2 {
		/*width: 175px;*/
		left:75%;
		}

}

/* min 1020 */

@media screen and (min-width:63.75em){

	#home .header #martha {
		left:26%;
		}

	#mobile-app-link {
		margin-top: 0;
		float: none;
		}

	#iphone-app {
		float: left;
		margin-left: 80px;
		width: 228px;
		}

	#iphone-app .btn {
		width: 49px;
		padding: 2px 10px 0;
		}

	#iphone-app .label {
		margin-left: 0;
		width: 140px;
		clear:none;
		}

	#iphone-app .note {
		margin: 0;
		clear: both;
		}

	#funders {
		float: right;
		margin-right: 80px;
		}

	/* about page */
	.article {
		padding: 0 19.335938%;
		}

}

/* min 1520 */

@media screen and (min-width:95em){

	.inner-header img.r-indent {
		width:99%
		}

}

