html, body {
  /* set the rem element properly */
  font-size: 10px;
}
#planetview {
  overflow: hidden !important;
}
#planetview-wrap {
  padding: 5px 0 15px !important;
  overflow-x: hidden !important;
}

/* replacement for drawer on windows phone */
#bottombar {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  width: 100%;
}
#bottombar img {
  position: absolute;
  bottom: 0;
  width: 16px;
  height: auto;
  padding: 10px 5px 5px;
  opacity: 0.5;
}
#bottombar img:active {
  opacity: 0.9;
}
#bottombar .syncbutton {
  padding-right: 10px;
  left: 0;
}
#bottombar .settingsbutton {
  padding-left: 10px;
  right: 0;
}
#settings, #adder {
  background-color: #000;
  color: #fff;
}
#settings .settings {
  padding-top: 0 !important;
  overflow: hidden;
}
#settings header, #adder .title {
  display: block;
  background-color: #242D33;
  font-size: 2.5rem;
  line-height: 5rem;
  font-weight: lighter;
  padding: 0 0 0 2rem;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  text-transform: capitalize;
}
#settings header img, #adder .title img {
  float: right;
  height: 2rem;
  padding: 1.5rem;
}
#settings header img:hover, #settings header img:active, #adder .title img:hover, #adder .title img:active {
  background: #1d525e;
}
#settings .hub {
  overflow-y: scroll;
  padding: 2rem;
  position: absolute;
  top: 5rem;
  bottom: 0;
  left: 0;
  right: 0;
}
.settings h4 {
  font-size: 11pt !important;
}
.radio-button label {
  padding: 5px 15px !important;
 font-size: 10pt !important;
}
.radio-button input[type='radio']:checked + label, .radio-button input[type='radio']:active + label {
  background: #1d525e !important;
}
/* hides the accent option, because fxos gives a weird yellow */
.radio-container:last-child .radio-button:last-child {
  display: none;
}
button {
  background: none;
  font-size: 10pt;
  border: 2.25px solid #fff;
  border-radius: 0px;
  padding: 5px 15px;
}
button:active {
  background: #1d525e;
}
#section1contenthost {
  margin-bottom: 20px;
  padding-bottom: 25px;
  border-bottom: 2px solid #444;
}
#section2contenthost {
  padding-bottom: 30px;
}
.locationSettingsList {
  margin: 0 0 20px !important;
}
#locationQuery {
  background: none;
  font-size: 11pt;
  border-radius: 0;
  padding: 5px 10px;
  width: calc(100% - 4rem);
  margin: 2rem 2rem 1rem;
  -moz-box-sizing: border-box;
  border: 2.25px solid #fff;
}
#locationQuery:focus {
  background: #fff;
  border-color: #46afe3;
  color: #222;
}
#adder section {
  margin: 0 !important;
}
#adderRoot {
  height: 100%;
  overflow: hidden;
}
#adder h3 {
  margin-left: 2rem;
}
#resultList {
  overflow-y: scroll;
  position: absolute;
  bottom: 0px;
  top: 11.5rem;
  width: 100%;
}
h3 {
  font-weight: 300;
  font-size: 18pt !important;
}
/* stolen from http://lea.verou.me/2013/11/cleanest-css-spinner-ever/ */
@-webkit-keyframes spin {
  to { transform: rotate(1turn); }
}
@-moz-keyframes spin {
  to { transform: rotate(1turn); }
}

.progress.floatyprogress {
  position: absolute;
  visibility: hidden;
  margin: -2.5em;
  top: 160px;
}
.progress.floatyprogress.show {
  visibility: visible;
}

.progress {
  -webkit-appearance: none;
  background: transparent;
  position: relative;
  display: inline-block;
  width: 5em;
  height: 5em;
  margin: 0 .5em;
  font-size: 8px;
  text-indent: 999em;
  overflow: hidden;
  -webkit-animation: spin 1s infinite steps(8);
  -moz-animation: spin 1s infinite steps(8);
}
.progress::-webkit-progress-bar {
  background: transparent;
}

#planetview .city {
  padding-left: 16px;
}

#planetview .city .progress.xhr-request {
  font-size: 4px;
}

.progress:before,
.progress:after,
.progress > div:before,
.progress > div:after {
  content: '';
  position: absolute;
  top: 0;
  left: 2.25em; /* (container width - part width)/2  */
  width: .5em;
  height: 1.5em;
  border-radius: .2em;
  background: #eee;
  box-shadow: 0 3.5em #eee; /* container height - part height */
  transform-origin: 50% 2.5em; /* container height / 2 */
  -moz-transform-origin: 50% 2.5em; /* container height / 2 */
}

.progress:before {
  background: #555;
}

.progress:after {
  transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  background: #777;
}

.progress > div:before {
  transform: rotate(-90deg);
  background: #999;
}

.progress > div:after {
  transform: rotate(-135deg);
  -moz-transform: rotate(-135deg);
  background: #bbb;
}
