* {
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
  animation-duration: 0.15s;
}

/*Variaveis de cores*/
:root {
  --bg-color: black;
  --bg-url: url(./assets/bg-mobile.jpg);

  --text-color: white;
  --button-bg: rgba(255, 255, 255, 0.1);
  --button-border: rgb(0, 0, 0);
  --switch-bg-url: url(./assets/moon-stars.svg);
  --surface-color: rgba(255, 255, 255, 0.1);
  --stroke-color: rgb(255, 255, 255);

  --switch-glow: rgb(255, 255, 255);
}

/*Variaveis de cores*/
.light {
  --bg-color: rgb(0, 0, 0);
  --bg-url: url(./assets/bg-mobile-light.jpg);

  --text-color: black;
  --button-bg: rgba(0, 0, 0, 0.1);
  --button-border: rgba(0, 0, 0, 0.5);
  --switch-bg-url: url(./assets/sun.svg);

  --surface-color: rgba(80, 80, 80, 0.479);
  --stroke-color: rgb(20, 20, 20);

  --switch-glow: rgb(0, 0, 0);
}

body {
  background: var(--bg-url) no-repeat top center/cover;
  color: var(--text-color);
}

body * {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
}
#container {
  width: 360px;
  max-width: 588px;
  margin: 56px auto 0px auto;
  padding: 0 24px;
}

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

#profile img {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover; /* corta a imagem para aparecer certo sem distorcer*/
}
/* switch*/

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

#switch button {
  width: 32px;
  height: 32px;
  background: rgb(255, 255, 255) var(--switch-bg-url) no-repeat center;
  border: 0;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.light #switch button {
  right: 0;
  left: initial;
}




#switch span {
  display: block;
  width: 47px;
  height: 24px;
  background: var(--surface-color);
  border: 1px solid var(--stroke-color);
  backdrop-filter: blur(4x);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 9999px;

  margin: 0px auto 14px auto;
  padding: 0 7px;
}

#container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#profile {
  font-synthesis-weight: 500;
  font-size: 16px;
  line-height: 32px;
  margin-top: 8px;
}
/*Links*/
ul {
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 16px;
}
ul li a {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 16px 100px;

  background: transparent;

  border: 1px solid var(--text-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
}

/*pseudo-selector*/

Ul li a:hover {
  background-color: rgba(59, 59, 59, 0.815);
  border: 1.5px solid var(--text-color);
}

/*social-links*/
.social-links {
  display: flex;
  justify-content: center; /* Centraliza no eixo horizontal*/
  gap: 16px; /* Discancia entre os icones*/
  margin-top: 20px;
}

.social-links a {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  transition: 0.2s;
}

.social-links ion-icon {
  font-size: 32px;
  color: var(--text-color);
}
.social-links ion-icon:hover {
  background: var(--button-bg);
  padding: 16px;
  border-radius: 50px;
}
footer {
  padding: 31px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-color);
}
.slider::before {
  transition: transform 0.90s;
}
input:cheked + .slider::before {
  transform: translateX(24px);
}

#switch button::before{
  content: "";
  position: absolute;

  width: 50px;
  height: 50px;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);

  border-radius: 50%;

  background: radial-gradient(
    circle,
    var(--switch-glow) 40%, transparent 70%);

  opacity: 0;
  transition: 0.25s ease;
  z-index: -1;

}
#switch button:active::before {
  opacity: 1;
  transform: translate(-50%, -50% ) scale(1.2);

}