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

:root {
  --background-image: url("./assets/bg-mobile.jpg");
  --switch-icon: url("./assets/moon-stars.svg");
  --text-color-dark-mode: #FFF;
  --stroke-color-dark-mode: rgba(255, 255, 255, 0.5);
  --surface-color-dark-mode: rgba(255, 255, 255, 0.1);
  --surface-color-dark-mode-hover: rgba(255, 255, 255, 0.05);
  --highlight-color-dark-mode: #8c52ff;
}

.light {
  --background-image: url("./assets/bg-mobile-light.jpg");
  --switch-icon: url("./assets/sun.svg");
  --text-color-dark-mode: #000;
  --stroke-color-dark-mode: rgba(0, 0, 0, 0.5);
  --surface-color-dark-mode: rgba(0, 0, 0, 0.1);
  --surface-color-dark-mode-hover: rgba(0, 0, 0, 0.05);
  --highlight-color-dark-mode: #8c52ff;
}

body { 
  width: 100%;
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

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

body * {
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  color: var(--text-color-dark-mode);
}

#container {
  max-width: 524px;
  margin: 24px;
}

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

#profile img {
  width: 112px
}

#profile p {
  font-weight: 500;
  line-height: 24px;
}

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

  /* Está fazendo o alinhamento central do switch. */
  margin: 4px auto;
}

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

  /* Essas instruções define que o botão fique na camada 1. */
  position: absolute;
  z-index: 1;

  /* Essas instruções fazem com que o button e o span se alinhei ao centro. */
  top: 50%;
  transform: translateY(-50%);

  left: 0;

  animation: slide-back 0.2s;
}

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

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

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

#links ul {
  list-style: none;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#links li a {
  display: flex;
  align-items: center;
  justify-content: center; 
  padding: 16px 24px;
  background: var(--surface-color-dark-mode);

  border: 2px solid var(--stroke-color-dark-mode);
  border-radius: 8px;

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

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

  transition: background 0.2s;
}

#links li a:hover {
  background: var(--surface-color-dark-mode-hover);
  border: 2px solid #8c52ff;
}

#links ion-icon {  
  font-size: 2.5rem;
  color: #8c52ff;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;

  padding: 20px 0;
  font-size: 0.875rem;
  font-weight: 400;
}

ion-icon {
  font-size: 1rem;
  color: #8c52ff;
}

footer a:hover {
  font-weight: 500;
  color: #8c52ff;
  transition: 0.2s;
}

/* media queries */
@media (min-width: 700px) {
  :root {
    --background-image: url("./assets/bg-desktop.jpg");
  }

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

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

  to {
    left: 50%;
  } 
}

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

  to {
    left: 0;
  }
}

.images-container {
  width: 100%;
  height: 100vh;
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.first-image img {
  width: 16rem;
  height: 16rem;

  margin-top: 164px;

  border-radius: 14px;
  border: 4px solid var(--highlight-color-dark-mode);
}

.second-image img {
  width: 16rem;
  height: 18rem;

  margin-top: 364px;

  border-radius: 14px;
  border: 4px solid var(--highlight-color-dark-mode);
}

.third-image img {
  width: 16rem;
  height: 16rem;

  margin-top: 264px;
  
  border-radius: 14px;
  border: 4px solid var(--highlight-color-dark-mode);
}
