/*
https://nano.vote/

https://nano.vote/city-page.php

*/

/* Default light mode */
body {
  background-color: #ffffff;
  color: #000000;
}

/* Dark mode styling */
.dark-mode {
  background-color: #1c1c1c;
  color: #ffffff;
}

/* dark mode white glow */
.dark-mode .greenborder {
  box-shadow: 0 0.1rem 0.7rem rgba(255, 255, 255, 1.3) !important;
}

.dark-mode .text-shadow {
  text-shadow: 0 0.2rem 0.3rem rgba(255, 255, 255, 0.4);
}

body {
  font: 400 20px Courier New, monospace !important;
}

#map-feedback .alert-message {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
#map-feedback.show .alert-message {
  opacity: 1;
}

.flagbot {
  --flag-height: 47px;
  width: 100px;
  height: var(--flag-height);
  display: block;
  margin: 5px auto;
  box-shadow: 0 0.5rem 0.7rem rgba(0, 0, 0, 0.4);
}

.flag-container {
  display: inline-flex©;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.flag-container img {
  display: block;
}

.flag-container::after {
  content: attr(title);
  display: block;
  margin: 4px auto;
  width: 9ch !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  font-size: 1rem;
  color: black;
  font-weight: bold;
  pointer-events: none;
}

#themeToggleButton {
  padding: 10px 20px;
  border: 2px solid black;
  border-radius: 50%; /* Makes the button round */
  cursor: pointer;
  width: 6rem;
  height: 6rem;
  background-color: black;
  color: white;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Styling for light mode button */
.light-mode #themeToggleButton {
  background-color: black;
  color: white;
}

/* Styling for dark mode button */
.dark-mode #themeToggleButton {
  background-color: white;
  color: black;
  border: 2px solid white;
}

.vibrate-button {
  cursor: pointer;
  background-color: #f0f0f0;
}

.change-color {
  background: lightgoldenrodyellow !important;
}

.rotate {
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.pointer {
  cursor: pointer;
}

.invisibletext {
  color: transparent !important;
  text-shadow: none !important;
}

.bold {
  font-weight: bold;
}

.transparent {
  background: transparent;
}

.bckred {
  background: #bf0201 !important;
  color: white;
}

.bckorange {
  background: #ec7d05 !important;
  color: white;
}

.bckyellow {
  background: #f3cf66 !important;
}

.bckgreen {
  background: #4a9c27 !important;
  color: white;
}

.bckblue {
  background: #2c6fdf !important;
  color: white;
}

.bckpurple {
  background: #5d35c2 !important;
}

.bcklightpurple {
  background: #cec6e3 !important;
}

.bcklightblue {
  background: #9cccf4 !important;
}

.bcklightblue1 {
  background: #b3d9fb !important;
}

.bcklightblue2 {
  background: #bfd2f5 !important;
}

.lightred {
  color: #e06565 !important;
}

.redbordo {
  color: #c82512;
}

.blueoff {
  color: cornflowerblue;
}

.green {
  color: #38751d;
}

.purple {
  color: #c56eff;
}

.brown {
  color: #be5b17;
}

.darkpurple {
  color: #5e327c;
}

.yellow {
  color: #f5d427;
}

.black {
  color: black;
}

.blue {
  color: blue;
}

.purplet {
  color: purple;
}

.lightgreen {
  color: greenyellow;
}

.orange {
  color: orange;
}

.bigger {
  font-size: 21px;
}

.text-justify {
  text-align: justify;
}
.login-input {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 15px;
  width: 100%;
}
::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: gray;
  font-style: italic;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: gray;
  font-style: italic;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: gray;
  font-style: italic;
}

select {
  -webkit-appearance: menulist-button;
  color: black;
  font-style: normal;
}

select:invalid {
  color: gray;
  font-style: italic;
}

.greylightborder {
  background: rgb(233, 236, 239);
  border: 1px solid green;
  font-weight: bold;
  text-transform: uppercase;
  outline: none;
  font-size: 2rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.login-button {
  color: #fff;
  background: #55a1ff;
  border: 0;
  outline: 0;
  width: 100%;
  height: 50px;
  text-align: center;
  cursor: pointer;
}

.continentcol {
  background: #0071db;
  color: white;
}

.trcontinent {
  background: lightgrey;
  border: 2px solid white;
}

.countrycol,
.trcountry {
  background: #f2f2f2;
  border: 2px solid white;
}

.font0 {
  font-size: 0px !important;
  display: none;
}

#worldmetro {
  table-layout: fixed;
}

#map985 {
  height: 500px;
}

.table {
  margin-bottom: 0;
}

#chatgpt {
  position: absolute;
  top: 35%;
  left: 35%;
  transform: translate(-55%, -50%);
  background: transparent;
  font-size: 1rem;
}

.pins {
  width: 3rem;
  vertical-align: middle !important;
}

.pinsBig,
.total500 {
  width: 5rem;
}

.highlight-row {
  transition: background-color 0.5s ease-in-out;
  font-size: 1rem;
  margin: 5px auto;
  width: 100%;
  border: 1px solid #e9ecef;
  font-weight: bold;
}

.carousel-inner {
  position: relative;
  border-radius: 0px;
}

.carousel-item {
  opacity: 0;
}

.carousel-item.active {
  opacity: 1;
}

.carousel .arrow {
  width: 40px;
}

.carousel-indicators {
  margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
  width: auto;
  height: auto;
  background-color: transparent;
  margin: 0 10px;
}

.carousel-indicators [data-bs-target] {
  opacity: 1;
}

.carousel-indicators .arrow {
  opacity: 0;
}

.carousel-indicators .active .arrow {
  opacity: 1;
  margin: auto;
}

.carousel-indicators li {
  background-size: cover;
}

.carousel-indicators .active {
  opacity: 1; /* Active indicator opacity */
}

.carousel-indicators li[data-bs-slide-to="0"] {
  background-image: url("../map/img/pins/10pins/50.png");
}

.carousel-indicators li[data-bs-slide-to="1"] {
  background-image: url("../map/img/pins/10pins/20.png");
}

.carousel-indicators li[data-bs-slide-to="2"] {
  background-image: url("../map/img/pins/10pins/10.png");
}

.carousel-indicators li[data-bs-slide-to="3"] {
  background-image: url("../map/img/pins/10pins/5.png");
}

.carousel-indicators li[data-bs-slide-to="4"] {
  background-image: url("../map/img/pins/10pins/2.5.png");
}

.carousel-indicators li[data-bs-slide-to="5"] {
  background-image: url("../map/img/pins/10pins/2.png");
}

.carousel-indicators li[data-bs-slide-to="6"] {
  background-image: url("../map/img/pins/10pins/1.png");
}

.carousel-indicators li[data-bs-slide-to="7"] {
  background-image: url("../map/img/pins/10pins/0.5.png");
}

.carousel-indicators li[data-bs-slide-to="8"] {
  background-image: url("../map/img/pins/10pins/0.2.png");
}

.carousel-indicators li[data-bs-slide-to="9"] {
  background-image: url("../map/img/pins/10pins/0.1.png");
}

#playPauseBtn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 9;
}

#playPauseBtn1 {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 9;
}

#nano-table td,
#nano-table th {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

#nano-table th {
  background: lightgrey;
  text-align: center !important;
}

#nano-table td:nth-child(2),
#nano-table td:nth-child(3),
#nano-table td:nth-child(4) {
  text-align: left !important;
}

.locations-table tbody tr td:nth-child(2),
.locations-tables tbody tr td:nth-child(2) {
  text-align: center !important;
  font-size: 1.4rem;
}

#nano-table td:nth-child(1) {
  text-align: center;
}

table {
  table-layout: fixed;
  width: 100%;
  margin-bottom: 0;
}

#submit-message {
  margin: 10px 5px 0px;
  color: red;
}

.submit-message {
  color: red;
  margin-right: 10px;
}

.chevron.rotate {
  transform: rotate(180deg);
}

#expand-button {
  display: block;
  cursor: pointer;
  background-color: #f0f0f0;
}

#chatlog {
  overflow: overlay;
  height: 39vh;
  padding: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
  text-align: justify;
  transition: height 0.3s;
}

.chatlog-expanded {
  height: auto !important;
}

#message {
  padding: 20px;
}

#message::placeholder {
  font-style: normal !important;
  text-align: center;
  color: blue;
}

#message:focus {
  outline: none !important;
}

.user-message,
#message {
  text-align: center;
  font-weight: bold;
  color: blue;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.bot-response {
  text-align: justify;
  color: green;
  margin-bottom: 2rem;
  font-size: 2.24rem;
}

#maplegendcontainer,
#maplegendcontainerwestasia,
#maplegendcontaineramerica {
  height: 85vh;
  position: relative;
}

#maplegendcontainer:hover,
#maplegendcontainerwestasia:hover,
#maplegendcontaineramerica:hover {
  box-shadow: 5px 0px 40px rgba(0, 0, 0, 0.7);
}

.hover_shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.5s;
}

.hover_shadow:hover {
  box-shadow: 5px 0px 40px rgba(0, 0, 0, 0.7);
}

#chatbox {
  /* height: 113vh;
    position: relative; 
    box-shadow: none !important;*/
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.blink {
  animation: blink 1s infinite;
}

#mapoverlay {
  position: relative;
  height: 100vh;
}

#overlay,
#overlayleft,
#overlayright,
#overlaybottom {
  position: absolute;
  /*background-color: rgba(255, 255, 255, 0.2); 
  background-image: radial-gradient(grey 25%, transparent 5%);*/
  background-size: 10px 10px;
  display: flex;
  justify-content: center;
  /*align-items: center;*/
  font-size: 24px;
  color: #000; /* Set the text color */
}

#overlay {
  top: 0;
  height: auto;
  min-height: 20px;
}

#overlaybottom {
  bottom: 0;
  height: auto;
  min-height: 40px;
}

#overlayleft {
  left: 0px;
  top: 0;
  bottom: 0;
  min-width: 40px;
}

#overlayright {
  top: 0;
  bottom: 0;
  min-width: 40px;
  right: 0px;
}

/* Adjust the styling for the date and time */
#date-time {
  /* Add any desired styling for the date and time */
}

.greenborder {
  border: 1px solid green !important;
  border-radius: initial;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  font-size: 20px;
}

.accordion-item {
  border: 1px solid green;
}

.filteredList {
  border: 1px solid green;
  border-radius: initial;
}

.bckgpink {
  background: #ebacac !important;
}

.bckglightorange {
  background: #f9dbbc !important;
}

.bckglightyellow {
  background: #fde6a1 !important;
}

.bckglightgreen {
  background: #bfdab4 !important;
}

.mapallbut {
  background: lightgrey !important;
  padding: 0px 10px;
}

.rowlistimap button,
#plotmap,
.reset {
  padding: 1rem;
  border: 1px solid green !important;
  border-radius: initial;
  font-size: 1.5rem;
}

#locations-table th {
  text-align: center;
}

#locations-table td,
#locations-table th {
  /* padding-top: 1rem !important;
    padding-bottom: 1rem !important; */
}

#locations-table td:first-child {
  white-space: nowrap;
}

.pinsize {
  width: 60px;
  display: inline-block;
}

/*to show to scrollbar by default*/
::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

#map,
#map2,
#street-view {
  background: white;
  height: 100%;
}

.smallarrow {
  width: 26px;
  margin-left: 22px;
}

.maintitle {
  /*border-top: 2px solid #1700FF;
    border-bottom: 2px solid #1700FF;*/
  font: bold 3.4rem Courier New, monospace !important;
  /* color: #0d6efd; */
  color: #24b9f4;
  text-decoration: underline;
  text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.labelID {
  font: bold 2.5rem Courier New, monospace !important;
  color: #0d6efd;
  text-decoration: underline;
  text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.round_button {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.country,
.subtitle {
  font-size: 2.2rem;
}

.subtitle > div {
  height: 2.2rem; /* Fixed height to match the tallest element */
  display: flex;
  align-items: center; /* Center content vertically */
  justify-content: center;
}

.subtitle > div img {
  height: 1em; /* Scale image to match text height */
  vertical-align: middle;
}

.ranked {
  font: 10px Arial, sans-serif;
}

.rankedbig {
  font: 30px Arial, sans-serif;
}

.link {
  color: #0d6efd;
}

#pincity,
.pincity {
  width: 5rem;
}

#yourany {
  display: inline-block;
  width: 2.5em;
  text-align: center;
}

.gm-style {
  font-family: Courier New, monospace !important;
}

/* styles.css */
#back-to-top-btn {
  /* display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;*/
}

#back-to-top-btn:hover {
  opacity: 1;
}

.icon {
  width: 100%;
}

.pinssmall {
  width: 1rem;
  vertical-align: text-bottom !important;
}

.carousel-caption {
  top: 0px !important;
  padding-top: 0px !important;
  font-size: 2.5rem;
  color: black;
  font-weight: bold;
  right: 20px;
  left: 20px;
}

.carousel-caption > button {
  font-weight: bold;
  font-size: 2.5rem !important;
}

element.style {
  background-color: rgb(233, 236, 239);
}

[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled),
button:not(:disabled) {
  cursor: pointer;
}
.highlight-row {
  transition: background-color 0.5s ease-in-out;
  font-size: 1.5rem;
  margin: 5px auto;
  width: 100%;
  border: 1px solid #e9ecef;
  font-weight: bold;
}

.caption_banner {
  margin: 5px auto;
  width: 100%;
  font-weight: bold;
}

.accordion-button {
  padding: 0.5rem !important;
}

.bootstrap-switch-container {
  margin-left: 0 !important;
  width: fit-content !important;
}

.bootstrap-switch-wrapper {
  width: fit-content !important;
}

.form-check {
  top: 0px; /*AT THE TOP OF THE GOOGLE MAP*/
  border: 1px solid #e9ecef;
  grid-gap: 50px;
}

.form-check.form-switch {
  /*display: grid;
    grid-template-columns: 1fr 1fr;*/
  grid-gap: 50px;
}

.bootstrap-switch-label {
  display: none;
}

.bootstrap-switch-handle-on,
.bootstrap-switch-handle-off {
  font-size: 30px !important;
  text-wrap: nowrap;
  vertical-align: text-top;
}

.box {
  font-size: 15px !important;
}

#countcontainer {
  display: none;
  position: absolute;
  top: -3px;
  background: white;
  border: 1px solid #e9ecef;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.dataTables_info {
  display: none;
}

.locations-tables td {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

.clickablecountry {
  text-decoration: underline;
  cursor: pointer;
  color: #22f722;
}

.clickablecity {
  color: #24b9f4;
}

.locations-tables td:first-child {
  white-space: nowrap;
}

table[id^="locations"] thead tr th:nth-child(2) {
  width: 67% !important;
}

#titre {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

#titre h1,
#titre h3 {
  display: block;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}

.welcome,
.minibutt {
  color: darkblue;
  text-shadow: 1px 2px grey;
}

.billion,
#message,
.user-message {
  font-size: 2.24rem;
}

.subbig {
  font-size: 2.6rem;
}

.wlzt {
  width: 100%;
  text-align: center;
  margin-top: 2rem !important;
  font-weight: bold;
}

.dig {
  float: right;
}

.bannerfont {
  font-size: 2.5rem;
}

#tableSearch1,
#tableSearch2 {
  text-align: center;
  font-size: 2.7vw;
}

.paginate_button {
  margin-right: 1rem;
}

.paginate_button.current {
  color: red;
}

.accordion-button::before,
.accordion-button::after {
  display: inline-block;
  background-image: url(http://zing.town/map/img/chevronup2.png);
  background-repeat: no-repeat;
  background-size: 2rem;
  content: "";
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  transform: rotate(180deg);
  transition: transform 0.2s ease-in-out;
}

.accordion-button::before {
  margin: 0 1rem 0 0.5rem;
}

.accordion-button::after {
  margin: 0 0.5rem 0 1rem;
}

.accordion-button:not(.collapsed)::before,
.accordion-button:not(.collapsed)::after {
  /* Rotate the chevron when the accordion item is open */
  background-image: url(http://zing.town/map/img/chevronup2.png);
  transform: rotate(0deg);
}

.chevron {
  width: 2rem;
  cursor: pointer;
  height: 2rem;
  transition: transform 0.2s ease-in-out;
}

.spon {
  font-weight: bold;
  color: darkred;
  font-size: 1.3rem;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid darkred;
  background-color: #f0f0f0;
  border-radius: 50%;
  overflow: hidden;
}

.pingif {
  width: 5rem;
}

.buttongen {
  font-size: 3vw;
  margin: 5px auto;
  display: block;
  width: 95%;
  border-radius: 8px;
  color: darkblue;
  box-shadow: 1px 1px 1px 1px rgb(0, 0, 0);
}

.gm-ui-hover-effect {
  position: absolute !important;
  left: 50%; /* Move the element 50% to the right */
  transform: translateX(-50%);
  bottom: 0;
  color: green !important;
}

.gm-style-iw-ch {
  display: none;
}

.gm-style-iw-d::-webkit-scrollbar {
  display: none;
}

.gm-style-iw-d {
  -ms-overflow-style: none; /* IE 10+ */
  scrollbar-width: none; /* Firefox */
}

.gm-style .gm-style-iw-c {
  padding: 1rem !important;
  /* background: rgba(255,255,255,.6); */
  background: transparent;
  box-shadow: none;
  width: 388px !important;
}

a:-webkit-any-link:focus-visible {
  outline-offset: 0px !important;
  outline: none !important;
}

:-webkit-any-link {
  outline-offset: 0px !important;
}

:-moz-any-link {
  outline-offset: 0px !important;
}

:any-link {
  outline-offset: 0px !important;
}

#controlsMap {
  left: 50%;
  margin-left: -25%;
  width: 50%;
  top: 5px;
}

#controls1,
#controls2,
.controls3 {
  /*position: absolute;*/
  bottom: 0px;
  left: 50%;
  margin-left: -25%;
  /*right: 10px;*/
  text-align: center;
  z-index: 1;
  padding: 10px;
  border-radius: 5px;
  /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
  font-size: 1.5rem;
  width: 50%;
}

.control4 {
  position: absolute;
  bottom: -5px;
  z-index: 1;
  width: 50%;
}

#controls > button {
  margin: 5px;
  padding: 8px;
  cursor: pointer;
}

.img-zoomable {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(1);
  max-width: none;
}

.bigdigit {
  font-size: 3.5rem !important;
  color: blue;
  margin-bottom: -0.5rem;
  margin-top: -10px;
}

.rowlistimap {
  margin-top: 220px;
}

#locations-table_paginate {
  display: none;
}

#freetowns,
#said {
  color: green;
  text-shadow: 1px 2px grey;
  margin-top: 0 !important;
}

.roundedbut {
  border-radius: 1rem !important;
}

.superscript {
  font-size: 1rem;
  text-shadow: none;
  vertical-align: super;
}

.sponsored {
  color: darkred;
  font-weight: bold;
  text-shadow: 1px 1px grey;
}

.sponsor {
  font-size: 1rem;
}

.sponsorbig {
  font-size: 2rem;
}

.city {
  font-size: 2.5rem;
}

.buttonmap {
  background: white;
  font-weight: bold;
  color: darkblue;
  border: solid 1px green;
  border-radius: initial;
  line-height: 1rem;
  text-shadow: 1px 1px grey;
}

button.active {
  background: #81bd1e;
  font-weight: bold;
  color: darkblue !important;
  border: solid 2px green;
  border-radius: initial;
  line-height: 1rem;
}

.chevronopenedup {
  transform: rotate(-180deg);
}

/*
div:has(> table.locations-table) {
    overflow: hidden;
}  
*/

div:has(> table.locations-table):hover {
  overflow-y: scroll;
}

.locations-table thead tr th:nth-child(1) {
  width: 8rem;
}

.locations-table thead tr th:nth-child(3) {
  width: 10rem;
}

.dataTables_length {
  display: none;
}

.statspop {
  /* height:80px;*/
}

.cat10pop {
  font-size: 2.4rem;
}

#freetowns {
  font-size: 2.1rem;
}

.welcome {
  font-size: 2.5rem;
  padding: 0 20px;
  font-weight: bold;
}

.slidebutton {
  font-size: 1.7rem !important;
}

#carouselBasicTownPlans .carousel-item {
  position: relative; /* so our pseudo-element is positioned against it */
}

/* hide by default on all slides */
#carouselBasicTownPlans .carousel-item::after {
  content: none;
}

/* but when a slide has .active, show its data-lots */
#carouselBasicTownPlans .carousel-item.active::after {
  content: attr(data-lots);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* styling */
  color: white;
  font-size: 2rem; /* adjust as you like */
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
  pointer-events: none; /* clicks still hit the carousel */
  white-space: nowrap;
}

.sponcc {
  font-size: 2.7rem;
  text-transform: uppercase;
}

.minibutt {
  font-size: 2.4rem;
}

.contr {
  width: 2rem;
}

.contrlabel {
  width: 1.5rem;
  background: white;
  border: 1px solid green;
}

.labelcitycountry {
  font: 400 50px Courier New;
  text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.45);
  font-weight: bold;
}

.labelcitycountry .cityupp {
  text-transform: uppercase;
  /* color: white !important; */
}

#aicenter {
  font-size: 3rem;
}

.resetbutton,
.closebutton {
  width: 40px;
  margin: 14px;
}

.equaltowns10 {
  width: 82%;
  margin: auto;
}

.grayscale {
  filter: grayscale(100%);
}

.partie {
  margin: 3rem 0;
}

.titlebox {
  text-align: center;
  width: 100%;
  margin-bottom: -12px;
  /* margin-top: 5rem; */
}

.mt5rem {
  margin-top: 5rem !important;
}

.nobox {
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}

.boxsimple,
.boxdouble,
.boxfour,
.boxsixth,
.boxten,
.boximg,
.boxsimplemini,
.box11,
.boxarchi {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid green;
  border-radius: initial;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  width: 100%;
}

.heighthalf {
  height: 32px;
}

.boxsimple {
  height: 65px;
}

.boxsimplemini {
  height: 50px;
}

.boxdouble {
  height: 130px;
  flex-direction: column;
}

.heightdouble {
  height: 130px;
}

.boxfour {
  height: 260px;
  flex-direction: column;
}

.boxsixth {
  height: 390px;
  flex-direction: column;
}

.boxten {
  height: 650px;
}

.box11 {
  height: 715px;
  flex-direction: column;
}

.boximg {
  height: 765px;
}

.mt {
  margin-top: -0.7rem !important;
}

#townContainer {
  max-height: 776px;
  overflow: auto;
}

/* Style for the image grid */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.image-gallery img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s;
}

.image-gallery img:hover {
  transform: scale(1.05);
}

/* The modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

/* Modal content (the image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of the image */
.caption {
  margin: auto;
  display: block;
  text-align: center;
  color: white;
  padding: 10px 0;
}

/* Add Animation */
.modal-content,
.caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* Close button */
.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.w-md-50 {
  width: 50%;
}

.buy {
  font-size: 32px;
  font-weight: bold;
}

#city-images,
#country-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

#city-images img,
#country-images img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

#crosshairs {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  pointer-events: none; /* Ensures it doesn't interfere with map interactions */
  z-index: 10;
}

#crosshairs::before,
#crosshairs::after {
  content: "";
  position: absolute;
  background: red; /* Color of the crosshairs */
}

#crosshairs::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

#crosshairs::after {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.crosshairs-inline {
  display: inline-block;
  width: 15px;
  height: 15px;
  position: relative;
  vertical-align: middle;
}

.crosshairs-inline::before,
.crosshairs-inline::after {
  content: "";
  position: absolute;
  background: red; /* Color of the crosshairs */
}

.crosshairs-inline::before {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.crosshairs-inline::after {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

#coordinates,
#maphelp {
  z-index: 1000;
  font-weight: bolder;
}

.text-color-shadow {
  text-shadow: 1px 1px black;
  color: white !important;
}

#coordinates {
  bottom: 25px;
}

#maphelp {
  top: 15px;
}

#map-center-coordinates {
  color: auto;
  text-align: center;
}

.place .city {
  font-size: 5rem !important;
}

.place .country {
  font-size: 3.5rem;
}

#latitudeInput,
#longitudeInput,
#latitude,
#longitude {
  width: fit-content;
  min-width: 12ch;
  padding: 8px;
  text-align: center !important;
}

#zoomInput,
#zoom,
#mode {
  width: fit-content;
  min-width: 6ch;
  padding: 8px;
  text-align: center !important;
}

.bigtitle {
  font-size: 5rem;
  font-weight: bold;
}

.bluetxt {
  color: darkblue;
  text-shadow: 1px 1px grey;
}

.yelotxt {
  color: #fae443;
  text-shadow: 1px 1px grey;
}

.orangtxt {
  color: #ec7d05;
  text-shadow: 1px 1px grey;
}

.text-shadow {
  text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.45);
}

#ztgstitle {
  font-size: 7rem;
  color: #24b9f4;
  text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.45);
}

.sut {
  font-size: 3.2rem;
}

#scroll-wrapper {
  display: flex;
  width: 100%;
  max-height: calc(
    (var(--flag-height, 82px) + 8px) * 5 - 8px + 16px
  ); /* 16px for padding */
  overflow: hidden;
}

#left-scrollbar {
  width: 11px; /* standard scrollbar width */
  overflow-y: scroll;
  background: #f0f0f0;
}

#flags {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0px;
  padding: 8px;
  text-align: center;
  background: #f0f0f0;
}

#flags-container {
  flex: 1;
  overflow-y: scroll;
  max-height: calc((var(--flag-height, 82px) + 8px) * 5 - 8px + 16px);
  background: #f0f0f0;
}

#coordinates {
  bottom: 5rem; /* sits just above controls2 (which is ~2.5rem high + margin) */
  /* left: 0; */
  padding: 0 1rem;
  pointer-events: auto; /* make sure buttons get clicks */
  z-index: 10; /* above the map but below any modals */
}
#map-center-coordinates {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  color: red;
}

.black_circle {
  width: 70px;
  height: 70px;
  background-color: black;
  color: white;
  border-radius: 50%; /* Makes it a circle */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-align: center;
  font-weight: bold;
  margin: auto;
}

.catscroll {
  position: relative;
  overflow: auto;
  max-height: 725px;
  background: white;
}

.catscroll {
  position: relative;
  overflow: auto;
  max-height: 725px;
  background: white; /* Ensures inner area is white */
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
}

.accordion-button:not(.collapsed) {
  color: black;
  background-color: white;
}

.double-scroll-wrapper {
  position: relative;
  display: flex;
  width: 100%;
}

.left-scrollbar {
  width: 11px;
  overflow-y: scroll;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  background: #f0f0f0;
  height: 100%;
}

.scroll-container {
  margin-left: 11px; /* equal to .left-scrollbar width */
  width: 100%;
  overflow-y: hidden;
  position: relative;
}

.scroll-content {
  overflow-y: scroll;
  height: 100%;
}

.fs-md-3 {
  font-size: 1.75rem !important;
}

.small-white-text {
  font-size: 0.5rem;
  color: transparent;
}

.cursor-pointer {
  cursor: pointer;
}

#map-feedback {
  bottom: 7.5rem;
}

.white-shadow {
  text-shadow: 2px 1px 0px rgba(255, 255, 255, 0.7);
}

.groups-titles {
  font-size: 1.5rem;
}
/*----------------------------------------*/
@media (max-width: 667px), screen and (orientation: portrait) {
  .groups-titles {
    font-size: 1rem;
  }

  #map-feedback {
    bottom: 6rem;
  }

  .fs-sm-6 {
    font-size: 1rem !important;
  }

  .catscroll {
    max-height: 410px;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
  }

  .black_circle {
    width: 2rem;
    height: 2rem;
    font-size: 0.5rem !important;
  }
  .icon {
    width: 2rem;
  }

  .slidebutton {
    font-size: 0.8rem !important;
  }

  #flags {
    max-height: calc((var(--flag-height, 61px) + 8px) * 5 - 8px);
  }

  #ztgstitle {
    font-size: 3rem;
  }

  .gm-style .gm-style-iw-c {
    width: 336px !important;
    max-width: 336px !important;
  }

  .round_button {
    width: 50px;
    height: 50px;
  }

  .smallbut {
    font-size: 0.7rem;
  }

  #city-images,
  #country-images {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
  }

  #locations-table th {
    padding-top: 0.1rem !important;
    padding-bottom: 0.1rem !important;
  }

  .w-sm-100 {
    width: 100%;
  }

  .flagbot {
    --flag-height: 30px;
    width: 50px;
    height: var(--flag-height);
    display: block;
    margin: 5px auto;
    box-shadow: 0 0.2rem 0.3rem rgba(0, 0, 0, 0.8);
  }

  .flag-container::after {
    left: 5px;
    width: 85%;
    font-size: 0.65rem;
  }

  .partie {
    margin: 1.5rem 0;
  }

  .titlebox {
    margin-bottom: -5px;
    /* margin-top: 2.5rem; */
  }

  .hover_shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  }

  .heighthalf {
    height: 17px;
  }
  .boxsimple {
    height: 35px;
  }

  .boxsimplemini {
    height: 30px;
  }

  .boxdouble,
  .heightdouble {
    height: 70px;
  }

  .boxfour {
    height: 140px;
  }

  .boxsixth {
    height: 210px;
  }

  .boxten {
    height: 350px;
  }

  .box11 {
    height: 385px;
  }

  .boximg {
    height: 370px;
  }

  .market-link {
    white-space: nowrap;
    width: 11.5rem;
    overflow: hidden;
    text-overflow: clip;
    display: inline-block;
  }

  #maplegendcontainer,
  #maplegendcontainerwestasia,
  #maplegendcontaineramerica {
    height: 575px;
  }

  .resetbutton,
  .closebutton {
    width: 25px;
    margin: 5px;
  }

  .equaltowns10 {
    width: 87%;
  }

  .labelcitycountry {
    line-height: 20px;
  }

  #worldmetro {
    font-size: 0.8em;
  }
  .population {
    display: none;
  }
  .continentcol {
    display: none;
  }

  #map985 {
    height: 330px;
  }

  #chatbox {
    /* height: 81vh;*/
  }

  #aicenter {
    font-size: 1.5rem;
  }

  #chatlog {
    height: 37vh;
  }

  #chatgpt {
    position: absolute;
    top: 35%;
    left: 35%;
    transform: translate(-48%, -45%);
    background: transparent;
    font-size: 0.4rem;
  }

  #maplegendcontainer {
    /* height: 275px;*/
    width: calc(4 / 3 * 275px);
  }

  #maplegendcontainerwestasia,
  #maplegendcontaineramerica {
    height: 410px;
    width: calc(4 / 3 * 275px);
  }

  #tableSearch1,
  #tableSearch2 {
    font-size: 4vw;
  }

  .accordion-button::before,
  .accordion-button::after {
    background-size: 1rem;
    width: 1rem;
    height: 1rem;
  }

  .accordion-button::before {
    margin: 0 0.7rem 0 0;
  }

  .accordion-button::after {
    margin: 0 0 0 0.7rem;
  }

  #overlay,
  #overlaybottom {
    width: calc(4 / 3 * 270px);
  }

  /*#locationhome {
        font-size: 0.925em;
    }*/

  #townID {
    font-size: 15vw;
  }

  .buttongen {
    font-size: 5vw;
  }

  .carousel-caption {
    top: -5px !important;
    right: 2%;
    left: 2%;
    color: black;
    font-size: 1rem;
  }

  .carousel-indicators [data-bs-target] {
    margin: 0 2px;
  }

  .carousel-indicators {
    margin-bottom: 0px;
  }

  #playPauseBtn {
    bottom: 5px;
    left: 5px;
  }

  .carousel .arrow {
    width: 20px;
  }

  .carousel-caption > button {
    font-size: 1rem !important;
  }

  .catego10but {
    font-size: 5.2vw !important;
  }

  .chevron {
    width: 1rem;
    height: 1rem;
  }

  .pingif {
    width: 2rem;
  }

  .welcome {
    text-shadow: 1px 1px grey;
  }

  #freetowns {
    font-size: 1rem;
    text-shadow: 1px 1px grey;
  }

  #said {
    font-size: 0.7rem;
    text-shadow: 1px 1px grey;
  }

  .billion,
  #message,
  .user-message,
  .bot-response {
    font-size: 1.1rem;
  }

  .subbig {
    font-size: 1.3rem;
  }

  .minibutt {
    font-size: 1rem;
    text-shadow: 1px 1px grey;
  }

  .mt {
    margin-top: -0.2rem !important;
  }

  #free {
    font-size: 5.2vw;
  }

  #anotherworld {
    font-size: 6vw;
  }

  .highlight-row {
    font-size: 1rem;
  }

  .pinsize {
    width: 40px;
  }

  .rowlistimap {
    margin-top: 70px;
    height: 16px;
  }

  .rowlistimap button,
  #plotmap,
  .reset {
    line-height: 15px;
    padding: 8px 5px 13px;
    font-size: 1rem;
  }

  .greylightborder {
    font-size: 1rem;
  }

  .bannerfont {
    font-size: 1rem;
  }

  .box {
    font-size: 15px !important;
  }

  .bootstrap-switch-handle-on,
  .bootstrap-switch-handle-off {
    font-size: 15px !important;
  }

  .form-check-inline {
    margin-right: 0;
  }

  .pinsBig,
  .total500 {
    width: 2rem;
  }

  .sponsor {
    font-size: 0.7rem;
  }

  .sponsorbig {
    font-size: 1.2rem;
  }

  .city {
    font-size: 1rem;
  }

  .welcome,
  #interactive,
  .titre,
  .sponcc {
    font-size: 1.33rem;
  }

  .pins {
    width: 2rem;
  }

  .spon {
    font-size: 1rem;
    line-height: 17px;
    width: 4rem;
    height: 4rem;
  }

  .wlzt {
    margin-top: 0.75rem !important;
    margin-bottom: 0.25rem !important;
  }

  .cat10pop {
    font-size: 1.1rem;
  }

  table[id^="locations"] thead tr th:nth-child(2) {
    width: 70% !important;
  }

  table[id^="locations"] thead,
  table[id^="locations"] tfoot {
    font-size: 0.7rem;
  }

  .pb3mobile {
    padding-bottom: 3px;
  }

  .pb5mobile {
    padding: 0px 10px 5px;
  }

  .rankedbig {
    font: 20px Arial, sans-serif;
  }

  .labelID,
  .maintitle {
    font-size: 1.3rem !important;
  }

  .country,
  .subtitle {
    font-size: 1.1rem !important;
    text-transform: uppercase;
    text-decoration: underline;
  }

  .titlehead {
    font-size: 1.5rem !important;
  }

  #pincity,
  .pincity {
    width: 2rem;
  }

  #controls > button {
    font-size: 15px !important;
  }

  .bigdigit {
    font-size: 1.5rem !important;
    margin-bottom: -0.2rem;
    margin-top: -0.25rem;
  }

  #controlsMap {
    width: 100%;
    left: 0;
    margin-left: 0;
  }

  #controls1,
  #controls2,
  .controls3 {
    font-size: 1rem;
    width: 100%;
    left: 0;
    margin-left: 0;
  }

  #coordinates,
  #maphelp {
    font-size: 1rem !important;
    padding-bottom: 2px;
    display: block;
    /* width: fit-content; */ /* Adjust width based on content */
    max-width: 100%; /* Prevent overflow */
    font-size: 2vw; /* Adjusts based on viewport width */
    white-space: nowrap; /* Prevents text wrapping */
    overflow: hidden;
  }

  .copy-alert {
    left: 20px;
    right: auto;
  }

  #coordinates {
    bottom: 65px;
  }

  #maphelp {
    top: 2px;
  }

  #playPauseBtn1 {
    bottom: 5px;
    right: 5px;
  }

  .petitecat {
    font-size: 0.8rem;
  }

  .sponsored {
  }

  .locations-table thead tr th:nth-child(1) {
    width: 5rem;
  }

  .locations-table thead tr th:nth-child(3) {
    width: 6rem;
  }

  div:has(> table.locations-table) {
    max-height: 530px;
  }

  #townContainer {
    /* max-height: 835px; */
    max-height: 485px;
  }

  .mt5rem {
    margin-top: 2.5rem !important;
  }

  .buy {
    font-size: 20px;
    font-weight: bold;
  }
}

/*----------------------------------------*/
@media only screen and (max-width: 1024px) and (orientation: landscape) {
  #worldmetro {
    font-size: 0.8em;
  }
  .container {
    max-width: 100% !important;
    /*max-height: 590px;*/
  }

  #maplegendcontainer,
  #maplegendcontainerwestasia,
  #maplegendcontaineramerica {
    height: 860px !important;
    width: calc(4 / 3 * 700px);
  }

  #overlay,
  #overlaybottom {
    width: calc(4 / 3 * 700px);
  }

  .locations-table thead {
    font-size: 2rem;
  }

  .locations-table tbody tr td:nth-child(2),
  .locations-tables tbody tr td:nth-child(2) {
    font-size: 2rem;
  }

  #freetowns {
    font-size: 1.9rem;
  }

  div:has(> table.locations-table) {
    max-height: 675px;
  }

  .welcome {
    font-size: 5.5vw;
  }

  .equal10 {
    font-size: 5vw;
  }
  /*
    .billion {
        font-size: 4vw;
    }*/

  .cat10pop {
    font-size: 2.15rem;
  }

  .pins {
    width: 3rem;
  }
}

/*SMALLER PHONES LIKE IPHONE 11 EXCLUDING SAMSUNG*/
@media only screen and (min-device-width: 375px) and (max-device-width: 414px) and (min-device-height: 667px) and (max-device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait) {
  .pb5mobile {
    padding: 0 10px !important;
  }
}
