/*
	This css should contain all styling for the same elements for all games
	eg. Pause, Resume, Game Over modal and etc.
*/

html, body, .game-components {
	height: 100%;
	width: 100%;
	font-family: 'Arial' !important;
    margin: 0;
}

.preloader {
    width: 100%;
    height: 100%;
    background-color: #252525;
    position: absolute;
    z-index: 1000;
}

.preloader::before {
    content: '';
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    width: 40px;
    height: 40px;
    background-image: url('../assets/images/loader.gif');
    background-size: 40px;
    background-repeat: no-repeat;
}

.definition,
.blocker {
	display: none;
	position: absolute;
    width: 100%;
    height: 100%;
    z-index: 200;
}

.definition > div,
.content {
	background-color: #331c64;
    border: 2px solid #fff;
    position: absolute;
    width: 80%;
    left: 0;
    right: 0;
    margin: auto;
    top: 0;
    bottom: 0;
    max-width: 350px;
    height: 80%;
    max-height: 400px;
    text-align: center;
    min-height: 350px;
    min-width: 250px;
    box-shadow: 0px 0px 8px 1px #000000;
}

.content div {
	height: 33.3%;
}

.content .title {
	font-size: 40px;
	position: relative;
}

.content .title span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    color: #fff;
}

.content .points span {
	display: block;
	font-size: 30px;
	color: #fff;
	line-height: 1;
}

.content .points span:nth-child(2) { 
	font-size: 50px;
    position: relative;
    padding: 10px 0;
}

.content .points span:nth-child(2):after {
    content: '';
    position: absolute;
    background-image: url(../assets/images/coin.png);
    left: 0;
    right: 0;
    height: 29px;
    width: 40px;
    margin: auto;
    bottom: -35px;
}

.content .controls {
	position: relative;
}

.definition button,
.content .controls button {
    bottom: 10px;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    width: 50%;
    border-radius: 14px;
    color: #fff;
    padding: 5px;
    font-size: 18px;
    text-transform: capitalize;
    background-color: #53a502;
    border: none;
    cursor: pointer;
    outline: none;
}

.instruction button:hover,
.button:hover,
.content .controls button:hover {
    background-color: rgba(72, 86, 95, .5) !important;
}

.content .controls .restart {
    bottom: 55px;
    display: none;
}

.blocker[data-action="resume"] .restart {
    display: block;
}

.introduction {
    border: 1px solid #fff;
    height: 100%;
    font-size: 45px;
    text-align: center;
    background-color: #331c64;
    color: #fff;
    max-width: 768px;
    margin: 0 auto;
    position: relative;
    border-top: none;
    border-bottom: none;
}

.introduction .title span {
    position: relative;
    z-index: 100;
}

.introduction .title {
    height: 45%;
}

.introduction.how-to-play .title {
    height: 20%;
}

.introduction.how-to-play .instruction {
    height: 79.9%;
    border-top: 1px solid #48565f;
    position: relative;
}

.introduction.how-to-play .instruction:after {
    content: 'Powered by Miyens';
    position: absolute;
    font-size: 15px;
    right: 10px;
    bottom: 6px;
}

.introduction .action {
    height: 55%;
}

.nonegame-components {
    background-color: rgba(0, 0, 0, .7);
    height: 100%;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

.title,
.action {
    display: table;
    width: 100%;
}

.title div,
.action div {
    display: table-cell;
    vertical-align: middle;
}

.action div {
    position: relative;
}

.action > div:after {
    content: 'Powered by Miyens';
    position: absolute;
    font-size: 15px;
    right: 10px;
    bottom: 5px;
}

.branding {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    font-size: 15px;
    height: auto !important;
    line-height: 0;
}

.action div div:not(.instruction) {
    display: block;
    margin-top: 10px;
}

.button {
    border-radius: 100px !important;
    margin: 0 auto;
    font-size: 30px;
    background-color: #5b237c;
    color: white;
    line-height: 65px;
    height: 65px;
    width: 80%;
    max-width: 345px;
    cursor: pointer;
}

.game-components {
    position: absolute;
}

.instruction {
    height: 100%;
}

.instruction h1 {
    font-size: 25px;
    padding: 10px 0;
}

.instruction div {
    font-size: 20px;
    padding: 0 20px;
    height: calc(100% - 170px);
    border-bottom: 1px solid #48565f;
    margin-bottom: 0px;
    overflow-y: auto;
    text-align: left;
}

.instruction button {
    border-radius: 100px !important;
    font-size: 20px;
    background-color: #53a502;
    color: white;
    height: 40px;
    width: 100px;
    max-width: 345px;
    border: none;
    bottom: 31px;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    cursor: pointer;
}

.introduction .instruction,
.introduction.how-to-play .action {
    display: none;
}

.introduction.how-to-play .instruction {
    display: block;
}

.learning-points i {
    font-style: normal;
}

.definition .img-container {
    height: 170px;
    position: relative;
    background-color: #252525;
    width: 88%;
    margin: auto;
}

.definition .img-container.loading:before {
    content: '';
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    right: 0;
    background-image: url(../assets/images/loader.gif);
    width: 40px;
    height: 40px;
    background-size: 100%;
}

.definition img {
    width: auto;
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    max-height: 100%;
}

.definition span {
    padding: 5px 0;
    display: block;
    color: #fff;
    font-weight: bold;
    font-size: 25px;
    margin-top: 15px;
    text-transform: uppercase;
}

.definition .meaning {
    height: 105px;
    overflow-y: auto;
    padding: 0 15px;
    color: #fff;
    margin-top: 10px;
}

.meaning p {
    margin: 0;
}