* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
}
body {
  background-color: #eaeaea;
  font-family: 'Open Sans', sans-serif;
}
.container {
  max-width: 1140px;
  padding-left: 15px;
  padding-right: 15px;
  margin: auto;
}
/* Start Game */
.game {
  text-align: center;
  padding: 20px 0;
}
.game h2 {
  font-size: 30px;
  font-weight: bold;
  color: #f97619;
  border-bottom: 2px solid #f97619;
  width: 210px;
  margin: 0 auto 15px
}
/* Start Game Levels*/
.levelButtons button {
  width: 130px;
  border: none;
  background-color: #0aaff7;
  padding: 7px;
  border-radius: 5px;
  margin-right: 5px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  transition-duration: .6s;
}
.levelButtons button:hover {
cursor: pointer;
opacity: .7;
}
.levelButtons button:focus {
outline: none;
}
/* End Game Levels*/
.start-game {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background-color: rgba(0,0,0,.8);
}
.start-game button {
 padding: 10px 18px;
 border: none;
 border-radius: 5px;
 background-color: #9f16ec;
 color: #FFF;
 font-size: 30px;
 font-weight: bold;
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 cursor: pointer;
 transition: background-color .3s ease-in-out ;
}
.start-game button:focus {
  outline: none
}
.start-game button:hover {
 background-color: blueviolet;
}
.gameInfo {
 display: flex;
 justify-content: space-between;
 width: 100%;
 margin: 30px auto ;
 background-color: #EEE;
 padding: 20px;
 border: 2px solid #0aaff7;
 font-size: 22px;
 font-weight: bold;
 font-family: Arial, Helvetica, sans-serif;
}
.gameInfo div {
margin-right: 20px;
}
.gameInfo div span {
font-size: 20px;
font-weight: normal;
}
.gameInfo .timerfont {
font-size: 22px;
font-weight: bold;
}
/* game Info */

/* Timer Count */
.timer {
font-size: 20px;
}
/*Start Game Block*/
.game-block {
 margin: auto;
 background-color: #EEE;
 display: flex;
 flex-wrap: wrap;  
}
.game-block.no-clicking {
 pointer-events: none;
}
.game-block .img-block {
 flex: 1 0 170px;
 height: 115px;
 margin: 0 10px 20px;
 text-align: center;
 transition: transform .5s;
 transform-style: preserve-3d;
 cursor: pointer;
 position: relative;
 background-color: chartreuse;
}
.game-block .img-block .front ,
.game-block .img-block .back {
 border: 5px solid #0aaff7;
 width: 100%;
 height: 100%;
 position: absolute;
 backface-visibility: hidden;
}
.game-block .img-block .front {
 background-color: #333;
 line-height: 115px;
}
.game-block .img-block .front::after {
 content: "!";
 font-size: 80px;
 font-weight: bold;
 color: #FFF;
}
.game-block .back { 
 transform: rotateY(180deg);
}
.game-block .back i {
 width: 100%;
 height: 100%;
 background-color: #DDD;
 line-height: 115px;
}

/* Start Custom Edit for swapping between Easy And Difficult Mode*/
.game-block .img-block.difficult {
flex: 1 0 130px;
height: 110px;
}
.game-block .img-block.difficult .front,
.game-block.difficult .back i {
line-height: 110px;
}
.game-block .img-block.difMode {
display: none;
}
.game-block .img-block.difMode.difficult.additional {
display: block;
}
/* End Custom Edit for swapping between Easy And Difficult Mode*/

.game-block .img-block.is-flipped,
.game-block .img-block.is-matched {
 -webkit-transform: rotateY(180deg);
 -moz-transform: rotateY(180deg);
 -o-transform: rotateY(180deg);
 transform: rotateY(180deg);
 pointer-events: none;
}

.try-again {
 width: 550px;
 background-color: #0aaff7;
 position: fixed;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 text-align: center;
 padding: 25px;
 border-radius: 10px;
 border: 3px solid #3F51B5;
 display: none;
 transition: .3s;
}
.try-again span:first-of-type{
 display: block;
 font-size: 50px;
 font-weight: bold;
 color: #333;
}
.try-again #playerGameInfo {
font-size: 20px;
font-weight: bold;
color: #041b24;
line-height: 1.6;
margin: 15px 0;
display: inline-block;
}
.try-again span:last-of-type{
 display: block;
 font-size: 30px;
 font-weight: bold;
 padding: 8px 0 20px;
 color: #FFF;
}
.try-again button {
 display: inline-block;
 border: none;
 background-color: #0d384a;
 color: #FFF;
 font-size: 22px;
 width: 80px;
 border-radius: 6px;
 padding: 8px 0;
 margin-left: 10px;
 font-weight: bold;
 cursor: pointer;
 transition-duration: .5s;
}
.try-again button:focus {
 outline: none;
}
.try-again button:hover {
opacity: .7;
}
.home {
  position: absolute;
  top: 30px;
  left: 40px;
  text-decoration: none;
  color: white;
  background-color: #f97619;
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 22px;
  cursor: pointer;
  font-weight: bold;
  transition-duration: .5s;
}
.home:hover {
  color: #f97619;
  background-color: white;
}
/* End Game*/