@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

body,
html {
  margin: 0;
  padding: 0;
  overflow: scroll;
  height: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-image: url("./../img/bg-san-pham.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: "Montserrat", sans-serif;
  min-height: 100vh;
  height: max-content;
}
.table-container {
  max-width: 550px;
  width: 90vw;
  margin: 0 auto;
  margin-bottom: 20vh;
}

#map-container {
  height: 100vh;
  width: auto;
  aspect-ratio: 600 / 730;
  overflow: scroll;
  position: relative;
}

#map {
  height: 100%;
  width: auto;
  aspect-ratio: 600 / 730;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.img-box {
  position: absolute;
  cursor: pointer;
  object-fit: contain;
  margin: 5%;
  box-shadow: rgba(255, 255, 255, 1) 0px 8px 24px;
}

.img-box.img-island {
  cursor: unset;
  pointer-events: none;
  z-index: -1;
  box-shadow: unset;
}

.tooltip {
  position: absolute;
  background: rgba(5, 104, 252, 0.643);
  color: white;
  padding: 1.5vw 10px;
  border-radius: 16px;
  display: none;
  z-index: 10;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
  max-width: 20%;
  min-width: 270px;
  flex-direction: column;
  gap: 1.5vw;
  border: 1px solid rgba(5, 104, 252, 0.8);
  box-shadow: inset 0 0 0 5px #ffffff2b;
  backdrop-filter: blur(25px);
}

.tooltip p {
  font-size: 1vw;
  text-align: center;
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0 5px;
}

.tooltip .province {
  text-align: center;
  font-weight: 500;
  font-size: 1.5vw;
}

.tooltip .item-img {
  width: 100%;
}
h1 {
  text-align: center;
  font-size: 3vw;
  margin: 1rem 0;
}
.map-container {
  position: relative;
  width: max-content;
  margin: 0 auto;
  box-sizing: border-box;
  /* padding: 10px; */
  /* border: 1px solid #0568fca4; */
  overflow: visible;
  /* border-radius: 24px; */
}

.map-container::before {
  /* content: ""; */
  border-radius: 24px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsla(0, 0%, 94%, 0.054);
  box-shadow: inset 0 0 0 8px #ffffff2b;
  backdrop-filter: blur(25px);
  border: 1px solid hsla(0, 0%, 100%, 0.274);
}

img[src="undifined"] {
  display: none;
}

/* .map-container::before {
  content: "";
  border-radius: 24px;
  position: absolute;
  top: 2px;
  left: 20px;
  width: 89%;
  height: 94%;
  background-image: url(./../img/ban-do-viet-nam.webp);
  background-size: contain;
  background-position: 47%;
} */

#tagline {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 66vw;
  margin: 2% auto;
  margin-left: 2rem;
}

#tagline img {
  width: 80%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

#render-map {
  margin-bottom: 0px;
  position: absolute;
  top: 1rem;
  left: 55%;
  right: 0;
}

.test-map {
  display: flex;
  gap: 1.5;
}

.img-so-sanh {
  width: auto;
  height: 80vh;
  aspect-ratio: 600 / 730;
}

.img-so-sanh img {
  object-fit: fill;
  width: 100%;
  height: 100%;
}

#data-null {
  padding-top: 100vh;
}

#pen-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#pen-element img.but-phai {
  position: absolute;
  top: 50%;
  left: 0;
  width: 30%;
  height: auto;
  object-fit: contain;
  transform: translateY(-50%);
}

#pen-element img.but-trai {
  position: absolute;
  top: 6%;
  right: 0;
  width: 20%;
  height: auto;
  object-fit: contain;
  transform: translateY(0%);
}

/* Responsive Desktop */
@media screen and (max-width: 1920px) {
  .tooltip {
    max-width: 300px;
    gap: 1rem;
    padding: 1rem;
  }
  .tooltip p {
    font-size: 1rem;
  }

  .tooltip .province {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 1200px) {
  #tagline {
    margin: 3rem auto;
  }
  #map-container {
    height: 100vh;
  }
  .tooltip {
    box-shadow: unset;
    border-color: aliceblue;
    gap: 0.8rem;
    padding: 0.8rem;
  }

  .tooltip p {
    font-size: 0.9rem;
  }

  .tooltip .province {
    font-size: 1rem;
  }
}

@media screen and (max-width: 576px) {
  .tooltip {
    width: 270px;
  }
  #tagline {
    width: 90vw;
  }
  #map-container {
    width: 90vw;
    height: auto;
  }
}
