body {
    width: 100%;
    height: 100%;
    background-color: #88BD88;

}

#sortable {
    list-style-type: none;
    margin: 0;
    padding: 0;
    height: 1070px;
    width: 1500px;
}

#sortable li {
    margin: 3px 3px 3px 0;
    padding: 1px;
    float: left;
    width: 740px;
    height: 570px;
    font-size: 4em;
    text-align: center;
}

.btn-primary {
    background-image: linear-gradient(to bottom, #36B733 0px, #26882B 100%);
    background-repeat: repeat-x;
    border-color: silver;
}

.btn-info {
    background-image: linear-gradient(to bottom, #36BC41 0px, #0A7D3F 100%);
    background-repeat: repeat-x;
    border-color: silver;
}

.btn-info:hover,
.btn-info:focus {
    background-color: #36B733;
    background-position: 0;
    border-color: silver;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #36B733;
    background-position: 0;
    border-color: silver;
}

.open>a {
    background-image: linear-gradient(to bottom, #158412 0px, #2ECE42 50%) !important;
}

.dropdown-menu {
    background-color: #12980F !important;
    border: 1px solid silver !important;
}

.dropdown-menu>li>a,
.dropdown-menu>li>a:hover,
.dropdown-menu>li>a:focus {
    background-image: none !important;
    background-color: #12980F !important;
}

.dropdown-menu>li>a {
    color: white !important;
}

.navbar-brand {
    padding: 3px;
}

.navbar-default .navbar-brand {
    color: #FFF;
}

.navbar-nav {
    width: 95%;
}

.navbar-default {
    border-color: silver;
}

.navbar-default .navbar-nav>.active>a {
    background-image: linear-gradient(to bottom, #1FF821 0px, #2DAB37 100%);
}

#barnav {
    background-image: linear-gradient(to bottom, #88BD88 0px, #489248 50%);
}

.nav>li {
    border: 0 solid silver;
    border-width: 1px 1px 1px 1px;
    padding: 1px;
    margin: 1px;
}

.nav>li:hover {
    cursor: pointer;
    background-image: linear-gradient(to bottom, #1FF821 0px, #2DAB37 100%);
}

li.li_lang {
    float: right;
}

img.flag {
    width: 50px;
    height: 70%;
}

.li_lang .flag {
    margin-top: 6px;
}

a.lien_lang {
    height: 50px;
    padding: 5px !important;
}

#lang {
    height: 50px;
    float: right;
}

#footer {
    text-align: center;
    font-weight: bold;
    margin: auto;
    padding: 10px;
}

#menu>li>a {
    color: white;
}

#main {
    margin: auto;
    background-color: #B0DCB0;
    max-width: 1100px;
    height: 100%;
}

.form_MD {
    margin-left: auto;
    margin-right: auto;
    background-color: #B0DCB0;
    padding: 7px;
}

.modal_form {
    background-color: #B0DCB0;
}

.form_MD>h1 {
    text-align: center;
}

/* login */

#form_login {
    max-width: 500px;
}

#infoConnecterJoueur .btn,
.modal-body .btn {
    font-size: 18px;
    border-radius: 5px;
}

/* fiche perso */
.tableInfos {
    margin: 0px;
    padding: 10px;
    width: 100%;

}

.tableInfos table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    box-shadow: 10px 10px 5px #888888;
    -webkit-border-bottom-left-radius: 25px;
    border-bottom-left-radius: 25px;

    -webkit-border-bottom-right-radius: 25px;
    border-bottom-right-radius: 25px;

    -webkit-border-top-right-radius: 25px;
    border-top-right-radius: 25px;

    -webkit-border-top-left-radius: 25px;
    border-top-left-radius: 25px;
}

.tableInfos tr:last-child td:last-child {
    -webkit-border-bottom-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.tableInfos table tr:first-child td:first-child {
    -webkit-border-top-left-radius: 25px;
    border-top-left-radius: 25px;
}

.tableInfos table tr:first-child td:last-child {
    -webkit-border-top-right-radius: 25px;
    border-top-right-radius: 25px;
}

.tableInfos tr:last-child td:first-child {
    -webkit-border-bottom-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

.tableInfos tr:hover td {
    background-color: #007f00;


}

.tableInfos td {
    vertical-align: middle;
    white-space: nowrap;
    background-color: #0b7a0b;

    border: 1px solid #cccccc;
    border-width: 0px 1px 1px 0px;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-family: Arial;
    font-weight: normal;
    color: #ffffff;
}

.tableInfos td.cell_header {
    padding: 15px;
}

.tableInfos tr:last-child td {
    border-width: 0px 1px 0px 0px;
}

.tableInfos tr td:last-child {
    border-width: 0px 0px 1px 0px;
}

.tableInfos tr:last-child td:last-child {
    border-width: 0px 0px 0px 0px;
}

.tableInfos tr:first-child td {
    background: -o-linear-gradient(bottom, #59aa08 5%, #3f7f00 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #59aa08), color-stop(1, #3f7f00));
    background: -moz-linear-gradient(center top, #59aa08 5%, #3f7f00 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#59aa08", endColorstr="#3f7f00");
    background: -o-linear-gradient(top, #59aa08, 3f7f00);

    background-color: #59aa08;
    border: 0px solid #cccccc;
    text-align: center;
    border-width: 0px 0px 1px 1px;
    font-size: 14px;
    font-family: Arial;
    font-weight: bold;
    color: #ffffff;
}

.tableInfos tr:first-child:hover td {
    background: -o-linear-gradient(bottom, #59aa08 5%, #3f7f00 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #59aa08), color-stop(1, #3f7f00));
    background: -moz-linear-gradient(center top, #59aa08 5%, #3f7f00 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#59aa08", endColorstr="#3f7f00");
    background: -o-linear-gradient(top, #59aa08, 3f7f00);

    background-color: #59aa08;
}

.tableInfos tr:first-child td:first-child {
    border-width: 0px 0px 1px 0px;
}

.tableInfos tr:first-child td:last-child {
    border-width: 0px 0px 1px 1px;
}

.tableInfos .nom_joueur_stats {
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

/* inscription */

#form_inscription {
    max-width: 600px;
}

/* accueil */

#textPresentation {
    text-align: center;
    max-width: 600px;
    margin: auto;
    padding: 20px;
}

.accueil #main {
    max-width: 700px;
}

#div_img_presentation {
    text-align: center;
}

#titre_principal {
    font-family: arial black;
    text-align: center;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 22px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

#div_sons,
#div_musique {
    float: right;
    margin-top: 20px;
    margin-right: 50px;
}

#div_sons>span,
#div_musique>span {
    font-size: 18px;
    line-height: 1.33;
    font-weight: bold;
    margin-right: 10px;
    float: left;
}

/* jeu */

body .btn {
    outline-color: green !important;
}

body .btn.btn-default {
    outline-color: #ccc !important;
}

body .btn-modal .btn {
    float: right;
}

#btnAnnulerCrea,
#creation_compte {
    margin-right: 15px;
}

body .modal-body .form-control {
    border: 1px solid grey;
}

.starwin {
    margin-left: 10px;
    width: 15px;
    height: 15px;
}

#jouerBtnContainer {
    text-align: center;
    padding: 0px 20px 20px 20px;
}

#pause.btn-danger {
    outline-color: #b92c28 !important;
}

#save {
    background-image: linear-gradient(to bottom, #11DDF5 0px, #0D37EC 100%);
    background-repeat: repeat-x;
    border-color: #2C9BCE;
    width: 106px;
}

#comment_jouer {
    width: auto;
}

.overlay {
    position: absolute;
    /* Position the overlay div inside the container */
    top: 0;
    left: 0;
    width: 736px;
    font-size: 22px;
    height: 576px;
    background-color: rgba(0, 0, 0, 0.7);
    /* Example background (semi-transparent) */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== INVENTORY GRID ===== */

#table_inventories {
    border-collapse: collapse;
}

#table_inventories td {
    border: 2px solid #7ea87e;
    text-align: center;
    vertical-align: top;
    padding: 6px;
    background-color: rgba(255, 255, 255, 0.05);
}

#table_inventories td:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.item-slot {
    position: relative;
    width: 90px;
    height: 110px;
}

.item-name {
    text-align: center;
    font-weight: bold;
}

.item-slot img {
    width: 90px;
    height: 90px;
    display: block;
}

.item-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    min-width: 24px;
    height: 24px;
    padding: 0 4px;
    font-size: 12px;
    line-height: 23px;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    border-top-left-radius: 4px;
    font-weight: bold;
    pointer-events: none;
}


/*
.overlay>p {
    display: none;
}*/

#div_video_youtube {
    text-align: center;
    padding-top: 50px;
    max-width: 700px;
}

#div_gauche_canvas {
    width: 250px;
    float: left;
}

#div_gauche_canvas .btn-lg {
    width: 150px;
    padding: 10px 10px;
    margin-bottom: 5px;
}

#btn_creer_compte,
#can_save {
    display: none;
}

#statistiques {
    margin-bottom: 10px;
}

#div_gauche_canvas,
#div_comment_jouer,
#div_button_pause {
    text-align: center;
    display: inline-block;
}

#div_canvas {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    height: 576px;
}

canvas.paused {
    border: 2px solid red;
}

.tableInfos table {
    border-collapse: initial;
}

.modal-title,
.modal label {
    color: black;
}

body .btn.btn-warning {
    outline-color: #eb9316 !important;
}

#div_button_save,
#div_button_carte {
    display: inline-block;
}

.objectSelected {
    border: 4px solid white;
}

@media only screen and (max-width: 800px) {

    body {
        background-color: #b0dcb0;
    }

    #nameMobile {
        color: white;
        background-color: transparent;
        font-weight: bold;
        display: inline-block;
    }

    #nameMobile li {
        background-image: linear-gradient(to bottom, #489248 0px, #88BD88 135%);
    }

    #nameMobile .open a {
        border-radius: 5px;
    }

    #nameMobile li a {
        color: white;
    }

    .tableInfos td.cell_header {
        padding: 10px;
    }

    .tableInfos td {
        padding: 5px;
    }

    #titre_principal {
        font-size: 24px;
    }

    #infoConnecterJoueur {
        padding: 0px 20px;
        max-width: 100%;
        white-space: normal;
    }

    #div_canvas {
        position: relative;
        overflow: auto;
        width: 100%;
        height: 100%;
        margin-left: 0px;
    }

    #div_sons,
    #div_musique {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    #div_gauche_canvas {
        width: 100%;
    }

    .hideOnMobile {
        display: none;
    }

    #menu .dropdown-toggle {
        border-radius: 20px 20px 0px 0px;
    }

    #menu .dropdown-menu,
    #menu .dropdown-menu li,
    #menu .dropdown-menu li a {
        border-radius: 0px 0px 20px 20px
    }

    .navbar-default .navbar-toggle .icon-bar {
        background-color: #cfcfcf;
    }

    .navbar-default .navbar-toggle:hover,
    .navbar-default .navbar-toggle:focus {
        background-color: #6e996e;
    }

    .navbar-collapse {
        background-color: #B0DCB0;
    }

    .navbar-default .navbar-nav>.active>a {
        border-radius: 9px;
    }

    #barnav #menu {
        max-width: 150px;
        float: right;
        margin: 0px;
    }

    .nav>li {
        border-radius: 10px;
        border: 1px solid #063703;
        background-image: linear-gradient(to bottom, #88BD88 0px, #489248 50%);
    }

    .nav>li.li_lang {
        width: 72px;
        text-align: center;
    }

    .nav>li.li_lang,
    .nav>li.li_lang.active .lien_lang {
        border-radius: 10px;
    }

    .nav>li.li_lang .lien_lang {
        height: 40px;
    }

    img.flag {
        width: 50px;
        height: 100%;
        margin-top: 0px !important;
    }

    #div_img_presentation img {
        width: 90%;
        border-radius: 10px;
    }

    #textPresentation {
        border: 2px solid white;
        border-radius: 20px;
        margin: 20px;
        background-image: linear-gradient(to bottom, #268526 0px, #489248 50%);
        color: white;
    }
}