/* CSS Bootstrap import */
@import url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css');
/* CSS Bootflat import */
@import url('https://cdnjs.cloudflare.com/ajax/libs/bootflat/2.0.4/css/bootflat.min.css');

/* --------------------------------------- */
/* html & body */
html{
    font-size: 18px;
}
@media screen and (max-width: 767px) {
    html{
        font-size: 3.38983vw;
    }
}

body {
    background: #f4f7f8;
    font-size: 1rem;
}

#bodybg{
    display: none;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
}
#bodybg img{
    object-fit: cover;
    opacity: 0.2;
    height: 100%;
    width: 100%;
}

a{
    font-weight: bold;
}

img{
    height: auto;
    max-width: 100%;
}

.marker_yellow{
    background-image: linear-gradient(0, #fe0 50%, #fff 50%);
}
.marker_red{
    background-image: linear-gradient(0, rgb(255, 148, 148) 50%, #fff 50%);
}

/* --------------------------------------- */
/* spacing */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.pt-1 { padding-top: 1rem; }
.pb-1 { padding-bottom: 1rem; }

/* --------------------------------------- */
/* navbar */
.my-navbar {
    align-items: center;
    background: #fff;
    display: flex;
    height: 2rem;
    justify-content: space-between;
    padding: 0 2%;
    margin-bottom: 3rem;
}

.body_bullren .my-navbar,
.body_cricketren .my-navbar{
    margin-bottom: 1rem;
    visibility: hidden;
}
@media screen and (max-width: 767px) {
    .body_bullren .my-navbar,
    .body_cricketren .my-navbar{
        margin-bottom: -1rem;
    }
}

.my-navbar-brand,
.my-navbar-item {
    color: #666;
}

.my-navbar-brand:hover,
a.my-navbar-item:hover {
    color: #333;
}
@media screen and (max-width: 767px) {
    span.my-navbar-item{
        display: none;
    }
}

.ic_logo{
    display: inline-block;
    height: 1.6em;
    width: 1.6em;
    background: url(/img/logo.png) no-repeat center;
    background-size: contain;
    margin-right: 0.3em;
    margin-bottom: -0.4em;
}

.logo_text{
    margin: -1rem auto 2rem;
    width: 80%;
}
.panel-body .logo_text{
    margin: 0rem auto 1rem;
}

/* --------------------------------------- */
/* panel */
.panel{
    box-shadow: none;
    border-radius: 1rem !important;
}
.panel-heading{
    border-radius: 1rem 1rem 0 0 !important;
    font-weight: bold;
    text-align: center;
}

/* --------------------------------------- */
/* list */
.list_menu a,
.list_menu .btn_dammy{
    margin: 0.2em auto;
    width: 90%;
}
.btn_dammy,
.btn_dammy:hover{
    background-color: #fff;
    cursor:default;
    color: #ccc;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.7rem 3rem;
}
.list-group-item {
    border-radius: 1rem !important;
    border-top: none !important;
}

.list_darts{
    padding-left: 0;
}
.list_darts li{
    list-style: none;
    padding-left: 2em;
    position: relative;
}
.list_darts li::before{
    background: url(../img/ic_darts.svg) no-repeat left top;
    background-size: contain;
    content: "";
    position: absolute;
    left: 0;
    height: 1.5em;
    width: 1.5em;
}
.list_darts li + li,
.list_game dd + dt{
    border-top: #8c8c8c solid 1px;
    padding-top: 0.5em;
    margin-top: 0.5em;
}
.list_game dd{
    font-size: 0.9em;
}

/* --------------------------------------- */
/* table */
.table_fright{
    font-size: 0.8em;
}
.table_profile th{
    white-space: nowrap;
}
.table_sampleaccount{
}
.table_sampleaccount th{
    background: #eee;
    font-size: 0.8em;
    font-weight: normal;
}
.table_sampleaccount td{
    font-size: 1.1em;
    font-weight: bold;
}
.table_sampleaccount th,
.table_sampleaccount td{
    border: 1px solid #999 !important;
    vertical-align: middle !important;
    width: 25%;
    text-align: center;
}

/* --------------------------------------- */
/* form */
.form-control{
    font-size: 1rem;
    height: 3rem;
}
.form-control[disabled],
.form-control[readonly] {
    background-color: #fff;
}

.btn{
    font-size: 1rem;
    font-weight: bold;
    padding: 0.7rem 3rem;
}
.btn[disabled],
.btn[disabled]:hover{
    background-color: #ccc;
}

/* --------------------------------------- */
/* cva */
.cva{
    margin: 4rem 1rem;
}
.cva .col-xs-4{
    padding: 0.2rem 0.5rem;
}
.cva .btns a{
    background: #3bafda;
    border-radius: 0.4rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1em 0.3em 0.8em;
    text-align: center;
    transition: 0.2s all ease-out;
}
.cva .btns a:hover{
    background: #125e9c;
}
.cva .btns a.game,
.cva .btns a.login{
    background: #37bc9b;
}
.cva .btns a:hover.game,
.cva .btns a:hover.login{
    background: #0d7259;
}

.cva .btns a.logout,
.cva .btns a.nagesen,
.cva .btns a.about{
    background: #777;
}
.cva .btns a:hover.logout,
.cva .btns a:hover.nagesen,
.cva .btns a:hover.about{
    background: #444;
}

.cva .icon{
    background: url(../img/ic_login.svg) no-repeat center center;
    background-size: contain;
    display: block;
    margin: 0 auto 0.5em;
    opacity: 1;
    height: 2em;
    width: 2em;
    transition: 0.2s all ease-out;
}
.cva .ic_logout{
    background-image: url(../img/ic_logout.svg);
}
.cva .ic_register{
    background-image: url(../img/ic_register.svg);
}
.cva .ic_about{
    background-image: url(../img/ic_about.svg);
}
.cva .ic_game{
    background-image: url(../img/ic_darts_white.svg);
}
.cva .ic_data{
    background-image: url(../img/ic_data.svg);
}
.cva .ic_user{
    background-image: url(../img/ic_user.svg);
}
.cva .ic_nagesen{
    background-image: url(../img/ic_nagesen.svg);
}

.cva .btns a:hover .icon{
    transform: scale(1.1) rotate(10deg);
}

/* sns */
.btn_x,
.btn_instagram,
.btn_threads{
    background: #777 url(../img/ic_x.svg) no-repeat center center;
    background-size: 1.3rem;
    border-radius: 50%;
    display: inline-block;
    margin: 0.5rem 0.2rem 0;
    height: 3rem;
    width: 3rem;
    transition: 0.2s all ease-out;
}
.btn_instagram{
    background-image: url(../img/ic_instagram.svg);
}
.btn_threads{
    background-image: url(../img/ic_threads.svg);
}
.btn_x:hover,
.btn_instagram:hover,
.btn_threads:hover{
    background-color: #444;
    transform: scale(1.2) rotate(10deg);
}

/* --------------------------------------- */
/* game */
.game_target{
    font-size: 6rem;
    font-weight: bold;
    line-height: 0.8;
    margin-bottom: 0.2em;
    text-transform: uppercase;
}

/* btn */
.game_btn_bull,
.game_btn_cricket,
.game_btn_choicetarget{
    margin-bottom: 1rem;
}
.game_btn_bull .btn{
    font-size: 2rem;
    margin: 0.5rem auto;
    width: 90%;
}
.game_btn_cricket .btn,
.game_btn_cricket .dammy{
    font-size: 2rem;
    margin: 0.5rem auto;
    width: 30%;
}
.game_btn_cricket .dammy{
    display: inline-block;
    opacity: 0;
}
.game_btn_choicetarget .btn{
    font-size: 2rem;
    margin: 0.5rem auto;
    width: 45%;
}

.game_target_bull #btn7,
.game_target_bull #btn8,
.game_target_bull #btn9{
    display: none;
}

/* ic_dart */
.ic_dart3,
.ic_dart2,
.ic_dart1,
.ic_dart0,
.ic_darts{
    background: url(../img/ic_dart3.svg) no-repeat center center;
    background-size: contain;
    display: inline-block;
    opacity: 0.6;
    position: absolute;
    transform: translateX(-2em);
    height: 1.4em;
    width: 1.4em;
}
.ic_dart2{
    background-image: url(../img/ic_dart2.svg);
}
.ic_dart1{
    background-image: url(../img/ic_dart1.svg);
}
.ic_dart0{
    background-image: url(../img/ic_dart0.svg);
}
.ic_darts{
    height: 1.6em;
    width: 1.6em;
    background-image: url(../img/ic_darts.svg);
    transform: translate(-2.2em, -0.2em);
}

/* ic_cricket */
.cricket_marks{
    display: flex;
}
.table_round td.cricket_marks{
    padding-left: 0 !important;
}
.ic_cricket_0,
.ic_cricket_1,
.ic_cricket_2,
.ic_cricket_3{
    background: url(../img/ic_cricket_black_0.svg) no-repeat center center;
    background-size: contain;
    display: inline-block;
    margin: 0;
    height: 1em;
    width: 1em;
}
.ic_cricket_1{
    background-image: url(../img/ic_cricket_black_1.svg);
}
.ic_cricket_2{
    background-image: url(../img/ic_cricket_black_2.svg);
}
.ic_cricket_3{
    background-image: url(../img/ic_cricket_black_3.svg);
}
#round_result .ic_cricket_0{
    background-image: url(../img/ic_cricket_white_0.svg);
}
#round_result .ic_cricket_1{
    background-image: url(../img/ic_cricket_white_1.svg);
}
#round_result .ic_cricket_2{
    background-image: url(../img/ic_cricket_white_2.svg);
}
#round_result .ic_cricket_3{
    background-image: url(../img/ic_cricket_white_3.svg);
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .table_round th{
        font-size: 0.6em !important;
    }
    .ic_cricket_0,
    .ic_cricket_1,
    .ic_cricket_2,
    .ic_cricket_3{
        height: 0.8em;
        width: 0.8em;
    }
}

/* game_exit */
.game_exit {
    position: absolute;
    top: -1rem;
    right: 0;
}
.game_exit .btn{
    padding: 0.5em 0.5em 0.5em 0.9em;
}
.ic_exit{
    background-image: url(../img/ic_exit.svg);
    background-size: contain;
    display: inline-block;
    margin: 0 0.5em 0.2em -0.5em;
    height: 2.0em;
    width: 2.0em;
    vertical-align: middle;
}


/* table_round & table_total */
.table_total thead th{
    text-align: center;
}
.table_round th,
.table_round td,
.table_total th,
.table_total td{
    padding: 0.5rem !important;
}
.table_round th,
.table_total:not(.is_result) th{
    color: #999;
    font-size: 0.8em;
    font-weight: normal;
    vertical-align: middle !important;
    text-align: center;
}
.table_total:not(.is_result) th{
    display: block;
    padding-bottom: 0.1rem !important;
}
.table_round td,
.table_total td{
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
}
.table_total:not(.is_result) td{
    border: none !important;
    display: block;
    font-size: 3.0em;
    line-height: 1 !important;
    padding-top: 0 !important;
}
.table_total.is_result td{
    font-size: 3.0em;
    line-height: 1 !important;
}
.table_total td .undernum{
    font-size: 0.5em;
}
.table_total.is_result td .undernum{
    display: inline;
}

@media screen and (max-width: 991px) {
    .table_total:not(.is_result) td{
        font-size: 2.0em;
    }
}
@media screen and (max-width: 767px) {
    .table_round tbody,
    .table_total:not(.is_result) tbody{
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .table_total tbody{
        flex-wrap: nowrap;
        justify-content: space-evenly;
    }
    .table_round tr{
        display: flex;
        align-items: center;
        width: 25%;
    }
    .table_total tr{
        width: auto;
    }
    .table_round th,
    .table_round td,
    .table_total:not(.is_result) th,
    .table_total:not(.is_result) td{
        border: none !important;
    }
    .table_total:not(.is_result) td{
        font-size: 2.0em;
    }
    .table_total td .undernum{
        display: inline;
    }
}

/* result_text */
.result_text{
    color: #37bc9b;
    font-size: 2rem;
    font-weight: bold;
}

/* round_result */
#round_result{
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 29vh;
    font-weight: bold;
    line-height: 1;
    text-transform: uppercase;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    opacity: 0;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out forwards;

    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;

    width: 100%;
    height: 100%;
}
@media screen and (max-aspect-ratio: 1) {
    #round_result{
        font-size: 35vw;
    }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
#round_result > span{
    opacity: 0;
    transform: translateX(20vw);
    animation: slideIn 0.2s 0.3s ease-out forwards;
}
#round_result .dart2{
    animation-delay: 0.5s;
}
#round_result .dart3{
    animation-delay: 0.7s;
}
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.num_bull{
    color: #f99;
}

/* award */
.award{
    background: rgb(229, 58, 58);
    color: #fff;
    font-size: 20vw;
    font-weight: 900;
    text-shadow: 0.07em 0.07em 0 rgba(0,0,0,0.2);
    line-height: 1;
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 0.3em 0.5em;
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 20;
    transform: translate(-120%,-50%) skew(-15deg);
    animation: award 1.7s linear 1s forwards;
    width: 130%;
}
#award_lowton,
#award_eight{
    background-image: linear-gradient(163deg, #22d3ee, #8b5cf6);
}
#award_hattrick{
    background-image: linear-gradient(163deg, #e018ff, #ff8000);
}
#award_threebed{
    background-image: linear-gradient(163deg, #5d18ff, #ff00f7);
}
#award_black{
    background-image: linear-gradient(163deg, #939393, #000000);
}
#award_hattrick .image,
#award_threebed .image,
#award_black .image{
    width: 20rem;
}
#award_threebed .line1{
    font-size: 12vw;
}
#award_black .line1{
    font-size: 11vw;
}
.award .line1{
    margin-right: 0.2em;
}
@media screen and (max-aspect-ratio: 1) {
    .award{
        font-size: 35vw;
        flex-direction: column;
        padding: 0.3em 0.2em;
        width: 140%;
    }
    .award .line1{
        margin-right: 0;
    }
}
@keyframes award {
    0% {
        transform: translate(-120%,-50%) skew(-15deg);
    }
    20% {
        transform: translate(-15%,-50%) skew(-15deg);
    }
    80% {
        transform: translate(0%,-50%) skew(-15deg);
    }
    100% {
        transform: translate(120%,-50%) skew(-15deg);
    }
}

/*---------------------------------------------------------*/
/* data */
/* data_index_rating */
.data_index_rating{
    margin: -2rem auto 2rem;
    position: relative;
}
.data_index_rating #myChart{
    margin: auto;
    height: 25rem !important;
    width: 25rem !important;
}
.data_index_rating .rating_num{
    font-size: 12rem;
    font-weight: bold;
    line-height: 1;
    position: absolute;
    left: 50%;
    top: 7rem;
    transform: translateX(-50%);
    text-shadow: 0.3rem 0.3rem 0 rgba(0,0,0,0.1);
}
.data_index_rating .rating_en{
    background-image: linear-gradient(0, #42e773, #1fe1ff);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    padding: 0.3rem 0.7rem 0.5rem;
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 6.5rem;
    width: 6.5rem;
    transform: translateX(-50%);
    text-shadow: 0.3rem 0.3rem 0 rgba(0,0,0,0.1);
}
.data_index_rating .rating_num .undernum{
    font-size: 4rem;
}

/* data_graph */
.data_graph canvas{
    width: 100% !important;
}

/* table_daily */
.table_daily tbody{
    font-size: 0.9em;
}

/* month-selector */
#month-selector{
    margin: 0.3rem auto;
    padding: 0.8rem;
    width: 100%;
}

/*---------------------------------------------------------*/
/* easytips */
.easytips{
	position: relative;
}
.easytips::before{
	border:0.5rem solid transparent;
	border-top: 0.5rem solid #152A3A;
	content: "";
	display: none;
	height: 0.5rem;
	width: 0;
	position: absolute;
	top: -0.4rem;
	left: 0;
	z-index: 101;
}
.easytips_icon{
	background: url(../img/ic_question.svg) no-repeat center center;
	background-size: contain;
	display: inline-block;
	height: 1rem;
	width: 1rem;
    margin-top: -0.2rem;
	vertical-align: middle;
}
.easytips_body{
	background: #152A3A;
	border-radius: 0.8rem;
	box-shadow: 0.6rem 0.6rem 0.4rem 0 rgba(0,0,0,0.1);
	color: #fff;
	display: none;
	font-size: 0.8rem;
	font-weight: normal;
	line-height: 1.5;
	padding: 0.8rem 1.4rem;
	position: absolute;
	left: calc(50% - 10rem);
	bottom: calc(100% + 0.3rem);
	text-align: left;
	white-space: normal;
	width: 20rem;
	z-index: 1000;
}
.easytips_body a{
	color: #fff;
}
.easytips:hover::before,
.easytips:hover .easytips_body{
	display: block;
}
.easytips_body .image{
	display: block;
	margin: 1rem 0;
	width: 100%;
}

/* position_right */
.easytips.position_left .easytips_body{
    left: -2rem;
}
.easytips.position_right .easytips_body{
    left: auto;
    right: -2rem;
}
@media screen and (max-width: 767px) {
    .easytips.position_left.position_pconly .easytips_body,
    .easytips.position_right.position_pconly .easytips_body{
	    left: calc(50% - 10rem);
        right: auto;
    }
}

