* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: hsla(0, 0%, 100%, 1);
  --platinum: hsla(30, 7%, 89%, 1);
  --platinum-2: hsla(120, 2%, 89%, 1);
  --white-2: hsla(40, 60%, 99%, 1);
  --walnut-brown: hsla(42, 15%, 35%, 1);

  --background: var(--white);
  --text-color: var(--walnut-brown);
  --stroke-color: var(--walnut-brown);
  --surface-color: var(--walnut-brown);
  --link-color: var(--platinum);
}

body {
  background: var(--background);
}

body * {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
}

img {
  width: 100%;
  display: block;
}

#container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 588px;

  margin-inline: auto;
  padding-inline: 24px;

  margin-bottom: 2em;
}

header {
  display: grid;
}

.header-image {
  width: 100%;
}
.header-profile {
  display: grid;
  justify-items: center;
  align-items: center;
}

.avatar {
  /* display: none; */
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--stroke-color);
  margin: 1rem 0;
  object-fit: contain;
}

h1 {
  font-size: 1.6rem;
  font-weight: 600;
}

p {
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 1px;
  text-align: center;
}

.button {
  display: inline-block;
  background: var(--surface-color);
  border: none;
  border-radius: 8px;

  margin-top: 32px;
  padding: 15px 32px;

  color: var(--white-2);
  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;
}

#contacts li a {
  padding: 16px 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--white-2);
  border-radius: 8px;
  border: 1px solid var(--stroke-color);

  font-weight: 500;

  text-decoration: none;

  transition: background 0.2s;
}

#contacts li a:hover {
  filter: brightness(1.1);
  outline: 1.5px solid var(--text-color);
}

.qrcode {
  margin-inline: auto;
  border-radius: 0.5em;

  padding: 0.5em;
  outline: 4px solid black;
}

.qrcode img:first-child {
  margin-bottom: 2em;
}

/* Contêiner principal do carrossel */
.carousel-container {
  width: 100%;
  height: 350px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding-block: 2rem;
}

/* Contêiner das imagens para transição */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

/* Estilo para cada imagem no carrossel */
.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  object-position: bottom;
}

#card {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  background-color: hsl(0 0% 97%);
  border-radius: 1rem 1rem 0 0;
  padding: 24px 24px;
  transform: translateY(100%);

  display: grid;
  place-items: center;
  gap: 1em;
}

#card > * {
  --text-color: #323232;
  font-size: .8rem;
}

#card button {
  padding: 8px 16px;
  border: 0;
  outline: none;
  border-radius: 8px;
  cursor: pointer;
}

#card button:first-child {
  justify-self: end;
}

textarea {
  font-size: 0.7rem;
  border: 0;
  outline: none;
  resize: none;
  overflow: hidden;
  width: 100%;
}

#card.show {
  transform: translateY(0%);
}

.pixImg {
  width: 10em;
  max-width: 200px;
}