

h2, h3, h4 {
  margin: 0;
  /* line-height: 1; */
  margin-bottom: 1;
}

h2{
  font-size: 3rem;
}
h3{
  font-size: 1.5rem;
  margin-bottom: 10px;
}
h4 {
  font-size: .8rem;
}
p{
  font-size: .6rem;
  font-weight: lighter;
}

.loader{
  position: fixed;
  z-index: 100;
  background-color: var(--loader_screen);
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
}

.loader-text{
  border: 0 solid transparent;
  border-radius: 50%;
  width: 100%;
  height: 150px;
  position: absolute;
  top: 50vh;
  text-align: center;
  font-size: 18px;
  color: var(--text);
}

.loop{
  border: 0 solid transparent;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  position: absolute;
  top: calc(50vh - 75px);
  left: calc(50vw - 85px);
  text-align: center;
  align-items: center;
}
.loop::before, .loop::after{
  content: '';
  position: absolute;
  border: 1em solid var(--text);
  border-radius: 50%;
  width: inherit;
  height: inherit;
  top: 0;
  left: 0;
  animation: loop 2s linear infinite;
  opacity: 0;
}
.loop::before{
  animation-delay: .5s;
}

@keyframes loop {
  0%{
    transform: scale(0);
    opacity: 0;
  }
  40%{
    opacity: 1;
  }
  100%{
    transform: scale(1);
    opacity: 0;
  }
}


.about-me .project{
  position: relative;
}
button{
  border-width: 0;
  background-color: var(--button);
  padding: .8rem 1.5rem;
  border-radius: 0.5rem ;
  color: whitesmoke;
  font-weight: bold;
  font-size: .6rem;
  cursor: pointer;
  position: relative;
}

img{
  height: 24px;
  border-radius: 100%;
  vertical-align: middle;
  align-self: center;
}

.webgl {
  height: 100vh;
  position: fixed;
  transform-origin: top right;
  left: 0%;
  /* transform: translateY(5vh) translateX(5%) scale(1); */
  /* border-radius: 50px;  */
  /* background-color: rgb(120, 173, 243); */
  transition: transform 3s, opacity 1.2s;
  /* filter: blur(2px); */
  z-index: 5;
}

.webgl2 {
  height: 100vh;
  position: fixed;
  transform-origin: top right;
  left: 0%;
  /* transform: translateY(5vh) translateX(5%) scale(1); */
  /* border-radius: 50px;  */
  /* background-color: rgb(120, 173, 243); */
  /* background-color: rgb(44, 84, 136); */
  transition: transform 3s, opacity 1.2s;
  /* filter: blur(2px); */
  z-index: 5;
}



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

  body, html{
    overflow: hidden;
  margin: 0%;
  }

  .container{
    position: fixed;
    transform: scale(0.7);
    transform-origin: center left;
    top: 0vh;
    left: 0%;
    margin-left: 5%;
    z-index: 5;
  }
  h3{
    width: 80vw;
  }

  .about-me, .project{
    max-width: 60vw;
    bottom: 0vh;
  }

  .webgl{
    overflow: hidden;
    position: fixed;
    transform-origin: center;
    transform: scale(1);
    display: block;
    width: 100%; /* Use 100% of the parent container's width */
    height: 100vh; 
    left: 0;
    top: 0%;
    z-index: 1;
  }
  .webgl2{
    display: block;
    width: 100%; /* Use 100% of the parent container's width */
    height: 100vh; 
    overflow: hidden;
    position: fixed;
    transform-origin: center;
    transform: scale(1);
    left: 0;
    top: 0%;
    z-index: 0;
  }

}
