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

html.landscape #ContentColumn { /* 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;
}

#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 {
    margin-top: 35px;
}

html.fullView #PageWrapper {
    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%;
}

html.mobile #PageWrapper {
    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 #ContentWrapper {
    padding: 0;
    float: none;
}

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

html.mobile #NavColumn,
html.mobile #ExtraColumn {
    margin-top: 200px;
}

html.mobile #PageWrapper {
	background-color: #fff;
	text-align: center;
	background-image: none;
}

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

html.mobile #NavColumn,
html.mobile #ExtraColumn {
    display: inline-block;
    width: 45%; /* original column width */
    vertical-align: top;
    overflow: hidden;
}

html.mobile #NavColumn,
html.mobile #ExtraColumn {
    background: #fff;
}

html.mobile #Footer {
	background-color:#fff;
	position: absolute;
	top: 10000px;
	left: 0;
	overflow: hidden;
	background-image:none;
} 

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

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

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

@media only screen and (max-width: 379px) {
    html.mobile #ExtraColumn {
        margin-left: 0;
    }
}

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

    html.mobile #ExtraColumn {
        width: 45%;
    }
}

@media only screen and (max-width: 399px) {
    html.mobile #NavColumn *,
    html.mobile #ExtraColumn * {
        max-width: 100%;
        box-sizing: border-box;
        background-size: 100%;
    }
}

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

    html.mobile #ExtraColumn {
        width: 45%;
    }
}

@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;
}

html.mobile #PageWrapper {
	background-color:#fff;
}

html.mobile #PageWrapper {
    margin-top: 35px;
    margin-bottom: 5px;
    padding-top: 0;
}

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

/* Google search results */
html.mobile #search2 {
    text-align: center;
}

html.mobile #cse-search-box {
    text-align: center;
}

html.mobile #cse-search-box input[type="text"] {
    width: 70%;
}

html.mobile #cse {
    width: 100% !important;
}

/* Facebook */
html.mobile .fb-like > span {
    width: 100% !important;
}

.fb_iframe_widget_lift {
    z-index: 2;
}

/* footer */
html.mobile #Footer {
    background-color: #84cef7;
    position: absolute;
    top: 10000px;
    left: 0;
    width: 100%;
}

html.mobile #TopOfThePage {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

html.mobile #Footer .ExtraNav {
    text-align: center;
}

html.mobile #Footer .ExtraNav li {
    padding: 2px 0;
    display: inline-block;
}

html.mobile #Footer .ExtraNav a {
    line-height: 1.2;
}

/* page top */
html.mobile #PageTop {
    padding-top: 26px;
    width: 100%;
    height: auto;
}

html.fullView #PageTop {
    margin-top: 75px;
}

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

html.mobile #logo {
    position: static;
    width: 100%;
    background: #fff;
}

html.mobile #logo img {
    width: 100%;
    padding: 0 5%;
}

html.mobile #SocialBar,
html.mobile #search {
    display: none;
}

html.mobile #PageTop .HorizontalNavBar {
    display: none;
}

/* Content */
html.mobile #ContentWrapper {
    background-size: 100%;
}

html.mobile #ContentColumn .Liner {
    padding: 5%;
    margin: 0;
}

html.mobile h1 {
    font-size: 150%;
}

html.mobile h2 {
    font-size: 140%;
}

/* NavColumn */
html.mobile .Navigation ul {
    border-bottom: 1px solid #F2F2F2;
    padding: 0 0 1em;
    margin: 0.5em 0 1em;
}

html.mobile .Navigation ul.last {
    border-bottom: 0;
}

html.mobile .Navigation li {
    margin: 0;
    padding: 0.3em 0;
    list-style: none;
}

html.mobile .Navigation a {
    display: block;
    color: #00f;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    font-family: Verdana, Arial, san-serif;
    font-weight: normal;
}

html.mobile .Navigation a:hover {
	color: #fff;
	display: block;     /*  this makes the whole box highlight rather than just the text */
	background-color: #84cef7;  
	text-decoration: underline;
}

html.mobile #SocialBar2 {
    text-align: center;
    margin: 1em 0;
    border-bottom: 1px solid #F2F2F2;
}

html.mobile #SocialBar2 {
    margin-top: 0;
    padding-bottom: 1em;
}

html.mobile #SocialBar2 ul,
html.mobile #SocialBar2 li,
html.mobile #SocialBar3 ul,
html.mobile #SocialBar3 li {
    margin: 0;
    padding: 0;
    list-style: none;
}

html.mobile #SocialBar2 li {
    display: inline-block;
    padding: 3px;
}

html.mobile #SocialBar3 {
    background: #FFF;
    padding-top: 5px;
}

html.mobile #SocialBar3 li {
    display: inline;
}

html.mobile .CalloutBox {
    width: 90%;
    margin: 0 auto;
    background-size: 100%;
}

html.mobile .C2LeftBox {
    width: 50%;
    background-size: 100%;
}

html.mobile .c2_invitation {
    width: 90%;
    padding-left: 5%;
    padding-right: 5%;
    background-size: 100%;
}

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