* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /*Quando temos o box-sizing: border-box podemos usar o width e o padding nos elementos*/
}

:root {
  --text-color: white;
  --bg-url: #2e2e2e;
  --stroke-color: rgba(255, 255, 255, 0.5);
  --surface-color: rgba(255, 255, 255, 0.1);
  --surface-color-hover: rgba(255, 255, 255, 0.05);
  --highlight-color: rgba(255, 255, 255, 0.2);
  --switch-bg-url: url(moon-stars.png);
}

.light {
  --text-color: black;
  --bg-url: #dbdbdb;
  --stroke-color: rgba(0, 0, 0, 0.5);
  --surface-color: rgba(0, 0, 0, 0.05);
  --surface-color-hover: rgba(0, 0, 0, 0.02);
  --highlight-color: rgba(0, 0, 0, 0.1);
  --switch-bg-url: url(sun.png);
}

body {
  /*
  background-color: #0000000;
  background-repeat: no-repeat; 
  background-position: top center; 
  background-size: cover; 
  */

  /*background: color image no repeat position/size */
 
  height: 100vh; /* Define a altura como 100% da viewport */
  width: 100vw; /* Define a largura como 100% da viewport */
  overflow: hidden; /* Impede o scroll */

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

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

#container {
  width: 360px;
  height: 80vh;
  /*border: 1px solid red;*/
  margin: 56px auto 0px; /*Quando temos 2 valores, eles são atribuídos em cima e nas laterais, quando temos 3 valores, eles são atribuidos em cima, nas laterais e embaixo, quando temos 4 valores, o 1º é aplicado em cima, o 2º na lateral direita,  o 3º embaixo e o 4º na lateral esquerda, no sentido horário */
  padding: 0 24px;
}

/* profile */

#profile {
  /*border: 1px solid red;*/
  text-align: center;
  padding: 24px;
}
/*margin-right e margin-left: auto = preenche os espaços na direita e esquerda por igual, nesse caso deixando o container no meio.
Podemos substituir essas 2 propriedades por apenas: margin: auto que irá colocar os mesmos valores em cima, embaixo, direita e esquerda, porém na regra CSS não se aplica em cima e nem embaixo*/

#profile img {
  width: 112px; /*No CSS geralmente não precisamos definir a altura, pois ela segue a altura da caixa*/
  /* display: block; Em display: inline não é possível aplicar a propriedade margin: auto, somente podem ser alinhados usando a propriedade text-align:
  margin: auto;*/
}

#profile p {
  /*font-size: 16px; = os navegadores já tem por padrão  o tamanho de 16px para as fonts*/
  font-weight: 500;
  line-height: 24px;
  margin-top: 8px;
}

/* switch */

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

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

  position: absolute; /* sobreposição de camadas*/
  top: 50%;
  left: 0;
  z-index: 1;
  transform: translateY(-50%);
}

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

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

/* links */

ul {
  list-style: none;
  display: flex;
  flex-direction: column; /* só é liberado quando o display é flex */
  gap: 16px; /* só é liberado quando o display é flex */
  padding-top: 24px;
}

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

  padding: 16px 24px;

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

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

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

  transition: background 0.5s;
}

ul li a:hover {
  /* :hover = pseudo-selector */
  background: #9c44e4;
  border: 1.5px solid #080808;/*  */
  color: black;
}

/* social links */

#social-links {
  display: flex;
  padding: 24px 0;

  font-size: 24px;
  justify-content: center;
}

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

  transition: background 0.2s;
}

#social-links a:hover {
  background: #b5f000;
}

/* footer */

footer {
  margin-top: 24px;
  padding: 24px 0;
  text-align: center;
  font-size: 19px;
}

footer a {
  text-decoration: 0;
}
