

html {
    box-sizing: border-box;
}

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

html,
body {
    
    margin: 0;
    padding: 0;
}

body {
    /* background: linear-gradient(160deg, #02ccba 0%, #aa7ecd 100%); */
    background: #C7D4DF;
    font-family: 'Montserrat', sans-serif;
    min-height:10px;
}

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

.deck {
    width: 880px;
    height: 550px;
    background-color: #EEF4F9;
    padding: 30px;
    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 30px 0;
}

.deck .card {
    width: 150px;
    height: 220px;
    background: #0a3d62;
    font-size: 0;
    color: #C7D4DF;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5);
}
.card.all img {display:show;} 

/*.card img {display:none;}
*/
.card img {display:none;}
.card.show img {display:block;}
.card.match img {display:block;}


.deck .card.open {
    transform: rotateY(180);
    background: #fff;
    cursor: default;
}

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

.deck .card.match {
    cursor: default;
    background: #3bfa0b;
    /*background-color: #1abc9c;*/
    font-size: 33px;
}

.deck .card.unmatch {
    cursor: default;
    background: #ff7675;
    font-size: 33px;
}

.card img {width:120px;}


/*
 * Styles for the Score Panel
 */

.score-panel {
    text-align: left;
    width: 650px;
    margin:10px 10px 30px 10px;
    color:rgb(0, 0, 0);
    /* padding:0 0px; */
    font-weight: 700;
    font-size:35px;
}

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

.score-panel .stars li {
    list-style: none;
    display: inline-block;
    font-weight: 700;
    color:rgb(0, 0, 0);
    font-size:2rem;
}

.score-panel .timer {
    display: block;
    padding-right:100px;
    display: inline-block;
    font-weight: 700;
    color:rgb(0, 0, 0);
    font-size:2rem;
    margin : 0 40px 0 40px;
}

/* 
============
CLOSE button
============
 */
 /* close {
    
    width: 60px;
    height: 60px;
    opacity: 0.9;
  }
  
  .close:before, .close:after {
    display: inline-block;
    position: absolute;
    left: 88%;
    content: ' ';
    height: 100px;
    width: 2px;
    background-color: #000;
  }
  .close:before {
    transform: rotate(45deg);
  }
  .close:after {
    transform: rotate(-45deg);
  } */

  
/*
====================
  level select Pop-ups
====================
*/


.level {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: white;
    background-color: rgba(230,230,230, 0.95);
    overflow-x: hidden;
    transition: 0.5s;
    display:none;
}

.level-content {
    position: relative;
    top: 20%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
    font-size: 3em;
}

.level-content button {
    background:#2ecc71;
    border-radius: 20px;
    border:0;
    padding:10px 20px;
    color:white;
    font-size:2em;
    cursor:pointer;
}

.level-content button:hover {
    background:#27ae60;
    /*font-size:1em;*/
}

.level-content .stars {
    margin: 0;
    padding: 0;
    display: inline-block;
    margin: 0 5px 0 0;
    font-size:30px;
    color:#ffa502;
}

.level-content .stars li {
    list-style: none;
    display: inline-block;
    margin:0 10px;
}
.level-content .restart  {
    float: center   ;
    font-weight: 700;
    /* color:white; */
    font-size:2rem;
}



/*
====================
  Congrats Pop-ups
====================
*/


.overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: white;
    background-color: rgba(230,230,230, 0.95);
    overflow-x: hidden;
    transition: 0.5s;
    display:none;
}

.overlay-content {
    position: relative;
    top: 0%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
    font-size: 2em;
}

.overlay-content button {
    background:#2ecc71;
    border-radius: 20px;
    border:0;
    padding:10px 20px;
    color:white;
    font-size:2em;
    cursor:pointer;
}

.overlay-content button:hover {
    background:#27ae60;
   
}

.overlay-content .stars {
    margin: 0;
    padding: 0;
    display: inline-block;
    margin: 0 5px 0 0;
    font-size:50px;
    color:#ffa502;
}

.overlay-content .stars li {
    list-style: none;
    display: inline-block;
    margin:0 30px;
}
.overlay-content .restart  {
    float: center   ;
    font-weight: 700;
    /* color:white; */
    font-size:2rem;
}


footer {
    color:white;
    text-align:center;
    font-weight: normal;
    font-size:14px;
}

footer a {
    color:white;
    text-decoration: none;
    font-weight:bold;
}

footer a:hover {
    text-decoration: underline;
}
/* 
============
button style
============
 */

.button {
    position: relative;
    background-color: blue;
    border: none;
    font-size: 28px;
    color: #FFFFFF;
    padding: 20px;
    width: 200px;
    text-align: center;
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
  }
  
  .button:after {
    content: "";
    background: #f1f1f1;
    display: block;
    position: absolute;
    padding-top: 300%;
    padding-left: 350%;
    margin-left: -20px !important;
    margin-top: -120%;
    opacity: 0;
    transition: all 0.8s
  }
  
  .button:active:after {
    padding: 0;
    margin: 0;
    opacity: 1;
    transition: 0s
  }





/*
====================
  Media Queries
====================
*/



@media screen and (min-width: 500px) and (max-width: 750px) {

.title {
    font-size:2.2rem;
}

.score-panel {width:400px;}

.score-panel .timer {
    padding-left:70px;
}

.deck {
    width: 400px;
    min-height: 420px;
    background-color: #ccc;
    padding: 20px;
}

.deck .card {
    height: 75px;
    width: 75px;
}

.card img {
    width:60px;
}

.overlay-content {
    top:10%;
}

}



@media screen and (max-width: 500px)  {

.title {
    font-size:1.6rem;
}

.title img{
    width:35px;
}

.score-panel {width:280px;}

.score-panel .timer {
    padding-left:10px;
}

.deck {
    width: 280px;
    min-height: 300px;
    background-color: #ccc;
    padding: 15px;
}

.deck .card {
    height: 55px;
    width: 55px;
}

.card img {
    width:40px;
}


.overlay-content img {
    width:200px;
}

.overlay-content {
    top:5%;
}
}
