* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: rgba(247,247,247, 1);
  --text-color: rgba(28,28,28);
  --stroke-color: rgb(112, 116, 181);
  --surface-color: rgba(0, 0, 0, 0.1);
  --surface-color-hover: rgba(0, 0, 0, 0.2);
  --highlight-color: rgba(255, 255, 255, 0.2);
}

body {
  background: var(--background);

}

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 {
  display: grid;
  justify-items: center;
  text-align: center;
}

#profile .company {
  background-color: #f7f7f7;
  width: 100%;
  height: 10em;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1em;
}
#profile .logo {
  width: auto;
  height: 10em;
  border-radius: 8px;
  margin-block: 2em;
}

#profile .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--stroke-color);
  /* margin-top: -2em; */
  margin-bottom: 1em;

  object-fit: cover;
}
#profile h1 {
  font-size: 1.6rem;
  margin-bottom: 1em;
}
#profile p {
  margin-top: 8px;
  font-weight: 500;
  line-height: 24px;
}
#profile a {
  display: inline-block;
  background: var(--stroke-color);
  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-contact {
  border: 8px solid white;
  border-radius: .5em;
  outline: 1px solid var(--stroke-color);
  width: 180px;
}
.qrcode-pix {
  border-radius: .5em;
  width: 180px;
}

.pix-logo {
  width: 180px;
}

.qrcode img:first-child {
  margin-bottom: 2em;
}

.modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-color: var(--stroke-color);

  width: calc(100% - 2em);
  max-width: 35em;
  margin: auto;
  /* padding: 2em; */

  border-radius: 8px;

  height: calc(100dvh - 1em);

  display: grid;
  grid-template-rows: 2.5em 1fr;
  grid-gap: 1em;

  overflow: hidden;
}
.modal button {
  justify-self: center;
  background-color: rgba(0, 0, 0, 0.2);
  border: 0;
  border-radius: 50%;
  outline: none;
  width: 48px;
  height: 48px;
  font-size: 1.5em;
  margin-bottom: .5em;
  color: #fff;
  z-index: 3;
  cursor: pointer;
  margin-top: .5em;
}
.modal iframe {
  position: absolute;
  border: 0;
  border-radius: 8px;
  height: 100%;
  width: 100%;
}
.hidden {
  display: none;
}
