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

html, body {
  width: 100vw;
  height: 100vh;
  background-color: #e4e4e7;
  padding: 0;
  margin: 0;

  font-family: Amazon Ember,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif;
}

body, #main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#main {
  width: 91.666667%;
  min-width: 250px;
  max-width: 384px;
  margin: 0 auto;
  background-color: white;

  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  animation: main 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes main {
  0% {
    opacity: 0;
    transform: translateY(-2rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  #main {
    width: 80%;
  }
}

#main-top {
  display: flex;
  justify-content: start;
  align-items: center;
  padding: 1.25rem 2rem;
  background-image: linear-gradient(150deg, rgba(57, 126, 172, 0.75), rgba(57, 172, 126, 0.85));
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 6rem;
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.2);
  transition: opacity 0.7s ease-in-out 0.2s, box-shadow 0.3s ease-in-out;
}

.avatar:hover {
  box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.6);
  animation: avatar 5000ms infinite ease-in-out;
}

@keyframes avatar {
  80% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.header-text {
  display: block;
  color: white;
  margin-left: 1rem;
}

.title {
  font-size: 1.5rem;
  margin: 0;
}

.title + .subtitle {
  margin: 0.5rem 0 0;
}

.subtitle {
  font-size: 0.875rem;
}

#main-bottom {
  padding: 2rem 2rem 2.5rem;
  color: #71717a;
}

#main-bottom p {
  margin: 0;
}

#main-bottom p a {
  color: #2563eb;
  text-decoration: inherit;
}

.icons {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.icon {
  display: block;
  position: relative;
  width: 1.25em;
  color: inherit;
  margin: 0 0.5rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

.icon:hover {
  color: #212124;
}

.icon::after {
  content: attr(title);
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.25rem 0.5rem;

  color: #e4e4e7;
  background-color: #71717a;
  border-radius: 0.25rem;

  transition: opacity 0.2s, transform 0.2s;
  transform: translate(-50%, 0.4rem);
  opacity: 0;
}

.icon:hover::after {
  opacity: 1;
  transform: translate(-50%, -0.2rem);
}

.icon svg {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: -0.25em;
}

#footer {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
  color: #a1a1aa;

  user-select: none;

  animation: footer 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes footer {
  0% {
    opacity: 0;
    transform: translateY(2rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#footer a {
  text-decoration: none;
  cursor: pointer;
}

#footer svg {
  display: inline;
  vertical-align: middle;
  margin: 0 0.25rem;
}

.footer-tag {
  color: #f4f4f5;
  padding: 0.25rem 0.5rem;
  background-color: #a1a1aa;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out;
}

.footer-tag:hover {
  background-color: #71717a;
}

.footer-separator {
  padding-right: 1rem;
}
