*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
body{
    background: #E3F2FD;
}
.container{
    margin: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.container .color{
    list-style: none;
    margin: 13px;
    padding: 7px;
    text-align: center;
    border-radius: 7px;
    background: #FFF;
    box-shadow: 0 10px 20px rgba(52,87,220,0.08);
    cursor: pointer;
    transition: 0.3s ease;
}
.container .color:active{
    transform: scale(0.95);
}
.container .rect-box{
    width: 185px;
    height: 188px;
    background: #8A6CFF;
    border-radius: 5px;
}
.color:hover .rect-box{
    filter: brightness(106%);
}
.container .hex-value{
    display: block;
    color: #444;
    margin: 12px 0 8px;
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: uppercase;
}
.refresh-btn{
    position: fixed;
    left: 50%;
    bottom: 40px;
    outline: none;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #FFF;
    background: #8A6CFF;
    border: 2px solid #fff;
    box-shadow: 0 15px 25px rgba(52,87,220,0.2);
    transform: translateX(-50%);
}
/* Lets make it responsive */
@media screen and (max-width: 510px) {
    .container{
        margin: 10px;
    }
    .container .color{
        margin: 8px;
        padding: 5px;
    }
    .container .rect-box{
        width: 145px;
        height: 148px;
    }
    .color .hex-value{
        font-size: 1.05rem;
    }
}