@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Khula:wght@300;400;600;700;800&display=swap");


* {
  -webkit-tap-highlight-color: transparent;
}




body {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

h1 {
  font-family: "kanit", serif;
  margin: 0px;
  padding: 0px;
}
h3 {
  font-family: "khula", serif;
  font-size: 2.5em;
  margin: 0px;
  padding: 0px;
}
p {
  font-family: "Instrument Sans", serif;
  font-size: 1em;
  margin: 0px;
  padding: 0px;
}
a {
  font-family: "Instrument Sans", serif;
  font-size: 1.3em;
  margin: 0px;
  padding: 0px;
}


#loadscreen{
  height: 100vw;
  background-color: rgb(255, 255, 255);
  position: fixed;
  z-index: 999;
  width: 100%;
  animation: loadscreen 2s forwards;
  animation-delay: 1s;
}

#loadscreen p{
  text-align: center;
  margin-top: 20%;
  font-size: 1.3em;
}

#loadscreen img {
  width: 15%;
  margin-left: 42.5%;
  margin-top: 20%;
  filter: saturate(0);
  filter: brightness(0%);
}
@property --degree {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

#loadscreen #loadimg {
  width: 2%;
  margin-left: 49.2%;
  margin-top: 0%;
  filter: saturate(0) brightness(0%);
  opacity: 1;
      margin-top: 1vw;
  /* start rotation */
  animation: rotateload 500ms linear infinite;
}

@keyframes loadscreen {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes rotateload {
  from {
    --degree: 0deg;
  }
  to {
    --degree: 360deg;
  }
}

#loadscreen #loadimg {
  transform: rotate(var(--degree));
}

@media screen and (max-width:600px) {
  #loadscreen {
    height: 250vw;
  }

  #loadscreen p{
    margin-top: 75%;
    
  }
  #loadscreen img{
    width: 50%;
    margin-left: 25%;
    margin-top: 75%;
  }
  #loadscreen #loadimg{
    width: 5%;
    margin-left: 48%;
    margin-top: 5vw;
  }
}



#topad {
  display: flex;
  width: 90%;
  margin: auto;
  gap: 2em;
  margin-top: 10vw;
  background-image: url("/images/background/backgroundmid.png");
  padding: 3vw;
  border-radius: 2vw;
  box-shadow: 0px 0vw 1.3vw 0.3vw #00000044;
}

#topad div {
  width: 90vw;
}

#topad div img {
  width: 100%;
}


#outervideo{
  
  width: 95%;
  
  margin: auto;
  margin-top: 5em;
}

#outervideo #tufadvideo{
  width: 100%;
  border-radius: 1.3em;
}


#gradientbox{
  
  width: 95%;
  
  margin: auto;
  margin-top: 5em;
}

#gradientbox a {
  position: absolute;
  height: 33vw;
  margin-left: 60%;
  margin-top: 5.5%;
  z-index: 1000;
}

#gradientbox img{
  position: absolute;
  height: 33vw;
  margin-left: 60%;
  margin-top: 5.5%;
  box-shadow: 0em 1em 1em 0.5em rgba(0, 0, 0, 0.664);
}
#gradientbox #gradientimg1{
  margin-left: 3%;
}
#gradientbox #gradientimg2{
  margin-left: 32.5%;
  margin-top: 3%;
  height: 38vw;
}

#gradientbox #gradientimg3{
  margin-left: 65.5%;
}


#gradientbox #gradientvideo{
  width: 100%;
  image-rendering:auto;
  border-radius: 1.3em;
}


#categorytitle {
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 3vw;
  display: flex;
  flex-direction: column;
  width: 50%;
  margin: auto;
  margin-top: 5vw;
}

#categorytitle #top {
  font-family: "kanit";
  font-weight: 1000;
  font-size: 2em;
  margin-bottom: 0px;
  padding: 0px;
  height: 6vw;
}
#categorytitle #bottom {
  padding: 0px;
  margin-top: 0px;
  font-family: "Pinyon Script", cursive;
  font-size: 2em;
  font-weight: 700;
  color: #0f4b94;
}

#categories {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 60%;
  margin: auto;

  border-bottom: 1px solid rgba(0, 0, 0, 0);
  padding-bottom: 5vw;
  border-radius: 2vw;
}

#categories div {
  width: 40%;
  margin: auto;
  margin-top: 5em;
  text-align: center;
  opacity: 0.45;
  border: 1px solid rgba(0, 0, 0, 0.226);
  padding: 1vw;
  border-radius: 1vw;
  transition-duration: 500ms;
  transition-property: opacity;
}

#categories div:hover {
  opacity: 1;
}

#categories div a {
  text-decoration: none;
  color: black;
}

#categories div a p {
  margin-top: 0em;
  font-size: 1vw;
  text-decoration: none;
  color: black;
  text-align: center;
}

#categories div a img {
  width: 100%;
  display: block;
}

#trendingtitle {
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  width: 50%;
  margin: auto;
  margin-top: 10vw;
}

#trendingtitle #top {
  font-family: "kanit";
  font-weight: 1000;
  margin-bottom: 0px;
  padding: 0px;
}
#trendingtitle #bottom {
  padding: 0px;
  margin-top: 0px;
  font-family: "Pinyon Script", cursive;
  font-weight: 700;
  color: #940f0f;
}

#trendingbox {
  width: 100%;
  margin: auto;
  display: flex;
  gap: 5%;
  margin-bottom: 10vw;
  margin-top: 2vw;
  padding-bottom: 2vw;
}

#laptop {
  margin: auto;
  padding-bottom: 0.05vw;
  margin-bottom: 5vw;
  padding-top: 0.1vw;
  width: 80%;
}

#laptoptitle {
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-top: 1vw;
}

#laptoptitle {
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  width: 50%;
  margin: auto;
  margin-top: 1vw;
}

#laptoptitle #top {
  font-family: "kanit";
  font-weight: 1000;
  margin-bottom: 0px;
  padding: 0px;
}
#laptoptitle #bottom {
  padding: 0px;
  margin-top: 0px;
  font-family: "Pinyon Script", cursive;
  font-weight: 700;
  color: #14ad1b;
}

#laptopbox {
  width: 100%;
  margin: auto;
  display: flex;
  gap: 5%;
  margin-bottom: 2vw;
  margin-top: 2vw;
  padding-bottom: 2vw;
}

#printer {
  margin: auto;
  padding-bottom: 0.05vw;
  margin-bottom: 5vw;
  padding-top: 0.1vw;
  width: 80%;
}

#printertitle {
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-top: 1vw;
}

#printertitle {
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  width: 50%;
  margin: auto;
  margin-top: 1vw;
}

#printertitle #top {
  font-family: "kanit";
  font-weight: 1000;
  margin-bottom: 0px;
  padding: 0px;
}
#printertitle #bottom {
  padding: 0px;
  margin-top: 0px;
  font-family: "Pinyon Script", cursive;
  font-weight: 700;
  color: #f3d73a;
}

#printerbox {
  width: 100%;
  margin: auto;
  display: flex;
  gap: 5%;
  margin-bottom: 2vw;
  margin-top: 2vw;
  padding-bottom: 2vw;
}

#monitor {
  margin: auto;
  padding-bottom: 0.05vw;
  margin-bottom: 5vw;
  padding-top: 0.1vw;
  width: 80%;
}

#monitortitle {
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-top: 1vw;
}

#monitortitle {
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  width: 50%;
  margin: auto;
  margin-top: 1vw;
}

#monitortitle #top {
  font-family: "kanit";
  font-weight: 1000;
  margin-bottom: 0px;
  padding: 0px;
}
#monitortitle #bottom {
  padding: 0px;
  margin-top: 0px;
  font-family: "Pinyon Script", cursive;
  font-weight: 700;
  color: #a93af3;
}

#monitorbox {
  width: 100%;
  margin: auto;
  display: flex;
  gap: 5%;
  margin-bottom: 2vw;
  margin-top: 2vw;
  padding-bottom: 2vw;
}

#trendingbox {
  width: 80%;
}


#brotherad {
  background-color: rgb(230, 230, 230);
  height: 42vw;
}


#brotherad a img {
  position: absolute;
}


.producttitle .titletop {
  font-size: 6vw;
  height: 6vw;
}
.producttitle .titlebottom {
  font-size: 5vw;
}

#product {
  width: 50em;
  padding-bottom: 1vw;
  background-color: white;
  margin-bottom: 0px;
  margin: auto;
  box-shadow: 0px 1em 2em 0.1em rgba(121, 121, 121, 0.192);
  transition-duration: 700ms;
  transition-property: box-shadow;
}


#product:hover{
  cursor: pointer;
  box-shadow: 0px 1em 2em 0.1em rgba(0, 0, 0, 0.329);
}



#product #top {
  width: 50%;
  background-color: rgb(24, 23, 23);
  color: rgba(255, 255, 255, 0.993);
  padding: 0.5vw;
  margin-bottom: 1vw;
  text-align: center;
  font-weight: 1000;
}

#product #price {
  text-indent: 0.5vw;
  font-size: 1vw;
}

#product #img {
  border: 0px;
}

#product #img img {
  width: 100%;
  height: 15vw;
  display: block;
  object-fit: contain;
  border: 0px;
  /* background-color: red; */
}

#product #description {
  height: 10vw;
  overflow: hidden;
} 

#product #description h5 {
  font-size: 1.5vw;
  letter-spacing: 0.1vw;
  width: 75%;
  margin: auto;
  text-align: center;
  margin-bottom: 0em;
  line-height: 100%;
  margin-top: 1vw;
  height: 1.5vw;
  overflow: hidden;
}
#product #description h6 {
  font-size: 0.7vw;
  text-align: center;
  color: rgba(41, 39, 39, 0.671);
  width: 50%;
  margin: auto;
}
#product #description #border {
  width: 20%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.247);
  margin: auto;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

#product #description h4 {
  font-family: "kanit";
  font-size: 0.5vw;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1em;
  margin-bottom: 0px;
  color: rgb(129, 129, 129);
}

#product a {
  text-decoration: none;
  color: black;
  font-size: 0.7em;
  display: block;
}

#product #button {
  width: 50%;
  margin: auto;
  border: 1px solid rgba(243, 5, 5, 0.925);
  text-align: center;
  padding: 0.5vw;
  margin-top: 1.5vw;
  border-radius: 1em;
  background-color: rgb(238, 5, 5);
  color: rgb(255, 255, 255);
  transition-duration: 150ms;
  transition-property: background-color, color;
  letter-spacing: 0.3vw;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.5vw;
}

#product #button:hover {
  background-color: rgb(255, 255, 255);
  color: rgb(21, 21, 21);
  cursor: pointer;
  font-weight: 1000;
}

#product #button p {
  font-size: 0.7em;
  font-weight: 1000;
}

#viewmore {
  color: rgb(0, 0, 0);
  text-decoration: none;
  text-align: center;
  display: block;
  font-size: 1vw;
  opacity: 0.5;
  margin: auto;
  margin-top: 2em;
  margin-bottom: 2em;
}

#viewmore:hover {
  opacity: 1;
}

#middlead {
  background-color: rgb(42, 122, 226);
  background-image: url("../images/background/formart.jpg");
  background-size: cover;
  display: flex;
  margin-top: 0px;
  color: white;
  margin-bottom: 5vw;
}

#middlead #left {
  padding: 4vw;
  padding-left: 10vw;
}

#middlead #left h1 {
  font-size: 4.5vw;
  height: 4.5vw;
}
#middlead #left h6 {
  font-size: 2.5vw;
  text-transform: uppercase;
}

#middlead #left #description {
  width: 75%;
}

#middlead #right {
  width: 25%;
  padding: 3vw;
}

#middlead #right img {
  width: 100%;
}

@media only screen and (max-width: 900px) {
  #categorytitle {
    margin-bottom: 0px;
  }

  #categorytitle #top {
    font-size: 3em;
    height: 10vw;
  }
  #categorytitle #bottom {
    font-size: 3em;
  }

  #categories {
    margin-top: 2vw;
    width: 90%;
  }

  #categories div {
    width: 60%;
    margin-top: 5vw;
  }

  #categories div a p {
    font-size: 0.5em;
    font-weight: 1000;
    
  }
}


@media only screen and (max-width: 600px) {
  .producttitle .titletop {
    font-size: 2.5em;
    height: 1em;
  }

  .producttitle .titlebottom {
    font-size: 2.5em;
    margin-bottom: 1em;
  }

  #trendingbox {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    overflow-x: scroll;
    padding-bottom: 0px;
    scrollbar-width: thin;
    scrollbar-color: transparent;
  }
  #laptopbox {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    overflow-x: scroll;
    padding-bottom: 0px;
    scrollbar-width: thin;
    scrollbar-color: transparent;
    width: 100%;
  }
  #monitorbox {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    overflow: scroll;
    padding-bottom: 0px;
    scrollbar-width: thin;
    scrollbar-color: transparent;
    width: 100%;
  }
  #printerbox {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    overflow-x: scroll;
    padding-bottom: 0px;
    scrollbar-width: thin;
    scrollbar-color: transparent;
    width: 100%;
  }
  #product {
    margin: 0.2em;
    padding: 0.2em;
    margin-bottom: 2em;
    width: 20em;
  }
  #product #description {
  height: 8em;
  overflow: hidden;
  } 


  #product #top {
    width: 90%;
    background-color: black;
    color: white;
    padding: 0.5vw;
    margin: auto;
    margin-bottom: 1em;
    text-align: center;
  }

  #product #price {
    text-indent: 1em;
    font-size: 1em;
  }

  #product #img img {
    height: 10em;
  }

  #product #description #maindescription {
    height: 10em;
    overflow: hidden;
  }
  #product #description h4 {
    font-family: "kanit";
    font-size: 0.5em;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1em;
    margin-bottom: 0px;
  }
  #product #description h5 {
    font-size: 1.5em;
    letter-spacing: 0.1vw;
    width: 75%;
    margin: auto;
    text-align: center;
    margin-bottom: 0em;
    line-height: 100%;
    margin-top: 1vw;
    overflow: hidden;
    height: 2em;
  }

  #product #description h6 {
    font-size: 0.8em;
    text-align: center;
    color: rgb(37, 37, 37);
    width: 90%;
    margin: auto;
  }

  #product #description #border {
    width: 50%;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.192);
    margin: auto;

    margin-bottom: 1em;
  }

  #product a {
    text-decoration: none;
    color: black;
    font-size: 0.7em;
    padding: 1em;
    display: block;
    margin-top: 2em;
  }

  #product #button {
    width: 50%;
    margin: auto;
    border: 1px solid rgba(240, 6, 6, 0.945);
    text-align: center;
    padding: 0.5vw;
    margin-top: 1.5vw;
    border-radius: 0.6em;
    background-color: rgb(240, 6, 6);
    color: rgb(255, 255, 255);
    transition-duration: 150ms;
    transition-property: background-color, color;
    letter-spacing: 0.3vw;
    text-transform: uppercase;
    padding: 0.5em;
    font-weight: 1000;
    font-size: 3vw;
  }

  #product #button:hover {
    background-color: rgb(255, 255, 255);
    color: rgb(21, 21, 21);
    cursor: pointer;
  }

  #product #button p {
    font-size: 1em;
    font-weight: 1000;
  }
  #viewmore {
    color: rgb(0, 0, 0);
    text-decoration: none;
    text-align: center;
    display: block;
    font-size: 1em;
    opacity: 0.9;
    margin: auto;
    margin-top: 2em;
    margin-bottom: 2em;
    border-bottom:1px solid black;
    width: 30%;
    padding: 1%;
  }

}
