/* reuses https://github.com/wikimedia/agora */
.button,
button,
input[type=submit] {
  display: inline-block;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  padding: 1em 1.25em 1em;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  border: 1px #33589f solid;
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #3366bb;
  background-image: -moz-linear-gradient(top, #3670c8 0, #3366bb 100%);
  background-image: -ms-linear-gradient(top, #3670c8 0, #3366bb 100%);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #3670c8), color-stop(100%, #3366bb));
  background-image: -webkit-linear-gradient(top, #3670c8 0, #3366bb 100%);
  background-image: linear-gradient(#3670c8 0, #3366bb 100%);
}
.button:hover,
button:hover,
input[type=submit]:hover {
  background-color: #3f77d7;
  background-image: -moz-linear-gradient(top, #4c84da 0, #3f77d7 100%);
  background-image: -ms-linear-gradient(top, #4c84da 0, #3f77d7 100%);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #4c84da), color-stop(100%, #3f77d7));
  background-image: -webkit-linear-gradient(top, #4c84da 0, #3f77d7 100%);
  background-image: linear-gradient(#4c84da 0, #3f77d7 100%);
}
.button:active,
button:active,
input[type=submit]:active {
  background-color: #2a549c;
  background-image: -moz-linear-gradient(top, #2d5ea9 0, #2a549c 100%);
  background-image: -ms-linear-gradient(top, #2d5ea9 0, #2a549c 100%);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #2d5ea9), color-stop(100%, #2a549c));
  background-image: -webkit-linear-gradient(top, #2d5ea9 0, #2a549c 100%);
  background-image: linear-gradient(#2d5ea9 0, #2a549c 100%);
}
.button:visited,
button:visited,
input[type=submit]:visited {
  color: #fff;
}
.button:disabled,
button:disabled,
input[type=submit]:disabled,
.button:disabled.hover,
button:disabled.hover,
input[type=submit]:disabled.hover,
.button.disabled,
button.disabled,
input[type=submit].disabled,
.button.disabled:hover,
button.disabled:hover,
input[type=submit].disabled:hover {
  color: white;
  text-shadow: none;
  background-color: #7297d7;
  background-image: -moz-linear-gradient(top, #7297d7 0, #7297d7 100%);
  background-image: -ms-linear-gradient(top, #7297d7 0, #7297d7 100%);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #7297d7), color-stop(100%, #7297d7));
  background-image: -webkit-linear-gradient(top, #7297d7 0, #7297d7 100%);
  background-image: linear-gradient(#7297d7 0, #7297d7 100%);
  border-color: #5e89d1;
}
.button.languageSelector,
button.languageSelector,
input[type=submit].languageSelector {
  margin-top: 14pt;
}
.button.cancel,
button.cancel,
input[type=submit].cancel {
  background: #999;
  border: 1px #777 solid;
}
.header a.button {
  font-size: 1em;
  margin-top: 8px;
  margin-bottom: 8px;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  padding-top: 7px;
  padding-bottom: 7px;
  text-decoration: none;
  text-shadow: none;
  background-color: #e9e9ea;
  background-image: -moz-linear-gradient(top, #ffffff 45%, #e9e9ea 100%);
  background-image: -ms-linear-gradient(top, #ffffff 45%, #e9e9ea 100%);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(45%, #ffffff), color-stop(100%, #e9e9ea));
  background-image: -webkit-linear-gradient(top, #ffffff 45%, #e9e9ea 100%);
  background-image: linear-gradient(#ffffff 45%, #e9e9ea 100%);
  color: #58595b;
  border: 1px solid #9ea0a3;
  border-right: none;
  vertical-align: middle;
  white-space: nowrap;
}
.header a.button.active {
  background: #c8cacb;
  font-weight: bold;
}
.header a.button:first-child {
  -webkit-border-radius: 3px 0 0 3px;
  -moz-border-radius: 3px 0 0 3px;
  border-radius: 3px 0 0 3px;
  border-left: 1px solid #9ea0a3;
}
.header a.button:last-child {
  -webkit-border-radius: 0 3px 3px 0;
  -moz-border-radius: 0 3px 3px 0;
  border-radius: 0 3px 3px 0;
  border-right: 1px solid #9ea0a3;
}
#mw-mf-header form,
#mw-mf-sq {
  height: 46px;
}
#mw-mf-menu-page {
  height: 46px;
  width: 40px;
  position: absolute;
  top: 0;
  right: 0;
}
#mw-mf-main-menu-button {
  position: absolute;
  height: 46px;
  width: 40px;
  background-image: url(images/menu/lowres/main.png);
  /* use -webkit prefix for older android browsers eg. nexus 1 */

  -moz-background-size: 24px 30px;
  -o-background-size: 24px 30px;
  -webkit-background-size: 24px 30px;
  background-size: 24px 30px;
  background-repeat: no-repeat;
  background-position: center center;
}
.jsEnabled #mw-mf-main-menu-button {
  background-image: /* @embed */ url(images/menu/main.png);
}
#mw-mf-main-menu-button:active {
  background-color: #f9f9f9;
}
#mw-mf-viewport {
  width: 100%;
  position: relative;
  height: 100%;
  /* for non-existant file pages */

}
#mw-mf-page-center {
  width: 100%;
  background-color: white;
  position: relative;
  z-index: 3;
  min-height: 100%;
}
#mw-mf-header,
#mw-mf-overlay .header {
  color: black;
  background-color: #f3f3f3;
  background-image: -moz-linear-gradient(top, #fafafa 0, #f3f3f3 100%);
  background-image: -ms-linear-gradient(top, #fafafa 0, #f3f3f3 100%);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fafafa), color-stop(100%, #f3f3f3));
  background-image: -webkit-linear-gradient(top, #fafafa 0, #f3f3f3 100%);
  background-image: linear-gradient(#fafafa 0, #f3f3f3 100%);
  border-bottom: 1px solid #e2e2e2;
}
#mw-mf-header h1,
#mw-mf-overlay .header h1 {
  color: #000000;
  line-height: 46px;
  margin: 0;
}
#mw-mf-page-left {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.2em;
  bottom: 0;
  top: 0;
  margin-right: 0;
  position: absolute;
  border-right: solid 1px #AAA;
  display: none;
}
.navigationEnabled #mw-mf-page-left {
  width: 80%;
  right: 20%;
}
.navigationEnabled .position-fixed,
.navigationEnabled #mw-mf-page-center {
  left: 80% !important;
  overflow-x: hidden;
}
.navigationEnabled.navigationFullScreen #mw-mf-page-left {
  width: 100% !important;
  right: 0 !important;
}
.navigationEnabled.navigationFullScreen #mw-mf-page-center {
  display: none;
}
.navigationEnabled #mw-mf-page-left {
  display: block;
}
#mw-mf-menu-main {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  border-left: solid 12px #252525;
  border-right: solid 1px black;
}
#mw-mf-page-left,
#mw-mf-menu-main,
#mw-mf-menu-main li {
  background-color: #4E4E4E;
}
#mw-mf-menu-main li {
  text-shadow: 0 1px 0 black;
  border-bottom: 1px inset #717171;
  font-weight: normal;
}
#mw-mf-menu-main li a {
  color: white;
  display: block;
  padding: 13px 10px 11px 42px;
  line-height: 22px;
  background-repeat: no-repeat;
  /* use -webkit prefix for older android browsers eg. nexus 1 */

  -moz-background-size: 24px 24px;
  -o-background-size: 24px 24px;
  -webkit-background-size: 24px 24px;
  background-size: 24px 24px;
  background-position: 10px 50%;
  border-bottom: 1px inset #3e3e3e;
}
#mw-mf-menu-main li a:hover {
  text-decoration: none;
}
#mw-mf-menu-main li.icon-home a {
  background-image: url(images/menu/lowres/home.png);
}
#mw-mf-menu-main li.icon-random a {
  background-image: url(images/menu/lowres/random.png);
}
#mw-mf-menu-main li.icon-settings a {
  background-image: url(images/menu/lowres/settings.png);
}
#mw-mf-menu-main li.icon-loginout a {
  background-image: /* @embed */ url(images/menu/lowres/loginout.png);
}
.jsEnabled #mw-mf-menu-main li.icon-home a {
  background-image: /* @embed */ url(images/menu/home.png);
}
.jsEnabled #mw-mf-menu-main li.icon-random a {
  background-image: /* @embed */ url(images/menu/random.png);
}
.jsEnabled #mw-mf-menu-main li.icon-watchlist a {
  background-image: /* @embed */ url(images/menu/watchlist.png);
}
.jsEnabled #mw-mf-menu-main li.icon-uploads a {
  background-image: /* @embed */ url(images/menu/uploads.png);
}
.jsEnabled #mw-mf-menu-main li.icon-nearby a {
  background-image: /* @embed */ url(images/menu/nearby.png);
}
.jsEnabled #mw-mf-menu-main li.icon-settings a {
  background-image: /* @embed */ url(images/menu/settings.png);
}
.jsEnabled #mw-mf-menu-main li.icon-loginout a {
  background-image: /* @embed */ url(images/menu/loginout.png);
}
#mw-mf-menu-main li.disabled {
  opacity: 0.2;
}
#mw-mf-menu-main li:hover {
  background-color: #5C5C5C;
  border-left: solid 12px #3366BB;
  margin-left: -12px;
}
body.navigationEnabled {
  height: 100%;
  overflow: hidden;
}
#mw-mf-overlay {
  display: none;
}
#mw-mf-overlay li {
  text-align: left;
}
#mw-mf-overlay .mw-mf-overlay-footer a {
  display: inline;
}
.escapeOverlay {
  display: none;
}
html.overlay #mw-mf-viewport {
  display: none;
}
html.overlay a.escapeOverlay,
html.overlay button.escapeOverlay {
  display: block;
}
html.overlay #footer {
  display: none !important;
}
html.overlay div.languageOverlay ul li,
html.overlay ul.content li {
  color: #666;
  border: none;
  position: relative;
  border-bottom: solid 1px #999999;
  border-bottom: solid 1px #eee;
  padding: 12px 40px;
  font-size: 0.9em;
}
html.overlay div.languageOverlay ul li a,
html.overlay ul.content li a {
  display: block;
  text-decoration: none;
  color: #666;
}
html.overlay div.languageOverlay ul li a:active,
html.overlay ul.content li a:active,
html.overlay div.languageOverlay ul li a:hover,
html.overlay ul.content li a:hover,
html.overlay div.languageOverlay ul li a:visited,
html.overlay ul.content li a:visited {
  text-decoration: none;
  color: #666;
}
html.overlay div.languageOverlay ul li:hover,
html.overlay ul.content li:hover {
  background-color: #ACD1E9;
}
html.overlay div.languageOverlay ul li.preferred,
html.overlay ul.content li.preferred {
  font-weight: bold;
}
.overlay #mw-mf-overlay {
  display: block;
}
#mw-mf-overlay div.content {
  padding-bottom: 20px;
}
#mw-mf-overlay .content {
  margin-top: 14pt;
}
#mw-mf-overlay .buttonBar {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 10px 0;
  border-top: 1px solid #ccc;
  background: #f3f3f3;
  text-align: center;
}
#mw-mf-overlay .buttonBar button {
  margin: 0 5px;
}
.alert {
  padding: 0.5em 1em;
  background-repeat: no-repeat;
  background-position: 0.5em 1em center;
  margin-bottom: 1em;
  min-height: 64px;
  font-size: 1em;
}
.alert.success {
  padding-left: 80px;
  border: solid 1px #008000;
  background-image: url(images/success.png);
}
.alert.error {
  border: solid 1px #dd0000;
  background-color: #fae1e1;
}
.alert h2 {
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  font-size: 100%;
  font-weight: bold;
  margin: 0 0 8px 0;
}
#content .alert {
  margin: 0;
}
#mw-mf-page-center .header,
.overlay .header {
  line-height: 46px;
  text-align: center;
  padding: 0;
  min-height: 46px;
  margin: 0;
}
#mw-mf-page-center .header input.search,
.overlay .header input.search {
  margin-top: 0;
}
#mw-mf-page-center .header h2,
.overlay .header h2 {
  margin: 0;
  padding: 0;
  line-height: 46px;
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}
.overlay ul {
  text-align: left;
  left: 0;
  width: 100% !important;
  border: none;
  z-index: 1;
  position: relative;
  opacity: 1;
  padding: 0;
  cursor: pointer;
  margin: 0;
  list-style: none;
}
a.escapeOverlay,
button.escapeOverlay {
  position: absolute;
  cursor: pointer;
  border: none;
  height: 46px;
  width: 40px;
  background: none;
  background-image: url(images/arrow-left.png);
  background-repeat: no-repeat;
  background-position: center center;
  text-indent: -999px;
  /* use -webkit prefix for older android browsers eg. nexus 1 */

  -moz-background-size: auto 30px;
  -o-background-size: auto 30px;
  -webkit-background-size: auto 30px;
  background-size: auto 30px;
}
html[dir="rtl"] a.escapeOverlay,
html[dir="rtl"] button.escapeOverlay {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}
html.navigationEnabled body,
html.navigationEnabled #mw-mf-viewport,
html.navigationEnabled #mw-mf-page-center {
  overflow: hidden;
  height: 100%;
}
html,
body {
  height: 100%;
}
#mw-mf-page-left,
#mw-mf-page-center {
  min-height: 100%;
}
#mw-mf-overlay .mw-mf-overlay-footer,
#mw-mf-overlay .mw-mf-overlay-header {
  padding: 4px 8px 4px 40px;
  margin: 0;
  font-size: 0.8em;
  color: #666;
  border-bottom: solid 1px #eee;
}
#mw-mf-overlay .mw-mf-overlay-footer a {
  color: #002BB8;
}
#mw-mf-overlay .mw-mf-overlay-header {
  background-color: #F1F1F1;
}
.supportsPositionFixed #mw-mf-page-center {
  min-height: none !important;
}
@media all and (max-width: 240px) {
  #mw-mf-search {
    padding-left: 0;
  }
  #mw-mf-menu-main li {
    background-position: 0 0;
    font-size: 0.8em;
  }
}
@media all and (min-width: 700px) {
  .navigationEnabled .alpha #mw-mf-page-left,
  .navigationEnabled .beta #mw-mf-page-left {
    width: 20%;
    display: block;
    right: 80%;
  }
  .navigationEnabled .alpha .position-fixed,
  .navigationEnabled .beta .position-fixed,
  .navigationEnabled .alpha #mw-mf-page-center,
  .navigationEnabled .beta #mw-mf-page-center {
    left: 20% !important;
    right: 0 !important;
    width: 80%;
    overflow: auto;
  }
  .beta.full-screen-search #mw-mf-page-left {
    display: block !important;
  }
}
.supportsPositionFixed.navigationEnabled #mw-mf-viewport {
  overflow-y: auto;
}
/* Page actions */
.full-screen-search #mw-mf-menu-page {
  display: none;
}
.drawer {
  text-align: center;
  padding: 0 0 1em;
}
.drawer a.close {
  padding: 0 0 1.2em;
  display: block;
  overflow: hidden;
  text-indent: -9999px;
  width: 100%;
  height: 16px;
  background: url(../modules/images/show.png) 50% 8px no-repeat;
}
.drawer a.button {
  display: block;
  margin: 1em 40px 1em 40px;
}
.drawer a.signup {
  display: block;
}
/* Notifications */
#mf-notification,
.drawer {
  position: fixed;
  /* -2px to avoid a weird glitch in some browsers where the popup moves
	 * slightly when scrolling */

  bottom: -2px;
  width: 100%;
  background-color: #f3f3f3;
  box-shadow: 0 -1px 8px 0 rgba(0, 0, 0, 0.35);
  word-break: break-word;
  z-index: 3;
}
#mf-notification {
  font-size: 0.9em;
}
#mf-notification.noButton button {
  display: none;
}
#mf-notification.loading {
  background-position: 23px 50%;
  background-repeat: no-repeat;
  /* use -webkit prefix for older android browsers eg. nexus 1 */

  -moz-background-size: 32px auto;
  -o-background-size: 32px auto;
  -webkit-background-size: 32px auto;
  background-size: 32px auto;
  padding: 0 0 0 53px;
}
#mf-notification.toast {
  left: 10%;
  right: 10%;
  padding: 0;
  font-size: 0.8em;
  background-color: #373737;
  color: white;
  margin: 0 auto 20px auto;
  width: 80%;
  text-align: center;
  -webkit-border-radius: 1px;
  -moz-border-radius: 1px;
  border-radius: 1px;
  box-shadow: 0 0 1px 3px #373737;
}
#mf-notification.toast button {
  display: none;
}
#mf-notification.toast.error {
  background-image: url(images/error.png);
  background-position: 16px 50%;
  background-repeat: no-repeat;
  padding-left: 5%;
  width: 75%;
}
#mf-notification.toast.locked button {
  display: block;
  top: 0.8em;
  right: 1.4em;
}
#mf-notification.toast > div {
  padding: 0.8em 1.4em;
}
#mf-notification > div {
  position: relative;
  padding: 16px 38px 18px 22px;
  /* 38px is 22px padding + close button icon 16px */

}
#mf-notification .mw-cite-backlink {
  display: none;
}
#mf-notification button {
  top: 22px;
  right: 22px;
  /* padding of #content_wrapper */

  width: 16px;
  height: 12px;
  background: url(../common/images/close-button-beta.png) no-repeat scroll 0 0 transparent;
  margin: 0;
  background-position: right center;
  /* use -webkit prefix for older android browsers eg. nexus 1 */

  -moz-background-size: auto 12px;
  -o-background-size: auto 12px;
  -webkit-background-size: auto 12px;
  background-size: auto 12px;
  cursor: pointer;
  position: absolute;
  text-indent: -999px;
  overflow: hidden;
  border: none;
}
#mf-notification h3 {
  margin: 0;
  padding-right: 4px;
  line-height: 1em;
  display: inline;
}
#mf-notification a:visited,
#mf-notification a {
  color: #3354C0;
}
#mf-notification p {
  line-height: 1.2;
  margin: 0 0 .5em;
}
#mf-notification .progress-bar {
  margin: .9em 0 0;
}
