:root{
    --clr-Green: hsl(75, 94%, 57%);
    --clr-White: hsl(0, 0%, 100%);  
    --clr-Grey-700: hsl(0, 0%, 20%);
    --clr-Grey-800: hsl(0, 0%, 12%);
    --clr-Grey-900: hsl(0, 0%, 8%);
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Figtree";
}

@font-face {
    font-family: "Figtree";
    src: url(assets/fonts/Inter-VariableFont_slnt\,wght.ttf);
}

/* body layout style */

body{
    background-color: var(--clr-Grey-900);
}

main{
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* content layout styles */

.user-card{
    background-color: var(--clr-Grey-800);
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 0 15px rgb(59, 59, 59);
}

/* header content styles */

header{
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 20px;
}

.avatar-img{
    height: 80px;
    width: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
}

header h1{
    color: var(--clr-White);
    margin-bottom: 10px;
}

header h4{
    color: var(--clr-Green);
    margin-bottom: 25px;
    font-weight: 600;
}

header p{
    color: var(--clr-White);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 10px;
}


/* footer content styles */

footer{
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr;
}

footer a{
    background-color: var(--clr-Grey-700);
    padding: 15px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    color: var(--clr-White);
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.2s;
}

footer a:hover{
    background-color: var(--clr-Green);
    color: var(--clr-Grey-900);
    box-shadow: 0 0 20px hsl(75, 86%, 22%);
}

.attribution { 
    font-size: 11px; 
    text-align: center; 
    color: white;
}
.attribution a { 
    color: hsl(228, 45%, 44%); 
}

/* media query responsive layout styles */


@media (max-width:375px) {
    .user-card{
        padding: 20px;
    }
    header p{
        font-size: 12px;
    }
    footer{
        gap: 12px;
    }
    footer a{
        padding: 10px;
        font-size: 12px;
    }
}
