html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #333;
    background: #333; /* Background pattern from Subtle Patterns */
    font-family: 'Coda', cursive;
    color: white;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}

/*
 * Styles for the deck of cards
 */

.deck {
    width: 528px;
    min-height: 505px;
    /* background: linear-gradient(160deg, #02ccba 0%, #aa7ecd 100%); */
    background: #02b3e4;
    
    padding: 35px;
    border-radius: 10px;
    box-shadow: 12px 15px 20px 0 rgba(46, 61, 73, 0.5);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 3em;
    position: relative;
}



.deck .card {
    height: 100px;
    width: 100px;
    background: #2e3d49;
    font-size: 0;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5);
}

.deck .card.open {
    transform: rotateY(0);
    background: #02b3e4;
    cursor: default;
    font-size: 33px !important;

}

.deck .card img{
    height: 80px;
    width: 80px;
    }



.deck .card.match {
    cursor: default;
    background: #02ccba;
    font-size: 33px;
    -webkit-animation-name: match ; /* Safari 4.0 - 8.0 */
    -webkit-animation-duration: .5s; /* Safari 4.0 - 8.0 */
    animation-name: match;
    animation-duration: .5s;
}


@keyframes match{
    0% {transform: translate(5px,0);}
    50% {transform: translate(-10px,0);}
    100% {transform: translate(5px,0);}
}
.card.unmatch {
    -webkit-animation-name: unmatch; /* Safari 4.0 - 8.0 */
    -webkit-animation-duration: 0.4s; /* Safari 4.0 - 8.0 */
    animation-name: unmatch;
    animation-duration: 0.4s;
}
@keyframes unmatch{
    0% {transform: rotate(5deg);background-color: #492e2e}
    50% {transform: rotate(-10deg);background-color: #492e2e}
    100% {transform: rotate(5deg); background-color: #492e2e}
}

/*
 * Styles for the Score Panel
 */

.score-panel {
    text-align: left;
    width: 345px;
    margin-bottom: 10px;
    
}

.score-panel .stars {
    margin: 0;
    padding: 0;
    display: inline-block;
    margin: 0 5px 0 0;
}

.score-panel .stars li {
    list-style: none;
    display: inline-block;
}

.score-panel .restart {
    float: right;
    cursor: pointer;
}


/*
* styles for popup tab
*/

.deck .congratsTab{
    text-align: center;
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background: #333;
    padding-top: 50px;
    background-color: transparent;
    
}

.congratsTab button#again{
    padding: 10px 20px;
    background-color: teal;
    border:0;
    color: #fff;
    cursor: pointer
}
/* .congratsTab button#again:hover{
    background-color: aqua
} */


