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

:root {
  --text-color: white;
  --bg-url: url(./assets/bg-mobile.jpg);
  --stroke-color: rgba(255, 255, 255, 0.1);
  --hight-color: rgba(255, 255, 255, 0.1);
  --bg-switch: white url(./assets/sun.svg) no-repeat center;
}

.light {
  --text-color: black;
  --bg-url: url(./assets/bg-mobile-light.jpg);
  --stroke-color: rgba(0, 0, 0, 0.1);
  --hight-color: rgba(0, 0, 255, 0.1);
  --bg-switch: white url(./assets/moon-stars.svg) no-repeat center;
}

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

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

#container {
  width: 360px;
  margin: 56px auto 0px;
  padding: 0 24px;
}

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

#switch button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-switch);
  position:absolute;
  top:50%;
  left: 0;
  z-index: 1;
  transform: translateY(-50%);
  
  }

 .light #switch button{
    right: 0;
    left: initial;
     }

#switch span {
  display: block;
  width: 64px;
  height: 24px;
  background: var(--stroke-color);
  border: 1px solid;
  border-radius: 99999px;
}

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

#profile img {
  width: 112px;
}

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

/* links */

ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 24px 0;
}

ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--stroke-color);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  font-weight: 300;
  text-decoration: none;
  transition: all 0.2s;
}

ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* social links */
#social-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px 0;
  font-size: 32px;
}

#social-links a {
  display: flex;
  justify-content: center;
  padding: 16px;
  border-radius: 50%;
  transition: all 0.2s;
}

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

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