/* Balloon tooltip (CSS-only) */
:root {
  --balloon-border-radius: 2px;
  --balloon-color: rgba(16, 16, 16, .95);
  --balloon-text-color: #fff;
  --balloon-font-size: 12px;
  --balloon-move: 4px;
}

[aria-label][data-balloon-pos] {
  position: relative;
  cursor: pointer;
}

[aria-label][data-balloon-pos]::after {
  opacity: 0;
  pointer-events: none;
  transition: all .18s ease-out .18s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-shadow: none;
  font-size: var(--balloon-font-size);
  background: var(--balloon-color);
  color: var(--balloon-text-color);
  border-radius: var(--balloon-border-radius);
  content: attr(aria-label);
  padding: .5em 1em;
  position: absolute;
  white-space: nowrap;
  z-index: 10;
}

[aria-label][data-balloon-pos]::before {
  width: 0;
  height: 0;
  border: 5px solid transparent;
  opacity: 0;
  pointer-events: none;
  transition: all .18s ease-out .18s;
  content: "";
  position: absolute;
  z-index: 10;
}

[aria-label][data-balloon-pos]:hover::before,
[aria-label][data-balloon-pos]:hover::after {
  opacity: 1;
  pointer-events: none;
}

[aria-label][data-balloon-pos="down"]::before,
[aria-label][data-balloon-pos="down"]::after {
  top: 100%;
  transform: translateY(calc(var(--balloon-move) * -1));
}

[aria-label][data-balloon-pos="down"]::after {
  margin-top: 10px;
  left: 50%;
  transform: translate(-50%, calc(var(--balloon-move) * -1));
}

[aria-label][data-balloon-pos="down"]::before {
  border-bottom-color: var(--balloon-color);
  left: 50%;
  transform: translate(-50%, calc(var(--balloon-move) * -1));
}

[aria-label][data-balloon-pos="down"]:hover::after,
[aria-label][data-balloon-pos="down"]:hover::before {
  transform: translate(-50%, 0);
}

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  background-color: #edf1f8;
  font-family: "Hind Vadodara", sans-serif;
}

.wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 500px;
  margin-bottom: 20vh;
}

/* Section 1: Avatar + Text */
.section-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.avatar img {
  width: 100px;
  border-radius: 50%;
  border: .5px solid #e2e2e2;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

.text {
  margin-top: 10px;
  text-align: center;
}

.name {
  line-height: 1;
  font-size: 22px;
  margin-bottom: 10px;
}

.description {
  color: #999;
}

/* Section 2: Links */
.section-2 {
  position: relative;
  padding-top: 17px;
}

.section-2::before {
  content: " ";
  width: calc(100% + 30px);
  height: 0;
  left: -15px;
  top: 0;
  position: absolute;
  border-top: 1px solid #ccc;
}

.links {
  display: flex;
  justify-content: center;
}

.links > div:not(:last-child) {
  margin-right: 15px;
}

.links a {
  text-decoration: none;
  color: #999;
  width: 30px;
  text-align: center;
  display: inline-block;
  opacity: .8;
}

.links a svg {
  height: 25px;
}

.links a:hover {
  opacity: 1;
}

/* Icon brand colors */
.links div:nth-child(1) a { color: #6a5acd; }
.links div:nth-child(2) a { color: #febe85; }
.links div:nth-child(3) a { color: #24292f; }
.links div:nth-child(4) a { color: #e1306c; }
.links div:nth-child(5) a { color: #586069; }
