* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text-color: #fff;
  --stroke-color: rgba(255, 255, 255, 0.5);
  --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(209, 129, 0);
}

body * {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
}

img {
  width: 100%;
  object-fit: cover;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--stroke-color);
  margin-top: -2em;
  margin-bottom: 1em;
  object-fit: cover;
  z-index: 1;
}

#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 h1 {
  font-size: 1.6rem;
}
#profile p {
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 1px;
}
#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 > img {
  width: 180px;
  background-color: white;
  border-radius: 0.5em;
  padding: 0.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: 0.2em;
  vertical-align: top;
  text-align: left;
}

#card.show {
  transform: translateY(0%);
}

.slider__container {
  width: 100%;
  overflow: hidden;
  border: 4px solid white;
  border-radius: 8px;
}

.slider__wrapper {
  display: flex;
  width: 100%;
  animation: slide 16s infinite;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(-100%);
  }
  55% {
    transform: translateX(-200%);
  }
  75% {
    transform: translateX(-200%);
  }
  80% {
    transform: translateX(-300%);
  }
  100% {
    transform: translateX(-300%);
  }
}

.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: 0.5em;
  color: #fff;
  z-index: 3;
  cursor: pointer;
  margin-top: 0.5em;
}

.modal iframe {
  position: absolute;
  border: 0;
  border-radius: 8px;
  height: 100%;
  width: 100%;
}

.hidden {
  display: none;
}
