* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: hsl(0 0% 100% );
  --text-color: hsl(0, 0%, 38%);
  --stroke-color: hsl(168 31% 49%);
  --surface-color: hsl(167, 31%, 34%);
  --surface-color-hover: hsl(167, 32%, 11%);
}

body {
  background:var(--background);
}

body * {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
}

img {
  width: 100%;
  object-fit: contain;
}

.icon {
  width: 28px;
  height: 28px;
  padding-right: 0.5em;
}

.white {
  /* color: white; */
  filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(270deg) brightness(103%) contrast(100%);
}
.black {
  /* color: black; */
  filter: invert(0%) sepia(90%) saturate(7500%) hue-rotate(70deg) brightness(90%) contrast(108%);
}

.wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 588px;

  margin: 3em auto;
  padding-inline: 24px;
}

header {
  display: grid;
  width: 90%;
  place-items: center;
  margin: 0 auto;
}

.header-image {
  height: 20em;
  border-radius: 8px;
  object-fit: cover;
}
.header-profile {
  display: grid;
  justify-items: center;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--stroke-color);
  margin-top: -2em;
  margin-bottom: 1em;
  object-fit: cover;
}

h1 {
  font-size: 1.6rem;
  font-weight: 600;
}

p {
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 1px;
  padding: 1em;
  text-align: center;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-color);
  border: none;
  border-radius: 8px;

  margin-top: 32px;
  padding: 15px 32px;

  color: white;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}
.button:hover {
  filter: brightness(1.1);
}


/* Links */

#contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 90%;
  margin: 0 auto;
}

#contacts li a {
  padding: 16px 24px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;

  background: var(--background);
  border: 1px solid var(--stroke-color);
  border-radius: 8px;

  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);

  font-weight: 500;
  font-size: clamp(.8rem, 3vw, 1rem);

  text-decoration: none;

  transition: background 0.2s;
}

#contacts li a:hover {
  background: var(--stroke-color);
  color: black;
}


/* qrcode */
.qrcode {
  margin-top: 1em;
  text-align: center;
}

.qrcode > img {
  width: 180px;
  background-color: white;
  border-radius: .5em;
  padding: .4em;
  outline: 4px solid #000;
}

.pixImg {
  width: 10em;
  max-width: 200px;
}

#card {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 90%;
  max-width: 588px;
  margin-inline: auto;
  background-color: hsl(0 0% 97%);
  border-radius: 1em 1em 0 0;
  padding: 48px 22px;
  transform: translateY(100%);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

#card > * {
  --text-color: #323232;
  font-size: .8rem;
}

.buttonClose {
  position: fixed;
  top: 1em;
  right: 1em;
  border: 1px solid red;
  /* background-color: transparent; */
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .5em;
  color: #000;
}

#card div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

#card button {
  padding: 8px 16px;
  border: 0;
  outline: none;
  border-radius: 8px;
  cursor: pointer;
}


.line {
  overflow-x: scroll;
  font-size: 0.7em;
  max-width: 80%;
}

#card.show {
  transform: translateY(0%);
}


.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;
}
