
/*
 * global.css
 *
 * Global CSS config for ALL pages in ketqua.net main site
 */

/* Set the background to always be grey */
/* All characters to be black */
body {
    background-color: #EEE;
    color: black;
}
.gray {
    color:#323232 !important;
}

/* Set selected element to have white background */
.kqbackground {
    background-color: white;
}
.container {
    padding-left: 6px;
    padding-right: 6px;
    background-color: #fff;
}
/* Set all text to align center *yellow */
.kqcenter {
    text-align: center;
    vertical-align: middle !important;
}

/* Set all our LINK text to be blue */
a {
    color: blue;
}

/* CSS settings for the Back to top button - it's in all site - global */
.back-to-top{
    position: fixed;
    bottom: 20px;
    right: 63px;
}
.back-to-top i{
    color: red;
    display: block;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, .075);
    text-align: center;
    font-size: 30px;
}

/* Set of colors for text objects (span, a, etc) */
.mautrang {
    color: white;
}
.maudo {
    color: red !important;
}
.dosam {
    color: #990000;
}
.mauxanh {
    color: blue;
}
.maucam {
    color:#ffbf00;
}
.camnhat {
    color:#ffeaa6;
}
.mauden {
    color:#3c2f2f;
}

/* Set of sizes of character */
.chu30 {
    font-size:30px !important
}
.chu31 {
    font-size:31px !important
}
.chu26 {
    font-size:26px;
}
.chu22 {
    font-size:22px;
}
.chu23 {
    font-size:23px;
}
.chu24 {
    font-size:24px;
}
.lodb {
    font-size:22px !important;
    padding:0 !important
}
.chu19 {
    font-size: 19px;
}
.chu18 {
    font-size: 18px;
}

.chu17 {
    font-size: 17px;
}

.chu16 {
    font-size: 16px;
}

.chu15 {
    font-size: 15px;
}
.chu145 {
    font-size: 14.5px;
}
.chu14 {
    font-size: 14px;
}
.chu13 {
    font-size: 13px;
}

/* Effect on our character */
.vietdam {
    font-weight: bold;
}

.vietthuong {
    font-weight: normal;
}

.vietnghieng {
    font-style: italic;
}
.viethoa {
    text-transform: uppercase;
}
/*Set text-align */
.center {
    text-align:center;
}
/* Classes to control vertical margin of div from each other */
.kqvertimargin {
    margin-bottom:2px !important;
}

.kqvertimarginw {
    margin-bottom:10px !important;
}

/* Title for a div - like the one of "Do xo so" on right hand menu */
.bkdivtitle {
    /* background-color: #333333;color: white;padding:8px; */
    background-color: #ed1d27;
    color: white;
    padding: 1px 10px;
}

/* table with border 1px black */
.background-border {
    margin-bottom:10px;
    background-color:white;
    border:solid;
    border-width:1px;
    border-color:#7E7E7E;
}
.nendosam {
    background-color:#990000;
}

.border {
    border:1px solid #ddd;
}
.bang_kqnhanh_bold_right {
    border-right:solid;
    border-right-color:#7E7E7E;
    border-right-width:1px;
}
.bang_kqnhanh_bold_left {
    border-left:solid;
    border-left-color:#7E7E7E;
    border-left-width:1px;
}
.bang_kqnhanh_bold_bottom {
    border-bottom:solid;
    border-bottom-color:#7E7E7E;
    border-bottom-width:1px;
}

/* Default button without borders */
.button-noborder {
    color: #333;
    background-color: #fff;
    border-color: #FFF;
}
.ghichu {
    padding-left:15px;
}

/* Right hand side do xo so */
#doxoso .col-sm-offset-1 {
    width: 45%;
}

#doxoso > form{
    padding-bottom: 2px;
}

/* Top 10 topics from forum */
.mien2 {
    font-size: 14px;
    list-style: decimal !important;
    margin-left: -15px;
}
.mien2 li {
    text-transform:lowercase;
}
.mien2 li a{
    color:black;
}
.mien2 li p{
    margin:0;
}
.mien2 li p:first-letter {
    text-transform:uppercase;
}
.mien2 li a:hover{
    color:#ed1d27;
    text-decoration:none;
}
.qt
.qtk-ganhon {
    margin-bottom:-15px;
}

.hdsd {
    margin-top: 4px;
    margin-right: 6px;
}
.daudong {
    padding-left:25px;
}
.left25 {
    margin-left:-25px;
}

/* Various hacks for calendar object */
div.datepicker-months > table > tbody > tr > td, div.datepicker-years > table > tbody > tr > td {
    width: 180px;
}

div#left_date div.datepicker-inline {
    width: 200px;
}

/* Head menu hack - Flush it with the other */
nav#ketqua_head_menu {
    margin-left: -4px;
    margin-right: -4px;
}

/* for input form */
.input-group-sm>.form-control, .input-group-sm>.input-group-addon, .input-group-sm>.input-group-btn>.btn {
    height: 34px;
    padding: 5px 10px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 3px;
}
.legend {
    margin-bottom: 5px;
    border-bottom:0px;
}
.borderden {
    border: solid;
    border-width: 3px;
    border-color: #7E7E7E;
}

/*color for rolling style */
/*.rolling {
color:red;
} */

.rolling-finished {
    color:green;
}

.rolling-progress {
    color:orange;
}

.rolling-notyet {
    color:#555;
}
.vien {
    border:solid;
    border-color:white;
    border-width:1px;
}
.viento {
    border:solid;
    border-color:white;
    border-left-width:3px;
    border-right-width:6px;
}
.table_invi {
    color:white;
}
.huongdan {
    margin-bottom: 5px;
    padding: 5px;
    background-color: #FFEB3B;
}
.canhbao {
    margin-bottom: -5px;
    background-color: #FFEB3B;
    padding-left:10px;
}
.modalsize {
    width: 735px;
}
.news-board {
    padding-bottom:15px;
}
.news-board a{
    color:black;
    line-height:22px;
}
.news-board a:hover{
    text-decoration:none;
    color: blue;
}
.news-padding {
    padding:5px 15px;
}
.panel {
    margin-bottom: 10px !important;

}
.panel-default{
    border-radius: 0px !important;
}
.panel-heading {
    background-color: #ed1d27 !important;
    color: #fff;
    padding:0;
    border-radius:0;
}
.panel-heading-green {
    background-color: #5cb85c !important;
    border-color: #4cae4c !important;
    color: #fff;
    padding:0;
    border-radius:0;
}
.panel-heading-blue {
    background-color: #337ab7 !important;
    border-color: #204d74 !important;
    color: #fff;
    padding:0;
    border-radius:0;
}
.panel-body{
    padding:5px !important;
}
.border0 {
    border: none;
}
.pad0 {
    padding: 0px !important;
}
.pad10 {
    padding: 10px !important;
}
.pad5 {
    padding: 5px !important;
}
.pad2 {
    padding: 2px !important;
}
.scroll {
    overflow: scroll;
}
.fl-r{
    float: right !important
}
.fl-left {
    float: left !important
}
.right-menu-item {
    padding:2px 5px !important;
    width:50%;
    vertical-align: middle !important;
}
.right-menu-row {
    height:40px;
}
.right-menu-item a{
    font-size:14px;
    color:#000;
}
.right-menu-item a:hover{
    color:#ed1d27;
    text-decoration:none;
}
.mar0{
    margin:0;
}
.right-menu-title {
    padding: 7px 15px;
    font-size: 16px;
    color: #fff;
    margin: 0;
    font-weight:normal;
}
.right-menu-title a{
    color: #fff
}
.right-menu-title a:hover {
    color: blue;
    text-decoration: none;
}
.max-cau {
    float:left;
    padding-top:10px;
}
.pagination{
    margin:0 !important;
}
.footer-col {
    list-style:none;
    padding:0;
}
.footer-col a{
    text-decoration:none;
    color:#333;
    float:left;
}
.footer-col a:hover{
    color:#ed1d27;
    text-decoration:none;
}
.background-eee {
    background-color:#eee;
}
.mainh1 {
    display:none;
}
.menuh2 a{
    color:#fff;
}
.menuh2 a:hover{
    text-decoration:none;
    color:#333;
}
.menuh2 a:active{
    text-decoration:none;
    color:#333;
}
#head_menu li a:hover{
    text-decoration:none;
    color:#333;
}
.lefth2 {
    line-height: 25px;
    margin: 0;
}
.martop10 {
    margin-top:10px;
}
.footerh3 {
    font-weight: normal;
    font-size: 14px;
    padding-bottom:1px;
}
.newsh2 {
    margin:0;
    padding:5px;
    font-size:25px !important
}
.newscontent {
    font-weight:normal;
    font-size:16px;
    line-height:24px;
}
.newscontent p img{
    max-width: 80% !important;
    text-align: center !important;
}
.relatenews {
    margin:5px;
    font-size:16px;
    font-weight:normal;
}
.relatenews a{
    color:#333;
}
.relatenews a:hover{
    color:#C00;
    text-decoration:none;
}
.newsh3 {
    clear: both;
    font-size:22px;
    font-weight:normal;
}
.news-item {
    width: 100%;
    border-bottom: 1px solid #eee;
    float: left;
    padding: 10px 0
}
.news-list{
    font-size: 22px;
    color: #022e7d;
}
.news_image {
    padding: 5px 0;
    width: 30%;
    float: left;
}
.news_image img{
    width: 100%
}
.news-main{
    width: 70%;
    float: left;
    padding: 5px 5px 5px 15px
}
.news-main h4 {
    margin-top: 0 !important
}
.news-list:hover {text-decoration: none; color: #990000}
.des-list{
    color: #333;
}
.tags-list{
    padding: 0;
    float: left;
    list-style: none;
}
.tags{
    display: inline;
    background-color: #ccc;
    padding: 2px 5px;
    width: auto;
    margin:2px;
}
.link-tags{color: #333;}
.link-tags:hover{
    text-decoration: none;
    color: #990000;
}
.description{
    font-weight: bold;
    font-size: 16px
}
.more-news{
    float: right;
    font-size: 14px;
    color: #990000;
}
.more-news:hover {
    text-decoration: none;
    color: #333
}
.all-table{
    text-align: center;
    padding: 25px 0 !important
}
.all-table a{
    font-size: 18px !important
}
.tool-div {
    padding: 10px 0;
    width: 100%;
    float: left;
}
.tool-result-title {
    width: 30%;
    float: left;
    padding: 10px 20px
}
.tool-result-box {
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    width: 70%;
    float: left;
    min-height: 120px
}
.big-button {
    padding: 30px;
}
.big-button button{
    padding: 20px
}
.tool-ul{
    width: 100%;
    margin: 0;
    padding: 10px;
    float: left;
    list-style: none;
}
.tool-li{
    word-wrap: break-word;
    display: inline;
    padding: 1px;
    width: auto;
    margin: 2px;
}
.red_box {
    border: 1px solid #ed1d27;
    margin-bottom: 10px;
}
.mega_ul{
    margin: 10px auto;
    text-align: center;
    padding: 0;
}
ul li.mega655_li:last-child {
    border: 4px solid #555;
    color: #fff !important;
    background: rgba(0,0,0,0.5);
}
.mega655_li {
    list-style: none;
    display: inline-block;
    text-align: center;
    font-weight: 700;
    padding: 5px;
    border-radius: 50%;
    width: 57px;
    height: 57px;
    line-height: 40px;
    font-size: 27px;
    background: none;
    color: #333 !important;
    border: 4px solid #ed1d27;
    margin: 0 5px;
}
.mega_li {
    list-style: none;
    display: inline-block;
    text-align: center;
    font-weight: 700;
    padding: 5px;
    border-radius: 50%;
    width: 57px;
    height: 57px;
    line-height: 40px;
    font-size: 27px;
    background: none;
    color: #333 !important;
    border: 4px solid #ed1d27;
    margin: 0 5px;
}

.mega_keno_li {
    list-style: none;
    display: inline-block;
    text-align: center;
    padding: 2px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    line-height: 25px;
    font-size: 18px;
    background: none;
    color: #333 !important;
    /* border: 4px solid #ed1d27; */
    margin: 0 5px;
}

.mega_keno_li_odd {
    border: 4px solid #ed1d27;
}

.mega_keno_li_even {
    border: 4px solid #444dbb;
}

.indam {
    font-weight: bold;
}
.mega_title {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: bold;
    padding-top: 10px;
    margin-bottom: 5px;
    color: #ed1d27;
}
.mega_sub {
    font-weight: bold;
    font-size: 16px;
    color: #0000CD;
    text-transform: none;
}
.max4d_div {
    width: 31%;
    height: 30px;
    float: left;
    margin-left: 10px;
    margin-bottom: 10px;
    border-radius: 15px;
    font-size: 28px;
    font-weight: bold;
    height: 32px;
    line-height: 32px;
    background: radial-gradient(circle at 5px 5px, #ffffff, #cacaca);
    border: 1px solid #ddd;
}
.max4d_lable {
    display: inline-block;
    float: left;
    width: 30px;
    height: 30px;
    margin-left: -1px;
    line-height: 30px;
    border-radius: 17px;
    text-align: center;
    border-right: 1px solid #ccc;
    background: none;
    font-size: 24px;
    color: #353535;
    border: 1px solid #ccc;
}
.max4d_value {
    color: #990000;
    width: 105px;
    text-align: center;
    display: inline-block;
    line-height: 30px;
}
.max4d_head {
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-left: 0 5px;
}
.title_row_4d td{
    border-bottom: 1px;
    font-weight: bold
}

/* Rolling with Vietlott */
li.rolling.success {
    background-color: #dff0d8;
}

.blink{
    animation: blink 1s infinite;
}

/*
 * province_menu
 */
.sidebar-nav {
    background-color:#ed1d27;
    border-bottom:1px solid #ddd;
}
.sidebar-nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.sidebar-nav a,
.sidebar-nav a:hover,
.sidebar-nav a:focus,
.sidebar-nav a:active {
    outline: none;
}
.sidebar-nav ul li,
.sidebar-nav ul a {
    display: block;
}
.sidebar-nav ul a {
    padding: 4px 15px;
    /* color: #666; */
    color: #000000;
    /* font-size: 15px; */
    font-weight: 500;
    border-top: 1px solid #DCDEE3;
    box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.05) inset;
    /* text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.5); */
}
.sidebar-nav ul a.title {
    color: #fff;
    vertical-align:middle;
    font-size:16px;
    font-weight:normal;
}
.sidebar-nav ul a:hover,
.sidebar-nav ul a:focus,
.sidebar-nav ul a:active {
    color: #fff;
    text-decoration: none;
}
.sidebar-nav ul ul a {
    padding: 7px;
    background-color: #fff;
}
.sidebar-nav ul ul a:hover,
.sidebar-nav ul ul a:focus,
.sidebar-nav ul ul a:active {
    background-color: #fff;
    color:#ed1d27;
}
.sidebar-nav-item {
    padding-left: 5px;
}
.sidebar-nav-item-icon {
    padding-right: 5px;
}

/*
 * Moved from row_no_gutter
 */
.row.no-gutter {
    margin-left: 0;
    margin-right: 0;
}

.row.no-gutter [class*='col-']:not(:first-child),
.row.no-gutter [class*='col-']:not(:last-child) {
    padding-right: 1px;
    padding-left: 0;
}

/*
 * table_kq
 */

/* Kind of border we want for our tables of ket qua */
table.table-kq-border tr td:first-child{
    border-left-style: solid;
    border-left-width: 1px;
    border-left-color: #7e7e7e;

}

table.table-kq-border tr td:last-child{
    border-right-style: solid;
    border-right-width: 1px;
    border-right-color: #7e7e7e;
}

table.table-kq-border thead tr:first-child th, table.table-kq-border thead tr:first-child td {
    border-top: solid !important;
    border-top-style: solid;
    border-top-width: 2px;
    border-top-color: rgb(87, 132, 169);

}

table.table-kq-border   tr:last-child td {
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: #7E7E7E;
}

/* Hover effects on cells of table of ketqua */
table.table-kq-hover tbody td:hover:not(.cau-khong-ton-tai){
    background-color: #ffbf00;
}

/* Hover effect on result divs of ket qua */
table.table-kq-hover-div tbody td div.hover:hover, table.table-kq-hover-div tbody td.hover:hover {
    background-color: #ffbf00;
}

/* Strip of colors and large text size for our tables of ket qua */
table.table-kq-north-west>thead>tr:first-child td, table.table-kq-north-west>thead>tr:first-child th, table.table-kq-north>thead>tr:first-child td, table.table-kq-north>thead>tr:first-child th  {
    font-size:17px;
    color: #990000;
    background-color: white;
}

table.table-kq-north-west>tbody>tr td:first-child {
    width:16%;
    vertical-align:middle;
    font-size:16px;
    background-color: #FFFFFF;
    border-right-style: solid;
    border-right-width: 1px;
    border-right-color: #7E7E7E;
}

table.table-kq-bold-border{
    border: 4px solid #7e7e7e;
}


/* Classes of text for our ket qua */


/* Prize in table Loto truc tiep */
.lototructiep {
    font-size: 19px !important;
    font-family: arial;
}

/* Normal prize when display in So Ket Qua */
.giaiskq {
    font-size: 15px !important;
    font-family: arial;
}


/* Special mode for when we print a result of a province */
@media print
{
    div.result_div .chu15 {
        font-size: 16px;
        font-weight:normal;
    }
    div.result_div .chu19 {
        font-size: 19px;
        font-weight:normal;
    }
    div.result_div .chu17 {
        font-size: 17px;
        font-weight:normal;
    }
    div.result_div .maudo {
        font-size: 21px;
        font-weight:bold;
    }


}

/*
 * headmenu
 *
 * All custom CSS config related to the fucking head menu
 */

/* Override top menu bar color and spacing */
.navbar-nav > li > a, .navbar-brand {
    padding-top:9px !important;
    padding-bottom:0 !important;
    height: 38px !important;
    color:#fff !important;
}

/* Hover elements of the menu */
#ketqua_head_menu a:hover, #ketqua_head_menu li:hover
{
    /* background-color:rgb(239, 21, 21) !important; */
    background-color:rgb(68, 86, 140) !important;
    max-height: 33px;
    color: white !important;
}

/* Active elements of the menu */
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.open>a, .sidebar-nav ul ul a.active, #ketqua_head_menu li.active
{
    /* background-color:rgb(239, 21, 21) !important; */
    background-color:rgb(68, 86, 140) !important;
    max-height: 33px;
}

#ketqua_head_menu .dropdown-menu a:hover
{
    color: white;
}

/* Menu item */
#ketqua_head_menu .nav#head_menu>li>a {
    padding:8px 25px !important;
    font-size:15px;
}

#ketqua_head_menu .container-fluid{
    padding-left: 0px;
    padding-right: 0px;
}

#ketqua_head_menu.navbar {
    border-radius: 0px;
    min-height: 35px !important;
    max-height: 35px !important;
    background-color: #ed1d27 !important;
    background-color: green;
}

#ketqua_head_menu .nav li .menuh2 {
    font-size: 15px !important;
    font-weight: normal;
    padding: 10px 25px;
    margin: 0
}

/*
 * balloon
 *
 * Govern styles of balloon advertisements
 */

div.baloon-left {
    left: 3px;
}

div.baloon-left a.toggle {
    text-align:left;
    color: #555;
}

div.baloon-right {
    right: 3px;
}

div.baloon-right a.toggle {
    text-align:right;
    color: #555;
}

div.baloon {
    position: fixed;
    bottom: 3px;
    z-index: 1000;
}

div.baloon img
{
    border: solid;
    border-width:1px;
    border-color:orange;
}

div.baloon.inactive img {
    display: none;
}

/*
 * Show/hide the span that we use for label of toggle
 * This help changing the text for those button
 */
[data-toggle="collapse"].collapsed span.text-expanded {
  display: none;
}
[data-toggle="collapse"]:not(.collapsed) span.text-collapsed {
  display: none;
}

/*
 * Help mimic the behaviour of border class in bootstrap 4
 */
.border-top {
  border-top: 1px solid #dee2e6 !important; }

.border-right {
  border-right: 1px solid #dee2e6 !important; }

.border-bottom {
  border-bottom: 1px solid #dee2e6 !important; }

.border-left {
  border-left: 1px solid #dee2e6 !important; }
