html {
    box-sizing: border-box;
}

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

html,
body {
    width: 100%;
    height: 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 {
    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);
}

/*
justify-content: center;
    align-items: center;
*/

.deck .card.open {
    transform: rotateY(0);
    background: #02b3e4;
    cursor: default;
}

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

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

.disable-click{
    pointer-events: none;
}

/*
 * 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;
}

/*star color rating*/
.rating{
    color: #05CABA;
}


.score-panel .restart {
    float: right;
    cursor: pointer;
}

#txt {
    margin-left: 10px;
}

/*
 *  Modal
 */
.modal-content {
    text-align: center;
}

/*
 *  Media query
 */
@media screen and (max-width: 700px) {
    .deck {
        width: 560px;
        min-height: 580px;
    }
    .deck .card {
        height: 100px !important;
        width: 100px !important;
    }
}

@media screen and (max-width: 600px) {
    .deck {
        width: 460px;
        min-height: 480px;
    }
    .deck .card {
        height: 80px !important;
        width: 80px !important;
    }
}

@media screen and (max-width: 500px) {
    .deck {
        width: 360px;
        min-height: 380px;
    }
    .deck .card {
        height: 60px !important;
        width: 60px !important;
    }
    .deck .card.show2 {
        font-size: 25px;
    }
    .deck .card.match {
        font-size: 25px;
    }
}

@media screen and (max-width: 400px) {
    .deck {
        width: 300px;
        min-height: 320px;
    }
    .deck .card {
        height: 50px !important;
        width: 50px !important;
    }
    .deck .card.show2 {
        font-size: 20px;
    }
    .deck .card.match {
        font-size: 20px;
    }
    .score-panel {
        width: 250px;
    }
}
