@font-face {
  font-family: Montserrat-Bold;
  src: url(./media/scene.babylon/Montserrat-Bold.otf);
}

@font-face {
  font-family: Montserrat-Medium;
  src: url(./media/scene.babylon/Montserrat-Medium.otf);
}

@font-face {
  font-family: Montserrat-Light;
  src: url(./media/scene.babylon/Montserrat-Light.otf);
}

html,
body {
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  user-select: none;
  font-family: Montserrat-Medium;
}

#renderCanvas {
  position: absolute;
  width: 100%;
  height: 100%;
  touch-action: none;

  /* z-index: 5; need to be commented if you want to use The Inspector/DebugLayer*/
}

.logo {

  height: auto;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 999;
  max-width: 100px;
  width: 100%;
}

.h1 {
  z-index: 6;
  position: absolute;
  top: 50%;
  left: 50%;
  color: white;

}

.is-hidden {
  display: none !important;
  visibility: hidden !important;
}

.label-component {
  font-size: 14px;
  position: absolute;
  background-color: rgba(229, 36, 33, .7);
  color: white;
  box-shadow: 0px 5px 24px 0px rgba(0, 0, 0, 0.33);
  display: block;
  pointer-events: auto;
  user-select: none;
  line-height: 140%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.25);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.904);
  width: 200px;
  padding: 10px;
}

p {
  padding: 0px 10px 0px 10px;
  margin: 5px;
}

h2 {
  padding: 5px;
}

.btn4Text {
  margin: 0px 10px 0px 0px;
}

.coloritem {
  display: flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  align-items: center;
  margin-right: 25px;
  margin-top: 25px;
  border: 3px solid #eee;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  flex-wrap: wrap;
  justify-content: space-between;
  pointer-events: all;
  cursor: pointer;
}

.image-container {
  position: relative;


  display: flex;
  flex-basis: calc(33.333% - 10px);
  margin-bottom: 15px;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: center;
}

.image {
  display: flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  /* margin-right: 25px; */
  margin: 5px;
  /* margin-top: 25px; */
  border: 1px solid #eee;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  justify-content: center;
  pointer-events: all;
  cursor: pointer;
}

.image2 {
  display: flex;
  width: 50px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  /* margin-right: 25px; */
  margin: 5px;
  /* margin-top: 25px; */
  border: 1px solid #eee;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  justify-content: center;
  pointer-events: all;
  cursor: pointer;
}

.image3 {
  display: flex;
  width: 43px;
  height: 50px;
  border-radius: 50%;
  align-items: center;
  /* margin-right: 25px; */
  margin: 5px;
  /* margin-top: 25px; */
  border: 1px solid #eee;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  justify-content: center;
  pointer-events: all;
  cursor: pointer;
}

.segment {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.segment2 {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.active {
  border-radius: 50% !important;
  border: 3px solid #f91818 !important;

}

.active2 {

  border: 3px solid #f91818 !important;

}

.chosen {

  border: 2px solid #e52421;
  border-bottom: none;
  background-color: #e524219d !important;

}
.coloritem{
  position: relative;
  left: 10px;
}
.colorText {
  font-size: 12px;
}
.noteText {
  font-size:10px;
}
.border {
  border: solid 1px white;
}
.inclVat{
  font-size: 12px;
  padding-left: 7px;
}
.global{
  font-size: 12px;
  
}
.colorpanel {
  /*background-color: #000;*/
  display: flex;
  flex-wrap: wrap;
  /* padding: 5px 25px; */
  height: max-content;
  width: max-content;
  max-width: 210px;
  z-index: 2;
  /*border-radius: 10px;*/
  align-content: center;
  justify-content: space-around;
}

.colorpanel2 {
  /*background-color: #000;*/
  display: flex;
  flex-wrap: wrap;
  /* padding: 5px 25px; */
  height: max-content;
  width: max-content;
  max-width: 230px;
  z-index: 2;
  /*border-radius: 10px;*/
  align-content: center;
  justify-content: flex-start;
  flex-direction: column;
}

.priceWrap {
  font-family: Montserrat-Light !important;
  display: flex;
  flex-direction: row;
}

.inverted {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
}

/* .buttons4_anno_close , .handle_anno_close , .QR_anno_close ,
.shifters_anno_close ,.buttons1_anno_close,.buttons2_anno_close,
.buttons2_anno_close,.cover_anno_close{
  content: "×";
  display: block;
  margin: 4px 0 4px 0;
  font-size: 20px;
  text-decoration:none;
  position:absolute;
  top:0;
  right:8px;
  pointer-events:all;
  color: #ffffff;
  cursor: pointer;
} */
.standard-annotation-content>.close-message {
  content: "×";
  display: block;
  margin: 4px 0 4px 0;
  font-size: 32px;
  text-decoration: none;
  position: absolute;
  top: 0;
  right: 8px;
  pointer-events: all;
  color: #ffffff;
  cursor: pointer;
}

.standard-annotation-corner-line-svg {
  height: 30px;
  width: calc(100% + 30px);
  position: absolute;
  pointer-events: none;
  bottom: -30px;
  left: 290px;
}

.loadingLayer {
  width: 100vw;
  height: 100vh;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gifLayer {
  width: 100vw;
  height: 100vh;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
}



.cursor-pointer-important {
  cursor: pointer !important;
}



#bottom-bar {
  display: flex;
  justify-content: center;
  pointer-events: auto;
  /* position: absolute; */
  left: 0;
  right: 0;
  /*bottom: 0;
  height: 66px;
  /* background: #000000; */
  align-items: center;
}

.UILayer {
  position: absolute;
  display: flex;
  left: 90%;
  top: 10%;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  flex-direction: column;
}

.changeParts,
.changeMaterials,
.AR,
.VR {

  padding: 6px;
  margin: 5px;
  cursor: pointer;
  background-color: rgba(240, 255, 255, 0.674);
  border: 2px solid rgb(195, 195, 195);
  border-radius: 10px;
}

.afterClick {
  background-color: rgba(249, 109, 58, 0.674);
  border: 2px solid rgb(88, 83, 83);
}

.parts2Change,
.material2Change {
  background-color: rgba(222, 220, 220, 0.522);
  width: 300px;
  height: 300px;
  padding: 10px;
  position: absolute;
  top: 35%;
  white-space: nowrap;
  border-radius: 4px;
  overflow-x: scroll;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;


}

.parts2Change {
  left: 75%
}

.material2Change {
  left: 75%
}

.parts>img,
.materials>img {
  display: inline-block;
  float: none;
  width: 24.5%;
  background-color: #eee;
  border-radius: 20px;

}

.sub-parts>img,
.sub-materials>img {
  display: inline-block;
  float: none;
  width: 24.5%;
  background-color: #eee;
  border-radius: 20px;

}

/* footer */
.footer {
  position: absolute;
  left: 0;
  bottom: 0;
}

.footer-logo-link {
  position: absolute;
  display: block;
  left: 11px;
  bottom: 16px;
  height: 35px;
  cursor: pointer;
  margin-right: 5px;
}

.footer-logo-link>img {
  display: block;
  width: auto;
  height: 100%;
}

.footer-more-info {
  position: absolute;
  margin: 0;
  padding: 0;
  background: rgb(231, 229, 229);
  width: 155px;
  height: 35px;
  bottom: 16px;
  left: 65px;
  transition: opacity .5s ease-in-out;
}

.footer-more-info span {
  position: absolute;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: normal;
  left: 15px;
  top: 6.5px;
}

.footer-more-info:before {
  content: "";
  position: absolute;
  left: -15px;
  top: 9px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-right: 16px solid rgb(231, 229, 229);
  border-bottom: 8px solid transparent;
}

.footer-more-info a {
  text-decoration: underline;
  font-weight: 900;
  color: #000;
  cursor: pointer;
}

/* toolbox */

.toolbox-cont {
  position: absolute;
  bottom: 30px;
  transform: translate(0, 50%);
  right: 0;
  padding: 8px;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 8px 0px 0px 0px;
  margin-left: 5px;
}

.toolbox-btn {
  display: block;
  box-sizing: border-box;
  float: left;
  margin-right: 19px;
  overflow: hidden;
  width: 40px;
  height: 40px;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.25);
  user-select: none;
}

.toolbox-btn:last-of-type {
  margin: 0 0 0 -4px;
}
.note{
  color: white;

}

@media (max-width: 380px) {
  .toolbox-cont {
    padding: 0px 10px;
    visibility: hidden !important;
  }

  .toolbox-btn {
    margin-right: 10px;
  }
  .note{
    color: white;
    font-size: 12px;
    margin-left: 50px;
    margin-right: 40px;
  }
}

@media (max-width: 340px) {
  .toolbox-cont {
    
    visibility: hidden !important;
  }
  .toolbox-btn:last-of-type {
    margin-right: -4px;
  }
  .note{
    color: white;
    font-size: 12px;
    margin-left: 50px;
    margin-right: 40px;
  }
}

.toolbox-btn img {
  width: 100%;
  height: 100%;
}

/* toolbox menu */
.toolbox-menu {
  position: absolute;
  bottom: 50px;
  right: 4px;
  background: rgba(0, 0, 0, .25);
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: white;
  padding: 9px 20px 9px 18px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 300ms;
}

/* .toolbox-menu {
  position: absolute;
  bottom: 52px;
  right: 0px;
  background: rgba(0, 0, 0, 1.0);
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: white;
  padding: 9px 20px 9px 18px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 300ms;
} */
.toolbox-menu.visible {
  visibility: visible;
  opacity: 1;
}

.toolbox-menu-item {
  padding: 5px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  user-select: none;
  height: 20px;
}

.toolbox-menu-item.radio::before {
  content: " ";
  font-family: monospace;
  width: 21px;
  display: inline-block;
}

.toolbox-menu-item.button {
  background-color: rgba(255, 255, 255, .6);
  color: black;
  border-radius: 4px;
  padding: 2px 4px;
  margin-top: 6px;
}

.toolbox-menu-item.button:hover {
  background-color: rgba(255, 255, 255, 1);

}

.toolbox-menu-item input {
  width: 60px;
  border-radius: 4px;
}

.toolbox-menu-item span {
  width: 66px;
  display: inline-block;
}

.toolbox-menu-item.radio.active::before {
  content: "✓";
}

.backButton {
  height: 4%;
  width: 4%;
  cursor: pointer;
  pointer-events: all;
  position: fixed;
  right: 60px;
  top: 20px;

}

.backBtnImg {
  max-width: 100%;
}

/* .menu-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 100%; 
  background-color: #003057;
  cursor: pointer;
  z-index: 101;} */

/* .menu {
  position: absolute;
  right: 0;
  top: 0;
  background-color: #1c1c1c;
  border-radius: 8px;
  overflow: hidden;
  width: 200px;
  z-index: 100;
  font-size: 14px;
  height: auto; /* Ensures the height is determined by the content  } */

#menu.visible {
  /* transform: translateX(0);
  transition: transform 0.3s ease-in-out;
  height: auto; */
  display: block;
  /* Adjust height dynamically to fit the content */
}

#menu.hidden {
  /* transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  height: auto; */
  display: none;
  /* Adjust height dynamically to fit the content */
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
}

.menu-container {
  display: flex;
  align-items: flex-start; /* Align them to the top */
  justify-content: flex-start; /* Keep the menu-bar to the left */
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
}
/* Existing Styles */
.menu-bar {
  
  width: 20px;
  height: 100px;
  background-color: #e52421;
  border-radius: 5%;
  cursor: pointer;
  animation: pulse 1.5s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  
}

.menu-bar.clicked {
  animation: none;
}

.menu-bar::before {
  content: '';
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid white;
  transition: transform 0.3s ease-in-out;
}

.menu-bar.visible::before {
  transform: rotate(180deg);
}

.menu {
  position: absolute;
  right:18px;
  background-color: #1c1c1c;
  border-radius: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
  max-height: 90vh; /* Adjusted for desktop */
  width: 15vw;
  max-width: 20vw;
  /* z-index: 100; */
  font-size: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute items within the available height */
  transition: width 0.3s ease, max-height 0.3s ease;
}

.menu-item {
  flex-shrink: 0; /* Prevent the items from shrinking */
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px;
  border-bottom: 1px solid #444;
  cursor: pointer;
  pointer-events: all;
  transition: background-color 0.3s;
}

.menu-item img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
}

.menu-item span {
  color: white;
}

.menu-save {
  display: flex;
  background-color: #e52421;
  color: white;
  align-items: center;
  justify-content: flex-start;
  padding: 15px;
  padding-left: 5%;
  width: 100%;
  max-width: 250px; /* Set a max width for larger screens */
  height: 25px;
  border-radius: 3px;
  border-bottom: none;
  cursor: pointer;
  pointer-events: all;
  transition: background-color 0.3s;
  font-family: Montserrat-Bold;
  position: sticky; /* Make sticky */
  bottom: 0; /* Stick to the bottom of the parent */
  z-index: 20; /* Ensure it is on top */
}

.menu-item:hover, .menu-save:hover {
  background-color: #444;
}

.totalPriceDiv {
  display: flex;
  flex-direction: column;
  color: white;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 20px;
  padding: 5px;
  border: 4px solid #f0f0f0;
  background-color: #1c1c1c;
  flex-shrink: 0;
  position: sticky; /* Make sticky */
  bottom: 50px; /* Adjust based on the height of .menu-save */
  z-index: 24; /* Ensure it is behind .menu-save */
}

/* Responsive Styles */

/* Desktop */
@media screen and (min-width: 1024px) {
  .menu {
    width: 16vw; /* Around 1/5 of the screen width */
    max-width: 20vw;
    max-height: 90vh; /* Maximum height for desktop */
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  .menu {
    width: 40vw; /* 1/4 of the device width */
    max-width: 40vw;
    max-height: 100vh; /* Maximum height for mobile */
  }

  .menu-item {
    font-size: 12px;
    padding: 8px;
  }

  .menu-save {
    padding: 7px;
    padding-left: 15px;
  }

  .totalPriceDiv {
    font-size: 14px;
  }
  .note{
    color: white;
    font-size: 12px;
    margin-left: 50px;
    margin-right: 40px;
  }
}
@media (max-width: 600px) {
  .menu {
    width: 50vw; /* Full width on very small screens */
    max-width: 50vw;
    height: auto;
  }

  .menu-item {
    font-size: 12px;
    padding: 6px;
  }

  .menu-save {
    padding: 8px;
    padding-left: 15px;
  }

  .totalPriceDiv {
    font-size: 12px;
  }
}
/* Smaller mobile screens */
@media (max-width: 480px) {
  .menu {
    width: 50vw; /* Full width on very small screens */
    max-width: 50vw;
    height: auto;
  }

  .menu-item {
    font-size: 12px;
    padding: 6px;
  }

  .menu-save {
    padding: 8px;
    padding-left: 15px;
  }

  .totalPriceDiv {
    font-size: 12px;
  }
}

.menu-btn :hover {
  background-color: #c91f1b;
}

.menu-save:hover {
  background-color: #c91f1b;
}

.menu-item:hover {
  background-color: #444;
}

.qr-code-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}
.handGif {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.qrclose-button {
  position: absolute;
  top: 10px;
  /* Adjust as needed */
  right: 10px;
  /* Adjust as needed */
  background-color: #ff0000;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  cursor: pointer;
  pointer-events: all;
}

#qrCode {
  padding:5px;
  margin-top: 30px;
}


.scrollable-content::-webkit-scrollbar {
  width: 12px !important;
  /* Szerokość scroll bara */
}

.scrollable-content::-webkit-scrollbar-thumb {
  background: #e52421 !important;
  /* Kolor scroll bara */
  border-radius: 10px !important;
  /* Zaokrąglenie */
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
  background: #c81d1f !important;
  /* Ciemniejszy odcień na hover */
}

.scrollable-content::-webkit-scrollbar-track {
  background: #f0f0f0 !important;
  /* Tło dla scroll bara */
  border-radius: 10px !important;
  /* Zaokrąglenie */
}

.annoHeading {
  font-size: 13px;
}

.total {
  color: white;
  font-size: 20px;
}

.totalPrice {
  color: white;
  padding: 0;
}

.totalPriceDiv {
  display: flex;
  color: white;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 20px;
  padding: 5px;
  border: 4px solid #f0f0f0;
}

.totalPriceSpan {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mainCurrency {
  color: white;
}

/* For screens smaller than 768px (tablets, small laptops) */

@media (max-width: 600px) {
  .toolbox-cont {
    
    visibility: hidden !important;
  }
  .note{
    color: white;
    font-size: 12px;
    margin-left: 50px;
    
  }
}

@media (max-width: 480px) {
  .toolbox-cont {
    
    visibility: hidden !important;
  }
  

 
  .note{
    color: white;
    font-size: 12px;
    margin-left: 50px;
    
  }
}

