@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap');

*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Code Pro';
  color: rgb(255, 255, 255);
  background: rgb(29, 29, 29);
  overflow: hidden;
  -webkit-user-select: none; /* Chrome, Safari, and Opera */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard syntax */
}

#back {
  display: none;
}

.switch {
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(51, 51, 51, 0.4);
  margin-left: 100px;
  transition: all 0.3s ease-in-out;
  text-align: center;
  line-height: 50px;
  color: #fff;
  cursor: pointer; 
}

.switch:hover {
  transform: scale(1.1);
  background-color: red;
  cursor: pointer; 
}

ul {
  margin-top: 40px;
  list-style-type: none;
}

li a {
  color: #fff;
}

#back {
  margin-top: -100px;
}

.center {
  text-align: center;
}

#section-home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-zone h1 {
  font-size: 2rem;
  line-height: 45px;
  letter-spacing: -3px;
  position: relative;
}

.text-zone h1::before {
  content: '<h1>';
  position: absolute;
  top: -50px;
  font-size: 0.6rem;
  color: #666565;
  letter-spacing: 3px;
}

.text-zone h1::after {
  content: '</h1>';
  position: absolute;
  bottom: -50px;
  right: 0px;
  font-size: 0.6rem;
  color: #666565;
  letter-spacing: 3px;
}

.text-zone h2::before {
  content: '<h2>';
  position: absolute;
  top: -20px;
  font-size: 0.6rem;
  color: #666565;
  letter-spacing: 3px;
}

.text-zone h2::after {
  content: '</h2>';
  position: absolute;
  bottom: -20px;
  font-size: 0.6rem;
  color: #666565;
  letter-spacing: 3px;
}

.text-zone img {
  width: 35px;
  height: 50px;
}

.text-zone .gray-text {
  margin-top: 30px;
  color: #a2a2a3;
  letter-spacing: 3px;
  font-size: 14px;
  position: relative;
}

.socials {
  margin-left: -5px;
  margin-top: 25px;
}

.socials a {
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(51, 51, 51, 0.4);
  margin-right: 10px;
  transition: all 0.3s ease-in-out;
  text-align: center;
  line-height: 50px;
  color: #fff;
}

.socials a:hover {
  transform: scale(1.1);
  background-color: red;
}

.tooltip {
  display: none;
  position: absolute;
  bottom: 120%;
  left: 50%;
  width: 190px;
  font-size: 10px;
  transform: translateX(-50%);
  padding: 5px;
  background-color: rgba(34, 34, 34, 0.3);
  color: #fff;
  border-radius: 5px;
}

.socials a:hover .tooltip {
  display: block;
}


@media screen and (min-width: 1050px) {
  .text-zone h1 {
    font-size: 4.3rem;
    line-height: 85px;
    letter-spacing: -6px;
  }

  .text-zone .gray-text {
    font-size: 1rem;
  }
}

@media screen and (max-width: 600px) {
  .text-zone h1 {
    font-size: 0.8rem;
    line-height: 32px;
    letter-spacing: 4px;
  }

  .text-zone .gray-text {
    font-size: 0.6rem;
  }

  .text-zone h1::before {
    top: -20px;
  }

  .text-zone h1::after {
    bottom: -2px;
  }

  .switch {
    position: fixed;
    bottom: 15px;
    margin-left: 0px;
    display: inline-block;
  }
}


/* Effect */

#app {
  overflow: hidden;
  touch-action: pan-up;
}

#app canvas {
  display: block;
  position: absolute;
  z-index: -1;
  top: 0;
}

@keyframes dance {
  0% {
    transform: translate(200px, 200px);
    transform: translate(-20%, -20%) scale(1);
  }

  20% {
    transform: translate(-100px, -100px);
    transform: translate(-20%, -20%) scale(1.5);
  }

  40% {
    transform: translate(100px, -100px);
    transform: translate(-20%, -20%) scale(1);
  }

  60% {
    transform: translate(-100px, 100px);
    transform: translate(-20%, -20%) scale(1.5);
  }

  80% {
    transform: translate(100px, 100px);
    transform: translate(-20%, -20%) scale(1);
  }

  100% {
    transform: translate(-200px, 200px);
    transform: translate(-20%, -20%) scale(1.5);
  }
}