* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "inter", sans-serif;
    color: var(--text-color);
  }
  
  :root{
      --text-color:#ffffff;
      --bg-color: #121214;
      --stroke-color:rgba(255, 255, 255, 0.5);
      --surface-color:rgba(255,255,255,0.1);
      --surface-color-hover:rgba(255,255,255,0.2);
      --highlight-color:rgba(255,255,255,0.2);
      --switch-bg-url: url(/assets/moon-stars.svg);
  }
  
  .light{
      --text-color:black;
      --bg-color: #f4f4f4;
      --stroke-color:rgba(0, 0, 0, 0.5);
      --surface-color:rgba(0,0,0,0.5);
      --surface-color-hover:rgba(0,0,0,0.2);
      --highlight-color:rgba(0,0,0,0.1) ;
      --switch-bg-url: url(/assets/sun.svg);
  }
  
  body {
    /*background-image: url(./assets/bg-mobile.png) ;
      background-repeat: no-repeat;
      background-position: top center;
      background-size: cover;*/
  
    /* background: color image position/size; || isto é um shorthand ou atalho*/
    /*background: url(./assets/bj-mobile.jpg) no-repeat top center/cover;*/
    height: 100%;
    background: var(--bg-color);
  }
  
  #container {
    width: 100%;
    max-width: 360px;
    margin: auto;
  
    margin: 56px auto 0;
    padding: 0 24px;
  }
  
  /*Profile*/
  #profile {
    padding: 24px;
    text-align: center;
  }
  
  #profile img {
    width: 115px;
    margin: auto;
    border-radius: 60px;
    border: 4px solid var(--text-color);
  }
  
  #profile p {
    margin-top: 10px;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
  }
  
  /*Switch to dark ant light mode*/
  
  #switch{
    position: relative;
    width: 64px;
  
    margin: 4px auto;
    
  }
  
  #switch button{
      width:32px;
      height: 32px;
      background: white var(--switch-bg-url) no-repeat center ;
      border: 0;
      border-radius: 50%;
  
      position: absolute;
      left:0;
      animation: slide-out 0.2s ;
      z-index: 1;
      transform: translateY(-10%);
  }
  
  .light #switch button{
   animation: slide-in 0.2s forwards ;
  }

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

  #switch span{
    display: block;
  
    width: 64px;
    height: 24px;
  
    background-color: var(--stroke-color);
    border: 1px solid var(--stroke-color);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  
    border-radius: 9999px;
  }
  
  /*Links - List*/
  ul {
    list-style: none;
  
    display: flex;
    flex-direction: column;
    gap: 15px;
  
    padding: 24px 0;
  }
  
  ul li a {
      display: flex;
      align-items: center;
      justify-content: center;
  
      padding: 16px 24px;
  
      
      background:rgba(37, 34, 34, 0.02) ;
      border: 1px solid var(--surface-color);
      border-radius: 8px;
  
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
  
      text-decoration: none;
      font-weight: 500;
  
      transition: all 0.7s ease-in-out;
  }
  
  ul li a:hover {
      background:var(--surface-color-hover) ;
      border:  1.5px solid var(--stroke-color);
  
  }
  
  #social-media{
      display: flex;
      align-items: center;
      justify-content: center;
  
      padding: 24px 0;
  
      font-size: 24px;
  }
  
  #social-media a {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
  
      transition: background-color 0.2s ease-in-out;
      border-radius: 50%;
  }
  
  #social-media a:hover{
      background-color: var(--highlight-color);
      
  }
  
  footer{
      padding: 24px 0;
      text-align: center;
      font-size: 14px;
  }

  /*Media query*/

  @media (max-width:900px){

    :root{
        --bg-color: #0c0b0b;
    }

    .light{
        --bg-color: #ddd9dc;
    }
}

/*Animations for */

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

}

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