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

:root {
  --text-color: #ffffff;
  --bg-url: url(./assets/bg-mobile.jpg);
  --surface-color: rgba(255, 255, 255, 0.20);
  --stroke-color: rgba(255, 255, 255, 0.5);

  --switch-bg-url: url(./assets/moon.svg);
}

.light {
  --text-color: black;
  --bg-url: url(./assets/bg-mobile-light.jpg);
  --stroke-color: background: rgba(0, 0, 0, 0.5);
  --surface-color: rgba(0, 0, 0, 0.05);

  --switch-bg-url: url(./assets/sun.svg);
}

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

body * {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: var(--text-color);
}

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

/* profile */

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

#profile img {
  width: 112px;
}

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

/*switch*/

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

#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%);
  cursor: pointer;

  animation : slide-out 0.4s;
}

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

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

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

/* links */

#container ul {
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
}

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

  padding: 16px 24px;

  border-radius: 8px;
  background: var(--surface-color);
  border: 1px solid var(--stroke-color);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);


  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

#container li a:hover {
  border: 1.5px solid var(--text-color);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);

}

/* social links */

#social-icons {
  display: flex;
  padding: 24px;
  justify-content: center;
  align-items: center;
  gap: 16px;

  font-size: 24px;
}

#social-icons ion-icon {
  color: var(--text-color);
}

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



#social-icons a:hover {
  background: var(--surface-color);
  border-radius: 50%;
  transition: background 0.3s;
}

footer {
  padding: 24px 0;
  font-size: 14px;
  text-align: center;
}

footer a{
  text-decoration: none;
}

footer a:hover {
  color: var(--text-color);
  text-decoration: none;
  color: yellow;
  text-shadow: 5px 5px 4px var(--surface-color);
} 

/* media queries */

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

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

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

  to {
    left: 50%;
  }
}

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

  to {
    left: 0;
  }
}