#topBar {
  position: relative;
}

html,
body {
  top: 0 !important;
}

#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
ins.adsbygoogle,
#bottomAd {
  display: none !important;
}

#mobileAdTop {
  display: none;
}

#header {
  min-height: 74px;
  position: relative;
  z-index: 30000;
}

#modelTimeDiv {
  top: 6px;
  z-index: 30002;
}

body.globe-mode #mainMap canvas {
  cursor: grab;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

body.globe-mode #mainMap canvas:active {
  cursor: grabbing;
}

body.globe-mode #worldsvgmap {
  display: none;
}

body.globe-mode #center {
  z-index: 30001;
}

body.globe-mode #mainMap {
  bottom: 78px;
  height: auto;
  overflow: visible;
  top: 58px;
}

body.globe-mode #theToolTip {
  z-index: 2000000000;
}

body.globe-mode .eventPopupMessage {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(80, 80, 80, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  color: #222;
  font-size: 11px;
  max-width: 220px;
  padding: 2px 4px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

body.globe-mode .eventPopupMessage div[class$="_small"] {
  margin-right: 4px;
  vertical-align: -1px;
}

body.globe-mode .eventPopupMessage[style] {
  border-radius: 3px !important;
}

#theButtons {
  font-size: 10px;
  margin: 6px auto 0;
  position: static;
  text-align: center;
  width: 100%;
  z-index: 30002;
}

body.globe-mode #theButtons {
  display: block !important;
}

#restartButton,
#stopButton {
  background: linear-gradient(#f8fbff, #b9cae5) !important;
  border: 1px solid #5f7faa !important;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  color: #111 !important;
  display: inline-block;
  font-size: 12px;
  line-height: 1.1;
  margin: 0 0 0 6px;
  padding: 2px 7px;
  text-decoration: none !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

#quickOptions {
  font-size: 9px;
  line-height: 1.1;
  padding-top: 3px;
  white-space: nowrap;
}

#quickOptions input {
  height: 11px;
  margin: 0 1px 0 4px;
  vertical-align: -1px;
  width: 11px;
}

.map-mode-switcher {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 7px;
  position: relative;
  z-index: 30001;
}

.map-mode-button {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(20, 45, 80, 0.35);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  display: inline-block;
  height: 46px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  width: 72px;
}

.map-mode-button:hover,
.map-mode-button:focus {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(20, 45, 80, 0.75);
  outline: none;
}

body.map-2d-mode .map-mode-button-2d,
body.globe-mode .map-mode-button-3d {
  background: rgba(255, 255, 255, 0.92);
  border-color: #244b82;
  box-shadow: 0 0 0 2px rgba(36, 75, 130, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.map-mode-preview {
  bottom: 5px;
  left: 6px;
  position: absolute;
  right: 6px;
  top: 5px;
}

.map-mode-preview-2d {
  background-color: #f9fbff;
  background-image: url("../images/map-mode-2d-preview.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 3px;
}

.map-mode-preview-2d .map-mode-earth {
  display: none;
}

.map-mode-preview-3d {
  background-color: #0b1725;
  border-radius: 50%;
  box-shadow: inset -11px -6px 15px rgba(0, 0, 0, 0.45), inset 4px 3px 9px rgba(255, 255, 255, 0.38);
  height: 38px;
  left: 17px;
  overflow: hidden;
  right: auto;
  top: 4px;
  width: 38px;
}

.map-mode-preview-3d .map-mode-earth {
  animation: mapModeGlobeSpin 7s linear infinite;
  background-image: url("../images/earth/earth_noClouds.0330.jpg");
  background-position: 0 center;
  background-repeat: repeat-x;
  background-size: auto 100%;
  height: 100%;
  left: 0;
  opacity: 0.95;
  position: absolute;
  top: 0;
  width: 220%;
}

.map-mode-live-dot {
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.75);
  height: 5px;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: opacity 1s ease-out, transform 1s ease-out;
  width: 5px;
  z-index: 2;
}

.map-mode-live-dot.is-fading {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.8);
}

@keyframes mapModeGlobeSpin {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

body.map-2d-mode #mainMap canvas,
body.map-2d-mode .map-3d-event {
  display: none !important;
}

body.globe-mode .map-2d-event {
  display: none !important;
}

.globe-rotation-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(20, 45, 80, 0.35);
  border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: #163456;
  cursor: pointer;
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  height: 24px;
  justify-content: center;
  line-height: 1;
  margin-left: 0;
  margin-top: 11px;
  padding: 0 7px;
  text-align: center;
  width: 64px;
  visibility: hidden;
}

.globe-rotation-toggle:hover,
.globe-rotation-toggle:focus {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(20, 45, 80, 0.75);
  outline: none;
}

.globe-rotation-toggle.is-paused {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(20, 45, 80, 0.62);
}

body.globe-mode .globe-rotation-toggle {
  visibility: visible;
}

body.map-2d-mode .globe-rotation-toggle {
  pointer-events: none;
}

@media (max-width: 1180px) {
  body.globe-mode #center {
    left: 220px;
    margin-left: 0;
    right: 220px;
    width: auto;
  }

  body.globe-mode #west,
  body.globe-mode #east {
    width: 220px;
  }

  body.globe-mode .panel {
    font-size: 92%;
  }

  body.globe-mode .divRankTable {
    display: none !important;
  }

  body.globe-mode .eventPopupMessage {
    max-width: 190px;
  }
}

@media (min-width: 941px) and (max-width: 1180px) {
  body.globe-mode #mainMap {
    bottom: 72px;
    top: 54px;
  }
}

@media (max-width: 940px) {
  body.globe-mode #header {
    min-height: 70px;
  }

  body.globe-mode #center {
    left: 0;
    margin-left: 0;
    right: 0;
    width: 100%;
  }

  body.globe-mode #west,
  body.globe-mode #east {
    display: none !important;
  }

  body.globe-mode #mainMap {
    bottom: 64px;
    top: 52px;
  }

  body.globe-mode #bottomButtons {
    bottom: 10px !important;
  }

  body.globe-mode .continent {
    font-size: 68%;
  }

  #quickOptions {
    display: none !important;
  }
}

@media (max-width: 699px) {
  .map-mode-switcher {
    display: none;
  }

  #theButtons {
    display: none !important;
  }

  #bottomButtons {
    display: none !important;
  }

  #header {
    min-height: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  #bestOnDesktop {
    display: none !important;
  }

}

@media (max-width: 940px) and (max-height: 500px) {
  .map-mode-switcher,
  #theButtons,
  #bottomButtons,
  #mainMap,
  .divRankTable,
  .divRankTableReligion {
    display: none !important;
  }

  #header {
    min-height: 0;
    padding-bottom: 8px;
    padding-top: 8px;
  }

  #bestOnDesktop,
  #currentModelTime {
    display: none !important;
  }

  #modelTimeDiv {
    line-height: 1.05;
    top: 6px;
  }

  #mainTitle {
    font-size: 18px;
  }

  #center {
    display: none !important;
  }

  #west,
  #east {
    margin-top: 12px !important;
    width: 49% !important;
  }

  #west {
    float: left;
  }

  #east {
    float: right;
  }

  .panel {
    font-size: 86%;
  }
}

@media (min-width: 700px) and (max-width: 1179px) and (orientation: portrait) {
  #header {
    min-height: 92px !important;
    padding-top: 10px !important;
  }

  #header .map-mode-switcher {
    left: 50% !important;
    margin: 0 !important;
    position: absolute !important;
    top: 45px !important;
    transform: translateX(-50%);
  }
}

@media (min-width: 700px) and (max-width: 1179px) and (min-height: 900px) {
  #header .map-mode-switcher {
    left: 56% !important;
    margin: 0 !important;
    position: absolute !important;
    top: 45px !important;
    transform: translateX(-50%);
  }
}

@media only screen and (max-device-width: 500px),
screen and (max-width: 500px) {
  #mobileAdTop {
    background: #fcfcfa;
    display: block !important;
    height: 50px;
    line-height: 0;
    overflow: hidden;
    padding: 2px 0;
    text-align: center;
  }

  #mobileAdTop ins.adsbygoogle,
  #mobileAdTop .mobile-top-banner {
    display: inline-block !important;
    height: 50px !important;
    width: 320px !important;
  }

  #modelTimeDiv {
    display: block !important;
    font-size: 9px !important;
    left: 6px !important;
    line-height: 1.15 !important;
    padding-left: 0 !important;
    position: absolute !important;
    top: 6px !important;
    z-index: 30003;
  }

  #modelTimeDiv #bestOnDesktop,
  #modelTimeDiv #lnkShowAbout,
  #modelTimeDiv #currentModelTime {
    display: none !important;
  }

  #modelTimeDiv a {
    font-size: 9px !important;
  }

  #header {
    min-height: 70px !important;
    padding: 8px 4px 7px 112px !important;
    text-align: center;
  }

  #mainTitle_SmallScreen {
    font-size: 12px !important;
    max-width: 100%;
  }

  #worldPopulationInfo {
    font-size: 11px !important;
  }

  #west,
  #east {
    left: 4px !important;
    right: 4px !important;
    width: auto !important;
  }

  #west {
    top: 136px !important;
  }

  #east {
    left: 4px !important;
    top: calc(50vh + 32px) !important;
  }

  #west .panel,
  #east .panel,
  #west .panel.births,
  #east .panel.deaths {
    width: 100% !important;
  }

  #west .panel-body,
  #east .panel-body,
  #west .panel-body.open,
  #east .panel-body.open {
    height: calc(50vh - 112px) !important;
    min-height: 225px;
  }
}

@media (max-width: 500px) {
  #west,
  #east {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
  }

  #west {
    top: 140px !important;
  }

  #east {
    left: 8px !important;
    top: calc(50vh + 38px) !important;
  }

  #west .panel,
  #east .panel,
  #west .panel.births,
  #east .panel.deaths {
    width: 100% !important;
  }

  #west .panel-body,
  #east .panel-body,
  #west .panel-body.open,
  #east .panel-body.open {
    height: calc(50vh - 135px) !important;
    min-height: 240px;
  }
}

@media only screen and (max-device-width: 500px) {
  #west,
  #east {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
  }

  #west {
    top: 140px !important;
  }

  #east {
    left: 8px !important;
    top: calc(50vh + 38px) !important;
  }

  #west .panel,
  #east .panel,
  #west .panel.births,
  #east .panel.deaths {
    width: 100% !important;
  }

  #west .panel-body,
  #east .panel-body,
  #west .panel-body.open,
  #east .panel-body.open {
    height: calc(50vh - 135px) !important;
    min-height: 240px;
  }
}

@media (max-width: 699px) and (orientation: portrait) {
  #west,
  #east {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
  }

  #west {
    top: 140px !important;
  }

  #east {
    top: calc(50vh + 38px) !important;
  }

  #west .panel,
  #east .panel,
  #west .panel.births,
  #east .panel.deaths {
    width: 100% !important;
  }

  #west .panel-body,
  #east .panel-body,
  #west .panel-body.open,
  #east .panel-body.open {
    height: calc(50vh - 135px) !important;
    min-height: 240px;
  }
}

@media only screen
and (max-device-width: 699px),
(min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait),
(min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait)
and (-webkit-min-device-pixel-ratio: 2) {
  .map-mode-switcher {
    display: none;
  }

  #header {
    min-height: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

}

@media (min-width: 700px) and (max-width: 1180px) and (orientation: portrait) {
  .map-mode-switcher.noSmallScreen,
  body.globe-mode .map-mode-switcher.noSmallScreen {
    display: flex !important;
  }

  body.globe-mode #globeRotationToggle.globe-rotation-toggle {
    display: flex !important;
    pointer-events: auto;
    visibility: visible !important;
  }

  #theButtons {
    display: none !important;
  }

  #restartButton,
  #stopButton {
    font-size: 10px;
    margin-left: 2px;
    padding: 2px 5px;
  }

  #quickOptions.noSmallScreen {
    display: none !important;
  }

  .divRankTable,
  .divRankTableReligion {
    display: none !important;
  }

  body.map-2d-mode #mainMap.noSmallScreen {
    display: block !important;
    opacity: 1;
  }

  body.map-2d-mode #center {
    left: 0;
    margin-left: 0;
    right: 0;
    width: 100%;
  }

  body.map-2d-mode #mainMap {
    bottom: 82px;
    height: auto;
    top: 380px;
  }

  body.map-2d-mode #bottomButtons {
    bottom: 10px !important;
    display: block !important;
  }

  body.globe-mode #mainMap.noSmallScreen {
    display: block !important;
    opacity: 1;
  }

  body.globe-mode #center {
    left: 0;
    margin-left: 0;
    right: 0;
    width: 100%;
  }

  body.globe-mode #mainMap {
    bottom: 82px;
    top: 380px;
  }

  body.globe-mode #bottomButtons {
    bottom: 10px !important;
  }

  body.map-2d-mode #west,
  body.map-2d-mode #east,
  body.globe-mode #west,
  body.globe-mode #east {
    display: block !important;
    float: none;
    margin: 0 !important;
    position: absolute;
    top: 116px;
    width: calc(50% - 16px) !important;
    z-index: 30000;
  }

  body.map-2d-mode #west,
  body.globe-mode #west {
    left: 8px;
  }

  body.map-2d-mode #east,
  body.globe-mode #east {
    right: 8px;
  }

  body.map-2d-mode #west .panel,
  body.map-2d-mode #east .panel,
  body.globe-mode #west .panel,
  body.globe-mode #east .panel {
    display: block !important;
    font-size: 82%;
    margin: 0 !important;
    position: static !important;
    width: auto !important;
  }

  body.map-2d-mode #west .panel-body,
  body.map-2d-mode #east .panel-body,
  body.globe-mode #west .panel-body,
  body.globe-mode #east .panel-body,
  body.map-2d-mode #west .panel-body.open,
  body.map-2d-mode #east .panel-body.open,
  body.globe-mode #west .panel-body.open,
  body.globe-mode #east .panel-body.open {
    height: 180px !important;
    overflow-y: auto;
  }

  body.map-2d-mode .panel-body li a,
  body.globe-mode .panel-body li a {
    padding: 2px 5px;
  }

  body.map-2d-mode .panel-heading1,
  body.globe-mode .panel-heading1 {
    font-size: 13px;
  }
}

@media (min-width: 1180px) {
  #header {
    min-height: 74px !important;
    padding: 10px !important;
  }

  #mainTitle {
    display: block;
    line-height: 1.1;
    margin-right: 0;
  }

  #worldPopulationInfo {
    display: block;
    line-height: 1.1;
    margin-right: 0;
  }

  #header .map-mode-switcher {
    display: flex;
    margin-top: 7px !important;
  }

  #header #theButtons {
    bottom: auto !important;
    display: block !important;
    left: auto !important;
    margin: 0 !important;
    position: absolute !important;
    right: 14px !important;
    text-align: left !important;
    top: 25px !important;
    width: auto !important;
  }

  #quickOptions {
    display: none !important;
    margin-left: 8px;
    padding-top: 0 !important;
    vertical-align: middle;
  }
}

@media (max-width: 1179px) {
  #header #theButtons {
    display: none !important;
  }
}

@media (max-width: 699px) {
  html,
  body {
    min-width: 0 !important;
    overflow-x: hidden;
  }

  #topBar,
  #header {
    box-sizing: border-box;
    min-width: 0 !important;
    width: 100vw !important;
  }

  #mobileAdTop {
    background: #fcfcfa;
    display: block !important;
    height: 50px;
    line-height: 0;
    overflow: hidden;
    padding: 2px 0;
    text-align: center;
  }

  #mobileAdTop ins.adsbygoogle,
  #mobileAdTop .mobile-top-banner {
    display: inline-block !important;
    height: 50px !important;
    width: 320px !important;
  }

  #modelTimeDiv {
    display: block !important;
    font-size: 9px !important;
    left: 6px !important;
    line-height: 1.15 !important;
    padding-left: 0 !important;
    position: absolute !important;
    top: 6px !important;
    z-index: 30003;
  }

  #modelTimeDiv #bestOnDesktop,
  #modelTimeDiv #lnkShowAbout,
  #modelTimeDiv #currentModelTime {
    display: none !important;
  }

  #header {
    min-height: 70px !important;
    padding: 8px 4px 7px 112px !important;
  }

  #mainTitle {
    display: none !important;
  }

  #mainTitle_SmallScreen {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    margin: 0 auto !important;
    max-width: 94vw;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  #worldPopulationInfo {
    font-size: 12px !important;
    line-height: 1.15 !important;
  }

  #mainMap,
  .divRankTable,
  .divRankTableReligion,
  #bottomButtons {
    display: none !important;
  }

  #center {
    display: none !important;
  }

  #west,
  #east {
    box-sizing: border-box;
    display: block !important;
    float: none !important;
    margin: 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    position: fixed !important;
    top: 140px !important;
    width: 46vw !important;
  }

  #west {
    left: 8px !important;
    right: auto !important;
  }

  #east {
    left: 52vw !important;
    right: auto !important;
  }

  #west .panel,
  #east .panel,
  #west .panel.births,
  #east .panel.deaths {
    box-sizing: border-box;
    display: block !important;
    left: auto !important;
    margin: 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
  }

  #west .panel.births,
  #east .panel.deaths {
    width: 46vw !important;
  }

  #west .panel-body li a,
  #east .panel-body li a {
    overflow: hidden;
    overflow-wrap: anywhere;
    padding-left: 5px;
    padding-right: 5px;
  }

  #west .panel-body,
  #east .panel-body,
  #west .panel-body.open,
  #east .panel-body.open {
    height: calc(100vh - 155px) !important;
    min-height: 220px;
    overflow-y: hidden !important;
  }
}

@media (max-width: 940px) and (max-height: 500px) {
  #mobileAdTop {
    background: #fcfcfa;
    display: block !important;
    height: 50px;
    line-height: 0;
    overflow: hidden;
    padding: 2px 0;
    text-align: center;
  }

  #mobileAdTop ins.adsbygoogle,
  #mobileAdTop .mobile-top-banner {
    display: inline-block !important;
    height: 50px !important;
    width: 320px !important;
  }

  #modelTimeDiv {
    display: block !important;
    font-size: 9px !important;
    left: 6px !important;
    line-height: 1.15 !important;
    padding-left: 0 !important;
    position: absolute !important;
    top: 6px !important;
    z-index: 30003;
  }

  #modelTimeDiv #bestOnDesktop,
  #modelTimeDiv #lnkShowAbout,
  #modelTimeDiv #currentModelTime {
    display: none !important;
  }

  #header {
    box-sizing: border-box;
    min-height: 54px !important;
    padding: 8px 6px 8px 128px !important;
    width: 100vw !important;
  }

  #mainTitle {
    display: none !important;
  }

  #mainTitle_SmallScreen {
    display: block !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    margin: 0 auto !important;
    max-width: 94vw;
  }

  #worldPopulationInfo {
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  #west,
  #east {
    top: 128px !important;
  }

  #west .panel-body,
  #east .panel-body,
  #west .panel-body.open,
  #east .panel-body.open {
    height: calc(100vh - 136px) !important;
    min-height: 180px;
  }
}
