/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter/Inter-Medium.ttf") format("truetype");
  font-weight: normal;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter/Inter-Bold.ttf") format("truetype");
  font-weight: bold;
}

:root {
  --main-offsetX: -45px;
  --main-offsetY: 145px;
  --sidebar-width: 0px;
  --bg-qrContainer-img: url("../images/UIImages/AR.png");
}

body {
  background-image: url("../images/bg/bg_branch_v3/forall.png");
}

.rc-anchor-invisible {
  display: none !important;
}

/* .detailbuttons button {
  position: absolute;
  margin: 5px;
} */

.icontextcontainer {
  pointer-events: none;
  position: fixed;
}

#icontext {
  color: #003d8f;
  font-weight: bold;
  font-size: 16px;
  line-height: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  height: 104px;
  width: 234px;
  padding: 15px 15px 15px 15px;
  /*background: linear-gradient(180deg, rgba(0, 61, 143, 0) 0%, #003D8F 51.04%, rgba(0, 61, 143, 0) 100%);*/
  background: -webkit-gradient(
    linear,
    left bottom,
    left top,
    from(rgba(0, 0, 0, 0)),
    color-stop(33.33%, #ffffff),
    color-stop(66.66%, #ffffff),
    to(rgba(0, 0, 0, 0))
  );
  background: -o-linear-gradient(
    bottom,
    rgba(0, 0, 0, 0) 0%,
    #ffffff 33.33%,
    #ffffff 66.66%,
    rgba(0, 0, 0, 0) 100%
  );
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0%,
    #ffffff 33.33%,
    #ffffff 66.66%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0.8;
  display: none;
}

#branchname {
  position: absolute;
  font-family: Poppins;
  font-weight: bold;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  width: 85%;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  word-break: break-word;
}

.grouptextcontainer {
  pointer-events: none;
  position: fixed;
  z-index: 3;
}

#groupicontext {
  font-family: Poppins;
  color: white;
  position: absolute;
  top: 50%;
  left: 20%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 284px;
  height: 48px;
  display: none;
  vertical-align: central;
  z-index: 3;
  /*  */
  background: #1d1d1dd9 0% 0% no-repeat padding-box;
  border: 2px solid #0756ff;
  border-radius: 29px;
}

#groupname {
  font-family: Poppins;
  position: absolute;
  font-weight: normal;
  font-size: 20px;
  line-height: 20px;
  left: 10px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  width: 236px;
  top: 50%;
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

#closeicon {
  position: absolute;
  line-height: 50px;
  right: 25px;
  pointer-events: auto;
  cursor: pointer;
}

/* png model container begin */
.modelContainer {
  position: absolute;
  position: absolute;
  top: var(--navbar-height);
  left: 50%;
  transform: translate(-50%, 0);

  height: calc(100dvh - var(--navbar-height));
  width: calc(100% - 376px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;

  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;

  overflow: hidden;
}

.modelContainer.hidden {
  display: none;
}

.modelContainer .modelWrapper {
  width: 1200px;
  min-height: 650px;
  height: 100%;

  background-color: transparent;

  position: relative;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;

  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;

  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-line-pack: center;
  align-content: center;

  z-index: 0;
}
/* test start */

.grouptextcontainer.trainStyle {
  z-index: 1;
  pointer-events: initial;
}
.modelContainer .modelWrapper.trainStyle #productsWrapper {
  position: absolute;
  z-index: 3;
  /* background-color: aqua; */
}
.modelContainer .modelWrapper.trainStyle {
  min-height: auto;
  height: auto;
  overflow: visible;
}
.modelContainer .modelWrapper.trainStyle img.hide {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  height: auto;
  opacity: 0;
}
.modelContainer .modelWrapper.trainStyle li.hide {
  display: none;
}
.modelContainer .products.now {
  -webkit-transition: -webkit-transform 1ms ease-in-out;
  transition: -webkit-transform 1ms ease-in-out;
  -o-transition: transform 1ms ease-in-out;
  transition: transform 1ms ease-in-out;
  transition: transform 1ms ease-in-out, -webkit-transform 1ms ease-in-out;
}
.modelContainer .products.hidden.now {
  /* -webkit-transform: scaleX(0) scaleY(0);
  -ms-transform: scaleX(0) scaleY(0);
  transform: scaleX(0) scaleY(0);
  opacity: 0;
  transition: all 0; */
  opacity: 0;
}
.modelContainer .products.right {
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}
/* test end */
@media screen and (max-height: 700px) {
  .modelContainer .modelWrapper {
    margin-top: 0px;
  }
}

.modelContainer img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  z-index: -1;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.modelContainer .products {
  padding: 0;
  padding-top: 50px;
  padding-bottom: 10px;
  -o-object-fit: contain;
  object-fit: contain;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;

  -ms-flex-line-pack: end;
  align-content: flex-end;

  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;

  max-width: 700px;
  /* min-height: 300px; */
  /* test */
  min-height: 150px;

  position: relative;
  left: var(--main-offsetX);
  top: var(--main-offsetY);

  gap: 20px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-wrap: wrap-reverse;
  flex-wrap: wrap-reverse;

  -webkit-transform: scaleX(1) scaleY(1);
  -ms-transform: scaleX(1) scaleY(1);
  transform: scaleX(1) scaleY(1);

  -webkit-transition: -webkit-transform 700ms ease-in-out;
  transition: -webkit-transform 700ms ease-in-out;
  -o-transition: transform 700ms ease-in-out;
  transition: transform 700ms ease-in-out;
  transition: transform 700ms ease-in-out, -webkit-transform 700ms ease-in-out;

  -webkit-transform-origin: top center;
  -ms-transform-origin: top center;
  transform-origin: top center;
}

.products.sm {
  max-width: 450px;
  /* min-height: 230px; */
}
.products.lg {
  max-width: 800px;
  /* min-height: 230px; */
}
.products.elg {
  max-width: 900px;
  /* min-height: 230px; */
}

.products.hidden {
  -webkit-transform: scaleX(0) scaleY(0);
  -ms-transform: scaleX(0) scaleY(0);
  transform: scaleX(0) scaleY(0);
}
.modelContainer .products li {
  cursor: pointer;
  width: 90px;
  height: 90px;
  margin-top: -10px;
  border-radius: 50%;
  overflow: hidden;
}
/* center button */

#productBtn {
  background: #003d8f;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  z-index: 1;

  position: relative;
  left: var(--main-offsetX);
  top: var(--main-offsetY);

  padding: 8px;
  border: 1px solid white;
  cursor: pointer;

  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

  -ms-flex-line-pack: center;
  align-content: center;
}
#productBtn img {
  width: 17px;
  height: 17px;
}
/* different btn position */
#productBtn.branch4 {
  left: calc(50% - 68px);
  top: calc(50dvh - 55px + 110px);
}
#productBtn.branch6 {
  left: calc(50% - 17px);
  top: calc(50dvh - 40px + 110px);
}
#productBtn.branch7 {
  left: calc(50% - 49px);
  top: calc(50dvh + 58px + 110px);
}
#productBtn.branch8 {
  left: calc(50% - 56px);
  top: calc(50dvh - 45px + 110px);
}
#productBtn.branch9 {
  left: calc(50% - 51px);
  top: calc(50dvh - 59px + 110px);
}
#productBtn.branch10 {
  left: calc(50% + 208px);
  top: calc(50dvh - 106px + 110px);
}
#productBtn.branch11 {
  left: calc(50% - 23px);
  top: calc(50dvh - 102px + 110px);
}
#productBtn.branch12 {
  left: calc(50% - 10px);
  top: calc(50dvh - 59px + 110px);
}

#productBtn.hidden {
  display: none;
}
#productBtn .closeBtn {
  display: none;
}
#productBtn.switch {
  background: white;
  color: #003d8f;
}
#productBtn.switch .closeBtn {
  display: block;
}
#productBtn.switch .showBtn {
  display: none;
}

#icontext2 {
  color: #003d8f;
  font-weight: bold;
  font-size: 16px;
  line-height: 20px;
  position: absolute;
  top: 50%;
  left: 50%;

  height: 104px;
  width: 234px;
  padding: 15px 15px 15px 15px;

  opacity: 0.8;
  display: none;

  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);

  background: -webkit-gradient(
    linear,
    left bottom,
    left top,
    from(rgba(0, 0, 0, 0)),
    color-stop(33.33%, #ffffff),
    color-stop(66.66%, #ffffff),
    to(rgba(0, 0, 0, 0))
  );

  background: -o-linear-gradient(
    bottom,
    rgba(0, 0, 0, 0) 0%,
    #ffffff 33.33%,
    #ffffff 66.66%,
    rgba(0, 0, 0, 0) 100%
  );

  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0%,
    #ffffff 33.33%,
    #ffffff 66.66%,
    rgba(0, 0, 0, 0) 100%
  );

  z-index: 999;
}
/* png model container end */

#cavasContainer {
  position: absolute;
  right: 0;
  top: var(--navbar-height);
  left: var(--sidebar-width);
  bottom: 0;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* pIcon start */
.pIcon {
  position: absolute;
  top: 10px;
  left: 1px;
  width: 35px;
  height: 35px;
  background-color: rgba(253, 253, 253, 0.81);
  /* border: 1px solid #f7f7f7; */
  color: black;
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;

  display: -webkit-box;

  display: -ms-flexbox;

  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-line-pack: center;
  align-content: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;

  opacity: 1;
  -webkit-transition: opacity 300ms ease-in-out;
  -o-transition: opacity 300ms ease-in-out;
  transition: opacity 300ms ease-in-out;
}
.pIcon.active {
  background-color: rgba(88, 124, 174, 0.99);
  color: white;
}
.pIcon.hide {
  opacity: 0;
}
/* pIcon end */

.product_tooltip .trigger {
  width: 19px;
  height: 19px;
  position: fixed;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid rgba(16, 16, 16, 0.79);
}

.product_tooltip .content {
  display: inline-block;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  position: fixed;
  background: 0% 0% no-repeat padding-box padding-box rgba(16, 16, 16, 0.79);
  color: white;
  padding: 1em;
  border-radius: 10px;
  width: fit-content;
  font-size: 14px;
  font-weight: 400;
  /* transition: all 150ms ease-in-out; */
}

/* QR Code start */
#qrContainer {
  position: absolute;
  background: var(--bg-qrContainer-img) 50% 50% no-repeat;
  background-size: contain;
  height: 300px;
  width: 170px;
  text-align: center;
}
#qrcode img {
  width: 55%;
  margin-left: auto;
  margin-right: auto;
}
/* QR Code end */
