* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text-color: black;
  /* --bg-url: #e6dcd3; */
  /* --bg-url: radial-gradient(
    circle at 10% 20%,
    rgb(226, 240, 254) 0%,
    rgb(255, 247, 228) 90%
  ); */
  --bg-url: radial-gradient(
    circle at 10% 20%,
    rgb(229, 216, 238) 0%,
    /* Soft lilac */ rgb(245, 238, 220) 90% /* Light beige */
  );
  /* --bg-url: url(./assets/bg-mobile-light.jpg); */
  --strokecolor: white;
  --surfacecolor: rgba(0, 0, 0, 0.05);
  --surfacecolorhover: rgba(0, 0, 0, 0.02);
  --sociallinkhover: rgba(0, 0, 0, 0.1);
  --switch-bg-url: url(./assets/sun.svg);
  height: 100vh;
}

.dark {
  --text-color: white;
  /* --bg-url: url(./assets/bg-mobile.jpg); */
  --bg-url: radial-gradient(
    circle at 20% 250%,
    rgb(72, 30, 20) 0%,
    rgb(12, 12, 12) 90%
  );
  /* --bg-url: linear-gradient(135deg, #481e14, #0c0c0c, #0c0c0c, #481e14); */

  --strokecolor: rgba(255, 255, 255, 0.5);
  --surfacecolor: rgba(255, 255, 255, 0.05);
  --surfacecolorhover: rgba(255, 255, 255, 0.02);
  --sociallinkhover: rgba(255, 255, 255, 0.1);
  --switch-bg-url: url(./assets/moon-stars.svg);
  height: 100vh;
}

body {
  /* Se fosse fazer em várias linhas de código
  
  background-image: url(./assets/bg-mobile.jpg);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover; */

  /* background: color image repate position size -> esse é o atalho ou short-hand, ficando em uma única linha */
  background: var(--bg-url) no-repeat top center/cover;
  overflow: hidden;
}

body * {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
}

#container {
  width: 100%;
  max-width: 588px;
  /* height: 712px; */
  /* border: 1px solid red; */
  margin: 56px auto 0px;
  padding: 0px 24px;
}

/* Profile */
#profile {
  text-align: center;
  padding: 24px;
}

#profile img {
  width: 112px;
  margin: auto;
}

#profile p {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  margin-top: 8px;
}

/* Switch */

#switch {
  position: relative;
  width: 64px;
  margin: 4px auto;
}

#switch button {
  width: 32px;
  height: 32px;
  background: white var(--switch-bg-url) no-repeat center;
  border: none;
  border-radius: 50%;

  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  transform: translateY(-50%);

  animation: slide-back 0.3s;
}

.dark #switch button {
  animation: slide-in 0.3s forwards;
  /* right: 0;
  left: initial; */
}

/* #switch button:hover {
  outline: 8px solid var(--sociallinkhover);
} */

#switch span {
  display: block;
  width: 64px;
  height: 24px;
  background: var(--surfacecolor);
  border: 1px solid var(--strokecolor);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 9999px;
  cursor: pointer;
}

/* Lista de links */

ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0px;

  /* padding: 8px 24px;
  text-align: center; */
  /* display: flex;
  flex-direction: column;
  gap: 8px; */
}

ul li a {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 16px 24px;

  background: var(--surfacecolor);
  border: 1px solid var(--strokecolor);
  border-radius: 8px;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  text-decoration: none;
  font-weight: 500;

  transition: background 0.2s;
}

/* pseudo-selector */
ul li a:hover {
  background: var(--surfacecolorhover);
  border: 1.5px solid var(--text-color);
}

#social-links {
  display: flex;
  padding: 24px 0px;
  font-size: 24px;
  justify-content: center;
  align-items: center;
}

#social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  transition: background 0.2s;
  border-radius: 50%;
}

#social-links a:hover {
  background: var(--sociallinkhover);
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px 0px;
  font-size: 14px;
  text-align: center;
}

/* footer:hover {
  cursor: pointer;
  transform: scale(105%);
  transition: 0.3s; */

/* Media queries */
/* @media (min-width=700px) {
  :root {
    --bg-url: url(.assets/bg-desktop-light.jpg);
  }
  .dark {
    --bg-url: url(.assets/bg-desktop.jpg);
  }
} */

/* Animations */
@keyframes slide-in {
  from {
    left: 0;
  }
  to {
    left: 50%;
  }
}

@keyframes slide-back {
  from {
    left: 50%;
  }
  to {
    left: 0;
  }
}
