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;
    font-size: 30px;
    margin: 10px;
}

input {
  border: 0px none;
  background-color: transparent;
  font-family: 'Coda';
  font-size: 15px;
  width: 20px;
}


/*
 * 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.open.wrong {
    cursor: default;
    background: red;
    font-size: 33px;
}

.open-cards li{
  opacity: 0.0;
}
/*
 * 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 the Congratulations modal by Phillip Rappold from http://freefrontend.com/css-modal-windows/
 */

 .wrap {
   margin: auto;
 }

 .modal {
   background-color: #fff;
   padding: 2em 3em;
   text-align: center;
   border-radius: .5em;

   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   background-color: white;
   border-style: solid;
   text-align:center;

   z-index: 1010;

   display: none;


 }

 .modal p {

   color: #666;
 }

 .modal li {
   position: relative;
   margin: auto;
   list-style: none;
   display: inline-block;
   margin-bottom: 1em;
   margin-top: 1em;
 }

 .modal h1 {
   font-size: 1.5em;
   font-weight: bold;
   margin-bottom: .5em;
 }

 .modal.is-active {
   display: block;
 }

 .modal-image {
   width: 40px;
   height: 40px;
   margin: 0 auto;
   border-radius: 50%;
   box-shadow: 0 0 0 2px #48DB71;
   padding: 11px 10px 2px;
   margin-bottom: 2em;
 }

 .btn-open {
   display: none;
 }
 .btn-open.is-active {
   display: block;
 }

 button {
   font-size: 1.25em;
   font-weight: bold;
   background-color: #02ccba;
   border: none;
   padding: .5em 1em;
   color: #fff;
   box-shadow: 0 0 0 2px #02ccba inset;
   border-radius: .25em;
   cursor: pointer;
   -webkit-transition: background .4s ease, color .4s ease;
   transition: background .4s ease, color .4s ease;
 }
 button:hover {
   box-shadow: 0 0 0 2px #02ccba inset;
   color: #02ccba;
   background-color: transparent;
 }

/*
 * Styles for star
 */

  .fa-star{
    color: #fdcc09;
  }

  /*
   * Different screen sizes
   */

   @media (max-width: 1200px) {
     .deck .card {
       width: 125px;
       height: 125px;
     }

     .deck {
       max-width: 810px;
     }
   }


   @media (max-width: 880px) {
     .deck .card {
       width: 125px;
       height: 125px;
     }
     .deck {
       max-width: 800px;
     }
   }

   @media (max-width: 800px) {

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

     .deck {
       max-width: 700px;
     }
   }

   @media (max-width: 700px) {
     .deck .card {
       width: 125px;
       height: 125px;
     }
     .deck {
       max-width: 660px;
     }
   }

   @media (max-width: 660px) {

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

     .deck {
       max-width: 580px;
     }
   }

   @media (max-width: 580px) {

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

     .deck .card {
       max-width: 500px;
     }
   }

   @media (max-width: 500px) {
     .deck .card {
       width: 90px;
       height: 90px;
     }

     .deck {
       max-width: 450px;
     }
   }

   @media (max-width: 450px) {
     .deck .card {
       width: 80px;
       height: 80px;
     }

     .deck {
       max-width: 400px;
     }
   }
