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

:root{
    font-size: 62.5%;
    /*variaveis*/

    --ff-primary:"Poppins", sans-serif;
    --text-color:#303030;

    --hue:194;
    --primary-color:hsl(var(--hue),100%,63%);
    --background-color:rgb(243, 245, 231);;
}

body{
    font-size: 1.6rem;
    color: var(--text-color);
    background-color: var(--background-color);
}
body *{
    font-family: var(--ff-primary);
}
.sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0); 
    white-space: nowrap;
    border-width: 0;
}

#app{
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
}

header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2.5rem 0;
}

header h1{
    font-size: 2rem;
    text-transform: uppercase;

}

.search{
    display: flex;
    align-items: center;
}

.search input{
    height: 3.2rem;
    border: 1px solid #ccc;
    border-radius: .4rem 0 0 .4rem;
    padding: 0 .8rem;
}

.search button{
    background-color: var(--primary-color);
    border-radius: 0 .4rem .4rem 0;
    height: 3.2rem;
    border: none;
    padding: 0 .8rem;
    cursor: pointer;
}

.search button:hover{
    filter: brightness(1.1);
}

table{
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 1rem .2rem -1rem rgba(0,0,0,0.3);
}

table *{
    font-size: 1.4rem;
    color: var(--text-color);
    
}

table th{
    background: var(--primary-color);
    text-align: left;
    font-weight: normal;
    padding: 1.5rem;
   
}

table th:first-child{
    border-top-left-radius: .4rem;
}
table th:last-child{
    border-top-right-radius: .4rem;
}

/* pega todos os filhos que forem ímpares */
table tr:nth-child(odd){
    background-color: #eee;
}

table tr{
    background-color: #ddd;
}

table td{
    padding: 1.5rem;
    text-align: left;
}
td.user{
    display: flex;
    align-items: center;
    gap: 1rem;
}

td.user img{
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 50%;
}

td.user a{
    text-decoration: none;

}

td.user a p{
    font-weight: bold;
}

td .remove{
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: solid 1px #303030;
    box-shadow: 1px 2px -1px rgba(0,0,0,0.3);
    border-radius: 20%;
    color: white;
    cursor: pointer;
    background-color: red;
    height: 1.3rem;
    width: 1.3rem;
    transform: background 3s;
}
td .remove:hover{
    background-color: rgb(245, 148, 148);
}