body {
    margin: 0;
    border: 0;
    padding: 0;
    text-align: center;
    color: #000066;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #99ccff;
}
img {
    border-style: none;
}
#header {
    padding: 0 0.5em 0.5em 0.5em;
}
#header p {
    margin: 0;
}
#header h1 {
    font-size: 1.2em;
}
#content {
    background-color: #fff;
    padding: 0.5em;
    font-size: 1.1em;
    text-align: left;
}
#footer {
    font-size: 0.9em;
    padding: 0.5em;
}
@media screen and (max-device-width: 500px) and (orientation:portrait), screen and (max-device-width: 850px) and (orientation:landscape) {
	#header img {display: none}
	#header p {width:110px; height:110px; margin: 0 auto; background: url(logo.png) top left no-repeat;}
	#header p a {width:110px; height:110px;display:block;}
	#header {background: -webkit-gradient(linear, left top, left bottom, from(#9cf), to(#9cf), color-stop(35%, #fff), color-stop(60%, #def));background: -webkit-linear-gradient(top, #9cf, #fff 35%, #def 60%, #9cf);background: -moz-linear-gradient(top, #9cf, #fff 35%, #def 60%, #9cf);background: -o-linear-gradient(top, #9cf, #fff 35%, #def 60%, #9cf);background: -ms-linear-gradient(top, #9cf, #fff 35%, #def 60%, #9cf);background: linear-gradient(top, #9cf, #fff 35%, #def 60%, #9cf);}
	#footer {background: -webkit-gradient(linear, left top, left bottom, from(#9cf), to(#9cf), color-stop(33%, #def));background: -webkit-linear-gradient(top, #9cf, #def 33%, #9cf);background: -moz-linear-gradient(top, #9cf, #def 33%, #9cf);background: -o-linear-gradient(top, #9cf, #def 33%, #9cf);background: -ms-linear-gradient(top, #9cf, #def 33%, #9cf);background: linear-gradient(top, #9cf, #def 33%, #9cf);}
	li a { line-height: 2;}
}
@media screen and (max-device-width: 500px) and (orientation:portrait) and (-webkit-min-device-pixel-ratio: 2), screen and (max-device-width: 850px) and (orientation:landscape) and (-webkit-min-device-pixel-ratio: 2) {
	#header p {width:110px; height:110px; margin: 0 auto; background: url(logo@2x.png) top left no-repeat;}
}

