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

/* Dark-mode */
:root {
  --text-color: white;
  --bg-url:url(./assets/dark-mode/gradient-dark-mode.jpg);
  --stroke-color: rgba(11, 214, 218, 0.50);
  --surface-color:rgba(36, 36, 36, 0.50);
  --surface-color-hover:rgba(31, 202, 195, 0.50);
  --highlight-color: rgba(255, 255, 255, 0.2); 
  --switch-bg-url: url(./assets/moon-stars.svg);
  --background-switch-color:rgba(36, 36, 36, 1);
  --track-color:rgba(255, 255, 255, 0.1);
}

/* Light-mode */
.light {
  --text-color: #152A44;
  --bg-url:url(./assets/light-mode/gradient-light-mode.jpg);
  --stroke-color:rgba(21, 42, 68, 1);
  --surface-color:rgba(255, 255, 255, 0.25);
  --surface-color-hover:rgba(29, 100, 104, 0.25);
  --highlight-color: rgba(29, 100, 104, 0.25);
  --switch-bg-url: url(./assets/sun.svg);
  --background-switch-color:rgba(29, 100, 104, 1);
  --track-color:rgba(255, 255, 255, 0.25);
}

/* Configuração do background da página */
body {
  /* Shorthand */
  background: var(--bg-url) 
  no-repeat top center/cover;
  height: 100vh;
}

/* Configuração das fontes da página */
body * {
  font-family: 'Mulish', sans-serif;
  font-family: 'MuseoModerno', sans-serif;
  color: var(--text-color);
}

/* Configuração da caixa 1*/
#container {
  width: 100%;
  max-width: 588px;
  margin: 56px auto 0px;
  padding: 0 24px;
}

/* Configuração do alinhamento do conteúdo*/
#profile {
  text-align: center;
  padding: 24px;
}

/* Configuração do avatar*/
#profile img {
  width: 112px;
}

/*  Configuração do @perdiao.techjourney */
#profile p, a {
  line-height: 24px;
  margin-top: 8px;
  text-decoration: none;
}

/* Configurações do botão */
#switch {
  position: relative;
  width: 64px;

  margin: 4px auto;
}

/* switch */
#switch button {
  width: 32px;
  height: 32px;
  background: var(--background-switch-color) var(--switch-bg-url) 
  no-repeat center;
  border: 0;
  border-radius: 50%;
  text-decoration: none;

  /* posicionando o botão*/
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  transform: translateY(-50%);

  animation: slide-back 0.4s ;
}

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

/*light-mode para o botão de alternância de modos*/
.light #switch button {
  animation: slide-in 0.4s forwards;

}

/* Configuração do switch span (a barra ao redor do botão) */
#switch span {
  display: block;
  width: 64px;
  height: 24px;
  background: var(--track-color);
  border: 1px solid var(--stroke-color);
  -webkit--backdrop-filter: blur(4px);
  border-radius: 9999px;
}

/* Configuração dos link-buttons */
ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 24px 0;
}

ul li { 
  gap: 16px;
}
 
/* Configuração do conteúdo dos link-buttons */
ul li a {
  display: flex;
  align-items: center;
  justify-content: center;

  
  height: 56px;

  padding: 16px 24px;
  border-radius: 8px;

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


  backdrop-filter: blur(4px);

  text-decoration: none;
  font-size: 16px;
  font-weight: 500;

  transition: background 0.2s;
}

/* pseudo-selector */
ul li a:hover {
  background: var(--surface-color-hover);
  border: 2px solid var(--stroke-color);
}

/* Configuração do social Links*/
#social-links {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

/* Configuração dos icons of social Links*/
#social-links img {
  height: 40px;
  gap: 16px;
}

/* Configuração do position icons of social Links*/
#social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  
  transition: background 0.2s;
  border-radius: 50%;

  padding: 8px;
}

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

/* Configuração do rodapé */
footer {
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
}

footer a span {
  text-decoration: underline;

}

/* MEDIA QUERIES */

@media (min-width: 700px) {
  :root {
    --bg-url: url(./assests/dark-mode/bg-dark-mode-gradient.jpg)
  }

  .light {
    --bg-url: url(./assets/light-mode/bg-light-mode-gradient.png)
  }
}

/* animation */

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

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