/*General styles*/
* {
  padding: 0;
  margin: 0;
}

html, body, #main {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#map {
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#planet-earth-animation {
  width: 100%;
  height: 100%;
}

p, label {
  color: white;
  font-size: 18px;
  margin: 2.5%;
}

li {
  color: white;
  font-size: 18px;
}

a {
  text-decoration: none;
}

#quickInfo p {
  color: white;
  font-size: 18px;
}

#quickInfo span {
  color: white;
}

h1, h2, h3, h4 {
  margin: 10px 8px 5px;
  color: white;
}

h1 {
  font-size: 72px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 18px;
}

ul {
  padding-left: 0;
  list-style-type: none;
}

button {
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 12px;
  background-color: #F5F5F5;
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  background-color: #555;
}

table.listing th, table.listing td {
  padding: 5px 10px;
  text-align: left;
}

/*Landing page styles*/
.landingButton, .gameBackBtn, .triggerBtn, .dangerBtn, input[type=submit] {
  border: none;
  outline: none;
  color: white;
  padding: 15px 32px;
  margin-bottom: 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 8px;
}

input[type=submit] {
  background: #1DB841; /* fallback for old browsers */
  background: -webkit-linear-gradient(to top, #16A01B, #1DB841); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to top, #16A01B, #1DB841);
}

.landingModal {
  position: fixed;
  left: 20%;
  top: 20%;
  text-align: center;
  overflow: hidden;
  border-radius: 35px;
  background-color: rgba(63, 68, 76, 0.9);
}

#frontModal {
  width: 60%;
}

#aboutModal {
  display: none;
  left: 25%;
  top: 25%;
  width: 50%;
}

#logInModal {
  display: none;
  left: 30%;
  width: 40%;
}

#signUpModal {
  display: none;
  left: 30%;
  top: 15%;
  width: 40%;
}

#signUpModalForm {
  left: 30%;
  top: 15%;
  height: 70%;
  width: 40%;
  overflow-y: auto;
}

#loginModalForm {
  left: 30%;
  top: 15%;
  width: 40%;
}

#oauthModal {
  left: 30%;
  top: 15%;
  width: 40%;
}

#oauthModal .landingButton {
  background: #1DB841; /* fallback */
  background: -webkit-linear-gradient(to top, #16A01B, #1DB841);
  background: linear-gradient(to top, #16A01B, #1DB841);
}

#verificationSentModal {
  width: 60%;
}

.signupErrors {
  width: 50%;
  left: 25%;
  position: sticky;
}

.signupErrors p {
  color: red;
  padding: 5px;
}

.errorlist {
  padding-left: 0;
}

#confirmEmailModal {
  padding: 10px;
  width: 40%;
  left: 30%;
}

#passwordResetModal {
  padding: 10px;
  width: 60%;
}

#passwordResetDoneModal {
  width: 40%;
  left: 30%;
}

#passwordResetFromKeyDoneModal {
  width: 40%;
  left: 30%;
}

#passwordResetFromKeyModal {
  width: 50%;
  padding: 10px;
}

#passwordChangeModal {
  padding: 10px;
  width: 40%;
  left: 30%;
}

#signupClosedModal {
  width: 20%;
  left: 40%;
}

#modalContent {
  max-height: 60%;
  max-width: 100%;
}

#modalLogo {
  max-height: 40%;
  max-width: 100%;
}

#landingModalLogo {
  width: 20%;
  height: 20%;
}

.social-login{
  padding-bottom: 10px;
}

.triggerBtn, #logInBtn, #logIn, #signUp, #rewardsTable button, #offersReceivedTableBody button, #offersSentTableBody button {
  margin-right: 15px;
  background: #1DB841; /* fallback for old browsers */
  background: -webkit-linear-gradient(to top, #16A01B, #1DB841); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to top, #16A01B, #1DB841);
}

.triggerBtn:hover, #logInBtn:hover, #logIn:hover, #signUp:hover, #rewardsTable button:hover, #offersReceivedTableBody button:hover, #offersSentTableBody button:hover {
  background: #1db841;
}

#signUpBtn {
  background: #1DB841; /* fallback for old browsers */
  background: -webkit-linear-gradient(to top, #16A01B, #1DB841); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to top, #16A01B, #1DB841);
}

#signUpBtn:hover {
  background: #1DB841;
}

#aboutBtn {
  margin-left: 15px;
  background: #007fba; /* fallback for old browsers */
  background: -webkit-linear-gradient(to top, #0157ba, #007fba); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to top, #0157ba, #007fba);
}

.backButton, .gameBackBtn {
  margin-top: 15px;
  background: #007fba; /* fallback for old browsers */
  background: -webkit-linear-gradient(to top, #0157ba, #007fba); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to top, #0157ba, #007fba);
}

.backButton:hover, .gameBackBtn:hover, #aboutBtn:hover {
  background: #007fba;
}

.dangerBtn, .rejectOfferBtn {
  margin-right: 15px;
  background: #fa0202 !important; /* fallback for old browsers */
  background: -webkit-linear-gradient(to top, #ba0101, #ba0f00) !important; /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to top, #ba0101, #ba0f00) !important;
}

.dangerBtn:hover, .rejectOfferBtn:hover {
  background: #fa0202 !important;
}


/*Login, signup form styles*/
input[type=email], input[type=text]:not(.mapboxgl-ctrl-geocoder--input), input[type=password], input[type=number] {
  width: 50%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
}

input[type=submit] {
  margin-top: 15px;
}

input[type=submit]:hover {
  background: #16a01b;
}


/*Main page styles*/
/*Side menu*/
.sideMenuBtn {
  width: 90%;
  border: none;
  outline: none;
  color: white;
  padding: 12px 24px;
  margin-top: 15px;
  margin-left: 15px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  background: #007fba; /* fallback for old browsers */
  background: -webkit-linear-gradient(to top, #0157ba, #007fba); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to top, #0157ba, #007fba);
}

.sideMenuBtn:hover {
  background: #007fba;
}

.tabMenu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
}

.tabMenu li {
  float: left;
}

.tabMenu li div {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  background-color: #333;
}

.tabMenu li div:hover:not(.active) {
  background-color: #111;
}

.tabMenu .active {
  background-color: #111;
}

#sideMenu {
  height: 100vh;
  width: 12%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  display: none;
  /*display: table;*/
}

#closeSideMenu {
  position: absolute;
  bottom: 85px;
  left: 0;
  margin-top: 15px;
  margin-bottom: 15px;
}

#logoutBtn {
  position: absolute;
  bottom: 25px;
  left: 0;
  margin-top: 15px;
  margin-bottom: 15px;
}

#menuBars {
  display: block;
  position: absolute;
  bottom: 2.5%;
  left: 0;
  margin-bottom: 15px;
  margin-left: 15px;
  color: white;
}

/*Profile Tab*/
#profileMenu {
  position: fixed;
  text-align: center;
  border-radius: 35px;
  color: white;
  background-color: rgba(63, 68, 76, 0.9);
  display: none;
  left: 25%;
  top: 25%;
  width: 50%;
  height: 60%;
}

#profileMenu p {
  font-size: 18px;
  margin: 2.5%;
}

#profileMenu button {
  margin-top: 10px;
}

#profileStreetsContent {
  height: 55%;
  color: white;
  width: 90%;
  margin: 0 auto;
  overflow-y: auto;
}

.street-data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}

.street-data-table th,
.street-data-table td {
  padding: 8px;
  text-align: left;
}

.goToButton {
  padding: 4px 8px;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #007fba; /* fallback for old browsers */
  background: -webkit-linear-gradient(to top, #0157ba, #007fba); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to top, #0157ba, #007fba);
}

.goToButton:hover {
  background: #007fba;
}

#offersSentTableBody button, #offersReceivedTableBody button {
  border: none;
  outline: none;
  color: white;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
}

#profileOffersSentContent, #profileOffersReceivedContent {
  width: 90%;
  height: 55%;
  overflow-y: scroll;
  margin: 0 auto;
}

/*Quick info*/
#quickInfo {
  position: absolute;
  top: 10px;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  margin: auto;
  width: fit-content;
  border-radius: 35px;
  background-color: rgba(63, 68, 76, 0.9);
  color: white;
}

#left, #right {
  display: flex;
}

#quickInfo .exp-wrap {
  display: none;
  margin-left: 2px;
}
#quickInfo .exp-wrap .ten {
  margin: 0 2px;
}
#quickInfo .exp-wrap .exponent {
  font-size: 12px;
  vertical-align: super;
}


#logoHeader {
  width: 124px;
  margin-top: 10px;
  margin-bottom: 10px;
  height: 105px;
}

#buildings, #streets, #gold, #balance, #rent, #bonus {
  display: flex;
  align-items: center;
  font-size: 18px;
  margin: 2.5%;
  flex-direction: column;
  width: 160px;
  justify-content: center;
}

.value {
  display: flex;
  flex-direction: row;
}

#tycoonBonusInfo, #tBonusInfo {
  display: none;
  margin-left: 8px;
  margin-top: 2px;
}

/*Street Info*/
#streetInfo {
  position: fixed;
  text-align: center;
  overflow-y: auto;
  border-radius: 35px;
  background-color: rgba(63, 68, 76, 0.9);
  display: none;
  left: 30%;
  top: 25%;
  width: 40%;
}

#buildingMenu {
  position: fixed;
  text-align: center;
  border-radius: 35px;
  background-color: rgba(63, 68, 76, 0.9);
  display: none;
  left: 30%;
  top: 25%;
  width: 40%;
}

#buildingMenu p {
  margin: 5px;
}

#buildingMenu button {
  margin-top: 10px;
}

#sabotageMenu {
  position: fixed;
  text-align: center;
  border-radius: 35px;
  background-color: rgba(63, 68, 76, 0.9);
  display: none;
  left: 30%;
  top: 25%;
  width: 40%;
}

#sabotageMenu p {
  margin: 5px;
}

#sabotageMenu button {
  margin-top: 10px;
}

#destroyBuildingMenu, #streetOfferMenu {
  position: fixed;
  text-align: center;
  border-radius: 35px;
  background-color: rgba(63, 68, 76, 0.9);
  display: none;
  left: 30%;
  top: 25%;
  width: 40%;
}

#destroyBuildingMenu p, #streetOfferMenu p {
  margin: 5px;
}

#destroyBuildingMenu button, #streetOfferMenu button {
  margin-top: 10px;
}

#tycoonBonusMenu, #exchangeMenu {
  position: fixed;
  text-align: center;
  border-radius: 35px;
  background-color: rgba(63, 68, 76, 0.9);
  display: none;
  left: 30%;
  top: 25%;
  width: 40%;
}

#luckyWheelMenu {
  vertical-align: middle;
  position: fixed;
  text-align: center;
  border-radius: 35px;
  background-color: rgba(63, 68, 76, 0.9);
  display: none;
  left: 25%;
  top: 25%;
  width: 50%;
  height: 70%;
}

#luckyWheelDrawContent {
  height: 60%;
}

#luckyWheel {
  height: 100%;
  width: auto;
}

#luckyWheel svg {
  height: 100%;
  width: auto;
}

#luckyWheelRewardsContent {
  color: white;
  width: 80%;
  height: 60%;
  overflow-y: scroll;
  margin: 0 auto;
}

#luckyWheelInfoContent {
  color: white;
  width: 80%;
  height: 60%;
  overflow-y: scroll;
  margin: 0 auto;
}

#luckyWheelRewardsContent h4 {
  margin: 10px 10px 5px 10px;
}

#rewardsTable button {
  border: none;
  outline: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
}

#closeLuckyWheelMenu {
  margin-top: 0;
}

#tycoonBonusMenu p {
  margin: 5px;
}

#tycoonBonusMenu button {
  margin-top: 10px;
}

#leaderboardMenu {
  position: fixed;
  text-align: center;
  border-radius: 35px;
  background-color: rgba(63, 68, 76, 0.9);
  display: none;
  left: 35%;
  top: 20%;
  width: 30%;
  color: white;
  font-size: 18px;
}

#leaderboardMenu p {
  margin: 5px;
}

#leaderboardMenu table {
  width: 100%;
}

#leaderboardMenu td {
  padding: 6px;
}

#leaderboardMenu button, #exchangeMenu button {
  margin-top: 10px;
}

/* Leaderboard navbar spacing */
#leaderboardMenu .tabMenu {
  margin-bottom: 10px;
  border-radius: 8px;
}

#leaderboardMenu .tabMenu li div {
  border-radius: 0;
}

#leaderboardTabs {
  margin-bottom: 10px;
}

#leaderboardTabs .triggerBtn {
  margin-right: 6px;
}

#settingsMenu {
  position: fixed;
  text-align: center;
  border-radius: 35px;
  background-color: rgba(63, 68, 76, 0.9);
  display: none;
  left: 30%;
  top: 25%;
  width: 40%;
  color: white;
  font-size: 18px;
}

#settingsMenu p {
  margin: 10px 0;
  text-align: left;
  padding: 0 20px;
}

#settingsMenu button {
  margin-top: 15px;
  margin-bottom: 10px;
}

#emailSettings, #accountSettings {
  margin-bottom: 20px;
  padding: 0 20px;
}

#deleteProfileBtn {
  margin: 0;
}

/* Toggle Switch Styles */
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
  padding: 5px 0;
}

.toggle-label {
  font-size: 16px;
  color: white;
  margin-right: 15px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #007fba;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

#sabotageStreet, #buildBuildings, #removeStreetSabotage, #offerForStreet, #acceptOfferForStreet, #rejectOfferForStreet, #destroyBuildingModeBtn {
  display: none;
}

#startAuction, #placeBid {
  display: none;
}

/* Auction Menus */
#auctionsMenu {
  vertical-align: middle;
  position: fixed;
  text-align: center;
  border-radius: 35px;
  background-color: rgba(63, 68, 76, 0.9);
  display: none;
  left: 25%;
  top: 25%;
  width: 50%;
  height: 60%;
}

#auctionMenu {
  vertical-align: middle;
  position: fixed;
  text-align: center;
  border-radius: 35px;
  background-color: rgba(63, 68, 76, 0.9);
  display: none;
  left: 30%;
  top: 25%;
  width: 40%;
}

#auctionMenu button, #auctionsMenu button {
  margin-top: 10px;
}

/* Auctions list styling */
#auctionsMenu table.listing {
  width: 100%;
  border-collapse: collapse;
}
#auctionsMenu table.listing thead th {
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}
#auctionsMenu table.listing tbody tr:nth-child(odd) {
  background: rgba(255,255,255,0.04);
}
#auctionsMenu table.listing th, #auctionsMenu table.listing td {
  padding: 10px 14px;
}
#auctionsMenu .bidFromList {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}
#auctionsMenu .bidFromList:hover {
  background: #1d4ed8;
}

#auctionsMenu td {
  color: #fff;
}

/* Media queries for responsiveness */
/* Small screens */
@media only screen and (max-width: 600px) {
  /* General styles */
  p, label {
    font-size: 16px;
    margin: 2%;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  h4 {
    font-size: 14px;
  }

  ul {
    margin: 1%;
  }

  /* Landing page styles */
  .landingButton, .gameBackBtn, .triggerBtn, input[type=submit] {
    padding: 12px 24px;
    margin-bottom: 10px;
    font-size: 14px;
  }

  .landingModal {
    left: 10%;
    top: 10%;
    width: 80%;
  }

  #frontModal {
    width: 80%;
  }

  #aboutModal, #logInModal, #signUpModal, #signUpModalForm, #loginModalForm,
  #verificationSentModal, #passwordResetModal, #passwordResetDoneModal,
  #passwordResetFromKeyDoneModal, #passwordResetFromKeyModal, #passwordChangeModal {
    left: 5%;
    top: 15%;
    width: 90%;
  }

  .signupErrors {
    width: 70%;
    left: 15%;
  }

  #confirmEmailModal {
    width: 70%;
    left: 15%;
  }

  /* Main page styles */
  /* Side menu */
  .sideMenuBtn {
    width: 90%;
    padding: 12px 24px;
    margin-top: 10px;
    margin-left: 10px;
    font-size: 14px;
  }

  #sideMenu {
    width: 15%;
  }

  #closeSideMenu, #logoutBtn, #menuBars {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  /* Profile Tab */
  #profileMenu {
    left: 5%;
    top: 15%;
    width: 90%;
  }

  #profileMenu p {
    font-size: 16px;
    margin: 2%;
  }

  /* Quick info */
  #quickInfo {
    display: none;
  }

  #buildings, #streets, #gold, #balance, #rent, #bonus {
    font-size: 16px;
    margin: 1.5%;
    width: 140px;
  }

  /* Street Info */
  #streetInfo {
    left: 5%;
    top: 25%;
    width: 90%;
  }

  #sabotageMenu {
    left: 15%;
    top: 25%;
    width: 70%;
  }

  #buildingMenu {
    left: 5%;
    top: 15%;
    width: 90%;
  }

  #tycoonBonusMenu, #exchangeMenu {
    left: 5%;
    top: 25%;
    width: 90%;
  }

  #buildingMenu p, #sabotageMenu p, #tycoonBonusMenu p {
    margin: 3%;
  }

  /* Leaderboard Menu */
  #leaderboardMenu {
    left: 10%;
    top: 10%;
    width: 80%;
  }

  #leaderboardMenu p {
    margin: 3%;
  }

  #leaderboardMenu table {
    font-size: 16px;
  }

  #luckyWheelMenu {
    left: 5%;
    top: 25%;
    width: 90%;
  }

  /* Settings Menu */
  #settingsMenu {
    left: 5%;
    top: 25%;
    width: 90%;
  }
}

/* Medium screens */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
  /* General styles */
  p, label {
    font-size: 16px;
    margin: 2.5%;
  }

  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 16px;
  }

  ul {
    margin: 2%;
  }

  /* Landing page styles */
  .landingButton, .gameBackBtn, .triggerBtn, input[type=submit] {
    padding: 14px 28px;
    margin-bottom: 12px;
    font-size: 16px;
  }

  .landingModal {
    left: 10%;
    top: 10%;
    width: 80%;
  }

  #frontModal {
    width: 70%;
  }

  #aboutModal, #logInModal, #signUpModal, #signUpModalForm, #loginModalForm,
  #verificationSentModal, #passwordResetModal, #passwordResetDoneModal,
  #passwordResetFromKeyDoneModal, #passwordResetFromKeyModal, #passwordChangeModal {
    left: 15%;
    top: 15%;
    width: 70%;
  }

  .signupErrors {
    width: 70%;
    left: 15%;
  }

  #confirmEmailModal {
    width: 60%;
    left: 20%;
  }

  /* Main page styles */
  /* Side menu */
  .sideMenuBtn {
    width: 90%;
    padding: 14px 28px;
    margin-top: 12px;
    margin-left: 12px;
    font-size: 16px;
  }

  #sideMenu {
    width: 12%;
  }

  #closeSideMenu, #logoutBtn, #menuBars {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  /* Profile Tab */
  #profileMenu {
    left: 15%;
    top: 20%;
    width: 70%;
  }

  #profileMenu p {
    font-size: 16px;
    margin: 2.5%;
  }

  /* Quick info */
  #quickInfo {
    top: 5px;
  }

  #buildings, #streets, #gold, #balance, #rent, #bonus {
    font-size: 16px;
    margin: 2%;
    width: 160px;
  }

  /* Street Info */
  #streetInfo {
    left: 15%;
    top: 25%;
    width: 70%;
  }

  /* Building Menu */
  #buildingMenu, #sabotageMenu, #tycoonBonusMenu, #exchangeMenu {
    left: 15%;
    top: 25%;
    width: 70%;
  }

  #buildingMenu p, #sabotageMenu p, #tycoonBonusMenu p {
    margin: 2.5%;
  }

  /* Leaderboard Menu */
  #leaderboardMenu {
    left: 20%;
    top: 10%;
    width: 60%;
  }

  #leaderboardMenu p {
    margin: 2.5%;
  }

  #leaderboardMenu table {
    font-size: 16px;
  }

  #luckyWheelMenu {
    left: 10%;
    top: 25%;
    width: 80%;
  }

  /* Settings Menu */
  #settingsMenu {
    left: 15%;
    top: 25%;
    width: 70%;
  }
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}


/* Google Sign In Button */
.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, 
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}

/*Store Menu*/
#storeMenu {
  position: fixed;
  text-align: center;
  border-radius: 35px;
  color: white;
  background-color: rgba(63, 68, 76, 0.9);
  display: none;
  left: 20%;
  top: 25%;
  height: 60%;
  width: 60%;
  overflow-y: auto;
}

#storeMenu h3 {
  margin-top: 20px;
}

#storeMenu h4 {
  color: #FFD700;
  margin: 20px 10px 10px;
  font-size: 20px;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 5px;
}

#storeMenu button {
  margin-top: 10px;
}

#storeContent {
  text-align: left;
  width: 90%;
  margin: 20px auto;
  color: white;
}

.store-section {
  margin-bottom: 30px;
}

.store-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 15px 0;
}

.store-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.store-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFD700;
  transform: translateY(-2px);
}

.store-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.store-item-header img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.store-item-header h5 {
  color: white;
  font-size: 18px;
  margin: 0;
}

.store-item-description {
  color: #ccc;
  font-size: 14px;
  margin: 12px 0;
  line-height: 1.5;
}

.store-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.store-item-price {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
}

.store-buy-btn {
  padding: 10px 20px;
  font-size: 14px;
  min-width: 100px;
}

/* Locked building skin styles */
.building-locked {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.building-unlock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  pointer-events: all;
}

.building-unlock-btn {
  padding: 8px 16px;
  font-size: 14px;
  background: #FFD700;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.building-unlock-btn:hover {
  background: #FFC700;
  transform: scale(1.05);
}

/*FAQ Menu*/
#faqMenu {
  position: fixed;
  text-align: center;
  border-radius: 35px;
  color: white;
  background-color: rgba(63, 68, 76, 0.9);
  display: none;
  left: 30%;
  top: 25%;
  width: 40%;
  height: 60%;
  overflow-y: auto;
}
#faqMenu h3 {
  margin-top: 20px;
}
#faqMenu button {
  margin-top: 10px;
}

#faqContent {
  text-align: left;
  width: 80%;
  margin: 0 auto;
  color: white;
}

.cookies-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: none;
  animation: slideUp 0.3s ease-out;
}

.cookies-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cookies-text {
  font-size: 14px;
  font-weight: 500;
}

.cookies-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.cookies-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 768px) {
  .cookies-consent {
    bottom: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    text-align: center;
  }
  
  /* Store menu responsive styles */
  #storeMenu {
    left: 5%;
    top: 5%;
    width: 90%;
    height: 85%;
  }
  
  .store-items {
    grid-template-columns: 1fr;
  }
  
  .store-item-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .store-buy-btn {
    width: 100%;
  }
}