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

:root {
  --text-color: black;
  --bg-url: url(./assets/bg_desktop_light.png);
  --stroke-color: 2px solid black;
  --surface-color: #A7C4A0;
  --switch-bg-url: url(./assets/moonstars.svg);
}

.dark {
  --text-color: white;
  --bg-url: url(./assets/bg_desktop_dark.png);
  --stroke-color: 3px solid rgba(255, 255, 255, 0.5);
  --surface-color: #2C3E50;
  --switch-bg-url: url(./assets/sun.svg);
}

body {
  background: var(--bg-url) no-repeat top center/cover;
  height: 100vh;
} 

#container {
  width: 360px; 
  height: 712px;
  /*aqui percebe-se que o alinhamento da caixa fica por conta do padrão auto que centraliza
  e deixa os espaços de acordo com o tamanho da tela fornecida*/
  margin: auto;
  margin: 56px auto 0px;
  padding:0 24px;
  max-width: 588px;
}

/*profile*/

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

#profile img {
  width: 112px;
  border-radius: 50%;
  border: var(--stroke-color);
}

body * {
   font-family: monospace;
   color: var(--text-color)
}

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

/*switch*/

#switch {
  position: relative;
  width: 64px;

  margin: 4px auto;
}

#switch button {
  width: 33px;
  height: 33px;
  background: #64748B var(--switch-bg-url) no-repeat 
  center;
  border: 0;
  border-radius: 50%;

  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  transform: translateY(-50%);
  animation: slide-out .2s;
}

.dark #switch button {
  animation: slide-in .2s forwards;
}

#switch span {
  display: block;
  width: 64px;
  height: 24px;
  background: var(--surface-color);
  border: 0.01px solid white;
  backdrop-filter: blur(4px);
  border-radius: 9000px;
  -webkit-backdrop-filter: blur(4px);
}

/* vamos trabalhar com essa lista e chamemos o coletor abaixo de links */
ul {

  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding:24px 0;
}

ul li a{
  display: flex;  
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--surface-color);
  border: var(--stroke-color);
  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: rgb(0.05, 115, 139);
  border: 1.5px solid var(--text-color);
}

/*links*/

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

#social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;

  transition: background 0.2s;
  border-radius: 50%;
}

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

footer {
  padding: 24px 0;
  text-align: center;
  gap:1px;

  font-size: 14px;
}

footer a:hover {
  background-color: rgb(125, 169, 169);
}

/*media queries*/
@media (min-width: 700px) {
  :root {
    --bg-url: url(./assets/bg_desktop_light.png);
  }

  .dark {
    --bg-url: url(./assets/bg_desktop_dark.png);
  }
}

/*animation*/
@keyframes slide-in {
  from {
    left: 0;
  }

  to {
    left: 50%;
  }
}

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

  to {
    left: 0;
  }
}
