* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    display:  flex;
    background: rgb(34, 100, 18);
}

.score-panel{
    font-family: Bangers;
    font-size: 30px;
    color: white;
    text-align: center;
    width: 100%;
    height: 10%;
    margin: 0 auto;
    padding-top: 15px;
    position: absolute;
}

.restart {
	background-color:#05491f;
	border-radius:15px;
	border:1px solid #054114;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family: Bangers;
	font-size:23px;
	padding:4px 31px;
	text-decoration:none;
	text-shadow:0px 1px 0px #2f6627;
}
.restart:hover {
	background-color:#e3cc1e;
}
.restart:active {
	position:relative;
	top:1px;
}

.memory-game {
    width: 640px;
    height: 640px;
    margin: auto;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    perspective: 1000px;
}

.memory-card {
    width: calc(25% - 10px);
    height: calc(33.333% - 10px);
    margin: 5px;
    position: relative;
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
}

.memory-card:active {
    transform: scale(.97);
    transition: transform .2s;
}

.memory-card.flip{
    transform: rotateY(180deg);
}

.front-face,
.back-face{
    width: 100%;
    height: 100%;
    padding: 20px;
    border-radius: 5px;
    background: #014618;
    position: absolute;
    backface-visibility: hidden;
}

.front-face{
    padding: 5px;
}

.front-face{
    transform: rotateY(180deg);
}



/* =======MODAL======= */


.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /*Location of the box*/
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content */
  .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 5px;
    width: 50%;
    height: 50%; 
  }
  
  /* The Close Button */
  .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }


#result{
    font-size: 40px;
    text-align: center;
    font-family: Bangers;
}
  

/* =======MODAL======= */