* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text-color: #fff;
  --stroke-color: rgb(252, 99, 99);
  --surface-color: rgba(255, 255, 255, 0.1);
  --surface-color-hover: rgba(240, 218, 0, 1);
  --highlight-color: rgba(255, 255, 255, 0.2);
}

body {
  background: rgb(107, 31, 7);
}

body * {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
}

#container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 588px;

  margin: 56px auto;
  padding-inline: 24px;
}


/* Profile */

#profile {
  text-align: center;
}

#profile h1 {
  font-size: 1.6rem;
  margin-bottom: 1em;
}

#profile img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--stroke-color);
  margin-bottom: 1em;

  object-fit: cover;
}

#profile p {
  margin-top: 8px;
  font-weight: 500;
  line-height: 24px;
}

#profile a {
  display: inline-block;
  background: white;
  border: none;
  border-radius: 8px;

  margin-top: 32px;
  padding: 15px 32px;

  color: black;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}


/* Links */

#contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#contacts li a {
  padding: 16px 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--surface-color);
  border: 1px solid var(--stroke-color);
  border-radius: 8px;

  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);

  font-weight: 500;

  text-decoration: none;

  transition: background 0.2s;
}

#contacts li a:hover {
  background: -var(--surface-color-hover);
  border: 1.5px solid var(--text-color);
}


/* Social Links */
#social-links {
  display: flex;
  justify-content: center;

  font-size: 32px;
}

#social-links a {
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  padding: 16px;

  transition: background 0.2s;
}

#social-links a:hover {
  background: var(--highlight-color);
}


/* logo */

#logo {
  text-align: center;
}

#logo img {
  width: 220px;
  object-fit: contain;
  border-radius: 8px;
}


/* qrcode */
.qrcode {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;

  padding: 24px;
  text-align: center;

}

.qrcode > img {
  width: 180px;
  background-color: white;
  border-radius: .5em;
  padding: .5em;
}

.qrcode img:first-child {
  margin-bottom: 2em;
}

#card {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 588px;
  margin-inline: auto;
  background-color: white;
  border-radius: 1em 1em 0 0;
  padding: 24px;
  transform: translateY(100%);
}
#card > * {
  --text-color: #323232;
}

table {
  border-collapse: collapse;
  margin-bottom: 1em;
  width: 100%;
}

caption {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 1em;
  text-align: left;
}

th, td {
  padding-block: .2em;
  vertical-align: top;
  text-align: left;
}

#card.show {
  transform: translateY(0%);
}