:root { --bg: #363636; }

html,body{
  height:100%;
  margin:0;
  background:var(--bg);
  font-family:Arial, sans-serif;
}

canvas#bgCanvas{
  position:fixed;
  inset:0;
  display:block;
  z-index:0;
}

.content{
  position:relative;
  z-index:1;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  height:100%;
  text-align:center;
}

.center-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #fff;
  background: #080808;
  z-index: 999;
  aspect-ratio: 1 / 1;
  width: min(50vmin, 800px);
  border-radius: 15px;
}

.center-avatar {
  border: 1px solid #fff;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: auto;
  position: relative;
  top: 27%;
  transform: translateY(-50%);
}

.center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  width: 90%;
}

.center-text .name {
  font-weight: bold;
  font-size: 1.5em;
  margin-bottom: 5px;
}

.center-text .subtitle {
  font-weight: normal;
  font-size: 1em;
  line-height: 1.5em;
}

.social-links {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
}

.social-links a img {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .center-box {
    width: 90%;
    max-width: 250px;
    height: auto;
    max-height: 90vh;
    padding: 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

  .center-avatar {
    width: 120px;
    height: 120px;
    margin: 10px auto;
    position: static;
    transform: none;
  }

  .center-text {
    position: static;
    transform: none;
    margin-top: 10px;
  }

  .center-text .name {
    font-size: 1.2em;
  }

  .center-text .subtitle {
    font-size: 0.9em;
  }

  .social-links {
    position: static;
    transform: none;
    margin-top: 15px;
    gap: 20px;
    flex-wrap: wrap;
  }

  .social-links a img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 400px) {
  .center-avatar {
    width: 100px;
    height: 100px;
  }

  .center-text .name {
    font-size: 1em;
  }

  .center-text .subtitle {
    font-size: 0.8em;
  }

  .social-links {
    gap: 15px;
  }

  .social-links a img {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 400px) {
  .center-avatar {
    width: 100px;
    height: 100px;
  }

  .center-text .name {
    font-size: 1em;
  }

  .center-text .subtitle {
    font-size: 0.8em;
  }

  .social-links {
    gap: 15px;
  }

  .social-links a img {
    width: 28px;
    height: 28px;
  }
}
