
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit ;
	vertical-align: baseline !important;
}

.brown-button {
	-moz-box-shadow: 3px 4px 0px 0px #5D4037;
	-webkit-box-shadow: 3px 4px 0px 0px #5D4037;
	box-shadow: 3px 4px 0px 0px #5D4037;
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #A1887F), color-stop(1, #795548));
	background: -moz-linear-gradient(top, #A1887F 5%, #795548 100%);
	background: -webkit-linear-gradient(top, #A1887F 5%, #795548 100%);
	background: -o-linear-gradient(top, #A1887F 5%, #795548 100%);
	background: -ms-linear-gradient(top, #A1887F 5%, #795548 100%);
	background: linear-gradient(to bottom, #A1887F 5%, #795548 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#A1887F', endColorstr='#795548',GradientType=0);
	background-color: #A1887F;
	-moz-border-radius: 0.2em;
	-webkit-border-radius: 0.2em;
	border-radius: 0.3em;
	border: 1px solid #6D4C41;
	font-size: 1.2em;
	font-weight: bold;
	text-shadow: 0px 1px 0px #8D6E63;
}

.brown-button:hover {
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #795548), color-stop(1, #A1887F));
	background: -moz-linear-gradient(top, #795548 5%, #A1887F 100%);
	background: -webkit-linear-gradient(top, #795548 5%, #A1887F 100%);
	background: -o-linear-gradient(top, #795548 5%, #A1887F 100%);
	background: -ms-linear-gradient(top, #795548 5%, #A1887F 100%);
	background: linear-gradient(to bottom, #795548 5%, #A1887F 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#795548', endColorstr='#A1887F',GradientType=0);
	background-color: #795548;
}

.brown-button:active {
	position: relative;
	top: 0.15em;
}

.brown-button:focus {
    outline-color: #D7CCC8;
}



.tool-tip {
    float: right;
    margin-top: -3.7em;
    margin-right: 0.3em;
    position: relative;
}

.tool-tip button {
    background: none;
    border: none;
    color: #000000;
    font-size: 1.6em;
    font-weight: 900;
}

.tool-tip .tool-tip-text {
    visibility: hidden;
    width: 5.5em;
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
    padding: 5px 0;
    position: absolute;
    top: 2.1em;
    right: 0;
    z-index: 1;
    border-radius: 0.3em;
}

.tool-tip:hover .tool-tip-text{
    visibility: visible;
    right: 2em
}

.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.1em;
}

.rating {
    font-size: 1.2em;
    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-board {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.3em;
}

.game-grid-row {
    display: flex;
    flex-wrap: nowrap;
}

.game-card {
    width: 4.5em;
    height: 4.5em;
    background-color: #212121;
    border-radius: 0.3em;
    margin: 0.4em;
    box-shadow: 1px 0 4px #838383;
    cursor: pointer;
	background: url("../memory/img/interrogacion.png") no-repeat center center;
	-webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.game-card-img {
    visibility: hidden;
    object-fit: cover;
    width: 4.5em;
    height: 4.5em;
}

.restart-button-div {
    max-width: 50%;
    margin: 1.5em auto;
    text-align: center;
}

.restart-button { 
	padding: 0.7em 1.4em;
}

/* Game Over Modal */
.sobre {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.sobre-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;
}

.sobre-header {
    border-bottom: 1px solid #D7CCC8;
    padding: 0.6em 1em;
    font-size: 1.5em;
    font-weight: bold;
}

.sobre-body {
    padding: 1.6em 0.3em 1em;
}

.sobre-body .message {
    text-align: center;
}

.sobre-body .message p {
    margin-bottom: 0.5em;
}

.game-over-icons {
    animation: animateIcons 3s linear infinite;
    position: relative;
}

.sobre-footer {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 0 1em 1.5em;
}

.sobre-footer button {
    padding: 0.3em 1em;
}

.close {
    font-size: 2em;
    float: right;
    margin-right: 0.8em;
    margin-top: 0.2em;
    font-weight: bold;
    color: #3E2723;
    position: relative;
    animation: animateCloseIcon 5s linear 2s infinite;
}

.close:hover, .close:focus {
    color: #8D6E63;
    cursor: pointer;
}

/* Page Footer */
.page-footer {
    border-top: 1px solid #D7CCC8;
    padding: 0.5em 0;
    text-align: center;
    font-size: 1.3em;
}

.page-footer-link {
    color: #5D4037;
    font-weight: 700;
}

.page-footer-link:hover {
    color: #212121;
    font-weight: 900;
    letter-spacing: 1px;
}

.page-footer-link:active {
    text-decoration: none;
}   

.page-footer-link:focus {
    outline: #A1887F auto 5px;
}

.page-footer-link:visited {
    color: #3E2723;
}

.show-img {
    visibility: visible;
    animation: animateShowImage 0.1s linear alternate;
}

.disabled {
    pointer-events: none;
}

.show-modal {
    display: block;
}

/* How to Play Modal */
.sobre-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) {
    .sobre-footer button {
        padding: 0.3em 0.3em;
        width: 50%;
    }
}

@media only screen and (min-width: 600px) and (max-width: 767px) {
    .game-card, .game-card-img {
        width: 5em;
        height: 5em;
    }

    /* How to Play Modal */
    .sobre-body .help-tips {
        padding: 0 2em;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .game-card, .game-card-img {
        width: 5.5em;
        height: 5.5em;
    }

    /* How to Play Modal */
    .sobre-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: 6em;
        height: 6em;
    }

    /* How to Play Modal */
    .sobre-body .help-tips {
        padding: 0 3em;
    }
	
}

@media only screen and (max-width:400px) {
	.game-card {
		margin: 0.15em;
	}
}