@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-family: 'Gabarito', sans-serif;
}

body {
  height: 100vh;
  /* font-family: 'Noto Sans TC', sans-serif !important; */
}


.backdrop {
  /* position: relative; */
  background-color: rgb(232, 232, 232);
  opacity: 0.8;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.loader {
  height: 20px;
  width: 250px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 100;
}

.loader--dot {
  animation-name: loader;
  animation-timing-function: ease-in-out;
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
  height: 30px;
  width: 30px;
  border-radius: 100%;
  background-color: black;
  position: absolute;
  border: 2px solid white;
}

.loader--dot:first-child {
  background-color: #8cc759;
  animation-delay: 0.5s;
}

.loader--dot:nth-child(2) {
  background-color: #8c6daf;
  animation-delay: 0.2s;
  margin-left: 50px;
}

.loader--dot:nth-child(3) {
  background-color: #ef5d74;
  animation-delay: 0.3s;
  margin-left: 100px;
}

.loader--dot:nth-child(4) {
  background-color: #f9a74b;
  animation-delay: 0.1s;
  margin-left: 150px;
}

.loader--dot:nth-child(5) {
  background-color: #60beeb;
  animation-delay: 0.3s;
  margin-left: 200px;
}

/* .loader--dot:nth-child(6) {
  background-color: #fbef5a;
  animation-delay: 0s;
  margin-left: 250px;
} */

.loader--text {
  position: absolute;
  top: 200%;
  left: 0;
  right: 0;
  width: 4rem;
  margin: auto;
}

.loader--text:after {
  content: "Loading";
  font-weight: bold;
  animation-name: loading-text;
  animation-duration: 3s;
  animation-iteration-count: infinite;
}

@keyframes loader {
  15% {
    /* transform: translateX(0); */
    transform: translate(0,-50px);
    
  }

  45% {
    /* transform: translateX(230px); */
    transform: translate(0,0);

  }

  65% {
    /* transform: translateX(230px); */
    transform: translate(0,-50px);

  }

  95% {
    /* transform: translateX(0); */
    transform: translate(0,0);
  
  }
}

@keyframes loading-text {
  0% {
    content: "Loading";
  }

  25% {
    content: "Loading.";
  }

  50% {
    content: "Loading..";
  }

  75% {
    content: "Loading...";
  }
}

.wrapper {
  width: 90% !important;
}


.nav li a {
  color: black;
}

navbar ul li.nav-item .active a {
  color: white;
}

.nav-item :hover {
  background-color: #949494 !important;
  border-radius: 5px;
  color: #fff;
}

.navWrapper {
  padding: 0 15px;
}

.nav-tabs>li>a {
  /* adjust padding for height*/
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: smaller;
}

/* index */
#ballList {
  padding: 20px 10px 0 10px;
  /* pointer-events: none; */

}

.box {
  display: inline-block;
  /* text-align: center; */
  pointer-events: none;
  margin-bottom: 100px;
}

.imgWrapper {
  display: inline-block;
  /* background-color: black; */
  width: 60px;
  height: 60px;
  text-align: center;
  margin-right: 10px;
  margin-bottom: 10px;
  position: relative;
}

/* Vending machine specific wrapper */
.imgWrapper.vending-wrapper {
  width: 140px;
  height: 160px;
  margin-right: 20px;
  margin-bottom: 30px;
}

#ballList .box .imgWrapper .fa-circle-check {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  /* z-index: 1; */
  /* top: -0.5px; */
  right: 5px;
}

#ballList .box .imgWrapper .thumb {
  pointer-events: auto;
  /* background-color:aqua; */
  width: 50px;
  height: 50px;
  margin-top: 5px;
  /* margin-bottom: 10px; */
  /* transition: all 1s ease-in-out 0.5s; */
  /* animation-duration: 1s;
  animation-fill-mode: forwards; */
}

/* Vending machine specific thumb size */
#ballList .box .imgWrapper .thumb[src*="machines"] {
  width: 120px;
  height: 120px;
  margin-top: 20px;
  margin-bottom: 40px;
  margin-left: 10px;
  margin-right: 10px;
}


#ballList .box .imgWrapper .thumb:hover {
  /* margin:0 30px 100px 30px; */
  /* transform: scale(2); */
  /* animation-name: bounce; */
  /* animation-timing-function: ease; */
  /* width:80px;
  height:80px; */
  transform-origin: center;
  filter: none;
  -webkit-filter: blur(0px);
  -moz-filter: blur(0px);
  -ms-filter: blur(0px);
  transition-duration: 0.5s;
  transform: scale(1.6);
  /* height: 80px; */
  /* width: 80px; */
  /* z-index: 1; */
  margin-top: 15px;
  margin-bottom: 25px;
  /* filter: none; */

  -webkit-filter: drop-shadow(6px 6px 3px rgba(0, 0, 0, 0.7));
  filter: drop-shadow(6px 6px 3px rgba(0, 0, 0, 0.7));

  filter: none;
  -webkit-filter: blur(0px);
  -moz-filter: blur(0px);
  -ms-filter: blur(0px);
}

/* Vending machine specific hover effect */
#ballList .box .imgWrapper .thumb[src*="machines"]:hover {
  transform: scale(1.2);
  margin-top: 30px;
  margin-bottom: 60px;
  margin-left: 15px;
  margin-right: 15px;
  z-index: 10;
}

@media (pointer:coarse) {
  a:hover {
    color: inherit;
  }
}


@keyframes bounce {

  100% {
    filter: none;
    -webkit-filter: blur(0px);
    -moz-filter: blur(0px);
    -ms-filter: blur(0px);
    /* filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='0'); */
    transform: scale(1.6);
    /* z-index: 100; */
    margin-top: 15px;
    margin-bottom: 25px;
  }
}


.fullset {
  width: 100%;
  height: 100%;
}

/* Vending machine modal image - same height as balls */
.fullset[src*="machines"] {
  width: auto !important;
  height: 458px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
  object-fit: contain !important;
}

/* Force override any other styles */
#modalBall .fullset[src*="machines"] {
  width: auto !important;
  height: 458px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
  object-fit: contain !important;
}



.product-title {
  font-size: 2em;
  font-weight: 800;
}

.product-name {
  font-size: 1.2em;
  font-weight: 500;
}

.product-size {
  font-size: 1em;
  font-weight: 400;
}

/* inquiry */
.cardwrap {
  position: relative;
}

.cardwrap>.cardclose {
  background-color: #fff;
  border-radius: 50%;
  color: rgb(247, 88, 88) !important;
  opacity: 1 !important;
  position: absolute;
  z-index: 1;
  top: -10px;
  right: 0px;
}

.cardwrap>.cardclose :hover {
  color: rgb(233, 0, 0) !important;
}

.cart {
  position: relative;
}

.cart>.badge {
  font-size: 8px;
  position: absolute;
  z-index: 1;
  /* top: -0.5px; */
  right: 8px;
}


/* inqury.php */
.empty {
  /* The magic centering code */
  margin: 100px 0 0 0;
  position: absolute;
  top: 200px; /* Set to 200px as requested */
  bottom: 0;
  /* Aligns Vertically - Remove for Horizontal Only */
  left: 0;
  right: 0;
  /* Aligns Horizontally - Remove for Vertical Only  */

  /* Prevent div from overflowing main window */
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}



.warn {
  font-size: small;
}


@media only screen and (max-width: 600px) {

  .imgWrapper {
    display: inline-block;
    /* background-color: black; */
    width: 50px;
    height: 50px;
    text-align: center;
    margin-right: 10px;
    margin-bottom: 10px;
    position: relative;
  }

  .inquiryBtn{
    width: 100%;
  }
  .product-title {
    font-size: 1.3em;
    font-weight: 800;
  }

  .product-name {
    font-size: 1em;
    font-weight: 500;
  }

  .product-size {
    font-size: 1em;
    font-weight: 400;
  }

}

/* order.php */

.read{
  font-size: medium;
  color: black !important;
  border: 0 !important;
  background: transparent !important;
}

/* Modal close button positioning */
#modalBall .modal-header .close {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 10px 15px;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 0;
  font-size: 24px;
  line-height: 1;
}

#modalBall .modal-header .close:hover {
  background: rgba(0, 0, 0, 1);
  color: white;
}

#modalBall .modal-header {
  position: relative;
  padding-right: 50px;
}
