* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    outline: none;
}

::selection {
	background: rebeccapurple;
	color: white;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fafafa;
}

.header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    align-items: center;
    background: transparent;
    animation: navbar 1s linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 160px;
}

@keyframes navbar {
    to {
        backdrop-filter: blur(32px) contrast(120%) saturate(110%);
        box-shadow: 0 0 10px rgba(0, 0, 0, .4);
    }
}

h1 {
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(320deg, mediumpurple, purple);
    width: 40%;
    height: 3px;
    border-radius: 20px;
}

main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 34px;
    padding: 2rem;
    max-width: 90%;
    margin: 0 auto;
}

.card {
    width: 90%;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    background: #f5f5f5;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    border-radius: 20px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: .5rem;
    background-color: pink;
    transition: .3s ease;
}}

.card-info {
    flex-grow: 1;
    padding-top: 10px;
    overflow: hidden;
}


svg {
 width: 20px;
 height: 20px;
}

/*Text*/
.text-title {
    font-weight: 900;
    font-size: 1em;
    line-height: 1.2;
    margin-bottom: 5px;
}

.text-body {
    font-size: .85em;
    line-height: 1.2;
    color: #333;
    max-height: 2.4em:;
}

/* FOOTER */
.card-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.card-button {
    border: 1px solid #252525;
    display: flex;
    padding: .3em;
    cursor: pointer;
    border-radius: 50px;
    transition: .3s ease-in-out;
}

/*Hover*/
.card-button:hover {
    border: 1px solid purple;
    background-color: pink;
}

.card-img:hover {
    transform: translateY(-10%);
    box-shadow: mediumpurple 0px 13px 47px -5px, mediumpurple 0px 8px 16px -8px;
}

#nameUser {
    padding: 7px;
    border-radius: 4px;
    font-size: 18px;
    color: rebeccapurple;
    font-weight: bold;
    border: 0;
    border: 1px solid rebeccapurple;
    transition: all 0.2s ease;
    &:focus {
        box-shadow: inset 0 0 10px rgba(0, 0, 0, .7);
    }
}