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

:root {
  --text-color: white;
  --bg-url: radial-gradient(circle, rgb(0, 40, 187) 0%, rgba(0, 0, 0, 1) 100%);
  --stroke-color: rgba(255, 255, 255, 0.5);
  --surface-color: rgba(255, 255, 255, 0.1);
  --surface-color-hover: rgba(255, 255, 255, 0.158);
  --highlight-color: rgba(255, 255, 255, 0.2);
  --switch-bg-url: url(./assets/moon-stars.svg);
  --fill-svg: rgba(255, 255, 255, 1);
}

.light {
  --text-color: black;
  --bg-url: radial-gradient(
    circle,
    rgb(233, 233, 233) 60%,
    rgba(0, 55, 252, 0.2) 100%
  );
  --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(./assets/sun.svg);
  --fill-svg: rgba(0, 0, 0, 1);
}

body {
  background: var(--bg-url) no-repeat top center / cover;
  min-height: 100vh;
}

body * {
  font-family: "Montserrat", sans-serif;
  color: var(--text-color);
  font-size: 0.875rem;
}

#container {
  width: 100%;
  max-width: 588px;
  margin: 56px auto 0;
  padding: 0 24px;
}

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

#profile img {
  border-radius: 100%;
  border: 2px solid hsl(0, 0%, 25%);
  width: 112px;
}

#profile p {
  font-weight: 600;
  line-height: 24px;
  margin-top: 10px;
}

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

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

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

  animation: slide-out 0.3s;
}

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

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

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

ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
}

ul li a {
  font-weight: 400;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-color);
  border-radius: 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s;
}

ul li a:hover {
  background: var(--surface-color-hover);
}

.link-icon {
  padding-right: 6px;
}

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

#social-links svg {
  fill: var(--fill-svg);
  max-height: 30px;
}

#social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px;
  transition: background 0.2s;
}

.socialtext {
  padding-top: 24px;
  text-align: center;
  font-size: 16px;
}

.socialtext a {
  text-decoration: none;
  font-weight: 600;
}

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

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