*{
    margin: 0;
    border: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Roboto Slab', serif;
    background: #c1c2c5;
    /* background: #A3B2C2; */
}

.main-container{
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.main-container h2{
    margin-top: 50px;
}

.colors-container{
    width:80%;
    padding: 10px 8px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-content: space-around;
}

.color-box{
    height: 220px;
    width: 150px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    font-size: 12px;
    color: #7C7C84;
}

.color-box:hover{
    color: #4C545F;
    transform: scale(1.1);
    box-shadow: 0px 15px 15px -4px rgba(0,0,0,0.75);
    transition: all 400ms ease-in-out;
}

.color-box p{
   margin-bottom: 6px;
}

.colors{
    border-radius: 4px;
    height: 170px;
    width: 140px;
    margin-bottom: 2px;
}

.alert-msg{
    background: #0e1328;
    color: #a3a3a7;
    padding: 6px;
    border-radius: 4px;
    font-size: 12px;
    position: absolute;
    top: 5%;
}


.btn{
    background: yellow;
    padding: 8px 24px;
    border-radius: 4px;
    color: #ffffff;
    background:  #4a3899;
    font-weight: 600;
    letter-spacing: 1px;
    outline: none;
    cursor: pointer;
}

.info{
    background: #ffffff;
    color: #7f8491;
    padding: 8px;
    border-radius: 5px;
    font-size: 10px;
}

.hide{
    display: none;
}


@media screen and (max-width:500px){
    .main-container h2{
        margin-top: 30px;
    }

    .alert-msg{
        padding: 4px;
        border-radius: 3px;
        font-size: 10px;
        position: absolute;
        top: 1%;
    }

    .info{
        border-radius: 4px;
        font-size: 8px;
    }

    .colors-container{
        padding: 8px 4px;
    }

    .color-box{
        height: 140px;
        width: 100px;
        background: #ffffff;
        border-radius: 3px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 12px;
        margin: 8px 0;
    }

    .color-box:hover{
        color: #4C545F;
        transform: none;
        box-shadow: none;
        transition: none;
    }

    .color-box p{
        margin-bottom: 2px;
    }

    .colors{
        border-radius: 3px;
        height: 105px;
        width: 90px;
        margin-bottom: 4px;
    }

    .info{
        margin-top: 10px;
    }
}


@media screen and (min-width:501px) and (max-width:1020px){
    .color-box{
        margin: 6px 4px;
    }
}