/* Adicione o t no ligh (no index.html) para deixar a página inicialmente branca */

/* Tudo */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 15px;
}

:root {
  --CorBranca: White;
  --bg-url: url(./assets/bg-mobile.jpg);
  --stroke-color: rgba(255, 255, 255, 0.45);
  --surface-color: rgba(255, 255, 255, 0.035);
  --surface-color-hover: rgba(0, 0, 0, 0.02);
  --highlight-color: rgba(255, 255, 255, 0.2);
  --switch-bg-url: url(./assets/moon-stars.svg);
}

.light {
  --CorBranca: Black;
  --bg-url: url(./assets/bg-mobile-light.jpg);
  --stroke-color: rgba(0, 0, 0, 0.45);
  --surface-color: rgba(0, 0, 0, 0.06);
  --surface-color-hover: rgba(0, 0, 0, 0.02);
  --highlight-color: rgba(0, 0, 0, 0.1);
  --switch-bg-url: url(./assets/sun.svg);
}

/* Plano de Fundo */
body {
  /*
  background-image: url(./assets/bg-mobile.jpg);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  */

  /*background: color image no repeat position/size*/
  background: var(--bg-url) no-repeat top center/cover;
  height: 100vh;
}
/* Tudo sem o Plano de Fundo*/
body * {
  font-family: "Inter", sans-serif;
  color: var(--CorBranca);
}

/* Container dos Links, Foto de Perfil e Mídia Social*/
#container {
  width: 100%;
  max-width: 588px;
  margin: 56px auto 0px;
  padding: 0 24px;
  border-radius: 20px;
}

/* Foto de Perfil */
#profile {
  text-align: center;
  padding: 21px;
}

#profile img {
  width: 125px;
  border-radius: 22%;;
}

#profile p {
  font-weight: 500;
  line-height: 24px;
  margin-top: 8px;
  border-radius: 10px;
}

/* Botão */
#switch {
  position: relative;
  width: 60px;
  margin: 1px auto;
}

#switch button {
  width: 25px;
  height: 25px;
  background: white var(--switch-bg-url) no-repeat center;
  border: 0;
  border-radius: 75%;
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  transform: translateY(-50%);
  animation: slide-out 0.3s forwards;
}

.light #switch button {
  animation: slide-in 0.3s forwards;
}

#switch button:hover {
  outline: 5.5px solid var(--highlight-color);
}

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

/* Links */
ul {
  list-style: none;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-radius: 25px;
}

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

  padding: 16px 24px;

  background: var(--surface-color);
  border: 1px solid var(--stroke-color);

  border-radius: 15px;

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

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

  transition: background 0.4s;
}

ul li a:hover {
  background: var(--surface-color-houver);
  border: 1px solid var(--CorBranca);
}

/* midia social */
#social-links {
  display: flex;
  justify-content: center;
  padding: 24px 0;
  font-size: 24px;
  border-radius: 15px;
}

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

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

/* Roda Pé */
footer {
  padding: 16px 0;
  text-align: center;
  font-size: 14px;
  border-radius: 15px;
}

/* Desing do Plano de Fundo */
@media (min-width: 700px) {
  :root {
    --bg-url: url(./assets/bg-desktop.jpg);
  }

  .light {
    --bg-url: url(./assets/bg-desktop-light.jpg);
  }
}

/* Animação e Distância que o Botão vai */
@keyframes slide-in {
  from {
    left: 0;
  }
  to {
    left: 59%;
  }
}

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

/* https://LeviLuiz.github.io/Projeto /*