html,
body {
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-weight: bold;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

canvas {
  background: radial-gradient(
    circle,
    rgba(64, 65, 68, 1) 0%,
    rgba(17, 17, 18, 1) 100%
  );
}

#side {
  background-color: #212426;
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  height: 100%;
}

#colorBlock {
  background-color: #212426;
  width: 80%;
  padding-top: 10%;
  padding-bottom: 10%;
  height: 12%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

#patternBlock {
  background-color: #212426;
  width: 80%;
  padding-top: 5%;
  height: 12%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

#camo.png {
  background-image: url(camo.png);
}

#cracked.jpg {
  background-image: url(cracked.jpg);
}

#simple.jpg {
  background-image: url(simple.jpg);
}

.color {
  margin-right: 3%;
  margin-bottom: 3%;
  width: 10%;
  height: 53%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  box-shadow: inset -1px 1px 18px 3px rgba(0, 0, 0, 0.75);
  border: solid rgba(157, 157, 157, 0.424) 2px;
}

.pattern {
  width: 20%;
  height: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: inset -1px 1px 18px 3px rgba(0, 0, 0, 0.75);
  border: solid rgba(157, 157, 157, 0.424) 2px;
  margin-bottom: 2%;
}

#patternTitle {
  width: 100%;
  height: 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#patternTitle h3 {
  align-items: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 10px;
  font-size: 1.4em;
}

#midle {
  width: 0.1%;
  height: 100%;
  background-color: #212426;
}

#part {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
  width: 100%;
  height: 50%;
  align-self: flex-start;
  background-color: rgba(19, 19, 54, 0);
}

.parts {
  background-color: rgb(31, 31, 124);
  width: 9000%;
  height: 10%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 1vw;
}

#renderCanvas {
  width: 60%;
  height: 100%;
  touch-action: none;
}

#customLoadingScreenDiv {
  background: radial-gradient(
    circle,
    rgba(64, 65, 68, 1) 0%,
    rgba(17, 17, 18, 1) 100%
  );
  color: white;
  font-size: 50px;
  height: 100vh;
  width: 100vw;
  position: absolute;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.fade {
  animation-name: fade;
  animation-duration: 4s;
}

@keyframes fade {
  10% {
    opacity: 1;
  }
  20% {
    opacity: 0;
  }
}

#loadingPercentages {
  font-size: 1vw;
  text-align: center;
  margin-top: -2.5%;
}

.loadingL {
  width: 20%;
  height: 20%;
}

.loadingLA {
  width: 20%;
  height: 20%;
  animation-name: size;
  animation-duration: 4s;
}

@keyframes size {
  10% {
    width: 20%;
    height: 20%;
  }
  50% {
    width: 1000%;
    height: 1000%;
  }
}

#title {
  position: absolute;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  display: flex;
  margin-left: 5%;
  flex-direction: column;
  height: 8vh;
  width: 20vw;
  justify-content: center;
  align-items: center;
}

#reset {
  position: absolute;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  display: flex;
  margin-left: 5%;
  flex-direction: column;
  height: 8vh;
  width: 10vw;
  justify-content: center;
  align-items: center;
  background-color: #212426;
  border-radius: 5vh;
  color: #00c800;
  top: 80vh;
  left: 42vw;
  border: none;
  font-size: 1.2vw;
  font-weight: bold;
}

#reset:hover {
  background-color: #26292a;
}

#title h1 {
  color: white;
  font-size: 2vw;
}

#title div {
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0% 100%);
  background-color: #00c800;
  width: 30%;
  height: 10%;
  display: flex;
  align-self: flex-start;
  margin-left: 10%;
  margin-bottom: -10%;
}

main {
  width: 100vw;
  height: 90vh;
  display: flex;
  font-size: 1vw;
}

footer {
  width: 100vw;
  z-index: 9000;
  position: relative;
  height: 11vh;
  background-color: #16181a;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.4vw;
}

footer h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 15%;
}

@media only screen and (max-width: 758px) {
  body {
    overflow-y: scroll;
    flex-wrap: wrap;
    flex-direction: row;
  }
  main {
    height: 95vh;
    flex-direction: column;
    font-size: 2vw;
  }
  #renderCanvas {
    width: 100%;
    height: 50%;
  }
  #midle {
    width: 100%;
    height: 5%;
  }
  #part {
    flex-direction: row;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
  }
  .parts {
    width: 8%;
    height: 80%;
    padding-left: 0vw;
    justify-content: center;
  }
  #side {
    width: 100%;
    height: 45%;
    justify-content: space-evenly;
  }
  #side h1 {
    height: 10%;
  }
  #colorBlock {
    padding-top: 1.5%;
    padding-bottom: 1.5%;
    width: 90%;
    height: 30%;
  }
  .color {
    width: 10%;
    height: 28%;
  }
  #patternBlock {
    height: 30%;
    width: 90%;
    display: flex;
    overflow-x: scroll;
    flex-wrap: wrap;
    flex-direction: column;
    overflow-y: unset;
  }
  #patternTitle {
    padding-left: 5%;
    padding-right: 5%;
    width: 90%;
  }
  .pattern {
    height: 80%;
    width: 30%;
    margin-right: 2%;
  }
  #title {
    width: 40vw;
  }
  #reset {
    top: 37vh;
    left: 70vw;
    width: 20%;
    border-radius: 4vw;
    height: 5%;
    font-size: 3vw;
  }
  #title h1 {
    font-size: 5vw;
  }
  #title div {
    background-color: #00c800;
  }
  footer {
    height: 5vh;
    font-size: 2.4vw;
  }
  footer h3 {
    width: 50%;
  }
  #loadingPercentages {
    font-size: 3vw;
    margin-top: -10%;
  }
}

#patternBlock::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 40px;
  background-color: #212426;
}

#patternBlock::-webkit-scrollbar {
  width: 12px;
  background-color: #212426;
}

#patternBlock::-webkit-scrollbar-thumb {
  border-radius: 40px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: rgb(64, 69, 73);
}
