@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');

*
{
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

body
{
  background-color: whitesmoke;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  transition: background 0.2s linear;
}

body.dark
{
    background: #575b68;
}

.checkbox
{
    opacity: 0;
    position: absolute;
}

.label
{
    background-color: #111;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    left: 250px;
    top: 5px;
    padding: 5px;
    position: relative;
    height: 26px;
    width: 50px;
    transform: scale(1.5);
}

.label .bola
{
    background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  height: 22px;
  width: 22px;
  transform: translateX(0px);
  transition: transform 0.2s linear;
}

.checkbox:checked + .label .bola
{
    transform: translateX(24px);
}

.fa-moon
{
    color: white;
}

.fa-sun
{
    color: white;
}

/* Corpo */

#container
{
    width: 100%;
    max-width: 588px;
    margin: 56px auto 0px ;
    padding: 0 24px;
}

#profile
{
    text-align: center;
    padding: 24px;
}

#profile img
{
    border-radius: 50%;
}

 #profile p
 {
    font-weight: 500;
    line-height: 24px;
    margin-top: 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
 }

 ul
 {
    list-style: none ;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;  
 }

 ul li a
{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 24px;
    background: rgb(187, 187, 187);
    border: 1px solid black;
    border-radius: 8px;
    font-family: 'Roboto Mono', monospace;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.5s;
    color: black;
}

ul li a:hover
{
    border-color: white;
}

footer
{
    padding: 24px;
    text-align: center;
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    color: black;
}

@media(max-width: 617px)
{
    .label
    {
        left: 200px;
    }
}