:root {
  --gap: 0px;

  --text-color-main: #111;
  --background-color-main: #fff;

  --ttl: 4s;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body cover screen */
html, body {
  height: 100%;
  background-color: var(--background-color-main);
  color: var(--text-color-main);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* full height container */
.full-height {
  height: 100%;
}

.main-container {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: 10px 20px;
}

.counters-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.counter__number {
  font-size: 4em;
  font-weight: bold;
}

.counter__description {
  font-size: 1em;
  font-weight: normal;
}

.map-container {
  position: relative;
  height: 100%;
  flex: 1;
}

.map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: url('russia-map.svg') no-repeat center center;
  /* background: url('Russia2024.png') no-repeat center center; */
  background-size: contain;
}

.map-markers {
  position: absolute;
  inset: 0;
}

.city-marker {
  position: absolute;
}

.city-marker__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  transform: translate(40%, 40%);
  border-radius: 50%;
  background-color: var(--marker-color, #ff4d4f);
  opacity: 0;
}

.city-marker__dot--flash {
  animation: city-marker-flash var(--ttl) ease-out forwards;
}

@keyframes city-marker-flash {
  0% {
    opacity: 1;
    /* box-shadow: 0 0 8px var(--marker-color), 0 0 10px 4px var(--marker-color); */
  }
  20% {
    opacity: 1;
    /* box-shadow: 0 0 8px var(--marker-color), 0 0 6px 2px var(--marker-color); */
  }
  80% {
    opacity: 0.2;
    /* box-shadow: 0 0 8px var(--marker-color), 0 0 6px 2px var(--marker-color); */
  }
  100% {
    opacity: 0;
    /* box-shadow: 0 0 8px var(--marker-color), 0 0 0 0 var(--marker-color); */
  }
}

.city-marker__card {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 400px;
  padding: 6px 10px;
  background-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-color-main);
  font-size: 0.8em;
  font-weight: bold;
  white-space: nowrap;
  pointer-events: none;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: city-marker-card-fade var(--ttl) ease-out forwards;
}

@keyframes city-marker-card-fade {
  0%, 80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}


.city-marker__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.city-marker__username {
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-marker__text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.city-marker__city {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: normal;
  font-size: 0.85em;
  color: var(--text-color-secondary, #888);
}

.city-marker__card--comment {
  align-items: flex-start;
  width: 360px;
  max-width: 360px;
  white-space: normal;
}

.city-marker__card--comment .city-marker__avatar {
  margin-top: 2px;
}

.city-marker__comment {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-weight: normal;
}

.city-marker__card--photo {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  white-space: normal;
}

.city-marker__photo {
  display: block;
  width: 140px;
  height: 80px;
  object-fit: cover;
}

.city-marker__card--photo .city-marker__text {
  padding: 6px 10px;
}

.city-marker__title {
  padding: 0;
}
