body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    margin: 0;
}
.avatar{
 width: 198px;
 height: 236px;
 border-radius: 10px;

}
.card{
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 10px 6px 10px 0 rgba(0, 0, 0, 0.5);
    max-width: 500px; 
    width: 90%; 
    height: auto;
    text-align: center;
    padding: 7px 5px;
    border-radius: 10px;
    color: white;
    background-color: #3C474B;
    transform: scale(1.2);
    transition: transform 0.5s ease;
}
.card:hover{
    transform: scale(1.22);
}
.details{
    margin: 0 10px;
    font-size: 15px;
    width: 200px;
}
.title{
    color: rgb(156, 154, 154);
    font-size: 18px;
}
button{
    border: none;
    border-radius: 10px;
    outline: 0;
    padding: 8px;
    color: rgb(14, 14, 14);
    background-color: white;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

h4 ~ a{
    text-decoration: none;
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
    margin: 0 5px;
    display: inline-block;
}
a:hover{
    transform: translateY(-2px);
}

button:hover{
    opacity: 0.85;
}

@media (max-width: 480px){
    body{
        padding: 20px;
    }
    .card{
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 360px;
        padding: 20px;
        gap: 16px;
        transform: scale(1);
    }
    .card:hover{
        transform: scale(1.03);
    }
    .avatar{
        width: 65%;
        max-width: 220px;
        height: auto;
    }
    .details{
        width: 100%;
        margin: 0;
        font-size: 14px;
    }
    .details h1{
        font-size: 24px;
    }
    button{
        width: auto;
        padding: 10px 24px;
    }
    a{
        font-size: 20px;
    }
}
