:root {
  --avatar-width: clamp(200px, 25vw, 500px);
}

/* ---- reset ---- */

body {
  margin: 0;
  font: normal 75% Arial, Helvetica, sans-serif;
  background-color: black;
}

canvas {
  display: block;
  vertical-align: bottom;
}

/* ---- particles.js container ---- */

#particles-js {

  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #000000;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}

/* ---- stats.js ---- */

.logo {
  position: fixed;
  top: 10px;
  left: 0;
  z-index: 100;
  width: clamp(120px, 15vw, 200px);
  padding: 10px;
}

.logo img {
  width: 100%;
  height: auto;
  background: transparent;
}

.js-logo {
  font-size: 1.1em;
}

#stats,
.logo {
  -webkit-user-select: none;
}

#stats {
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}

.logo {
  border-radius: 0 0 3px 3px;
}

#intro {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  transition: all 0.3s ease-in-out;
  width: 90%;
  max-width: 1200px;
}

#intro h2 {
  font-family: 'Quicksand';
  text-transform: uppercase;
  font-size: clamp(24px, 5vw, 84px);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-shadow: 3px 3px 20px #ffffff,
    -2px 1px 30px #ffffff;
}

#intro h3 {
  font-family: 'Poppins';
  text-transform: uppercase;
  font-size: clamp(14px, 2vw, 28px);
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.icon {
  width: 50px;
  height: 50px;
  margin: 5px;
}

.divider {
  width: 100px;
  height: 3px;
  background-color: #71afff;
  margin: 10px auto;
}

.responsive-img {
  max-width: 100%;
  height: auto;
}

.Avatar {
  position: fixed;
  bottom: 0;
  right: 0;
  transform: translateX(15%);
  margin: auto;
  z-index: 9999;
  transition: all 0.3s ease-in-out;
  width: var(--avatar-width);
}

.Avatar img {
  width: 100%;
  height: auto;
  transition: all 0.3s ease-in-out;
}

@media (min-width: 2560px) {
  .Avatar {
    transform: translateX(10%);
  }
  
  #intro {
    max-width: 1800px;
  }
  
  .logo {
    width: clamp(200px, 15vw, 300px);
    padding: 20px;
  }
}

/* Large screens */
@media (min-width: 1920px) {
  .Avatar {
    transform: translateX(12%);
  }
}

/* Regular desktop */
@media (max-width: 1024px) {
  .Avatar {
    transform: translateX(20%);
    right: -75px;
  }
  
  .Avatar img {
    max-width: 300px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .Avatar {
    transform: translateX(25%);
    width: 100%;
    right: -85px;
    bottom: -20px;
  }

  #intro h2 {
    font-size: 32px;
  }

  #intro h3 {
    font-size: 18px;
    white-space: normal;
    padding: 0 20px;
  }

  #intro a {
    font-size: 30px;
  }

  .Avatar img {
    max-width: 250px;
  }

  .logo {
    width: clamp(100px, 12vw, 150px);
    padding: 8px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .Avatar {
    transform: translateX(30%);
    right: -95px;
    bottom: -30px;
  }
  
  .Avatar img {
    max-width: 200px;
  }

  #intro {
    width: 95%;
  }

  #intro h2 {
    font-size: 24px;
  }

  #intro h3 {
    font-size: 14px;
    white-space: normal;
    padding: 0 15px;
  }

  .logo {
    width: clamp(80px, 10vw, 120px);
    padding: 5px;
  }
}
