@import url("https://fonts.googleapis.com/css?family=Cardo:400i|Rubik:400,700&display=swap");
:root {
  --d: 700ms;
  --e: cubic-bezier(0.19, 1, 0.22, 1);
  --font-sans: "Rubik", sans-serif;
  --font-serif: "Cardo", serif;
}

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-family: "Josefin Sans", sans-serif;
  border: none;
  margin: 0 auto;
  max-width: 1280px;
  background-color: black;
}

.section {
  height: 10px;
  display: inline-flex;
  width: 100%;
  z-index: 10;
  margin: 0;
  border: none;
  text-align: center;
  background: black;
}

.logo {
  margin: 0;
  padding: 0;
  margin-top: 12px;
  margin-left: 30px;
}
.menuBtn,
.mobile-category,
.primary-banner,
.addition-space {
  display: none;
}
/*edit on category box as a whole*/
.category {
  padding: 15px 10px;
  margin-left: 10px;
  width: 100%;
}

/*edit on each specific boxes category unordered list form*/
ul {
  color: white;
  list-style: none;
  display: inline-block;
  width: 100%;
}

.category .product-list .fas {
  display: none;
}
/*To put the catogery in the center - vertically [padding-top]
Extended the each catogery border [width]*/
.list1,
.product-list {
  background-color: black;
  color: #ffb62f;
  border-radius: 10px;
  position: relative;
  float: left;
  width: 155px;
  height: 40px;
  padding: 13.5px !important;
  -webkit-padding-before: 15px !important;
  font-weight: bolder;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 999;
}

.category.borderXwidth a:before,
.category.borderXwidth a:after {
  position: absolute;
  opacity: 0;
  width: 0%;
  height: 2px;
  content: "";
  background: rgb(236, 255, 129);
  transition: all 0.3s;
}
.category.borderXwidth a:before {
  left: 0px;
  top: 0px;
}

.category.borderXwidth a:after {
  right: 0px;
  bottom: 0px;
}

.category.borderXwidth a:hover:before,
.category.borderXwidth a:hover:after {
  opacity: 1;
  width: 100%;
}
/*Product *drop down menu* initiated here*/
/*to avoid overlapping of the drop menu and product box
~ put margin-top for drop menu box*/
ul.drop-menu-1 {
  margin-top: 6%;
}
ul.drop-menu-2 {
  display: none;
  position: absolute;
}
.icons-section {
  display: none;
}
/*To centered the category [padding-top]*/
ul.drop-menu-1 li {
  padding-top: 9.5%;
  border: 1px solid black;
  border-radius: 5px;
  display: none;
  height: 50px;
  width: 100%;
  background-color: lightgray;
  color: black;
}

ul.drop-menu-1 li:hover {
  background-color: cyan;
  transition: background-color 0.2s ease-out;
}

/*edit on long categories[to center accordingly]*/
#pneu-category,
#ind-category {
  padding-top: 3%;
}
/*give a 3D feel-no outcome displayed-affect on the drop down menu*/
li:hover > ul.drop-menu-1 {
  perspective: 1000px;
}
/*default hover*/
li:hover > ul.drop-menu-1 li {
  display: block;
  opacity: 0;
}
/*additional perk on same categories: animation*/
li:hover > ul.drop-menu-1 li:nth-child(1) {
  animation: menu1 300ms ease-in-out;
  animation-fill-mode: forwards;
  animation-delay: -100ms;
}

li:hover > ul.drop-menu-1 li:nth-child(2) {
  animation: menu1 500ms ease-in-out;
  animation-fill-mode: forwards;
  animation-delay: -50ms;
}

li:hover > ul.drop-menu-1 li:nth-child(3) {
  animation: menu1 700ms ease-in-out;
  animation-fill-mode: forwards;
}

li:hover > ul.drop-menu-1 li:nth-child(4) {
  animation: menu1 900ms ease-in-out;
  animation-fill-mode: forwards;
  animation-delay: 50ms;
}

@keyframes menu1 {
  0% {
    opacity: 0;
    transform: rotateY(-90deg) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) translateY(0px);
  }
}

/*search box animation initiated*/
.content .search {
  margin-top: 0.2%;
  height: 37px;
  width: 200px;
  padding: 0px;
  padding-left: 15px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
}
.search .input {
  font-family: "Lexend Deca", sans-serif;
  width: 80%;
  padding: 15px 10px;
  border: none;
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
  font-weight: bold;
  color: rgb(36, 35, 35);
  font-size: 13.4px;
}

.searchbtn {
  background: black;
  width: 20%;
  border-bottom-right-radius: 5px;
  border-top-right-radius: 5px;
  position: relative;
  cursor: pointer;
}
.searchbtn img {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 18px;
  height: 20px;
}
.product-content1 {
  display: none;
}
.product-content {
  grid-gap: 1rem;
  padding: 10px 0px;
  max-width: 1250px;
  margin: 0 auto;
  margin-top: 50px;
  font-family: var(--font-sans);
}
.product-1,
.product-2 {
  display: flex;
}
.box {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 1rem;
  width: 100%;
  height: 250px;
  text-align: center;
  color: white;
  background-color: black;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1),
    0 4px 4px rgba(0, 0, 0, 0.1), 0 8px 8px rgba(0, 0, 0, 0.1),
    0 16px 16px rgba(0, 0, 0, 0.1);
}
.box:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  background-size: cover;
  background-position: 0 0;
  transition: transform calc(var(--d) * 1.5) var(--e);
  pointer-events: none;
}
.box:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  pointer-events: none;
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 10%,
    rgba(0, 0, 0, 0.009) 11.7%,
    rgba(0, 0, 0, 0.034) 22.1%,
    rgba(0, 0, 0, 0.072) 31.2%,
    rgba(0, 0, 0, 0.123) 39.4%,
    rgba(0, 0, 0, 0.182) 46.6%,
    rgba(0, 0, 0, 0.249) 53.1%,
    rgba(0, 0, 0, 0.32) 58.9%,
    rgba(0, 0, 0, 0.394) 64.3%,
    rgba(0, 0, 0, 0.468) 69.3%,
    rgba(0, 0, 0, 0.54) 74.1%,
    rgba(0, 0, 0, 0.607) 78.8%,
    rgba(0, 0, 0, 0.668) 83.6%,
    rgba(0, 0, 0, 0.721) 88.7%,
    rgba(0, 0, 0, 0.762) 94.1%,
    rgba(0, 0, 0, 0.79) 100%
  );
  transform: translateY(-50%);
  transition: transform calc(var(--d) * 2) var(--e);
}
.box:nth-child(1):before {
  background-image: url("picture/pu-roller-cat.png");
  background-size: 230px;
  background-repeat: no-repeat;
  background-position-y: 20px;
}
.box:nth-child(2):before {
  background-image: url("picture/pu-commercial-cat.png");
  background-size: 230px;
  background-repeat: no-repeat;
  background-position-y: 10px;
  background-position-x: 10px;
}
.box:nth-child(3):before {
  background-image: url("picture/pu-bush-hmpg.png");
  background-size: 230px;
  background-repeat: no-repeat;
  background-position-y: 20px;
}
.box:nth-child(4):before {
  background-image: url("picture/pu-block-sheet-cat.png");
  background-size: 230px;
  background-repeat: no-repeat;
  background-position-y: 20px;
}
.box:nth-child(5):before {
  background-image: url("picture/pu-ring-hmpg.png");
  background-size: 230px;
  background-repeat: no-repeat;
  background-position-y: 20px;
}
.box1:nth-child(1):before {
  background-image: url("picture/pu-coupling-cat.png");
}
.box1:nth-child(2):before {
  background-image: url("picture/pu-wheel-cat.png");
  background-size: 200px;
  background-position-x: 20px;
}
.box1:nth-child(3):before {
  background-image: url("picture/pu-tube-rod-main.png");
}
.box1:nth-child(4):before {
  background-image: url("picture/pu-clamper-holding-cat.png");
  background-size: 230px;
  background-repeat: no-repeat;
  background-position-y: 20px;
}
.box1:nth-child(5):before {
  background-image: url("picture/pu-customized-cat.png");
  background-size: 230px;
  background-repeat: no-repeat;
  background-position-y: 20px;
}
.notes {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 250px;
  padding: 1px;
  transition: transform var(--d) var(--e);
  z-index: 1;
}
.notes > * + * {
  margin-top: 1rem;
}

.title {
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.2;
}
.box2 .title {
  margin-top: -24px;
}
.copy {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.btn {
  cursor: pointer;
  margin-top: 1.5rem;
  padding: 0px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  color: white;
  background-color: black;
  padding: 10px;
  border: 1px solid white;
  transition: text-shadow 2s ease-in;
  transition: color 1s ease-in;
}
.btn:hover {
  color: #fdf47a;
  text-shadow: 0 0 10px #fff, 0 0 20px #fae7b3, 0 0 30px #fdf4a1,
    0 0 40px #f7eb82, 0 0 50px #faec6a, 0 0 60px #fce942, 0 0 70px #fff23e;
}

@media (hover: hover) and (min-width: 600px) {
  .box:after {
    transform: translateY(0);
  }

  .notes {
    transform: translateY(calc(100% - 4.5rem));
  }
  .notes > *:not(.title) {
    opacity: 0;
    transform: translateY(1rem);
    transition: transform var(--d) var(--e), opacity var(--d) var(--e);
  }

  .box:hover,
  .box:focus-within {
    align-items: center;
  }
  .box:hover:before,
  .box:focus-within:before {
    transform: translateY(-4%);
  }

  .box:hover:after,
  .box:focus-within:after {
    transform: translateY(-50%);
  }
  .box:hover .notes,
  .box:focus-within .notes {
    transform: translateY(0);
  }
  .box:hover .notes > *:not(.title),
  .box:focus-within .notes > *:not(.title) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--d) / 8);
  }

  .box:focus-within:before,
  .box:focus-within:after,
  .box:focus-within .notes,
  .box:focus-within .notes > *:not(.title) {
    transition-duration: 0s;
  }
}

@media screen and (max-width: 1210px) {
  .menuBtn {
    border-radius: 10px;
    background: rgb(16, 158, 159);
    background: linear-gradient(
      0deg,
      rgba(16, 158, 159, 1) 0%,
      rgba(255, 232, 15, 1) 100%
    );
    display: flex !important;
    height: 80px;
    width: 90px;
    position: fixed;
    left: 30px;
    top: 70px;
    z-index: 999;
  }
  .menuBtn > span {
    border-radius: 10px;
    background-color: rgb(20, 20, 20);
    height: 10px;
    width: 70px;
    position: absolute;
    left: 30%;
    top: 49%;
    margin: -3px 0px 0px -17px;
    transition: height 100ms;
  }
  .menuBtn > span:after,
  .menuBtn > span:before {
    content: "";
    background-color: rgb(0, 0, 0);
    border-radius: 2px;
    height: 10px;
    width: 70px;
    position: absolute;
    left: 50%;
    margin: -10px 0px;
    margin-left: -35px;
    transition: all 200ms;
  }
  .menuBtn > span:after {
    border-radius: 10px;
    top: -10px;
  }
  .menuBtn > span:before {
    border-radius: 10px;
    bottom: -10px;
  }
  .menuBtn.act > span {
    height: 0;
    z-index: 999;
  }
  .menuBtn.act > span:after,
  .menuBtn.act > span:before {
    background-color: #000000;
    top: 9px;
    left: 36px;
  }
  .menuBtn.act > span:after {
    transform: rotate(45deg);
  }
  .menuBtn.act > span:before {
    transform: rotate(-45deg);
  }
  .category {
    display: none;
  }
  .mobile-category {
    top: 0px;
    opacity: 0;
    background-color: black;
    position: fixed;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    z-index: 998;
    transition: all 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(0);
  }
  .mobile-category.act {
    opacity: 1;
    transform: scale(1);
  }
  .mobile-category.act ul li {
    opacity: 1;
    transform: translateX(0);
  }
  .list1,
  .product-list {
    font-weight: bold;
    border: none;
    margin: 35px 0px;
    font-size: 40px;
    width: 100%;
  }
  .mobile-category .amb-small {
    margin-top: 40px;
    margin-left: 15px;
  }
  .mobile-category .amb-small img {
    width: 210px;
    height: 210px;
    border-radius: 10%;
  }
  #search-area {
    margin-top: 310px;
    width: 100%;
    position: absolute;
  }
  #search-area form {
    margin: 0 auto;
    height: 70px;
    width: 550px;
  }
  .search .input {
    width: 82%;
    font-size: 35px;
  }
  .searchbtn img {
    height: 45px;
  }
  .logo {
    display: none;
  }
  .mobile-category .home-cat {
    margin-top: 200px;
  }
  .mobile-category li {
    transition: all 150ms 410ms;
    opacity: 0;
  }
  .mobile-category li:nth-child(odd) {
    transform: translateX(30%);
  }
  .mobile-category li:nth-child(even) {
    transform: translateX(-30%);
  }

  .primary-banner {
    display: block;
    font-family: "Ubuntu", sans-serif;
    display: flex;
    justify-content: center;
    margin-left: -1px;
  }
  .primary-banner img {
    margin: 0px 40px;
    margin-top: 29px;
    width: 160px;
    height: 145px;
  }
  .primary-banner h1 {
    font-size: 52px;
    color: rgb(255, 240, 154);
    margin: 10px 0px;
    margin-top: 50px;
    text-shadow: 0 0 1em currentColor;
    animation: slide-in 0.8s cubic-bezier(0.5, 0, 0.5, 1) both;
    animation-delay: calc(100ms * var(--word-index));
  }
  @keyframes slide-in {
    from {
      transform: translateY(20px) scale(0.9);
      opacity: 0;
    }
  }
  .product-content {
    display: none;
  }
  .product-content1 {
    margin-top: 20px;
    display: block;
  }
  .box0 {
    padding: 0px 10px;
    position: absolute;
    overflow: hidden;
    height: 450px;
    text-align: center;
    color: white;
    background-color: black;
  }
  .box0 img {
    width: 440px;
  }
  .box0 h1 {
    position: absolute;
    margin-top: -10px;
    z-index: 1;
    font-size: 40px;
    background-color: #000000;
    border: 2px solid #ffffff;
    border-radius: 30px;
    box-shadow: #ffffff 4px 4px 0 0;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    padding: 10px 18px;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    left: 0;
    margin-left: 20px;
    margin-top: 310px;
  }
  .box-1 h1 {
    margin-top: 330px;
  }
  .box-3 h1 {
    margin-top: 350px;
  }
  .box-4 h1 {
    margin-top: 330px;
  }
  .box-6 h1 {
    margin-top: 285px;
  }
  .box-7 img {
    width: 400px;
  }
  .box-7 h1 {
    margin-top: 330px;
  }
  .box-8 h1 {
    margin-top: 330px;
  }
  .box-1,
  .box-3,
  .box-5,
  .box-7,
  .box-9 {
    margin-left: 10px;
  }
  .box-2,
  .box-4,
  .box-6,
  .box-8,
  .box-10 {
    margin-left: 510px;
  }
  .box-3,
  .box-4 {
    margin-top: 480px;
  }
  .box-5,
  .box-6 {
    margin-top: 980px;
  }
  .box-7,
  .box-8 {
    margin-top: 1450px;
  }
  .box-9,
  .box-10 {
    margin-top: 1950px;
  }
  .box0 h1:hover {
    background-color: rgb(163, 139, 4);
  }

  .box0 h1:active {
    box-shadow: #422800 2px 2px 0 0;
    transform: translate(2px, 2px);
  }
  .addition-space {
    display: block;
    margin-top: 2400px;
    height: 80px;
  }
}
