/*
    This css should contain all styling for games elements only, or override the style for specific game.
    eg. Health bar on shooting game,
*/

body {
	background: #fff;
	background-size: cover;
}

.answer,
.current {
    background-color: rgba(245, 112, 126, .5) !important;
}

.introduction .title span:after {
    content: '';
    position: absolute;
    width: calc(100% + 14px);
    border: burlywood;
    left: -8px;
    height: 40px;
    background-color: #48565f;
    z-index: -1;
    top: -2px;
    border-radius: 100px;
    bottom: 0;
    margin: auto;
}

.stage {
	width: 100%;
    max-width: 768px;
    height: 100%;
    margin: 0 auto;
    background-color: #f5707e;
}

.stg-head {
	height: 10%;
	font-size: 0;
}

.stg-head div {
    display: inline-table !important;
    width: 33.3%;
    height: 100%;
    font-size: 25px;
    vertical-align: top;
}

.stg-body {
	height: 75%;
    background-color: #345471;
    position: relative;
}

.stg-body .continue {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
    display: inline-table;
}

.stg-body .continue span {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}
.stg-body > span {
    height: 24px;
}

.stg-body > span {
	display: block;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    background-color: #0088fe;
    padding: 2px;
}

.stg-footer {
	height: 15%;
    margin: auto;
}

.stg-head img {
    border-radius: 50%;
    height: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    cursor: pointer;
}

.stg-head div:not(:first-child) {
    text-align: center;
    display: inline-table !important;
}

.stg-head div:not(:first-child) span {
    display: table-cell;
    vertical-align: middle;
    color: #fff;
}

.learning-points {
	color: #ff0 !important;
	position: relative;
}

.learning-points:after {
    content: '';
    background-image: url('../images/learning-coins.png');
    width: 21px;
    height: 21px;
    position: absolute;
    background-size: 100%;
    background-repeat: no-repeat;
    top: -3px;
    left: calc(50% - -18px);
    bottom: 0;
    margin: auto;
}

.letter-lists {
    height: calc(100% - 30px);
    font-size: 0;
    display: block;
    margin: auto;
    max-width: 100%;
    background-color: #355c7f;
}

.letter-lists div {
    display: inline-table;
    font-size: 15px;
    color: #fff;
    text-transform: capitalize;
    text-align: center;
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 1;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.letter-lists div span {
    vertical-align: middle;
    display: table-cell;
    pointer-events: none;
}

.word-list {
    padding: 0 25px;
    height: 100%;
}

.word-list .swiper-slide span {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
}

.word-list .swiper-slide span i {
    font-style: normal;
    display: inline-block;
    padding: 6px 4px;
    font-weight: normal;
    text-transform: uppercase;
    color: #f7afaf;
    text-decoration: line-through;
    cursor: default;
}

.swiper-button-prev, 
.swiper-button-next {
    top: 22px;
    height: 100%;
    background-size: 10px;
    background-color: #f5707e;
}

.swiper-button-prev {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E") !important;
    left: 0;
}

.swiper-button-next {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E") !important;
    right: 0;
}

.swiper-button-next.swiper-button-disabled, 
.swiper-button-prev.swiper-button-disabled {
    opacity: 1;
    display: none;
}

i.answered {
    cursor: pointer !important;
    color: #fff !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

i.revealed {
    cursor: pointer !important;
    color: #fff !important;
    cursor: pointer !important;
}

.swiper-slide .wrapper {
    width: 100%;
    height: 100%;
    display: table;
    text-align: center;
}

.swiper-slide .wrapper div {
    display: table-cell;
    vertical-align: middle;
}

.letter-lists div:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 1px;
    right: 0;
    border-radius: 50px;
    z-index: -1;
    -webkit-transition: all .7s;
    -moz-transition: all .7s;
    -o-transition: all .7s;
    transition: all .7s;
    background-color: transparent;
}

.letter-lists div.active:before {
    background-color: rgba(245, 112, 126, .5) !important;
    -webkit-transition: all 0s;
    -moz-transition: all 0s;
    -o-transition: all 0s;
    transition: all 0s;
}

.start {
    border-radius: 50px;
}

.answer.start-left,
.answer.end-left,
.answer.start-right,
.answer.end-right,
.answer.end-top,
.answer.end-bottom,
.answer.start-bottom,
.answer.start-top,
.answer.start {
    border-radius: 0;
}

.answer-start-left,
.start-left {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.answer-end-left,
.end-left {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.answer-start-right,
.start-right {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.answer-end-right,
.end-right {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.answer-start-top,
.start-top {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.answer-end-top,
.end-top {
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
}

.answer-start-bottom,
.start-bottom {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.answer-end-bottom,
.end-bottom {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.answer-end-right.end-top {
    border-bottom-left-radius: 0;
    border-top-right-radius: 0;
}

.answer-end-right.current:not(.end-top) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.answer-end-right.end-bottom {
    border-top-right-radius: 20px !important;
    border-top-left-radius: 0;
}

.answer-end-right.end-top {
    border-bottom-right-radius: 20px !important;
}

.answer-start-right.end-top {
    border-top-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 20px;
}

.answer-start-right.current:not(.end-top) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.answer-start-right.end-bottom {
    border-top-left-radius: 20px !important;
    border-top-right-radius: 0px;
}

.answer-start-top.end-right {
    border-top-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-right-radius: 20px !important;
}

.answer-start-top.current:not(.end-top){
    border-top-right-radius: 0px;
    border-top-left-radius: 0;
}

.answer-start-top.end-left {
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 0px;
}

.answer-start-left.end-bottom {
    border-top-right-radius: 20px !important;
}

.answer-start-left.end-top {
    border-bottom-right-radius: 20px !important;
}

.answer-start-left.current:not(.end-bottom){
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.answer-end-left.end-bottom {
    border-top-left-radius: 20px !important;
}

.answer-end-left.end-top {
    border-bottom-left-radius: 20px !important;
}

.answer-end-left.current:not(.end-top){
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.answer-start-right.answer-start-top,
.answer-start-right.start-top {
    border-top-left-radius: 20px !important;
}

.answer-start-right.answer-start-bottom,
.answer-start-right.start-bottom {
    border-bottom-left-radius: 20px !important;
}

.answer-end-right.answer-start-top,
.answer-end-right.start-top {
    border-top-right-radius: 20px !important;
}

.answer-end-right.answer-start-bottom,
.answer-end-right.start-bottom {
    border-bottom-right-radius: 20px !important;
}

.answer-end-top.end-right {
    border-bottom-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 20px !important;
}

.answer-end-top.current:not(.end-top) {
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0;
}

.answer-end-top.end-left {
    border-top-left-radius: 0;
    border-bottom-left-radius: 20px !important;
}

.answer-end-top.start-right {
    border-bottom-left-radius: 20px !important;
}

.answer-end-top.start-left {
    border-bottom-right-radius: 20px !important;
}

.answer-start-top.start-right {
    border-top-left-radius: 20px !important;
}

.answer-start-top.start-left {
    border-top-right-radius: 20px !important;
}

.answer-start-top.start {
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

.answer-end-top.start {
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
}

.answer-end-right.start {
    border-top-right-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
}

.answer-start-right.start {
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
}

.answer-start-top.answer-start-right {
    border-bottom-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
}

.answer-start-top.answer-start-left {
    border-top-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.answer-end-left.start {
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
}

.answer-start-left.start {
    border-top-right-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
}

.answer-start-left.answer-start-top,
.answer-start-left.start-top {
    border-top-right-radius: 20px !important;
}

.answer-end-left.answer-start-top,
.answer-end-left.start-top {
    border-top-left-radius: 20px !important;
}

.answer-end-left.answer-start-bottom,
.answer-end-left.start-bottom {
    border-bottom-left-radius: 20px !important;
}

.answer-start-left.answer-start-bottom,
.answer-start-left.start-bottom {
    border-bottom-right-radius: 20px !important;
}

.answer.crossed {
    border-radius: 0px;
}

.crossed.answer-start-right.answer-start-top {
    border-top-right-radius: 0 !important;
}

@media (min-width: 768px){

    .letter-lists div,
    .word-list .swiper-slide span {
        font-size: 17px;
    }

    .swiper-button-prev, 
    .swiper-button-next {
        background-size: 17px;
    }

    

}