:root {
  --website_width: 1290px;
}

.stw-app-container * {
  transition: 0.3s;
}

.stw-app-container {
  width: var(--website_width);
  margin: 0 auto;
  position: relative;
}

.stw-app-container * {
  font-family: inherit;
}

.stw-app-wrapper {
  display: flex;
  width: 100%;
  gap: 50px;
}

.stw-control-panel {
  width: 20%;
  overflow: scroll;
}

.stw-map-container {
  width: 80%;
}

.stw-hidden {
  display: none;
}

/** COUNTRIES **/
.stw-countries-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 700px;
}

.stw-country {
  background-color: #f7fbf5;
  color: rgb(29, 29, 29);
}


.stw-app-container .stw-countries-container .stw-country p {
  margin: 0;
}

.stw-app-container .stw-countries-container .stw-country h5 {
  margin-bottom: 0;
}

.stw-country-heading {
  display: flex;
  padding: 8px 15px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 10px;
  cursor: pointer;
}

.stw-country-zoom {
  padding: 0px 15px 8px 15px;
}

.stw-country-mags {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: baseline;
}

.stw-country-bar {
  margin: 8px 0;
  width: 100%;
  height: 10px;
  border-radius: 100px;
  background-color: #deded9;
  overflow: hidden;
}

.stw-country-progress {
  width: 5%;
  background-color: #95c768;
  border-radius: 100px;
  height: 10px;
}

.stw-country:not(.stw-country-selected) .stw-country-zoom {
  display: none;
}

.stw-country-selected h5 {
  font-weight: 600;
}

.stw-country-selected .stw-country-heading svg {
  transform: rotate(180deg);
}

/** COUNTRIES ZOOM HANDLING **/
.stw-zoom-first {
  fill: #d1d5ae;
}

.stw-zoom-second {
  fill: #b0c77c;
}

.stw-zoom-third {
  fill: #8dcb55;
}

.stw-zoom-first .stw-country-progress {
  width: 10%;
}

.stw-zoom-second .stw-country-progress {
  width: 50%;
}

.stw-zoom-third .stw-country-progress {
  width: 100%;
}

/** TWO-ZOOM-LEVELS COUNTRIES **/
[data-zoom = "stw-zoom-level-second"] {
  width: 50%;
}

[data-zoom = "stw-zoom-level-second"] .stw-zoom-second .stw-country-progress {
  width: 100%;
}

/** CITIES DATA **/
.stw-city-hidden {
  display: none;
}

.stw-city, .stw-country-mags svg, .stw-city-data-close {
  cursor: pointer;
}

.stw-cities-data {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #f7fbf5;
  padding: 20px;
  border-radius: 10px;
  color: black;
  width: 380px;
}

.stw-city-data-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.stw-city-data-heading p {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

.stw-city-data-percentage p, .stw-city-data-count p {
  margin: 0 ;
  font-size: 20px;
  text-align: center;
  line-height: 1;
}

.stw-city-data-percentage p {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.stw-city-data-count {
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  padding: 10px 0;
}

.no-national-brand {
  border-top-color: transparent;
}

.no-national-brand p {
  display: none;
}

.stw-city-data-percentage p span {
  font-size: 40px !important;
}

.stw-brand-infos {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 5px 0;
}

.stw-brand-infos-title {
  font-weight: 600;
}

.stw-city-data-percentage p span, .stw-city-data-count .stw-present-brands {
  font-weight: bold;
  font-size: 30px;
  color: #8dcc55;
}

.stw-city-not-present-data {
  border-top: 1px solid black;
  padding-top: 10px;
}

.stw-city-not-present-data > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  place-items: center;
  gap: 10px;
}

.stw-city-not-present-data img {
	width: 40px;
}

.stw-city-not-present-data p {
	margin: 10px;
}

.stw-city-data-content > * {
  margin: 10px 0;
}

/** MAP POINTS **/
g > circle:nth-child(1) {
  fill: #FFFB;
  filter: blur(1px);
}

.stw-city-selected > circle:nth-child(1) {
  animation: none !important;
}

.stw-city-selected > circle:nth-child(2) {
  r: 4;
  fill: #000;
}

svg .city-name {
  font-size: 12px;
  font-weight: 500;
}

.stw-flying-name {
  position: absolute;
  color: #000;
  font-size: 10px;
  display: none;
  transform: translateY(-50%);
  transition: 0s;
}

.stw-city-pulse > circle:nth-child(1) {
  animation: pulse-animation 1s infinite ease-in alternate;
}

@keyframes pulse-animation {
  0% {
   	r: 4;
  }
  100% {
    r: 8;
  }
}

/** BRAND INFO **/
.stw-brand-infos {
	height: 30px;
}

.stw-brand-infos-img {
  width: 35px;
  height: auto;
}

.stw-brand-infos-numbers {
	font-size: 13px;
}

/** RESPONSIVE **/
@media screen and (max-width: 991px) {

  .stw-app-container h2 {
    font-size: 28px;
  }

  .stw-app-container h3 {
    font-size: 25px;
  }

  .stw-app-container h4 {
    font-size: 22px;
  }

  .stw-app-container h5 {
    font-size: 19px;
  }

  .stw-app-container {
    width: 100%;
  }

  .stw-app-wrapper {
    flex-direction: column-reverse;
    width: 100%;
    gap: 10px;
  }

  .stw-map-container {
    width: 100%;
  }

  .stw-map-container svg {
    width: 100%;
    height: fit-content;
  }

  .stw-control-panel {
    width: 100%;
    max-height: unset;
  }

  .stw-countries-container {
    max-height: 300px;
    overflow: visible;
  }

  .stw-cities-data {
    width: 100%;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
