/* Math Salamanders */
@media only screen and (max-device-width: 480px) {
    html {
        -webkit-text-size-adjust: none; /* prevent iOS from scaling text */
    }
}

html.landscape #ContentColumn, html.landscape #ContentColumn3 { /* landscape mode */
    font-size: 125%;
    line-height: 1.3;
}

html.mobile .desktopOnly {
    display: none;
}

.mobileOnly {
    display: none;
}

html.mobile .mobileOnly {
    display: block;
}

html.mobile form > table {
    max-width: 100% !important;
    width: auto !important;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#NotifyDiv  input[type="text"],
html.mobile .formbody input[type="text"],
html.mobile .comments input[type="text"],
#NotifyDiv  textarea,
html.mobile .formbody textarea,
html.mobile .comments textarea,
#NotifyDiv  select,
html.mobile .formbody select,
html.mobile .comments select {
    width: 90% !important;
}

html.mobile #pendingSubmission table {
    width: 100%;
}

html.mobile img {
    max-width: 100%;
    height: auto;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html.mobile iframe {
    max-width: 100%;
}

html.mobile.android2 iframe {
    width: 100% !important;
}

/* I added this top line */
@media only screen{
	#toolbar {
	    text-align: center;
	    width: 100%;
	    height: auto;
	    -moz-box-sizing: border-box;
	    -webkit-box-sizing: border-box;
	    box-sizing: border-box;
	    z-index: 1000;
	    padding: 4px 2px;
	    background: #000;
	    position: fixed;
	    top: 0;
	    left: 0;
	}
	
	#toolbar button {
	    width: 47.5%;
	    font-size: 12px;
	    padding: 0.3em;
	}

	html.mobile #PageWrapper, html.mobile #PageWrapper3 {
	    margin-top: 35px;
	}
}
/* I added this line */
@media only print{
	toolbar: display:none;
}

html.fullView #PageWrapper, html.fullView #PageWrapper3 {
    margin-top: 65px;
}

html.android2 #toolbar button {
    background: #f7f7f7;
    border: 1px solid #2F4255;
    border-radius: 0.5em;
}

.iosbtnfix {
    height: 1000px;
    overflow: hidden;
}

html.fullView #mobileBtn {
    width: 97%;
}

html.mobile #toTopBtn,
html.mobile #navBtn {
    width: 64.1%;
}

html.mobile #fullBtn {
    width: 31.1%;
    margin-right: 4px;
}

html.mobile #fullBtn,
html.mobile #navBtn {
    display: inline-block;
}

#fullBtn,
#navBtn,
#toTopBtn,
html.mobile #mobileBtn {
    display: none;
}

.phantomHeaderImage {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

html.mobile,
html.mobile body {
    height: 100%;
}

/* I added next line */
@media only screen{
	html.mobile #PageWrapper, 
	html.mobile #PageWrapper2, 
	html.mobile #PageWrapper3 {
	    max-width: 100%;
	    -moz-box-sizing: border-box;
	    -webkit-box-sizing: border-box;
	    box-sizing: border-box;
	    overflow: hidden;
	    background-size: 100%;
	    -webkit-overflow-scrolling: touch;
	}
}

html.mobile #Header {
    width: 100%;
}

html.mobile #Header,
html.mobile #Header .Liner{
    background-size: 100%;
}

html.mobile #Header .Liner{
	background-image: url(https://www.math-salamanders.com/image-files/xheader-image-mob.gif.pagespeed.ic.cWIBBUFXmk.png);
	max-width: 100%;
}	

html.mobile #ContentWrapper {
    padding: 0;
    float: none;
}

html.mobile #ContentColumn,
html.mobile #ContentColumn2,
html.mobile #ContentColumn3,
html.mobile #NavColumn {
    float: none;
    width: auto;
    margin: 0;
}

html.mobile #NavColumn {
    margin-top: 100px;
}

html.mobile #PageWrapper,
html.mobile #PageWrapper2,
html.mobile #PageWrapper3 {
    text-align: center;
}

html.mobile #ContentColumn,
html.mobile #ContentColumn2,
html.mobile #ContentColumn3,
html.mobile #Header,
html.mobile #NavColumn {
    text-align: left;
}

 html.mobile #NavColumn {
    display: inline-block;
    width: 300px; /* original column width */
    vertical-align: top;
    overflow: hidden;
}

html.mobile #ExtraColumn{
	display: none;
}

/*
html.mobile #Footer {
    position: absolute;
    top: 10000px;
    left: 0;
    overflow: hidden;
}
*/

@media only screen and (max-width: 359px) { /* portrait mode (very narrow columns) */
    html.mobile #NavColumn, 
    html.mobile #NavColumnC, {
        width: 300px;
    }

    html.mobile #ExtraColumn {
        margin-left: -4px !important;
    }

    html.mobile #NavColumn .Liner,
    html.mobile #ExtraColumn .Liner {
        padding-left: 1px;
        padding-right: 1px;
    }

    html.mobile #ExtraColumn .Liner {
        padding-left: 0;
    }

    html.mobile #NavColumn * {
        max-width: 100%;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        background-size: 100%;
    }
}


@media only screen and (min-width: 360px) {
    html.mobile #NavColumn{
        width: 300px;
    }
}

@media only screen and (min-width: 380px) {
    html.mobile #NavColumn{
        width: 300px; /* original column width */
    }
}

@media only screen and (max-width: 550px) {
    html.mobile .socializeIt,
    html.mobile .socializeIt img {
        width: 100% !important;
    }

    html.mobile .socializeIt textarea {
        width: 100% !important;
    }

    html.mobile .socializeIt > tbody > tr:first-child > td {
        width: 45%;
    }

    html.mobile .socializeIt > tbody > tr:first-child > td:first-child {
        width: 10%;
    }
}

/* Design specific */

html.mobile #ContentWrapper {
    background: transparent;
}


/* disable plug-ins */
html.m #sthoverbuttons,
html.m #google_translate_element {
    display: none !important;
}

/* My Own Mobile Changes */
html.mobile .NewLargeLogo{
	text-align: center;
	margin: 5px;
	clear: both;
	padding: 0;
}

/* PRACTICE ZONE CODE FOR MOBILE */
/* These are added for the practice zone */

html.mobile #zoneBox1, 
html.mobile #zoneBox2 {
	background-color: black;
	color: white;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 130%;
	padding:10px 0px;
	float: left;
	margin: 10px 10px;
	min-height: 20em;
	width: 95%;
}

@media only screen and (max-width: 900px) {
	html.mobile #zoneBox3 {
		color: white;
		width:100%;
		font-family: Verdana, Arial, Helvetica, sans-serif;
		font-size: 100%;
		margin: 0;
		border:0;
		/*clear:both;*/
		display: block;
		clear: both;
	}
	
	html.mobile #navZoneArea {
		float: left;
		width: 100%;
		min-height: 2em;
		margin: 0;
		padding: 0;
	}
	

	html.mobile .navZoneItem,
	html.mobile .practiceZoneLogo {
		margin: 2px 20px;
		padding: 2px 5px;
		float: left;
		height: 45px;
	}
	
	html.mobile .practiceZoneLogo {
		width: 70px;
	}
	
	html.mobile .navZoneItem {
		width: 55px;
	}
	
	html.mobile .navZoneHeading,
	html.mobile .navZoneCol {
		width: 14%;
		height: 70px;
		float: left;
		text-align: center;
		margin: 0px 10px;
	}
	
	html.mobile .navZoneHeading{
		width: 20%;
	}
	
	html.mobile .calcButton {
		width: 10%;
		height: auto;
		padding: 4px;
		margin: 0;
		text-align: center;
	}
	
	html.mobile .opButton {
		width: 10%;
	}
	
	html.mobile #calcButtonArea {
		padding: 0px;
		width: 95%;
		margin: 0px auto;
		text-align: center;
	}
	
	html.mobile #zoneBlock4 {
		margin: 0px auto;
		width: 320px;
		float: center;
		clear: both;
	}
	
	html.mobile #markAnswerArea {
		width:90%;
		clear: both;
		margin: 0;
		padding: 0;
		height: 80px;
	}
	
	html.mobile #timerBox {
		float: right;
		width: 90%;
	}
	
	html.mobile #inputAnswer,
	html.mobile #questionText,
	html.mobile #inputAnswer {
		width: 50%;
	}
	
	html.mobile #zoneArea2 {
		width: 320px;
		margin:0 auto;
		min-height: 600px;
		float: center;
		padding:0;
		border: 3px outset blue;
	}
	
	html.mobile .MobCol1,
	html.mobile .MobCol2,
	html.mobile .MobCol3 {
		width:30%;
		float: left;
		margin: 5px auto;
		text-align: center;
		vertical-align: center;
	}
	
	html.mobile #timerBox {
		float: left;
	}
	
	html.mobile #jigsawArea {
			width: 320px;
			height: auto;
			margin: 0px auto;
			float: center;
			clear: both;
			padding: 0;
			border: 0px;
			border-top: 3px outset yellow;
			border-bottom: 3px outset yellow;
	}
}

html.mobile #pageBreak { page-break-before: always; } /* page-break-after works, as well */

html.mobile #WorksheetA, html.mobile #WorksheetQ{
	page-break-inside: avoid;
}

html.mobile .Divide3cols{
	width: 100%;
}
