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

:root {
  --background: url(./assets/bg-mobile.jpg);
  --stroke-color: rgba(255, 255, 255, 0.5);
  --surface-color: rgba(255, 255, 255, 0.1);
  --text-color: white;
  --toggle-handle-color: white;
  --switch-bg-url: url(./assets/moon-with-stars.svg);
  --highlight-color: rgba(255, 255, 255, 0.2);
}

.light {
  --background: url(./assets/bg-mobile-light.jpg);
  --stroke-color: rgba(0, 0, 0, 0.50);
  --surface-color: rgba(0, 0, 0, 0.05);
  --text-color: black;
  --toggle-handle-color: white;
  --switch-bg-url: url(./assets/sun.svg);
  --highlight-color: rgba(0, 0, 0, 0.1);
}

body {
  background: var(--background) no-repeat top center/cover;
  margin: auto 0;
  color: var(--text-color);
  font-family: "inter", "sans-serif";
  height: 100vh;
}

#container {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

#profile {
  padding: 24px;
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-weight: 500;
  line-height: 24px;
}

#profile img {
  width: 112px;
  height: 111px;
  border-radius: 112px;
  border: 2px solid var(--stroke-color);
}

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

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

#switch button {
  background: var(--toggle-handle-color) var(--switch-bg-url) no-repeat center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  position: absolute;
  z-index: 1;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  animation: slide-out 0.5s;
  cursor: pointer;
}

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

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

#links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
}

#links ul li a {
  width: 312px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border: 1px solid var(--stroke-color);
  border-radius: 8px;
  background: var(--surface-color);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-decoration: none;
  font-family: "inter", "sans-serif";
  color: var(--text-color);
  font-weight: 500;
  line-height: 24px;
  transform: background 0.3s;
}

#links ul li a:hover {
  border: 1.5px solid var(--text-color);
  background: var(--highlight-color);
}

#SocialLinks {
  display: flex;
  padding: 24px;
  justify-content: center;
  gap: 16px;
  align-self: stretch;
}

#SocialLinks a {
  text-decoration: none;
  color: var(--text-color);
  width: 56px;
  height: 56px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#SocialLinks a:hover {
  width: 56px;
  height: 56px;
  background-color: var(--highlight-color);
  border-radius: 50%;
}

footer {
  display: flex;
  justify-content: center;
  padding: 24px;
  color: var(--text-color);
}

footer a {
  color: var(--text-color);
}

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

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

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

  to {
    left: 50%;
  }
}

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