:root {
  --red: #e66767;
  --blue: #00a6ff;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Ubuntu", sans-serif;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  min-height: 100vh;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card {
  width: 400px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, #004266 0%, #580066 100%) padding-box,
    linear-gradient(180deg, #00a6ff 0%, #de00ff 100%) border-box;
  padding: 10px;
  border: 5px solid transparent;
  border-radius: 15px;
  display: inline-block;
}

.container {
  border-radius: 10px;
  background-color: rgba(20, 20, 20, 0.5);
}

.image {
  display: inline-block;
  padding: 3px;
  background: radial-gradient(#00a6ff 0%, #de00ff 100%);
  margin: auto;
  border-radius: 50%;
  background-size: 200% 200%;
  animation: animated-gradient 2s linear infinite;
}

@keyframes animated-gradient {
  25% {
    background-position: left bottom;
  }

  50% {
    background-position: right bottom;
  }

  75% {
    background-position: right top;
  }

  100% {
    background-position: left top;
  }
}

.card-header {
  padding: 40px 40px;
}

.card-footer {
  padding: 40px 10px;
}

.image img {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.name {
  color: #f2f2f2;
  font-size: 28px;
  font-weight: 600;
  margin: 10px 0;
}

.desc {
  font-size: 18px;
  color: var(--blue);
}

.sm {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0px 0px 0px;
}

.sm a {
  color: #f2f2f2;
  width: 45px;
  font-size: 22px;
  transition: .3s linear;
}

.sm a:hover {
  color: var(--blue);
}


@media screen and (max-width: 767px) {
  .horizontal-buttons {
    display: grid;
    width: 100%;
    grid-template-rows: 1fr 1fr;
    column-gap: 16px;
  }
}

@media screen and (min-width: 768px) {
  .horizontal-buttons {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }
}

.button {
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-around;
}

.contact-btn {
  display: flex;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 6px;
  margin-top: 16px;
  transition: .2s linear;
  justify-content: center;
  align-items: center;

  font-weight: bold;
  flex-wrap: wrap;
}

.contact-btn:hover {
  background: var(--blue);
  color: #f2f2f2;
  transform: scale(1.05);
}

.contact-btn:active {
  transform: scale(1);
}

.panels {
  display: grid;
  grid-template-rows: 1fr 1fr;
  row-gap: 10px;
}

.panel-row {
  display: flex;
  align-items: center;
}

.panel {
  flex: 1;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  padding: 5px;
  margin-left: 5px;
  margin-right: 5px;
}

.panel span {
  display: block;
  color: white;
  font-size: 24px;
}

.line {
  height: 1px;
  width: auto;
  margin-left: 5%;
  margin-right: 5%;
  background: rgba(255, 255, 255, 0.5);
}

[tooltip] {
  position: relative;
}

[tooltip]::before,
[tooltip]::after {
  text-transform: none;
  font-size: .9em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  position: absolute;
  display: none;
  opacity: 0;
}

[tooltip]::before {
  content: '';
  border: 5px solid transparent;
  z-index: 1001;
}

[tooltip]::after {
  content: attr(tooltip);

  font-family: Helvetica, sans-serif;
  text-align: center;

  min-width: 3em;
  max-width: 21em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1ch 1.5ch;
  border-radius: .3ch;
  box-shadow: 0 1em 2em -.5em rgba(0, 0, 0, 0.35);
  background: rgb(20, 20, 20);
  color: #ffffff;
  z-index: 1000;
}

[tooltip]:hover::before,
[tooltip]:hover::after {
  display: block;
}

[tooltip='']::before,
[tooltip='']::after {
  display: none !important;
}

[tooltip]:not([flow])::before,
[tooltip][flow^="up"]::before {
  bottom: 100%;
  border-bottom-width: 0;
  border-top-color: #333;
}

[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::after {
  bottom: calc(100% + 5px);
}

[tooltip]:not([flow])::before,
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::before,
[tooltip][flow^="up"]::after {
  left: 50%;
  transform: translate(-50%, -.5em);
}

[tooltip][flow^="down"]::before {
  top: 100%;
  border-top-width: 0;
  border-bottom-color: #333;
}

[tooltip][flow^="down"]::after {
  top: calc(100% + 5px);
}

[tooltip][flow^="down"]::before,
[tooltip][flow^="down"]::after {
  left: 50%;
  transform: translate(-50%, .5em);
}

[tooltip][flow^="left"]::before {
  top: 50%;
  border-right-width: 0;
  border-left-color: #333;
  left: calc(0em - 5px);
  transform: translate(-.5em, -50%);
}

[tooltip][flow^="left"]::after {
  top: 50%;
  right: calc(100% + 5px);
  transform: translate(-.5em, -50%);
}

[tooltip][flow^="right"]::before {
  top: 50%;
  border-left-width: 0;
  border-right-color: #333;
  right: calc(0em - 5px);
  transform: translate(.5em, -50%);
}

[tooltip][flow^="right"]::after {
  top: 50%;
  left: calc(100% + 5px);
  transform: translate(.5em, -50%);
}

@keyframes tooltips-vert {
  to {
    opacity: .9;
    transform: translate(-50%, 0);
  }
}

@keyframes tooltips-horz {
  to {
    opacity: .9;
    transform: translate(0, -50%);
  }
}

[tooltip]:not([flow]):hover::before,
[tooltip]:not([flow]):hover::after,
[tooltip][flow^="up"]:hover::before,
[tooltip][flow^="up"]:hover::after,
[tooltip][flow^="down"]:hover::before,
[tooltip][flow^="down"]:hover::after {
  animation: tooltips-vert 300ms ease-out forwards;
}

[tooltip][flow^="left"]:hover::before,
[tooltip][flow^="left"]:hover::after,
[tooltip][flow^="right"]:hover::before,
[tooltip][flow^="right"]:hover::after {
  animation: tooltips-horz 300ms ease-out forwards;
}