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;
    color: #076bfe;
    text-align: center;
}

h2 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    color: #076bfe;
    text-align: center;
}

h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    color: #076bfe;
    text-align: center;
}

/*
 * Styles for the deck of cards
 */

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

.deck .card {
    height: 10vh;
    width: 20vw;
    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);
    margin: 0.5px;
}

.deck .card.open {
    transform: perspective(600px;) rotateY(180deg);
    background: #fe6978;
    cursor: default;
    transition: width 2s, height 2s, transform 2s;
}

.deck .card.show {
    font-size: 33px;
    animation-name: showcard;
    animation-duration: 1s;
}

.deck .card.match {
    cursor: none;
    background: #02ccba;
    font-size: 33px;
}
/* added css to disable click events */
.deck .card.avoid-click{
    pointer-events: none;
}

/*to avoid click on matched cards */
.deck .card.noclick{
    pointer-events: none;
}

/*
 * Styles for the Score Panel
 */

.score-panel {
    text-align: left;
    width: 100%;
    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;
}

.restart:hover, .restart:focus {
    color: #076bfe;
    cursor: pointer;
}

.score-panel .time {
    text-align: center;
    cursor: pointer;
}

/* modal */

.modal {
    display: none;
    position: fixed;
    z-index:1;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #f4f4f4;
    margin:20% auto;
    padding: 20px;
    max-width: 430px;
    box-shadow: 0 5px 8px 0 rgba(0,0,0,0.2),0 7px 20px 0 rgba(0,0,0,0.2);
    color: #00c6aa;
}

.modal-content span {
    color: #0076fe;
    float: auto;
    font-size: 18px;
    top: -2px;
    float: auto;
}

.modal-content .stars li {
   display: inline-block;
   list-style: none;
   color: #0076fe;
   float: auto;
}

.close-btn {
    color: #000;
    float: right;
    font-size: 30px;
}

.close-btn:hover, .close-btn:focus {
    color: #076bfe;
    cursor: pointer;
    font-size: 35px;
}

button {
    position: relative;
    bottom: 5px;
    background-color: #0076fe;
    color: #eef0ff;
    float: right;
    font-size: 17px;
    border: none;
    text-align: center;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
}

button:hover, button:focus {
    color: #eef0ff;
    cursor: pointer;
    font-size: 20px;
    border-radius: 4px;
}

.play-again-no {
    border: 2px solid white;
     position: relative;
    bottom: 1px;
}

.play-again-yes {
    border: 2px solid white;
     position: relative;
    bottom: 1px;
}

.start-no {
    border: 2px solid white;
    position: relative;
    bottom: 10px;
   
}

.start-yes {
    border: 2px solid white;
    position: relative;
    bottom: 10px;
}

.modal2 {
    display: block; 
    position: fixed;
    z-index:1;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    color: #355a9c;
}

.modal2-content {
    background-color: #f4f4f4;
    margin:20% auto;
    padding: 20px;
    width: 50%;
    box-shadow: 0 5px 8px 0 rgba(0,0,0,0.2),0 7px 20px 0 rgba(0,0,0,0.2);
    min-height: 50%;
}

.modal3 {
    display: none; 
    position: fixed;
    z-index:1;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal3-content {
    background-color: #f4f4f4;
    margin:20% auto;
    padding: 20px;
    width: 50%;
    box-shadow: 0 5px 8px 0 rgba(0,0,0,0.2),0 7px 20px 0 rgba(0,0,0,0.2)

}

.modal4 {
    display: none; 
    position: fixed;
    z-index:1;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal4-content {
    background-color: #f4f4f4;
    margin:20% auto;
    padding: 20px;
    max-width: 50%;
    box-shadow: 0 5px 8px 0 rgba(0,0,0,0.2),0 7px 20px 0 rgba(0,0,0,0.2)
}

@keyframes showcard {
    from{font-size: 0}
    to{font-size: 33px}
}

    
