@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@100..900&display=swap');

:root{
    --blue: hsl(185, 75%, 39%);
    --navy: hsl(229, 23%, 23%);
    --dark-grey: hsl(227, 10%, 46%);
    --light-grey: hsl(225, 10%, 92%);
}

html{
    font-size: 18px;
}

body{
    margin: 0;
    height: 100vh;
    background-color: var(--blue); 
    background-image:
        url(./images/bg-pattern-top.svg),
        url(./images/bg-pattern-bottom.svg);
    background-size: 160%;
    background-repeat: no-repeat;
    background-position: 
        top -16rem left -400px,
        bottom -16rem right -400px; 
    display: flex;
    font-family: Kumbh Sans, sans-serif;
    color: var(--dark-grey);
}

p{
    margin: 0;
}

.container{
    margin: auto;
    background-color: white;
    border-radius: 15px;
    width: min(20rem, 90%);
}

.img-wrapper{
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.header-img{
    width: 100%;
    object-fit: cover;
}

.profile-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-wrapper{
    width: 5.5rem;
    height: 5.5rem;
    overflow: hidden;
    border-radius: 100%;
    border: 5px solid white;
    margin-top: -3rem;
}

.profile-img{
    width: 100%;
}

.name-and-age{
    font-size: 1.3rem;
}

.name{
    font-weight: 700;
    color: var(--navy);
}

.location{
    font-size: 1rem;
    margin-top: -0.6rem;
    margin-bottom: 1.5rem;
}

.profile-stats{
    border-top: 1px solid var(--light-grey);
    display: flex;
    gap: 2.1rem;
    justify-content: center;
    padding: 1.3rem 1rem;
}

.stat{
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.value{
    color: var(--navy);
    font-weight: 700;
    font-size: 1.2rem;
}

.label{
    font-size: 0.8rem;
}

@media screen and (min-width:50rem){
    body{
        background-size: 70%;
        background-position: 
            top -35rem left -15rem,
            bottom -35rem right -15rem; 
    }
}