body {
    background-color: yellow;
}

h1 {
    text-align: center;
    color: lightgray;
    font-family: lato;
    font-size: 20px;
    font-weight: 200;
    padding: 20px;
    text-transform: uppercase;
}

.wrap {
    margin: 50px;
}

.container {
    display: inline-block;
    width: 300px;
    height: 250px;
}

.box {
    border-radius: 5px;
    height: 40px;
    margin: 50px auto;
    width: 80px;

    .wrap:hover & {
        transform: scale(3);
    }
}

.box1 {
    background: red;
}

.box2 {
    background: black;
    transition: all 1s;
}

.box3 {
    background: rgb(24, 116, 196);
    transition: all 2s;
    .wrap:active & {
        transform: scale(5)
    }
}