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

:root {
  --text-color: white;
  --bg-url: url(./assets/assets/bg-mobile.jpg);
  --strock-color: rgba(255, 255, 255, 0.5);
  --backgroud-buttons: rgba(255, 255, 255, 0.5);
  --backgroud-buttons-hover: rgba(255, 255, 255, 0.5);
  --backgroud-social-liks-hover: rgba(255, 255, 255, 0.2);
  --icon-button: url(./assets/assets/moon-stars.svg);
}

.light {
  --text-color: black;
  --bg-url: url(./assets/assets/bg-mobile-light.jpg);
  --strock-color: rgba(0, 0, 0, 1);
  --backgroud-buttons: rgba(255, 255, 255, 0.4);
  --backgroud-buttons-hover: rgba(255, 255, 255, 1);
  --backgroud-social-liks-hover: rgba(0, 0, 0, 0.1);
  --icon-button: url(./assets/assets/sun.svg);
}

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

  /* background: color image repeat position/size */
  /* background: var(--bg-url) no-repeat top center/cover; */
  background: linear-gradient(162deg, rgba(242,234,228,1) 13%, rgba(145,94,76,1) 62%, rgba(69,45,36,1) 99%);
  height: 100vh;
}

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

#container {
  width: 100%;
  max-width: 588px;
  margin: auto; /* referente a largura, vai centralizar essa caixa "container" somente na largura. Também existe as tags margin-left e margin-right para centralizar individualmente */
  margin-top: 56px;
  padding: 0 24px;
}

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

#profile img {
  width: 120px;
  border-radius: 9.9rem;
}

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

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

  margin: 4px auto;
}

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

  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 1;

  animation: slide-back .5s;
}

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

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

#switch span {
  display: block;
  width: 64px;
  height: 24px;
  /* border: 1px solid var(--strock-color); */
  background: var(--backgroud-buttons);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
}

ul {
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 8px;

  padding: 24px 0;
}

ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;

  border-radius: 8px;
  /* border: 1px solid var(--strock-color); */
  background: var(--backgroud-buttons);
  backdrop-filter: blur(4px);

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

  transition: background 0.2s;
}

#telegram img {
  height: 2.9rem;
  width: 2.9rem;
}

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

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

  font-size: 40px;
}

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

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

#social-links a:hover {
  background: var(--backgroud-social-liks-hover);
}

footer {
  font-size: 16px;
  padding: 24px 0;
  text-align: center;
  
  > p {
    color: var(--backgroud-buttons);
  }
}

@media (min-width: 700px) {
  :root {
    --bg-url: url(./assets/assets/bg-desktop.jpg)
  }

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

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

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