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

:root {
  --text-color: #ffffff;
  --bg-url: url(../assets/bg-mobile.jpg);
  --bg-switch-url: url(../assets/MoonStars.svg);
  --stroke-color: rgba(255, 255, 255, 0.5);
  --surface-color: rgba(255, 255, 255, 0.05);
  --surface-color-hover: rgba(0, 0, 0, 0.02);
  --highlight-color: rgba(255, 255, 255, 0.2);

  --border-color: rgb(255, 255, 255);
}

.light {
  --text-color: #000000;
  --bg-url: url(../assets/bg-mobile-light.jpg);
  --bg-switch-url: url(../assets/Sun.svg);
  --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);

  --border-color: rgb(0, 0, 0);
}

html {
  font-size: 62.5%;
}

html * {
  color: var(--text-color);
  font-size: 1.6rem;
  font-family: 'Inter', sans-serif;
}

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

#container {
  width: 100%;
  max-width: 36rem;
  margin: 5.6rem auto 0;
  padding: 0 2.4rem;
}

/* DIV PROFILE ######################################################### */
#profile {
  text-align: center;
  padding: 2.4rem;
}

#profile img {
  width: 11.2rem;
  border: .2rem solid var(--stroke-color);
  border-radius: 50%;
}

#profile p {
  font-weight: 500;
  margin-top: 0.8rem;
  line-height: 2.4rem;
}

/* DIV SWITCH ######################################################### */
#switch {
  width: 6.4rem;
  position: relative;
  margin: 0.4rem auto;
}

#switch button {
  height: 3.2rem;
  width: 3.2rem;
  background: #fff var(--bg-switch-url) no-repeat center;
  border: none;
  border-radius: 50%;

  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  transform: translateY(-50%);
  animation: slide-back .2s;
}

#switch button:hover {
  outline: .8rem solid var(--highlight-color);
  cursor: pointer;
}

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

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

/* UL LINKS ######################################################### */
ul {
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 1.6rem;

  padding: 2.4rem 0;
}

ul li a {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1.6rem 2.4rem;

  background: var(--surface-color);
  border: 1px solid var(--stroke-color);
  border-radius: .8rem;

  backdrop-filter: blur(.4rem);
  -webkit-backdrop-filter: blur(.4rem);

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

  transition: background .2s;
}

ul li a:hover {
  background: var(--surface-color-hover);
  border: .15rem solid var(--text-color);
}

/* SOCIAL LINKS ######################################################### */
#social-links {
  display: flex;
  justify-content: center;

  padding: 2.4rem 0;
}

#social-links ion-icon {
  font-size: 2.4rem;
}

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

  transition: background .2s;
  border-radius: 50%;
}

#social-links a:hover {
  background: var(--highlight-color);
}

/* FOOTER ######################################################### */
footer {
  padding: 2.4rem;
  text-align: center;
  font-size: 1.4rem;
}