@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

html {
  margin: 0;
  padding: 0;
}

body {
  padding: 4vw 0;
  margin: 0;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

/* .head */
.head {
  text-align: center;
  padding-bottom: 5vw;
  position: relative;
}

.head img {
  max-width: 190px;
  margin: 0 0 2rem;
}

.head span {
  display: block;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  color: #EF5080;
}

/* .lang */
.lang {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  position: absolute;
  top: 0;
  right: 3.5%;
  font-size: 1.1rem;
}

.lang a:not([href]) {
  text-decoration: underline;
  text-underline-position: under;
  color: #EF5080;
}

.lang a {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
}

/* .content and .circle items */
.content {
  width: min(1440px, (100% - 30px));
  margin-inline: auto;
  display: flex;
  flex-flow: row wrap;
  gap: 3rem 0;
  justify-content: center;
}

/* base .circle */
.content .circle {
  flex-basis: 14.2857%;
  max-width: 14.2857%;
  padding: 0 .5rem;
  text-align: center;
  align-items: center;
  display: flex;
  flex-flow: column;
  gap: 10px;
  color: #EF5080;
  position: relative;
  cursor: pointer;
}

.content .circle:hover .media {
  transform: scale(1);
}

.content .circle:hover .point {
  background-color: currentColor;
}

/* even/odd and nth-child decorations */
.content .circle:nth-child(even) {
  flex-flow: column-reverse;
  color: #51C6D9;
  margin-top: 1.5%;
}

.content .circle:nth-child(even) .name {
  display: flex;
  align-items: flex-end;
}

.content .circle:nth-child(even) .point {
  margin: 0 0 4px;
}

.content .circle:nth-child(even)::before {
  content: '';
  position: absolute;
  top: -4%;
  left: 50%;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: url('line1.svg') center no-repeat;
  background-size: contain;
}

.content .circle:nth-child(odd)::before {
  content: '';
  position: absolute;
  top: 0%;
  left: 50%;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: url('line.svg') center no-repeat;
  background-size: contain;
}

/* special cases: 7n and last-child - hide their ::before */
.content .circle:nth-child(7n)::before,
.content .circle:last-child::before {
  display: none;
}

/* media inside circle */
.content .circle .media {
  width: 100%;
  padding-top: 100%;
  height: 0;
  position: relative;
  transition: all .4s ease;
  transform: scale(.95);
}

.content .circle .media img,
.content .circle .media video {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: center;
  top: 0;
  left: 0;
  border-radius: 50%;
}

/* point */
.content .circle .point {
  background-color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  margin: 4px 0 0;
  transition: all .2s ease;
}

/* name */
.content .circle .name {
  font-size: 19px;
  font-weight: 800;
  min-height: 52px;
}

/* .map */
.map {
  width: min(1440px, (100% - 30px));
  margin-inline: auto;
  padding: 6vw 0 0;
}

.map svg {
  width: 100%;
  height: auto;
}

/* if there is a second svg, hide it */
.map svg + svg {
  display: none;
}

/* svg city parts */
.map svg [id*="city-"] {
  cursor: pointer;
}

.map svg [id*="city-"] > path:first-child {
  transition: all .4s ease;
}

.map svg [id*="city-"]:hover > path:first-child {
  fill: #f1f1f1;
}

.map .title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  color: #51C6D9;
  text-align: center;
  margin: 0 0 3vw;
}

/* text hidden */
.text {
  display: none;
}

/* Zoom wrapper and expanded popup */
.zoom-wrapper {
  transform-origin: center center;
  transition: transform 0.7s ease;
  will-change: transform;
}

.expanded-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.expanded-content.visible {
  opacity: 1;
  pointer-events: auto;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 800;
  display: none;
}

.popup-text {
  max-width: 600px;
  font-size: 24px;
  color: #222;
  text-align: center;
  padding: 40px;
  z-index: 1001;
}

.expanded-content video,
.popup-text {
  max-width: 90%;
  max-height: 90%;
  z-index: 1001;
  position: relative;
}

/* close button */
.close-button {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #000;
  cursor: pointer;
  z-index: 1100;
  display: none;
}

/* Responsive styles */

/* max-width: 1280px (converted from (width < 1280px)) */
@media (max-width: 1279px) {
  .content .circle {
    flex-basis: 16.6667%;
    max-width: 16.6667%;
  }

  .content .circle:nth-child(6n)::before {
    display: none;
  }

  .content .circle:nth-child(7n)::before {
    display: block;
  }

  .content .circle:nth-child(even)::before {
    top: -1%;
  }

  .content .circle:nth-child(even) {
    margin-top: .5%;
  }
}

/* max-width: 950px (converted from (width < 950px)) */
@media (max-width: 949px) {
  .content .circle {
    flex-basis: 20%;
    max-width: 20%;
  }

  .content .circle:nth-child(5n)::before {
    display: none;
  }

  .content .circle:nth-child(6n)::before {
    display: block;
  }

  .content .circle:nth-child(even)::before {
    top: -1%;
  }

  .content .circle:nth-child(even) {
    margin-top: .5%;
  }
}

/* max-width: 767px (converted from (width < 767px)) */
@media (max-width: 766px) {
  body {
    padding: 6vw 0;
  }

  .head {
    padding-bottom: 10vw;
  }

  .head img {
    width: 120px;
    margin-bottom: 1rem;
  }

  .head span br {
    display: none;
  }

  .head span {
    font-size: 1.3rem;
    padding: 0 15px;
  }

  .map .title {
    font-size: 1.4rem;
    padding: 0 15px;
  }

  .content .circle {
    flex-basis: 33.33%;
    max-width: 33.33%;
  }

  .content .circle:nth-child(5n)::before {
    display: block;
  }

  .content .circle:nth-child(3n)::before {
    display: none;
  }

  .content .circle:nth-child(even)::before {
    top: -6%;
  }

  .content .circle:nth-child(even) {
    margin-top: 5%;
  }

  .map svg {
    display: none;
  }

  .map svg + svg {
    display: block;
  }
}

/* max-width: 560px (converted from (width < 560px)) */
@media (max-width: 559px) {
  .lang {
    right: 3%;
    gap: .8rem;
    font-size: .95rem;
  }

  .content {
    gap: 1.5rem 0;
  }

  .content .circle {
    flex-basis: 33.33%;
    max-width: 33.33%;
    padding: 0;
  }

  .content .circle:nth-child(5n)::before {
    display: block;
  }

  .content .circle:nth-child(3n)::before {
    display: none;
  }

  .content .circle:nth-child(even)::before {
    top: -2%;
  }

  .content .circle:nth-child(even) {
    margin-top: 2%;
  }

  .content .circle .name {
    font-size: 16px;
    height: 44px;
  }

  .content .circle .media {
    transform: scale(1.1) !important;
  }
}

/* max-width: 480px (converted from (width < 480px)) */
@media (max-width: 479px) {
  .content .circle:nth-child(even)::before {
    top: 0;
  }

  .content .circle:nth-child(even) {
    margin-top: 0;
  }
}

/* smaller mobile popup adjustments */
@media (max-width: 768px) {
  .popup-text {
    font-size: 17px;
    padding: 20px;
    max-width: 90vw;
  }

  .expanded-content video {
    max-width: 95vw;
    max-height: 80vh;
  }
}