body {
    background-color: #fff;
}


h1 {
    color: rgba(8, 141, 165, 1);
    margin-left: 100px;
    text-shadow: 1px 0.5px 4px rgba(0,0,0, 0.6);
}


.container {
    width: 450px;
    height: 450px;
    background-color: #faebd7;
    border: 2px solid black;
    border-radius: 5%;
}






/* --------------------------------------
    STYLE ALL SQUARES:
----------------------------------------*/
.container .squares:nth-child(-n+4) {
    background-image: url("../Images/face1.png");
    color:#fff;
    float: left;
    width: 100px;
    height: 100px;
    margin: 5px;
    border: 1px solid black;
    border-radius: 25%;
    cursor: pointer;
    transition: transform 0.5s 4s ease-in-out;
}






/* -------------------------------------------------
    STYLE ALL THE SQUARES' PARAGRAPHS:
--------------------------------------------------*/
.squares:nth-child(-n+4) p{
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.5em;
    font-weight: 900;
    text-align: center;
    margin: 0;
    text-shadow: 2px 1px 4px rgba(0,0,0, 0.8);
}






/* ----------------------------------------------
    INDIVIDUALLY STYLING EACH SQUARE:
------------------------------------------------*/
.squares:nth-child(1) {
    background: #4240ff;
}


.squares:nth-child(2) {
    background-color: #ab3fdd;
}


.squares:nth-child(3) {
    background: #ae163e;
}


.squares:nth-child(4) {
    background-color: #00b200;
}






/* ---------------------------------------------
    HOVER, TRANSLATE, & TRANSFORM EFFECTS:
----------------------------------------------*/
.container .squares:nth-child(-n+4):hover {
    background-image: url("../Images/face2.png");
    transform: scale(0.5);
    animation-name: race;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(2.5, 0.2, 0.3, 2);
}


.squares:nth-child(1):hover {
    background-color: #13b4ff;
}


.squares:nth-child(2):hover {
    background: #d48cf6;
}


.squares:nth-child(3):hover {
    background-color: #f9376b;
}


.squares:nth-child(4):hover {
    background-color: #90dc03;
}


button:hover {
    background-color: #33fb14;
    color:#fff;
    cursor: pointer;
}






/*---------------------------------
DEFINE THE ANIMATION EFFECTS:
---------------------------------*/
@keyframes race {
    0%, 100% {
        transform: translateY(0px);
        background-image: url("../Images/face2.png");
    }
    50% {
        transform: translateY(330px);
    }
}
