@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  box-sizing: border-box;
  src: local('Open Sans'), local('OpenSans'), url('openSans.html') format('woff');
}

html {
  height: 100%;
  width: 100%;
}

body {
  margin: 0;
  background-color: white;
  /* background-image: url('../images/bg.png'); */
  background-attachment: fixed;
  background-position: center;
  background-size: contain;

  font-size: 12pt;
  font-family: 'Open Sans', sans-serif;
  overflow: hidden;
  height: 100%;
} 

button {
  cursor: pointer;
  font-size: 12pt;
  padding: 12px;
}

select {
  font-size: 12pt;
  padding: 12px;
  cursor: pointer;
}

hr {
  margin-top: 12px;
  margin-bottom: 12px
}

a {
  text-decoration: none!important;
}

.app {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.banner {
  background-color: #01afec;
  height: 96px;
  padding: 12px;
  color: white;  
}

.helpMenu {
  float: right;
  font-variant: small-caps;
}

.helpMenu a {
  font-weight: bold;
  font-size: 12pt;
  color: #eee;
}

.helpMenu a:hover {
  color: white;
}

.content {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
}

.view3D {
  height: calc(100vh - 80px) !important;
  width: 50%;
  /* height: 100%;
  width: 100%; */
}
#view3DCanvas {
  display: none;
}
#MirrARVTOWidget {
  background-color: #eee;
  height: calc(100vh - 80px) !important;
  width: 100%;
}

#importModelNotice {
  text-align: center;
  line-height: 1.5em;
  margin: 3em;
  color: gray;
  font-style: italic;
}
#controls {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin: 12px;
  display: none;
}
.buttons button{
  width: 150px;
  margin-right: 12px;
}
#inputFileImportGLTF {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

.materialSelector {  
}

#materialEditor {
  margin-top: 12px;
}

/* BEGIN DAT.GUI TWEAK */
.close-button {
  display: none;
}
.dg {
  font-size: 12pt!important;
}
/* END DAT.GUI TWEAK */

.product-container{
  width: 100% !important;
  height: calc(100vh - 80px) !important;
  cursor: pointer;
}

.product-card-container{
  width: 100% !important;
  height: calc(100vh - 80px) !important;
  padding-bottom: 50px;
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  background-color: #f8f9fa; /* Light gray background for better visibility */
  padding: 20px 0; /* Adjust padding as needed */
}

.product-card-div {
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  height: fit-content !important;
}

.product-card {
  width: 85% !important;
  border: 2px solid #633194 !important;
  border-radius: 8px !important;
  box-shadow: 0 14px 28px #00000040, 0 10px 10px #00000038 !important;
}

.active-product-card {
  border: 2px solid #ff0087 !important;
}

.product-mob-card-container {
  display: none !important;
}

.img-container {
  width: 100px;
  height: 50px;
  object-fit: contain;
  margin: 10px;
}

.color-scroll-container {
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 5px;
}

.color-scroll-container::-webkit-scrollbar {
  display: none;
}

#size-variants {
  background-color: #00000080;
  color: white;
  border-radius: 10px;
  gap: 10px;
  width: fit-content;
  max-width: 75%;
  position: relative;
}

#variants-desktop {
  display: block;
}

@media (max-width: 576px) {
  .product-container {
    height: calc(100vh - 178px) !important;
  }

  .view3D, #MirrARVTOWidget {
    height: calc(100vh - 178px) !important;
  }

  .product-card-container {
    display: none !important;
  }

  .product-card {
    width: 100% !important;
    /* height: 150px !important; */
  }

  .product-card-div {
    text-align: center !important;
    display: block !important;
    margin: 5px 10px;
  }

  .product-mob-card-container {
    display: flex !important;
    overflow-x: auto;
    height: 100%;
  }

  .footer {
    font-size: 12px;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: #f8f9fa; /* Light gray background for better visibility */
    padding: 5px 0; /* Adjust padding as needed */
  }

  .footer > img {
    width: 75px;
  }

  .product-mob-card-container .product-card .card-title {
    font-size: 14px;
  }

  .product-mob-card-container .card .card-title {
    font-size: 14px;
  }

  #variants-desktop {
    display: none !important;
  }

  @media screen and (max-width: 767px) {
    .product-card .card-title {
      font-size: 14px;
      margin-bottom: 4px;
      /* Ensure text doesn't overflow */
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .product-card .card-text {
      font-size: 12px;
      margin-bottom: 0;
      /* Ensure text doesn't overflow */
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  #variants-desktop {
    display: none !important;
  }

  /* For even smaller screens */
  @media screen and (max-width: 375px) {
    .product-card .card-title {
      font-size: 12px;
    }

    .product-card .card-text {
      font-size: 12px;
    }

    #variants-desktop {
      display: none !important;
    }
  }
}

@media (max-width: 991.98px) {
  .product-container {
    height: calc(100vh - 250px) !important;
  }

  .view3D, #MirrARVTOWidget {
    height: calc(100vh - 250px) !important;
  }

  .product-card-container {
    display: none !important;
  }

  .product-card {
    width: 100% !important;
    /* height: 150px !important; */
  }

  .product-card-div {
    text-align: center !important;
    display: block !important;
    margin: 5px 10px;
  }

  .product-mob-card-container {
    display: flex !important;
    overflow-x: auto;
    height: 100%;
  }

  .product-card .card-title {
    font-size: 14px;
    margin-bottom: 4px;
    /* Ensure text doesn't overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-card .card-text {
    font-size: 12px;
    margin-bottom: 0;
    /* Ensure text doesn't overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .footer {
    font-size: 12px;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: #f8f9fa; /* Light gray background for better visibility */
    padding: 5px 0; /* Adjust padding as needed */
  }

  .footer > img {
    width: 75px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .product-container {
    height: calc(100vh - 80px) !important;
  }

  .view3D, #MirrARVTOWidget {
    height: calc(100vh - 80px) !important;
  }
  .product-card-img {
    padding: 3px !important;
    align-self: center !important;
    width: 100px !important;
    height: 100px !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  .variants {
    bottom: 0 !important;
  }
}
@media (min-width: 1200px) {
  .product-card-img {
    padding: 3px !important;
    align-self: center !important;
    width: auto !important;
    height: 160px !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  .variants {
    bottom: 0 !important;
  }
}

.variant-scroll-container {
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 5px;
}

.variant-scroll-container::-webkit-scrollbar {
  display: none;
}

.variants {
  background-color: #00000080;
  color: white;
  border-radius: 10px;
  gap: 10px;
  width: fit-content;
  max-width: 75%;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  bottom: 100px;
  z-index: 1000;
}

/* Ensure the parent has relative positioning */
.col-lg-8 {
  position: relative;
}

/* Adjust for mobile view */
@media (max-width: 991.98px) {
  .variants {
    bottom: 150px;
    width: fit-content;
  }

  #variants-desktop {
    display: none !important;
  }
}

.variant-value {
  height: 34px;
  line-height: 34px;
  width: 34px;
  border-radius: 20px;
  margin: 5px;
  background-color: #fff;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.variant-value:hover {
  transform: scale(1.1);
}

.variant-active {
  border: 2px solid #ff0087;
  line-height: 42px; /* Adjusted to account for border */
}