body {
    background-color: #dde;
    color: #222;
    font-family: Helvetica;
    font-size: 14px;
    margin: 0;
    padding: 0;
}
#header {
    background-color: #447;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#77a), to(#447));
    border-color: #666;
    border-style: solid;
    border-width: 0 0 1px 0;
}
#header h1 {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin: 0 auto;
    padding: 4px 0 0 0;
    text-align: center;
    max-width: 250px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#header h2 {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    margin: 0 auto;
    padding: 0 0 8px 0;
    text-align: center;
    max-width: 250px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#header h1 a, h2 a, a {
	text-decoration: none;
	color: #fff;
}
#header img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 4px 0 0 0;
}
input {
	font-size: 17px;
	padding: 0;
}
ul {
    list-style: none;
    margin: 8px;
    padding: 0;
}
ul li {
    background-color: #FFFFFF;
    border: 1px solid #999999;
    color: #222222;
    display: block;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: -1px;
    padding: 8px 10px;
    text-decoration: none;
}
ul li a {
	text-decoration: none;
	color: #4444FF;
}
ul li:first-child {
    -webkit-border-top-left-radius: 8px;
    -webkit-border-top-right-radius: 8px;
}
ul li:last-child {
    -webkit-border-bottom-left-radius: 8px;
    -webkit-border-bottom-right-radius: 8px;
}
ul li a:active {
    background-color: blue;
    color: white;
}

ul li strong {
	color: #4444FF;
}
#latitude, #longitude, #mgrs_data, #altitude, #temperature, #wind {
	float: right;
}

#makeDefault, #nearbyDZ0, #nearbyDZ1, #nearbyDZ2, #showCurrentLoc {
	text-align: center;
	font-size: 15px;
	font-weight: bold;
	padding: 2px 0px;
}

#makeDefault a, #nearbyDZ0 a, #nearbyDZ1 a, #nearbyDZ2 a, #showCurrentLoc a{
	text-decoration: none;
	color: #4444FF;
}

#makeDefault a:active, #nearbyDZ0 a:active, #nearbyDZ1 a:active, #nearbyDZ2 a:active, #showCurrentLoc a:active {
    background-color: blue;
    color: white;
}

#pushRight {
	color: #444444;
	float: right;
}
ul li.center {
	text-align: center;
}
#content {
    padding: 8px;
}
#map {
	height: 250px;
	padding: 8px 10px;
}
#model a {
	color: #222;
}
#progress {
    -webkit-border-radius: 10px;
    background-color: rgba(0,0,0,.7);
    color: white;
    font-size: 18px;
    font-weight: bold;
    height: 80px;
    line-height: 80px;
    margin-left: -100px;
    margin-right: auto;
    position: absolute;
    text-align: center;
    top: 120px;
    width: 200px;
    left: 50%;
}
#header div.leftButton {
	font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 28px;
    color: white;
    text-shadow: rgba(0,0,0,0.6) 0px -1px 0px;
    position: absolute;
    top: 33px;
    left: 6px;
    max-width: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-width: 0 8px 0 14px;
    -webkit-border-image: url(icons/back_button.png) 0 8 0 14;
    border-style: solid;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
#header div.leftButton.clicked {
    -webkit-border-image: url(icons/back_button_clicked.png) 0 8 0 14;
    border-style: solid;
}
#header div.rightButton {
	font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 28px;
    color: white;
    text-shadow: rgba(0,0,0,0.6) 0px -1px 0px;
    position: absolute;
    top: 33px;
    right: 6px;
    max-width: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-width: 0 14px 0 8px;
    -webkit-border-image: url(icons/forward_button.png) 0 14 0 8;
    border-style: solid;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
#header div.rightButton.clicked {
    -webkit-border-image: url(icons/forward_button_clicked.png) 0 8 0 14;
    border-style: solid;
}

#social {
	text-align: center;
}

#model {
	text-align: center;
}

.social {
	padding-top: 5px;
	padding-left: 5px;
	padding-right: 5px;
}

.unitswitch, .mgrsswitch {
    position: relative; width: 180px; display: block; margin-left: auto; margin-right:auto;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.unitswitch-checkbox, .mgrsswitch-checkbox {
    display: none;
}
.unitswitch-label, .mgrsswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #999999; border-radius: 20px;
}
.unitswitch-inner, .mgrsswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.unitswitch-inner:before, .unitswitch-inner:after, .mgrsswitch-inner:before, .mgrsswitch-inner:after {
    display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
    font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    box-sizing: border-box;
}
.unitswitch-inner:before {
    content: "m and km/h";
    padding-left:45px;
    background-color: #99C; color: #FFFFFF;
}
.unitswitch-inner:after {
    content: "ft and kts";
    padding-right: 55px;
    background-color: #EEEEEE; color: #999999;
    text-align: right;
}
.mgrsswitch-inner:before {
    content: "MGRS";
    padding-left:45px;
    background-color: #99C; color: #FFFFFF;
}
.mgrsswitch-inner:after {
    content: "lat/lon";
    padding-right: 55px;
    background-color: #EEEEEE; color: #999999;
    text-align: right;
}
.unitswitch-switch, .mgrsswitch-switch {
    display: block; width: 18px; margin: 6px;
    background: #FFFFFF;
    position: absolute; top: 0; bottom: 0;
    right: 146px;
    border: 2px solid #999999; border-radius: 20px;
    transition: all 0.3s ease-in 0s; 
}
.unitswitch-checkbox:checked + .unitswitch-label .unitswitch-inner {
    margin-left: 0;
}
.unitswitch-checkbox:checked + .unitswitch-label .unitswitch-switch {
    right: 0px; 
}
.mgrsswitch-checkbox:checked + .mgrsswitch-label .mgrsswitch-inner {
    margin-left: 0;
}
.mgrsswitch-checkbox:checked + .mgrsswitch-label .mgrsswitch-switch {
    right: 0px; 
}