@media (max-width: 1000px) {
  body div.village2 div#village_map {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-76%, -50%) scale(1.1) !important;
  }
}

@media (max-width: 900px) {
  body div.village2 div#village_map {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-65%, -50%) scale(0.90) !important;
  }
}

@media (max-width: 800px) {
  body div.village2 div#village_map {
    transform: translate(-56%, -50%) scale(0.90) !important;
  }
}

@media (max-width: 700px) {
  body div.village2 div#village_map {
    transform: translate(-50%, -50%) scale(0.80) !important;
  }
}

@media (max-width: 600px) {
  body div.village2 div#village_map {
    transform: translate(-42%, -50%) scale(0.70) !important;

  }
}

@media (max-width: 500px) {
  body div.village2 div#village_map {
    transform: translate(-28%, -50%) scale(0.60) !important;
    width: 84% !important;
  }
}

@media (max-width: 400px) {
  body div.village2 div#village_map {
    transform: translate(-25%, -50%) scale(0.5) !important;

  }
}

@media (max-width: 300px) {
  body div.village2 div#village_map {
    transform: translate(-20%, -50%) scale(0.35) !important;
  }
}


@media(max-width:399px) {
  body.village2 {
    background: linear-gradient(#aad0f1 50%, #a3bb7a 50%) !important;
  }

  #rx {
    transform: scale(0.85);
    display: flex;
  }

  .logout input {
    max-width: 100px;
  }


  body.buildingsV3.perspectiveBuildings div#background::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 109px;
    background: #45542f;
  }
}


body {
  background-image: unset !important;
}

body.village2,
#background {
  min-height: 100vh;
}


@media (min-width:400px) and (max-width:991px) {
  html body.village1 div#center div#contentOuterContainer #content {
    margin-right:auto !important;
  }
}


@media(max-width:991px) {
  div#paymentWizard .contentWrapper{
    overflow-y: inherit !important;
  }
  div#paymentWizard .header li.active .tabButton .tabBtnImg{
    margin-top: -24px !important;
    background-size: 90% !important;
  }
  div#paymentWizard.pros .infoArea img{
    bottom: 0 !important;
  right: 26% !important;
  }
  div#paymentWizard .accountBalance{
    top: 15px !important;
  left: 22px !important;
  }
  div#paymentWizard .header .tabButton .text {
  font-size: 10px !important;
  color: #606060 !important;
  white-space: nowrap !important;
}
  #dialogContent .contentBorder-contents.cf {
  padding-bottom: 90px !important;
}
.goldProduct .goldProductTextWrapper .goldUnits {
  font-size: 20px !important;
}
.paymentPopupDialogWrapper .featureBooking h3 {
  font-size: 13px !important;
}
div#paymentWizard .feature .featureContent {
  width: 97%  !important;
}
.paymentPopupDialogWrapper .featureBooking .featureButton{
  top: 12px !important;
}
#paymentWizard .paymentPopupDialogWrapper  h4 {
  font-size: 12px !important;
}
div#paymentWizard .header li.active{
  border-radius: 10px !important;
}
body div#paymentWizard .contentBorder-contents{
  padding-bottom: 10px !important;
}
.contentBorder-contents.cf:has(img.mentor) {
  display: none !important;
}
div#paymentWizard .header li.active .text {
  color: #50b115 !important;
  height: 35px !important;
    margin-top: 0 !important;
}
div#paymentWizard .header li.active .tabButton {
  height: 35px !important;
  margin-top: 0 !important;
}
div#paymentWizard .header li.active .tabButton .tabBtnImg{
  display: none;
}
div#paymentWizard .header li.active {
  height: 35px !important;
  margin-top: 0 !important;
}
div#paymentWizard .header{
  height: 35px !important;
}
.goldProduct .goldProductTextWrapper .goldUnitsTypeText{margin-top: 5px !important;}
  html body div.village1 table tbody td {
    font-size: 10px !important;
  }
  div.village1 table {
  line-height: 14px;
  }
div.village1 table tbody td {
  padding: 1px 2px 1px !important;
}
  #center #contentOuterContainer .contentContainer {
    background-color: #fff;
  }

  html body #stockBar {
    background-image: #fff !important;
    border: unset !important;
  }

  html body.statistics #center,
  html body.reports #center,
  htmlbody.messages #center,
  html body.login #center,
  html body.cropfinder #center,
  html body.hero_inventory #center,
  html body.perspectiveBuildings #center,
  html body.error_site #center,
  html body.hero #center {
    margin-top: 0px !important;
  }

  body #stockBar::before {
    background-color: #ddd !important;
    border: unset !important;
  }

  #center #contentOuterContainer h1.titleInHeader {
    top: 5px !important;
    font-size: 15px !important;
  }

  .contentContainer .subNavi {
    right: 0 !important;
    top: 0 !important;
  }

  #overview .sel {
    background: #fff !important;
  }

  html body.village2 #background {
    background-image: url(../img/old-bg.webp) !important;
    background-size: 100%;
    background-position: center !important;
  }

  html body.buildingsV3.perspectiveBuildings div#background::after {
    background: #aad0f1 !important;
  }







  body .questWrapper {
    padding-bottom: 40px;
  }

  body div.alliance div#internInfo1,
  body div.alliance textarea#internInfo1,
  body div.alliance div#internInfo2,
  body div.alliance textarea#internInfo2,
  body #allianceBonusWrapper #contributionBox #resourceSelection,
  body #allianceBonusWrapper #contributionBox #bonusSelection {
    float: unset;
    width: 100%;
  }

  body div#build.gid0 .contractWrapper .resourceWrapper {
    display: grid;
    margin-top: 5px;
    display: flex;
  }


  body div#worldStartInfo div.countdownContent {
    font-size: 12px;
    max-width: 50%;
  }

  body div#worldStartInfo {
    height: 125px;
    background-image: url('../../img_rtl/login/countdownInfoBox-rtl.jpg');
    background-repeat: round;
  }

  body.activate .activationScreen #presentation.confirmation #activationMapContainer {
    position: unset;
  }

  body.activate .activationScreen #presentation #tribeSelectors input+.selector+.tribeDescription ul {
    position: unset;
    padding: 10px;
    width: 100% !important;
  }

  body.activate .activationScreen #presentation #tribeSelectors input+.selector+.tribeDescription ul li {
    max-width: 100% !important;
  }

  body.activate .activationScreen #presentation #tribeSelectors input+.selector+.tribeDescription ul::after {
    position: unset;
    display: none;
  }

  body.activate .activationScreen #presentation #tribeSelectors {
    flex-wrap: wrap;
  }

  body div#paymentWizard .infoArea .contentBorder-contents {
    height: fit-content;
  }

  #dialogContent {
    overflow-x: auto;
  }

  html body.village2 {
    background: linear-gradient(#AAD0F1 50%, #a3bb7a 50%) !important
  }

  body .buyGoldContainer {
    width: 100%;
    margin-right: 15px;
    margin-top: 20px;
  }

  body .dialog.white .dialog-contents .cancel {
    left: 0 !important;
  }

  body #mapContainer #toolbar .contents {
    height: fit-content;
  }

  .iconButton.viewFull,
  .iconButton.zoomOut,
  .iconButton.zoomIn,
  #mapContainer .toolbar .dropdown,
  #mapContainer #minimapContainer .headline {
    display: none;
  }

  body #content.heroV2Appearance .selectionWrapper .previewWrapper {
    padding: 0 !important;
  }

  body #heroEditor .head {
    width: 100%;
  }

  body div.village1 table#troops td.un {
    display: none;
  }

  .troop_details tr>* {
    width: 100% !important;
    display: block;
    min-height: 30px;
    border: 1px solid #eee;
    max-width: 100% !important;
  }

  .troop_details tbody {
    display: flex;
  }

  body .troop_details tr {
    display: flex;
    flex-direction: column;
    width: 50%;
  }

  body.village2 #center {
    display: flex;
    min-height: fit-content;
  }

  body.buildingsV3 .buildingSlot {
    min-width: 80px;
  }
body.village1 div#center div#contentOuterContainer #content {
  margin-right: 0 !important;
}
    body div.village1 div#village_map {
    max-width: 500px;
    margin: 100px 0 0px;
    transform: translateX(64px);
  }
    body div.village1 img#resfeld {
    transform: scale(1.1);
  }

  div.village1 div.f3 {
    background-image: url(../img/f3-rtl.webp) !important;
  }

  div.village1 .colorLayer .labelLayer,
  div.village2 div#village_map div#levels .colorLayer .labelLayer {
    top: 3px;
    right: 3px;
  }

  body .advn {
    right: 0;
    margin: 10px;
  }

  body #paymentWizardContainer #paymentWizard #packageSlider .package,
  #smallestPackageData .package {
    min-width: 128px;
  }

  body #paymentWizardContainer #paymentWizard #packageSlider .productsPage {
    display: flex;
    overflow-x: auto;
  }

  body .paymentPopupDialogWrapper .featureContent {
    float: unset;
    padding-left: 60px;
    height: fit-content !important;
  }

  body .paymentPopupDialogWrapper .featureBooking .featureRemainingTime {
    position: unset;
  }

  body.rtl .buttonFramed.rectangle.withText>div {
    padding: 5px;
  }

  body .dialog.paymentShopV0 .content .featureCollection .feature .featureButton button div,
  body .dialog.paymentShopV4 .content .featureCollection .feature .featureButton button div {
    font-size: 0;
  }

  body .dialog.paymentShopV0 .content .featureCollection .feature .featureTitle,
  body .dialog.paymentShopV4 .content .featureCollection .feature .featureTitle {
    font-size: 9px;
    white-space: nowrap;
    margin-left: 5px;
    margin-right: 5px;
  }

  body .dialog.paymentShopV4 .content .featureCollection .feature .featureImage {
    width: 31px !important;
    height: 18px !important;
    background-repeat: round;
  }

  body .dialog.paymentShopV0 .content .featureCollection .feature .featureButton button,
  body .dialog.paymentShopV4 .content .featureCollection .feature .featureButton button {
    min-width: fit-content;
    margin: 0 5px;
  }

  body .dialog.paymentShopV0 .content .featureCollection .feature .featureContent,
  body .dialog.paymentShopV4 .content .featureCollection .feature .featureContent {
    display: flex;
    height: fit-content;
    justify-content: space-between;
  }

  h1 {
    font-size: 20px !important;
  }

  body div#paymentWizard .feature {
    left: 0;
    height: fit-content;
    margin-bottom: 11px !important;
  }

  body .dialog.paymentShopV0 .content .featureCollection,
  body .dialog.paymentShopV4 .content .featureCollection {
    display: flex;
    flex-direction: column;
  }

  body .dialog.paymentShopV4 .contentWrapper {
    display: flex;
    flex-direction: column;
  }

  body .dialog.brown .dialog-contents .cancel {
    left: 0 !important;
  }

  body #troops tr {
    display: flex;
    flex-wrap: wrap;
  }

  body #troops tr td {
    flex: 0 0 25%;
  }
#content:has(#troops) {
  padding: 20px 5px !important;
}
div.a2b table#troops {
  display: block;
  position: relative;
}
div.a2b table#troops tr td {
  position: absolute;
  right: 0;
  width: 100%;
}
div.a2b table#troops tr:nth-child(1) td:nth-child(1) {
  top: 0;
}
div.a2b table#troops tr:nth-child(1) td:nth-child(2) {
  top: 90px;
}
div.a2b table#troops tr:nth-child(1) td:nth-child(3) {
  top: 180px;
}
div.a2b table#troops tr:nth-child(1) td:nth-child(4) {
  top: 270px;
}
div.a2b table#troops tr:nth-child(2) td:nth-child(1) {
  top: 30px;
}
div.a2b table#troops tr:nth-child(2) td:nth-child(2) {
  top: 120px;
}
div.a2b table#troops tr:nth-child(2) td:nth-child(3) {
  top: 210px;
}
div.a2b table#troops tr:nth-child(2) td:nth-child(4) {
  top: 300px;
}
div.a2b table#troops tr:nth-child(3) td:nth-child(1) {
  top: 60px;
}
div.a2b table#troops tr:nth-child(3) td:nth-child(2) {
  top: 150px;
}
div.a2b table#troops tr:nth-child(3) td:nth-child(3) {
  top: 240px;
}
div.a2b table#troops tr:nth-child(3) td:nth-child(4) {
  top: 330px;
}
div.a2b .destination {
  position: absolute;
  top: 0;
  left: -20px;
}
div.a2b form {
  position: relative;
}
div.a2b .option {
  position: absolute;
  top: 80px;
  left: 150px;
}
div.a2b:has(.destination) #btn_ok {
  position: absolute;
  left: 160px;
  right: auto !important;
  top: 190px;
}
div#paymentWizard .buyGoldInfoStep .buyGoldInfoStepContent{
  overflow: auto;
}
  body #map_details:not(:has(#village_info, #troop_info)) {
    display: flex;
    position: fixed !important;
    margin: 0 !important;
    left: 1%;
    top: 42px;
    width: 98% !important;
  }

  body div.map2,
  body #mapContainer {
    max-width: 100%;
  }

  body div.village1 div.production,
  div.village1 div.units {
    width: 130px;
  }

  body div.village1 table td.num {
    font-size: 10px;
    font-weight: bold;
  }

  body #header {
    height: 50px !important;
  }

  body #header #navigation {
    padding: 0 0 0 !important;
  }

  body #header #navigation>a.village,
  #header #navigation>label.village {
    width: 50px;
    height: 50px;
  }

  body:not(.village1, .village2) #center {
    display: block;
    margin-top: 200px;
  }

  body.login #header,
  body.activate #header {
    display: none !important;
  }

  body.statistics #center,
  body.reports #center,
  body.messages #center,
  body.login #center,
  body.cropfinder #center,
  body.hero_inventory #center,
  body.perspectiveBuildings #center,
  body.error_site #center,
  body.hero #center {
    margin-top: 60px !important;
  }

  body.gidResources #center {
    margin-top: 60px !important;
  }

  body.village3 #center,
  body.alliance #center {
    margin-top: 0px !important;
  }

  body.error_site #header,
  body div#background::before {
    display: none !important;
  }

  body #center #contentOuterContainer.contentPage h1.titleInHeader,
  body .dialogV2.dialogWrapper .dialogContents h1.titleInHeader {
    font-size: 13px;
    width: fit-content;
  }

  body div.statistics div.top10Wrapper {
    display: flex;
    flex-direction: column;
  }

  body div#sysmsg {
    max-width: 100%;
    text-align: justify;
  }

  body.map {
    overflow-y: hidden;
  }

  body div.village1 table#movements div.mov {
    white-space: wrap;
  }

  body.map #center {
    margin-top: -70px !important;
  }

  body #content.statistics table td.pla {
    min-width: 55px;
    font-size: 8px;
    max-width: 55px;
  }

  body #content.statistics table td.pop {
    width: 20%;
    font-size: 8px;
    font-weight: bold;
  }

  #content.statistics table td.pop.flags:last-child,
  .statistics #player thead td:last-child {
    display: none;
  }

  .statistics #player td:nth-child(7),
  .statistics #player td:nth-child(8) {
    display: none;
  }

  body #center #contentOuterContainer.contentPage {
    left: 2%;
    width: 96%;
    right: 2%;
  }

  body.village2 div#center div#contentOuterContainer #content {
    margin-left: auto !important;
    margin-right: auto !important;
  }

 body div.village2 div.villageMapWrapper {
    position: relative;
    height: 100vh;
    top: -15px;
  }
  .village2.perspectiveBuildings  #background {
    padding-bottom: 0 !important;
  }
  .captchaButton img {
    width: 66px;
    height: fit-content;
  }

  body div.messages .paper,
  body .dialog-dragbar,
  body .questWrapper.achievements {
    max-width: 100%;
  }

  body div.messages .paperContent {
    padding: 30px 15px 20px;
    max-width: 100%;

  }

  body .dragWrapper {
    left: 2% !important;
    right: 3%;
  }

  body .pointsAndAchievements .achievement img,
  body div.dialog div.content div.achievementPoints {
    width: 60px !important;
    height: 70px !important;
    background-size: contain !important;
    background-repeat: round !important;
    background-position: unset !important;
  }

  body div.bigSpeechBubble {
    display: none;
  }

  body div#achievementRewardList div.achievement div.pointAmount {
    font-size: 15px !important;
    left: 18px !important;
  }

  body div.dialog div.content div.achievementPoints div.points {
    font-size: 23px;
    margin-top: 13px;
  }

  body.statistics #player i {
    width: 14px;
    height: 14px;
    background-repeat: round;
  }

  body table.borderGap tr td:first-child,
  table.borderGap tr th:first-child {
    padding-right: 5px;
  }

  body .subTabs .subTabs_tabs a {
    font-size: 11px;
  }

  body .contentNavi.subNavi .scrollingContainer .content a {
    font-size: 9px;
  }

  body div.village1 div.movements {
    width: 106px;
  }

  body .dialog .dialog-container {
    padding: 10px 15px 5px;
    width: 370px !important;
  }

  body #tileDetails {
    max-width: 100%;
    overflow: auto;
    min-height: 150px;
  }

  body #tileDetails .detailImage {
    max-width: 100%;
    padding-top: 0;
  background-size: 150px;
    min-height: 100px;
  }
#tileDetails div#map_details {
  float: right;
}
  body #options a {
    font-size: 10px !important;
  }

  body #tileDetails .detailImage .a.arrow {
    white-space: normal;
  }

  /* body > div {
  left: 0 !important;
} */
  body div#paymentWizard .contentWrapper {
    left: 0px;
    overflow-y: auto;
  }

  body div#paymentWizard .header .tabButton {
    min-width: fit-content;
    height: 35px !important;
  }

  body div#paymentWizard .header .tabButton .tabBtnBGPart.start {
    width: 100%;
    right: 0;
    height: fit-content;
  }

  body img.unitSection {
    width: 60px;
    height: 60px;
    background-repeat: round;
  }

  body div#build div.bigUnitSection {
    width: 60px;
    height: 60px;
  }

  body.rtl div#paymentWizard .header .tabButton .text {
    font-size: 8px;
    max-width: 90px;
  }

  body div#paymentWizard .header ul {
    display: flex;
    gap: 5px;
  }

  body div#paymentWizard .header {
    margin-left: 0;
    top: 28px !important;
  }
body div#paymentWizard .header:has(li.active .buyGold) {
  top: -32px !important;
}
  .dialog.paymentShopV4 .contentNavi {
    max-width: 100%;
    width: 100% !important;
  }

  body .dialog.brown {
    max-width: 100vw;
    overflow-x: hidden;
  }

  body .dialog.paymentShopV4,
  body .dialog.paymentShopV4 .dialogContents,
  body #paymentWizardContainer #paymentWizard,
  body div#paymentWizard {
    max-width: 100%;
  }

  body #paymentWizardContainer #paymentWizard #paymentMethodsSlider {
    max-width: 100%;
    margin-top: 20px !important;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .smsPayment.available {
    display: flex;
    flex-direction: column;
    max-width: 370px;
    gap: 20px;
  }

  body #paymentWizardContainer #paymentWizard #overview .resultBox td {
    font-size: 100%;
  }

  body div#paymentWizard .infoArea {
    position: unset;
    height: fit-content !important;
    width: fit-content !important;
    margin-top: 50px;
  }

  body .buyGoldContainer>div {
    height: fit-content !important;
  }

  body div#paymentWizard .contentArea {
    left: 0 !important;
    max-width: 100%;
    width: 100% !important;
    right: 0 !important;
  }

  body div.hero_inventory #hero_body {
    max-width: 100%;
    right: 0;
    padding-right: 24%;
    height: auto;
  }

  body div.hero_inventory #hero_body_container {
    height: auto;
  }

  body .heroV2 .heroItem {
    width: 50px;
    height: 50px;
  }

  body .heroV2 .heroItem .item {
    width: 50px;
    height: 50px;
    background-repeat: round;
  }

  body div.hero_inventory #hero_body img {
    max-width: 100%;
  }

  body div.hero_inventory #hero_inventory {
    max-width: 100%;
  }

  body #content.heroV2Inventory .currentHeroEquipment {
    height: auto;
  }

  #hero_body_content {
    display: none;
  }

  #background {
    padding-bottom: 90px;
  }

  body.buildingsV3.perspectiveBuildings {
    background-color: #83a4b6;
    background-image: linear-gradient(-8.9deg, #8dafc8 2112px, #b6c9d8 2168px, #aac8e2), linear-gradient(8.9deg, #8dafc8 2084px, #b6c9d8 2102px, #aac8e2) !important
  }

  body div#build div.action div.details {
    max-width: 100%;
  }

  body .resourceWrapper {
    display: flex;
    flex-wrap: wrap;
    padding: 0 !important;
    gap: 5px;
  }

  .map2 div {
    max-width: initial;
  }

  body #contentOuterContainer .village1 .buildingList,
  body #contentOuterContainer .village2 .buildingList {
    max-width: 75%;
    right: 50px !important;
  }

  #heroAdventure .location,
  #heroAdventure .place,
  #heroAdventure .duration,
  #heroAdventure .timeLeft {
    display: none !important;
  }

  body button.textButtonV1 {
    padding: 4px 5px;
    font-size: 11px;
    white-space: nowrap;
  }

  body #content.heroAdventure .walkingCalculationWrapper,
  body #content.heroAdventure .walkingCalculationWrapper .walkingCalculationVillage {
    display: flex;
    flex-direction: column;
  }

  body #content.heroV2Appearance .selectionWrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  body #heroEditor .image {
    transform: translateX(150px);
  }

  #content.heroV2Appearance .selectionWrapper .optionsWrapper {
    display: flex;
  }

  body #heroEditor .image,
  body #heroEditor .image img {
    width: 250px !important;
  }

  body button.green:not(.disabled):not(:disabled) {
    right: 0 !important;
  }

  body #heroEditor .image img {
    left: 50% !important;
    transform: translateX(-50%);
  }

  body #center #contentOuterContainer .contentContainer #content.heroV2Attributes .contentV2 {
    max-width: 100%;
  }

  body #content.heroV2Attributes .attributeBox>div.stats .name {
    font-size: 11px;
  }

  body .contentV2 .progressBar .bar {
    width: 100px;
  }

  body #content.heroV2Attributes .attributeBox>div.stats .value {
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 8px;
  }

  body #content.heroV2Attributes .attributeBox>div.heroProduction .changeProduction {
    display: flex;
    flex-wrap: wrap;
  }

  body label {
    text-wrap: wrap;
    margin-bottom: 10px;
    display: inline-block;
  }

  body #content.heroV2Inventory .currentHeroEquipment {
    left: 0;
  }

  body #content.heroV2Inventory .inventoryWrapper .inventoryFilters .filterSlot {
    width: 25px;
  }

  body #content.heroV2Inventory .inventoryWrapper .tradeItems {
    font-size: 10px;
  }

  body #content.referAFriend .referAFriendInfo .infoGraphic {
    display: flex;
    flex-wrap: wrap;
  }

  body #content.referAFriend .referAFriendInfo .shareButtonsWrapper .fb-share-button {
    font-size: 10px;
  }

  body #content.referAFriend .referAFriendInfo .header {
    max-width: 100%;
  }

  body #content.referAFriend .referralOverview .villageSlots {
    display: flex;
    flex-wrap: wrap;
  }

  body div.village3 table tbody td {
    font-size: 10px;
  }

  body #raidListCreate .boxes {
    max-width: 100%;
  }

  body #raidListCreate input {
    max-width: 100%;
  }

  body div.outerLoginBox div.innerLoginBox {
    max-width: 100%;
  }

  body div.outerLoginBox::before {
    background-size: cover;
    max-width: 100%;
  }

  body div {
    max-width: 100%;
  }

  body.logout #center div#contentOuterContainer #content.logout {
    display: flex !important;
  }

  * {
    box-sizing: border-box;
  }

}




#mobile_side_btns {
  display: none;
}






@media(max-width:991px) {

  body,
  body #bodyWrapper {
    max-width: 100% !important;
    min-width: 100% !important;
  }

  body #topBar {
    position: fixed;
    bottom: -8px;
    right: 0;
    z-index: 500;
    width: 100%;
    min-width: auto;
    padding: 0;
    display: block;
    grid-template-columns: none;
    height: 82px;
  }

  body #header {
    width: 100%;
    position: relative;
    height: 124px;
    z-index: 99;
  }

  body #header #navigation {
    display: flex;
    max-width: 100%;
    width: 100%;
    position: fixed;
    right: 0;
    left: 0;
    grid-template-columns: auto;
    bottom: 0;
    top: unset;
    background: linear-gradient(#bcefa0, #2e4700);
    padding: 10px 0;
    box-shadow: 0 0 12px 0 #02340036;
    padding: 10px 0;
  }

  body #header #navigation>* {
    margin: 0 -22px 0 0;
    transform: scale(0.7);
    flex: 1 1 auto;
  }

  body #header #navigation>*:first-child {
    margin: 0 0 0 0;
  }

  #topBar #logo {
    display: none;
  }

  body #header .currency {
    height: 42px;
    width: 15vw;
    position: fixed;
    top: 0;
    left: 0;
    grid-template-columns: 24px 1fr;
    grid-template-rows: 22px 12px;
    line-height: 25px;
    padding: 0;
    box-sizing: border-box;
  }

  body #header .currency div:last-of-type {
    grid-column-start: 2;
    grid-row-start: 2;
  }

  body #header .currency i:last-of-type {
    grid-column-start: 1;
    grid-row-start: 2;
  }

  #stockBar .granary,
  #stockBar .warehouse {
    padding: 1px;
  }

  body #header .currency div:first-of-type {
    grid-row-start: 1;
  }

  body #header .currency i:first-of-type {
    grid-row-start: 1;
  }

  body #stockBar::before {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    bottom: 2px;
    left: 2px;
    background-color: #664e40;
    border: solid 1px #44321d;
    border-radius: 1px;
  }

  body #stockBar {
    padding: 0;
    left: -15px;
    transform: scaley(1.2);
    transform-origin: top left;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    z-index: 38;
    height: 40px;
    display: flex;
    gap: 2px;
    align-items: center;
    padding: 0 7px;
  }

  #stockBar li {
    display: flex;
    margin: 0px !important;
    flex: 0 0 auto;
    width: 20% !important;
  }

  body ul#stockBar .barBox {
    width: 40px;
  }

  body {
    background-color: #BCEFA0 !important;
  }

  #stockBarWarehouseWrapper,
  #stockBarGranaryWrapper {
    display: none !important;
  }

  body #stockBar {
    grid-template-columns: auto auto;
    grid-template-rows: 28px;
    background-image: linear-gradient(to bottom, #cba467 5%, #f3e2ae 13%, #efbf7b 32%, #aa8050 48%, #835e35 72%, #ad8a54 93%, #d7b672 100%);
    border: 1px solid #34220d;
    border-radius: 4px;
  }

  body #stockBar .granary::before,
  body #stockBar .warehouse::before {
    display: none;
  }

  body #stockBar .granary .capacity,
  body #stockBar .warehouse .capacity {
    display: none;
  }

  body #stockBar .warehouse i {
    width: 18px;
    height: 12px;
    background-repeat: round;
  }

  body #stockBar .granary .capacity,
  body #stockBar .warehouse .capacity,
  body .warehouse_medium {
    display: none;
  }

  body #stockBar .granary .stockBarButton:last-of-type {
    display: none;
  }

  body #stockBar .warehouse {
    grid-template-columns: 33.33% 33.33% 33.33%;
    flex: 0 0 75%;
    flex: 0 0 75%;
  }

  body #stockBar .granary {
    grid-template-columns: 100%;
    flex: 0 0 25%;
  }

  body i.goldCoin_medium,
  i.silverCoin_medium {
    width: 14px;
    height: 14px;
    background-repeat: round;
    background-position: 0 0;
  }

  body #sidebarBeforeContent {
    position: fixed !important;
    transition: 0.3s all linear;
    right: 50%;
    top: 50%;
    transform: translate(400%, -50%);
  }

  body #stockBar .value {
    direction: ltr;
    font-size: 6px !important;
  }

  .stockBarButton div:not(.bar, .barBox) {
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  body #stockBar .warehouse .stockBarButton {
    grid-template-columns: 22px 1fr 7px;
  }

  #stockBar a div i {
    background-size: contain;
  }

  #topBarHeroWrapper {
    min-width: 100%;
    max-width: 100%;
  }

  #topBarHeroWrapper #topBarHero {
    position: fixed;
    background-image: url(../rb_images/heroFrameStandalone.png);
    background-size: cover;
    margin-right: auto !important;
    position: absolute !important;
    left: 5px;
    top: 50px;
  }

  body:not(.village2) #topBarHeroWrapper #topBarHero {
    display: none !important;
  }

  #center #contentOuterContainer {
    width: 100%;
  }

  #center #contentOuterContainer:not(.contentPage) {
    grid-column: unset;
  }

  #center #contentOuterContainer h1.titleInHeader {
    top: 28px;
    font-size: 21px;
    white-space: nowrap;
  }

  #header .currency div {
    font-size: 9px;
  }

  #topBar #header.referAFriend::before {
    border-right-width: 0;
    border-left-width: 0;
  }

  #header .shop {
    display: none;
  }

  #mobile_side_btns div {
    background: #fff9eb;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.2s all;
    position: relative;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    border: 1px solid #385400;
    border-radius: 50%;
    background-image: linear-gradient(to bottom, #afcb98, #5f7b50);
    box-shadow: inset 0 1px 0 0 #bcddb7, inset 0 -1px 0 0 #44663d, inset 1px 0 0 0 #98bb93, inset -1px 0 0 0 #517d5a, 0 3px 3px 0 rgba(0, 0, 0, 0.3);
    position: fixed;
    bottom: 75px;
    z-index: 999;
  }

  #logo {
    display: none;
  }

  body div#background div#headerBar {
    display: none !important;
  }

  body,
  html {
    overflow-x: hidden;
  }

  body.buildingsV3 #build .upgradeHeader #build_value {
    z-index: 99999;
  }

  body #mobile_side_btns {
    display: block;
  }

  #mobile_side_btn_right {
      right: 5px;
       font-size: 0 !important;
  }

  #mobile_side_btn_left {
    left: 5px;
    font-size: 0 !important;
  }
    #mobile_side_btn_left::before{
      content: '';
      width: 26px;
      height: 26px;
      background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" fill="%23fff" class="bi bi-filter-left" viewBox="0 0 16 16"><path d="M2 10.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5"/></svg>');
    }
  #mobile_side_btn_right::before{
      content: '';
      width: 26px;
      height: 26px;
      background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" fill="%23fff" class="bi bi-filter-right" viewBox="0 0 16 16"><path d="M14 10.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0 0 1h3a.5.5 0 0 0 .5-.5m0-3a.5.5 0 0 0-.5-.5h-7a.5.5 0 0 0 0 1h7a.5.5 0 0 0 .5-.5m0-3a.5.5 0 0 0-.5-.5h-11a.5.5 0 0 0 0 1h11a.5.5 0 0 0 .5-.5"/></svg>');
  }
  .rb_overlay {
    position: fixed;
    background: #0005;
    backdrop-filter: blur(5px);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s linear;
    z-index: 9998;
  }

  .rb_overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .sidebar.beforeContent {
    z-index: 9999 !important;
    margin-left: 0 !important;
    top: 0 !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  .sidebar.beforeContent.active {
    right: 50% !important;
    transform: translateX(50%) !important;
  }

  .sidebar.afterContent {
    position: fixed !important;
    z-index: 9999 !important;
    margin-right: 0 !important;
    top: 0 !important;
    left: -105%;
    height: 100vh !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  .sidebar.afterContent.active {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  #header #navigation>a::after {
    background-size: cover;
    width: 50px;
    height: 50px;
  }

  #header #navigation>a.dailyQuests,
  #header #navigation>a.map,
  #header #navigation>a.messages,
  #header #navigation>a.mobileMenuButton,
  #header #navigation>a.mobileShopButton,
  #header #navigation>a.reports,
  #header #navigation>a.statistics,
  #header #navigation>label.dailyQuests,
  #header #navigation>label.map,
  #header #navigation>label.messages,
  #header #navigation>label.mobileMenuButton,
  #header #navigation>label.mobileShopButton,
  #header #navigation>label.reports,
  #header #navigation>label.statistics {
    width: 50px;
    height: 50px;
  }

  #header #navigation>a.map::after,
  #header #navigation>label.map::after {
    background-position: 0 -196px !important;
  }

  #header #navigation>a.map:focus::after,
  #header #navigation>a.map:hover::after,
  #header #navigation>label.map:focus::after,
  #header #navigation>label.map:hover::after {
    background-position: 0 -248px !important;
  }

  #header #navigation>a.village.buildingView::after,
  #header #navigation>label.village.buildingView::after {
    background-position: 0 -98px !important;
  }

  #header #navigation>a.village.buildingView:focus::after,
  #header #navigation>a.village.buildingView:hover::after,
  #header #navigation>label.village.buildingView:focus::after,
  #header #navigation>label.village.buildingView:hover::after {
    background-position: 0 -148px !important;
  }

  #header #navigation>a.village.resourceView:focus::after,
  #header #navigation>a.village.resourceView:hover::after,
  #header #navigation>label.village.resourceView:focus::after,
  #header #navigation>label.village.resourceView:hover::after {
    background-position: 0px -48px !important;
  }

  .perspectiveResources #header #navigation>a.village.resourceView::after,
  .perspectiveResources #header #navigation>label.village.resourceView::after {
    background-position: 0 -48px !important;
  }

  #header #navigation>a.statistics::after,
  #header #navigation>label.statistics::after {
    background-position: 0 -298px !important;
  }

  #header #navigation>a.statistics:focus::after,
  #header #navigation>a.statistics:hover::after,
  #header #navigation>label.statistics:focus::after,
  #header #navigation>label.statistics:hover::after {
    background-position: 0 -348px !important;
  }

  #header #navigation>a.reports::after,
  #header #navigation>label.reports::after {
    background-position: 0 -396px !important;
  }

  #header #navigation>a.reports:focus::after,
  #header #navigation>a.reports:hover::after,
  #header #navigation>label.reports:focus::after,
  #header #navigation>label.reports:hover::after {
    background-position: 0 -448px !important;
  }

  #header #navigation>a.messages::after,
  #header #navigation>label.messages::after {
    background-position: 0 -498px !important;
  }

  #header #navigation>a.messages:focus::after,
  #header #navigation>a.messages:hover::after,
  #header #navigation>label.messages:focus::after,
  #header #navigation>label.messages:hover::after {
    background-position: 0px -548px !important;
  }

  #header #navigation>a.dailyQuests::after,
  #header #navigation>label.dailyQuests::after {
    background-position: 0 154px !important;
  }

  #header #navigation>a.dailyQuests:focus::after,
  #header #navigation>a.dailyQuests:hover::after,
  #header #navigation>label.dailyQuests:focus::after,
  #header #navigation>label.dailyQuests:hover::after {
    background-position: 0 -593px !important;
  }

  #header a.layoutButton.referAFriend {
    top: 2px;
    left: 24px;
    z-index: 10;
  }

  #outOfGame {
    position: fixed !important;
    left: 10px !important;
    bottom: 140px;
    display: flex !important;
    flex-direction: column;
    width: fit-content !important;
    gap: 5px;
    height: fit-content !important;
  }

  ul#outOfGame li a,
  ul#outOfGame li div.a {
    width: 28px;
    height: 26px;
  }

  #footer {
    display: none;
  }

  .layoutButton.buttonFramed.withIcon {
    transform: scale(0.9);
  }
div.village1 div.movements div.boxes-contents.cf, div.village1 div.production div.boxes-contents.cf, div.village1 div.units div.boxes-contents.cf {
  padding: 6px !important;
}
div.village1 table thead th {
  font-size: 11px;
}


}