html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #ffffff url('../img/geometry2.png'); /* Background pattern from Subtle Patterns */
    font-family: 'Coda', cursive;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

h1,
h2 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}

/*
 * Styles for the deck of cards
 */

.deck {
    width: 660px;
    min-height: 680px;
    background: linear-gradient(160deg, #02ccba 0%, #aa7ecd 100%);
    padding: 32px;
    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;
}

.deck .card {
    height: 125px;
    width: 125px;
    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;
}

.deck .card.show {
    font-size: 33px;
}

.deck .card.match {
    cursor: default;
    background: #02ccba;
    font-size: 33px;
}

.deck .card.red {
    background: #ca0b1c;
}

/*
 * Styles for the Score Panel
 */

.score-panel {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: left;
    width: 600px;
    margin-bottom: 10px;
}

.score-panel .stars {
    margin: 0;
    padding: 0;
    display: inline-block;
    margin: 0 5px 0 0;
}

.fa-star {
    color: yellow;
}

.score-panel .stars li {
    list-style: none;
    display: inline-block;
}

.moves {
    color: green;
    margin: 0 5px 0 10px;
}

.timer {
    display: block;
    float: right;
}

/*
 * Styles for the winning box
 */

.win {
    display: none;
    width: 400px;
    background-color: #fff;
    text-align: center;
    margin: calc(400px/2) auto;
    padding: 30px;    
    border-radius: 10px;
    box-shadow: 12px 15px 20px 0 rgba(46, 61, 73, 0.5);
}

.win-header {
    font-size: 1.5em;
    color: #02ccba;
}
.win p {
font-size: 1.2em;
color: #aaa;
}

.win-btn,
.restart-btn {
    display: block;
    padding: 10px 20px;
    margin: 20px auto;
    border: none;
    background-color: #02ccba;
    color: #fff;    
    border-radius: 10px;
    box-shadow: 12px 15px 20px 0 rgba(46, 61, 73, 0.5);
    cursor: pointer;
}

.win-btn:hover,
.restart-btn:hover {
    background-color: rgba(2, 204, 186, 0.7);
}

.win-btn:focus,
.restart-btn:focus {
    outline: none;
}

