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

:root {
  --text-color: #ffffff;
  --bg-url: url(./assets/bg_mobile_darkmode.jpg);
  --border-default: rgba(255, 255, 255, 0.50);
  --border-hover: rgba(255, 255, 255, 1.00);
  --bg-button: rgba(255, 255, 255, 0.10);
  --bg-hover: rgba(255, 255, 255, 0.05);
  --switch-theme-icon: url(./assets/MoonStars.svg);
  --border-switch: rgba(255, 255, 255, 0.20);
}

.light {
  --text-color: #000000;
  --bg-url: url(./assets/bg_mobile_lightmode.jpg);
  --border-default: rgba(0, 0, 0, 0.50);
  --border-hover: rgba(0, 0, 0, 1.00);
  --bg-button: rgba(0, 0, 0, 0.05);
  --bg-hover: rgba(0, 0, 0, 0.02);
  --switch-theme-icon: url(./assets/Sun.svg);
  --border-switch: rgba(0, 0, 0, 0.10);
}

body {
  background: var(--bg-url) no-repeat top center/cover;

  width: 100%;
  height: 100%;

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

  transition: all 0.6s;
}

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

.container {
  margin-top: 4px;
  width: 100%;

  max-width: 360px;
}

.avatar {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding-block: 24px;
}

.avatar img {
  width: 112px;
  height: 112px;
  border: 2.0px solid var(--border-default);
  border-radius: 56px;
  margin-bottom: 8px;
}

.avatar p {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
}

.switch-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-block: 4px;
}

.switch-theme span {
  display: block;
  position: absolute;
  width: 64px;
  height: 24px;
  border: 1px solid var(--border-default);
  background: var(--bg-button);
  border-radius: 9999px;
  z-index: -2;
}

.switch-theme button {
  background: white var(--switch-theme-icon) no-repeat center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  padding: 16px;

  animation: slide-off 0.4s forwards;

  transition: box-shadow 0.3s;
}

.light .switch-theme button {
  animation: slide-on 0.4s forwards;
}

.switch-theme button:hover {
  box-shadow: 0 0 0 8px var(--border-switch);
  cursor: pointer;

  transition: box-shadow 0.2s;
}

.links {
  padding: 24px;
  list-style: none;
}

.link a {
  display: block;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background-color: var(--bg-button);
  padding: 16px 24px;
  text-align: center;

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

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

  transition: background 0.2s;
}

.link a:hover {
  background-color: var(--bg-hover);
  border: 1.5px solid var(--border-hover);
}

.link+.link {
  margin-top: 16px;
}

.social-links {
  display: flex;
  justify-content: center;
  font-size: 24px;
  padding-block: 24px;
}

.social-link {
  width: 40px;
  height: 40px;
}

.social-link svg {
  position: absolute;
  margin-top: -8px;
  margin-left: -8px;
}

.social-link ion-icon {
  padding: 8px;
}

.social-link+.social-link {
  margin-left: 16px;
}

.social-link:hover circle {
  fill: var(--text-color);
}

.social-link:hover circle {
  opacity: 20%;
  transition: all 0.5s;
}

.social-link circle {
  transition: all 0.5s;
}

footer {
  text-align: center;
  padding-block: 24px;
  font-weight: 400;
}

a {
  font-weight: 400;
}

.off a {
  cursor: not-allowed;
}

@media (min-width: 1200px) {
  :root {
    --bg-url: url(./assets/bg_desktop_darkmode.jpg);
  }

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

@media (max-width: 390px) {
  body {
    height: 100vh;
  }
}

@keyframes slide-on {
  from {
    margin-left: -32px;
  }

  to {
    margin-left: 32px;
  }
}

@keyframes slide-off {
  from {
    margin-left: 32px;
  }

  to {
    margin-left: -32px;
  }
}