#main-content > .container {
	background: linear-gradient(180deg, rgba(60,0,189,1) 0%, rgba(118,191,234,1) 100%);
	margin: 0 !important;
	width: 100% !important;
}
.entry-title {
	background: #fff;
	text-align: center;
	color: #222;
	padding: 10px 0;
}
.restart {
	width: 93px;
	text-align: right;
}
#left-area ul {
	padding: 0 !important;
}
.memory-game-container {
	color: #fff;
}
.memory-game-container h1 {
	display: none;
}
.entry-content .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 1000;
}

/*
 * Styles for the deck of cards
 */

#left-area .entry-content .deck {
    width: 950px;
    min-height: 800px;
    padding: 32px;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 0 3em;
   
}

.deck .card {
    height: 165px;
    width: 165px;
    background: #fff;
    font-size: 0;
    color: #fff;
    border-radius: 8px;
	border: 3px solid rgba(118,191,234,1);
    cursor: pointer;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 1);
	background-image: url(/wp-content/uploads/2021/10/palette-updated-e1634151108301.png);
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	perspective: 1000px;
}
.deck .card img {
	width: 0;
	transition: width 0.15s ease;
}
.deck .card.show img, .deck .card.match img {
	width: 100%;
}

.deck .card.open {
    transform: rotateY( 180deg ) !important;
    cursor: default;
	transition: transform 0.8s;
	transform-style: preserve-3d;
}
.deck .card.close {
	transform: rotateY(0deg) !important;
	transition: transform 0.8s;
	transform-style: preserve-3d;
}
.deck .card.open img {
	transform: rotateY(-180deg) !important;
}
.deck .card.close img {
	transform: rotateY(-360deg) !important;
}
.deck .card.close.middle img {
	transform: rotateY(-180deg) !important;
}
.deck .card.open.middle {
	background: #fff;
}
.deck .card.close.middle {
	background:#ffe1c6;
}
.deck .card.show {
    font-size: 100px;
	background: #ffe1c6;
}

.deck .card.match {
    cursor: default;
    background: #02ccba;
    font-size: 80px;
}

/*
 * Styles for the Score Panel
 */
.memory-game-container .score-panel {
	display: flex;
	justify-content: space-between;
}
.score-panel {
    text-align: left;
    width: 950px;
	font-size: 2em;
}

.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;
}
.modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 500px;
	height: 500px;
	z-index: 1050;
	display: none;
	overflow: hidden;
	-webkit-overflow-scrolling: touch;
	outline: 0;
}
.modal.fade .modal-dialog {
	-webkit-transition: -webkit-transform .3s ease-out;
	-o-transition: -o-transform .3s ease-out;
	transition: transform .3s ease-out;
	-webkit-transform: translate(0,-25%);
	-ms-transform: translate(0,-25%);
	-o-transform: translate(0,-25%);
	transform: translate(0,-25%);
}
.modal-content {
	position: relative;
	background-color: #fff;
	-webkit-background-clip: padding-box;
	background-clip: padding-box;
	border: 1px solid #999;
	border: 1px solid rgba(0,0,0,.2);
	border-radius: 6px;
	outline: 0;
	-webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);
	box-shadow: 0 3px 9px rgba(0,0,0,.5);
}
.modal-header {
	padding: 15px;
	border-bottom: 1px solid #e5e5e5;
}
.modal-body {
	position: relative;
	padding: 15px;
}
.modal-footer {
	padding: 15px;
	text-align: right;
	border-top: 1px solid #e5e5e5;
}
@media (min-width: 768px){
	.modal-content {
		-webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
		box-shadow: 0 5px 15px rgba(0,0,0,.5);
	}
}
/*
 * Responsiveness
 */
@media only screen and (max-width: 1120px){
	#left-area .entry-content .deck {
		width: 800px;
		min-height: 650px;
	}
	.score-panel {
		width: 800px;
	}
	.deck .card {
		width: 150px;
		height: 150px;
	}
}
@media only screen and (max-width: 1120px){
	#left-area .entry-content .deck {
		width: 650px;
		min-height: 500px;
	}
	.score-panel {
		width: 650px;
	}
	.deck .card {
		width: 110px;
		height: 110px;
	}	
}
@media only screen and (max-width: 800px){
    .deck .card{
      width: 85px;
      height: 85px;
      line-height: 75px;
    }
  
    #left-area .entry-content .deck {
		width: 500px;
		min-height: 375px;
	}
	.score-panel {
		width: 500px;
	}
}
  
@media only screen and (max-width: 600px){
	.deck .card{
      width: 85px;
      height: 85px;
      line-height: 75px;
    }
  
    #left-area .entry-content .deck {
		width: 400px;
		min-height: 450px;
	}
	.score-panel {
		width: 400px;
		font-size: 1.25em;
	}
	.modal {
		width: 320px;
		height: 320px;
	}
}
@media only screen and (max-width: 480px){
	.deck .card{
      width: 70px;
      height: 70px;
      line-height: 70px;
    }
  
    #left-area .entry-content .deck {
		width: 320px;
		min-height: 450px;
	}
	.score-panel {
		width: 320px;
		font-size: 1em;
	}	
}