
body{
    width: 80%;
    margin: 0 auto;
    font-family: sans-serif;
}


h1, h2{
    margin: 0px;
}
h2{
    color: rgb(46, 46, 46);
    font-weight: normal;
}

.avatar{
    border-radius: 50%;
    border: 5px solid rgb(44, 44, 44);
}

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

.flex.sb{
    justify-content: space-between;
}

.mt-50{
    margin-top: 50px;
}

.mt-100{
    margin-top: 100px;
}

.mr-20{
    margin-right: 20px;
}

.center{
    text-align: center;
}

a{
    text-decoration: none;
    color: rgb(58, 93, 136);
}

a:hover{
    text-decoration: underline;
}

/* make a box with shadow on hover name .cards */
.cards{
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    margin-top:20px;
    margin-bottom: 20px;
    transition: all 0.3s ease-in-out;
    color: #333;
    overflow: hidden;
    padding-right: 10px;
}
.cards:hover{
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.cards:hover img{
    transform: scale(1.1);
}

.cards img{
   margin-right: 20px;
   transition: all 0.3s ease-in-out;
   max-width: 50%;
}

.cards h3{
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.cards p{
    margin-top: 0px;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* media query smartphone */
@media (max-width: 768px){
    .cards{
        display: block;
        padding: 20px;
    }
    .cards img{
        max-width: 100%;
    }
    .cards h3{
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .cards p{
        font-size: 1rem;
    }
    .not-flex-mobile{
        display: block;
    }
}