body {
    font-family: Arial;
}

ol, ul {
    list-style: none;
}

em {
    font-style: italic;
}

.reset-button {
	background-color: rgb(102, 23, 49);
	-moz-border-radius: 0.2em;
	-webkit-border-radius: 0.2em;
	border-radius: 0.3em;
	border: 1px solid rgb(16, 5, 36);
	font-size: 1.2em;
    font-weight: bold;
    color: rgb(120, 205, 231);
	text-shadow: 0px 1px 0px rgb(43, 61, 77);
}

.reset-button:hover {
	background-color: #a04972;
}

.reset-button:active {
	position: relative;
	top: 0.15em;
}

.reset-button:focus {
    outline-color: rgb(177, 4, 4);
}

h1 {
    text-align: center;
    font-size: 2em;
    padding: 0.6em;
    text-decoration: underline;
}

.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{
    width: 100%;
}

.move-counter, .timer {
    font-size: 1.3em;
}

.rating {
    font-size: 1.4em;
    color: rgb(255, 0, 55);
    display: inline;
}

.point {
    margin-left: -10px;
}

.point:first-child{
    margin-left: 0 !important;;
}

.game-board {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    background-color: rgb(53, 63, 204);
    border-radius: 0.3em;
    box-shadow: 0 5px 5px #496081;
}

.game-grid-row {
    display: flex;
    flex-wrap: nowrap;
}

.game-card {
    width: 4.5em;
    height: 4.5em;
    background-color: #852525;
    border-radius: 0.3em;
    margin: 0.8em;
    box-shadow: 2px 0 10px #3a2a2a;
    cursor: pointer;
}

.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;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    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: rgb(167, 207, 166);
    border: 1px solid #0e250c;
    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);
}

.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;
}

.modal-footer {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 0 1em 1.5em;
}

.modal-footer button {
    padding: 0.3em 1em;
    width: 50%;
}

.show-img {
    visibility: visible;
    animation: animateShowImage 0.4s linear alternate;
}

.disabled {
    pointer-events: none;
}

.show-modal {
    display: block;
}


@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 only screen and (max-width: 600px) {
    .modal-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;
    }

}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .game-card, .game-card-img {
        width: 5.5em;
        height: 5.5em;
    }

}

@media only screen and (min-width: 992px) {
    .game-status-details {
        display: block;
    }

    .move-counter,
    .timer{
        width: initial;
    }

    .game-card, .game-card-img {
        width: 6em;
        height: 6em;
    }

}