html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 50px;
    font-family: "Hiragino Sans GB", "Helvetica Neue", Helvetica, "Microsoft YaHei", Arial, sans-serif;
    font-weight: 400;
    color: #444;
    line-height: 1.7;
    background-color: #fff;
}

ol, ul {
    padding-left: 30px;
}

.navbar-default {
    font-size: 14px;
    font-weight: 300;
    background-color: #fff;
}

    .navbar-default .navbar-nav > .active > a,
    .navbar-default .navbar-nav > .active > a:focus,
    .navbar-default .navbar-nav > .active > a:hover {
        font-size: 14px;
        font-weight: 600;
        background-color: #fff;
    }

.navbar-brand {
    font-size: 16px;
    font-weight: 400;
}

.panel-default > .panel-heading {
    background-color: #f8f8f8;
}

.panel-title {
    font-size: 15px;
    font-weight: bold;
    line-height: 150%;
    color: #555;
}

.dropdown-menu > li > a {
    font-size: 12.5px;
    color: #777;
    padding: 7px 20px;
}

.btn-primary {
    background-color: #1D98F6;
    border-color: #218ADB;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #218ADB;
        border-color: #0F7ACC;
    }

.progress {
    border-radius: 5px;
    opacity: 0;
    margin-top: 5px;
    width: 75%;
    max-width: 250px;
    height: 10px;
}

.progress-bar {
    background-color: #1D98F6;
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    transition: none;
    width: 60%;
}

.footer {
    position: absolute;
    padding: 14px;
    min-height: 50px;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    border: solid #e7e7e7;
    border-width: 1px;
    font-size: 14px;
    font-weight: 300;
}

    .footer a {
        color: inherit;
    }

        .footer a:hover {
            color: 333;
        }

.container {
    max-width: 1100px;
}

.container-fluid {
    max-width: 1100px;
}

.separator-line {
    margin-top: 40px;
    width: 100%;
    height: 2px;
    border-top: 1px solid #e7e7e7;
}

/* Text styles */
a {
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

b {
    font-weight: 700;
}

p {
    margin-bottom: 20px;
}

mark {
    background-color: #DADADA;
}

h4 small {
    font-size: 60%;
}

.h4, h4 {
    margin-top: 40px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 400;
    font-size: 19px;
}

.text-muted {
    color: #888;
}

/* Specific */
.status-indicator {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 3px;
}

#ai_logs {
    font-family: 'Monaco','Consolas','monospace';
    font-size: 10px;
    width: 100%;
    height: 80px;
}

#ai_msg {
    font-weight: bold;
    padding-bottom: 10px;
}

#tbl_board {
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #44f061;
}

#game_status {
    font-weight: bold;
}
/* Ai selector style */
section.ai-selector {
    display: flex;
    flex-flow: row wrap;
}

    section.ai-selector > div {
        flex: 1;
        padding: 0.5rem;
    }

.ai-selector input[type="radio"] {
    display: none;
}

    .ai-selector input[type="radio"]:not(:disabled) ~ label {
        cursor: pointer;
    }

.ai-selector label {
    height: 100%;
    display: block;
    background: white;
    border: 2px solid #20df80;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0px 3px 10px -2px rgba(161, 170, 166, 0.5);
    position: relative;
}


.ai-selector input[type="radio"] + label::after {
    content: "";
    opacity: 0;
}

.ai-selector input[type="radio"]:checked + label {
    background: #20df80;
    transition: background 0.5s;
    color: white;
    box-shadow: 0px 0px 20px rgba(0, 255, 128, 0.75);
}

    .ai-selector input[type="radio"]:checked + label::after {
        color: #3d3f43;
        border: 2px solid #1dc973;
        content: "\2714";
        font-size: 24px;
        position: absolute;
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
        height: 50px;
        width: 50px;
        line-height: 50px;
        text-align: center;
        border-radius: 50%;
        background: white;
        box-shadow: 0px 2px 5px -2px rgba(0, 0, 0, 0.25);
        opacity: 1;
        transition: opacity 0.3s;
    }


.ai-selector input[type="radio"]#ai_kei2:checked + label {
    background: #ff5a5a;
    border-color: #ff5a5a;
    box-shadow: 0px 0px 20px rgba(248, 96, 96, 0.75);
}

    .ai-selector input[type="radio"]#ai_kei2:checked + label::after {
        border: 2px solid #e50a0a;
    }

.ai-selector span.op-title {
    font-size: 25px;
    line-height: 30px;
    font-weight: 700;
}

.ai-selector span.op-desc {
    font-size: 12px;
    font-weight: 600;
}

.ai-selector label {
    padding-top: 25px;
}

/*Ai Level selector*/

.ai-level input[type="checkbox"],
.ai-level input[type="radio"] {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.ai-level label {
    color: #8e44ad;
    position: relative;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    padding-left: 30px;
    padding-right: 10px;
    line-height: 36px;
    cursor: pointer;
    z-index: 2;
}

    .ai-level label::before {
        content: " ";
        position: absolute;
        top: 6px;
        left: 0;
        display: block;
        width: 24px;
        height: 24px;
        border: 2px solid #8e44ad;
        border-radius: 4px;
        z-index: -1;
    }

.ai-level input[type="radio"] + label::before {
    border-radius: 18px;
}
/* Checked */
.ai-level input[type="checkbox"]:checked + label,
.ai-level input[type="radio"]:checked + label {
    padding-left: 10px;
    color: #fff;
}

    .ai-level input[type="checkbox"]:checked + label::before,
    .ai-level input[type="radio"]:checked + label::before {
        top: 0;
        width: 100%;
        height: 100%;
        background: #8e44ad;
    }
/* Transition */
.ai-level label,
.ai-level label::before {
    -webkit-transition: .25s all ease;
    -o-transition: .25s all ease;
    transition: .25s all ease;
}

/*Start game button*/
#btn_start {
    font-size: 22px;
    font-weight: bold;
}

@media screen and (min-width: 970px) {
    .row-setting .panel-body {
        min-height: 160px;
        text-align: center;
        display: flex;
        height: 100%;
        /*border: 1px solid red;*/
        justify-content: center;
        align-items: center;
    }

    .row-setting .panel-inner {
        width: 100%;
        height: 100%;
    }
}

.svg_demo_board {
    float: left;
    margin-right: 20px;
}