
ol, ul {
    list-style: none;
}

.brown-button {
	-moz-box-shadow: 3px 4px 0px 0px #092F8E;
	-webkit-box-shadow: 3px 4px 0px 0px #092F8E;
	box-shadow: 3px 4px 0px 0px #092F8E;
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #739AFF), color-stop(1, #092F8E));
	background: -moz-linear-gradient(top, #739AFF 5%, #092F8E 100%);
	background: -webkit-linear-gradient(top, #739AFF 5%, #092F8E 100%);
	background: -o-linear-gradient(top, #739AFF 5%, #092F8E 100%);
	background: -ms-linear-gradient(top, #739AFF 5%, #092F8E 100%);
	background: linear-gradient(to bottom, #739AFF 5%, #092F8E 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#739AFF', endColorstr='#092F8E',GradientType=0);
	background-color: #739AFF;
	-moz-border-radius: 0.2em;
	-webkit-border-radius: 0.2em;
	border-radius: 0.3em;
	border: 1px solid #092F8E;
	color: white;
	font-size: 1.2em;
	font-weight: bold;
	text-shadow: 0px 1px 0px #092F8E;
}

.brown-button:hover {
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #092F8E), color-stop(1, #739AFF));
	background: -moz-linear-gradient(top, #092F8E 5%, #739AFF 100%);
	background: -webkit-linear-gradient(top, #092F8E 5%, #739AFF 100%);
	background: -o-linear-gradient(top, #092F8E 5%, #739AFF 100%);
	background: -ms-linear-gradient(top, #092F8E 5%, #739AFF 100%);
	background: linear-gradient(to bottom, #092F8E 5%, #739AFF 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#092F8E', endColorstr='#739AFF',GradientType=0);
	background-color: #092F8E;
}

.brown-button:active {
	position: relative;
	top: 0.15em;
}

.brown-button:focus {
    outline-color: #D7CCC8;
}

.game-status-details {
    display: flex;
    flex-wrap: wrap;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;   
    padding: 0.3em;
    text-align: center;
}

.rating,
.move-counter,
.timer,
.restart-btn {
    width: 100%;
}

.move-counter, .timer {
    font-size: 1.3em;
}

.rating {
    font-size: 1.4em;
    color: #FFEA00;
    display: inline;
}

.star {
    margin-left: -10px;
}

.star:first-child{
    margin-left: 0 !important;;
}

.restart-btn {
    background: none;
    border: none;
    color: #000000;
    font-size: 1.6em;
    font-weight: 900;
}


.game-card {
    width: 6.5em;
    height: 6.5em;
    background-color: #092F8E;
    border-radius: 0.3em;
    margin: 0.2em;
    box-shadow: 2px 0 10px #092F8E;
    cursor: pointer;
}

.game-card-img {
    visibility: hidden;
    object-fit: cover;
    width: 6.5em;
    height: 6.5em;
}

.restart-button-div {
    max-width: 50%;
    margin: 1.5em auto;
    text-align: center;
}

.restart-button { 
	padding: 0.7em 1.4em;
}

/* Game Over Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    width: 80%;
    margin: auto;
    padding: 0;
    position: relative;
    top: 5%;
    background-color: #EFEBE9;
    border: 1px solid #808080;
    border-radius: 0.5em;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation: animateTop 0.4s;
}

.modal-header {
    border-bottom: 1px solid #D7CCC8;
    padding: 0.6em 1em;
    font-size: 1.5em;
    font-weight: bold;
}

.modal-body {
    padding: 1.6em 0.3em 1em;
}

.modal-body .message {
    text-align: center;
}

.modal-body .message p {
    margin-bottom: 0.5em;
}

.game-over-icons {
    animation: animateIcons 3s linear infinite;
    position: relative;
}

.modal-footer {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 0 1em 1.5em;
}

.modal-footer button {
    padding: 0.3em 1em;
    width: 50%;
}

.close {
	font-size: 2em;
	float: right;
	margin-right: 0.8em;
	margin-top: 0.2em;
	font-weight: bold;
	color: #CCCCCC;
	position: relative;
	animation: animateCloseIcon 5s linear 2s infinite;
}

.close:hover, .close:focus {
	color: #FFFFFF;
	cursor: pointer;
}

.show-img {
    visibility: visible;
    animation: animateShowImage 0.4s linear alternate;
}

.disabled {
    pointer-events: none;
}

.show-modal {
    display: block;
}

/* How to Play Modal */
.modal-body .help-tips {
    padding: 0 1.5em;
}

/* Animations */
@keyframes animateTop {
    from { top: -300px; opacity: 0; }
    to { top: 5%; opacity: 1; }
}

@-moz-keyframes animateTop {
    from { top: -300px; opacity: 0; }
    to { top: 5%; opacity: 1; }
}

@-webkit-keyframes animateTop {
    from { top: -300px; opacity: 0; }
    to { top: 5%; opacity: 1; }
}

@keyframes animateIcons {
    0% { top: 0em; left: 0em; }
    40% { top: 0em; left: 0em; }
    43% { top: -0.7em; left: 0em; }
    46% { top: 0em; left: -0.3em; }
    48% { top: -0.4em; left: 0.3em; }
    50% { top: 0em; left: 0em; }
    100% { top: 0em; left: 0em; }
}

@-moz-keyframes animateIcons {
    0% { top: 0em; left: 0em; }
    40% { top: 0em; left: 0em; }
    43% { top: -0.7em; left: 0em; }
    46% { top: 0em; left: -0.3em; }
    48% { top: -0.4em; left: 0.3em; }
    50% { top: 0em; left: 0em; }
    100% { top: 0em; left: 0em; }
}

@-webkit-keyframes animateIcons {
    0% { top: 0em; left: 0em; }
    40% { top: 0em; left: 0em; }
    43% { top: -0.7em; left: 0em; }
    46% { top: 0em; left: -0.3em; }
    48% { top: -0.4em; left: 0.3em; }
    50% { top: 0em; left: 0em; }
    100% { top: 0em; left: 0em; }
}

@keyframes animateCloseIcon {
    0% { top: 0em; }
    40% { top: 0em; }
    43% { top: -0.2em; }
    46% { top: 0em; }
    48% { top: 0.2em; }
    50% { top: 0em; }
    100% { top: 0em; }
}

@-moz-keyframes animateCloseIcon {
    0% { top: 0em; }
    40% { top: 0em; }
    43% { top: -0.1em; }
    46% { top: 0em; }
    48% { top: 0.1em; }
    50% { top: 0em; }
    100% { top: 0em; }
}

@-webkit-keyframes animateCloseIcon {
    0% { top: 0em; }
    40% { top: 0em; }
    43% { top: -0.1em; }
    46% { top: 0em; }
    48% { top: 0.1em; }
    50% { top: 0em; }
    100% { top: 0em; }
}

@keyframes animateShowImage {
    0% { transform: rotateY(90deg); opacity: 0;}
    100%{ transform: rotateY(0); opacity: 1; }
}

@-webkit-keyframes animateShowImage {
    0% { transform: rotateY(90deg); opacity: 0;}
    100%{ transform: rotateY(0); opacity: 1; }
}

@-moz-keyframes animateShowImage {
    0% { transform: rotateY(90deg); opacity: 0;}
    100%{ transform: rotateY(0); opacity: 1; }
}

/* Media Queries */
@media only screen and (max-width: 600px) {
    .modal-footer button {
        padding: 0.3em 0.3em;
        width: 70%;
    }
}

@media only screen and (min-width: 600px) and (max-width: 767px) {
    .game-card, .game-card-img {
        width: 6.8em;
        height: 6.8em;
    }

    /* How to Play Modal */
    .modal-body .help-tips {
        padding: 0 2em;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .game-card, .game-card-img {
        width: 6.8em;
        height: 6.8em;
    }

    /* How to Play Modal */
    .modal-body .help-tips {
        padding: 0 2.5em;
    }
}

@media only screen and (min-width: 992px) {
    .game-status-details {
        display: block;
    }

    .rating,
    .move-counter,
    .timer,
    .restart-btn {
        width: initial;
    }

    .game-card, .game-card-img {
        width: 6.8em;
        height: 6.8em;
    }

    /* How to Play Modal */
    .modal-body .help-tips {
        padding: 0 3em;
    }
}



.deck {
	width: 100%;
	background: #739AFF;
	padding: 0.5rem;
	border-radius: 4px;
/*	box-shadow: 8px 9px 26px 0 rgba(46, 61, 73, 0.5); */
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
	margin: 0 0 3em;
}

.deck .game-card-img {
	height: 6.5rem;
	width: 6.5rem;
	margin: 0.1rem 0.1rem;
	background: #092F8E;;
	font-size: 0;
	color: #ffffff;
	border-radius: 5px;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5);
	    object-fit: cover;
}

.game-card.match {
	cursor: default;
	animation-name: rubberBand;
	-webkit-backface-visibility: visible !important;
	backface-visibility: visible !important;
	animation-duration: .75s;
}




@keyframes rubberBand {
	from {
		transform: scale3d(1, 1, 1);
	}

	30% {
		transform: scale3d(1.25, 0.75, 1);
	}

	40% {
		transform: scale3d(0.75, 1.25, 1);
	}

	50% {
		transform: scale3d(1.15, 0.85, 1);
	}

	65% {
		transform: scale3d(.95, 1.05, 1);
	}

	75% {
		transform: scale3d(1.05, .95, 1);
	}

	to {
		transform: scale3d(1, 1, 1);
	}
}