.ludoHome {
    position: absolute;
    z-index: 9999;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: #9797979e;
}
#ludo,
.topbar,.ludoHome .bg-primary {
    width: 400px;
    max-width: 100%;
    height: 400px;
    background: white;
    margin: auto;
}
.ludoHome .bg-primary {
    height: 25px;
    margin-top: 5px;
    background-color: #337ab7;
}
.hideLudo .topbar, .hideLudo #ludo, .hideLudo .exitludo {
    display: none
}
.hideludo,.exitludo {
    width: 12%;
    height: 100%;
    background-image: url(../img/d01.png);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
    min-width: 50px;
}
.exitludo {
    float: right;
    background-image: url(../img/d00.png);
}
.hideLudo.ludoHome {
    width: 60px;
    height: 0;
    top: 85%;
}
.hideLudo .hideludo {
    background-image: url(../img/d02.png);
    width: 100%;
}

.gameOver {
    width: 100%;
    text-align: center;
    line-height: 50px;
    font-size: 30px !important;
    height: 30%;
    margin-bottom: 7px;
    border-bottom: 1px solid #337ab7;
}
.win1,.win2,.win3 {
    width: 100%;
    height: 100%;
}
.gameOver .ov1, .gameOver .ov2, .gameOver .ov3 {
    width: 30%;
    height: 100%;
    border-radius: 50%;
    margin: auto;
    background-size: contain;
    display: block;
    background-position: center;
    background-repeat: no-repeat;
}
.gameOver .ov3 {
    background-image: url(../img/ov3.png),url(../img/users/3.png);;
}
.gameOver .ov2 {
    background-image: url(../img/ov2.png),url(../img/users/2.png);
}
.gameOver .ov4 {
    background-image: url(../img/ov2.png),url(../img/users/2.png);
}
.gameOver .topic {
    float: right;
    width: 85%;
    height: 100%;
}
.gameOver .w1:nth-child(1),.gameOver .w2:nth-child(1),.gameOver .w3:nth-child(1) ,.gameOver .w4:nth-child(1) {
    background-color: antiquewhite;
    text-align: center;
    line-height: 26px;
}
.gameOver .topic>div {
    margin: 5px;
    text-align: right;
}
.ludo-board {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.56);
    border-radius: 20px;
    border: none;
    width: 99%;
    height: 99%;
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    grid-template-rows: repeat(15, 1fr);
    margin: 0.5%;
    float: left;
    background-image: url(../img/b2.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.red-home {
    grid-column: 1/7;
    grid-row: 1/7;
}

.green-home {
    grid-column: 10/16;
    grid-row: 1/7;
}

.blue-home {
    grid-column: 1/7;
    grid-row: 10/16;
}


.yellow-home {
    grid-column: 10/16;
    grid-row: 10/16;
}

.winner-home {
    border-radius: 16px;
    grid-column: 7/10;
    grid-row: 7/10;
}

.step {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0;
}

.step .player {
    position: absolute;
}

.step .player:nth-child(1) {
    margin-top: 0px;
    margin-left: 0px;
}

.step .player:nth-child(2) {
    margin-top: 3px;
    margin-left: 3px;
}

.step .player:nth-child(3) {
    margin-top: 6px;
    margin-left: 6px;
}

.step .player:nth-child(4) {
    margin-top: 6px;
    margin-left: 6px;
}

.step .player:nth-child(5) {
    margin-top: 9px;
    margin-left: 9px;
}

.step .player:nth-child(6) {
    margin-top: 12px;
    margin-left: 12px;
}

.step .player:nth-child(7) {
    margin-top: 15px;
    margin-left: 15px;
}

.white-box {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.player-room {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 60%;
    height: 60%;
    margin: 20%;
}
.super-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.player {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25px;
    width: 25px;
    border-radius: 50%;
}

.timer {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 10px;
    color: white;
    font-weight: bold;
    font-size: large;
    display: inline-block;
}

.test_controller button {
    width: 45px;
    height: 45px;
    float: left;
}

.lobby {
    padding: 20px 40px;
}

.control3 button {
    width: 40px;
    height: 40px;
}

.control3 .lb {
    margin-top: 15px;
    display: flex;
    justify-content: start;
    align-items: center;
    font-size: larger;
}

.f {
    display: flex;

    align-items: center;
}

.cun {
    border-radius: 10px;
    border: 1px solid black;
    padding: 0px 5px;
}

.bot {
    margin-left: 10px;
    background-color: transparent;
    border: none;
    background-repeat: no-repeat;
    background-size: contain;

}

.botoff {
    background-image: url(../img/nobot.png);
}

.boton {
    background-image: url(../img/bot.png);
}

.playersel {
    background-image: url(../img/bat.png);

    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.player{
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #ffffff00;
}
.player[data-color="red"]{
    background-image: url(../img/red.png);
}

.player[data-color="green"]{
    background-image: url(../img/green.png);
}

.player[data-color="blue"]{
    background-image: url(../img/blue.png);
}
.player[data-color="yellow"] {
    background-image: url(../img/yellow.png);
}

.ludoHome.blue .step .player[data-color="blue"],
.ludoHome.green .step .player[data-color="green"],
.ludoHome.red .step .player[data-color="red"],
.ludoHome.yellow .step .player[data-color="yellow"] {
    z-index: 9;
}




.white-box.super-center > .player-room > .player {
    height: 70%;
    width: 70%;
    margin-bottom: -1px;
    margin: 15%;
}

.icon {
    height: 15px;
}

.icon2 {
    height: 50px;
}

.topbar {
    height: 50px;
    display: table;
    justify-content: space-between;
    background-color: white;
}

.sidebar {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
}

.test_controller {
    float: left;
    width: 100%;
    background-color: white;
    margin-top: -1.5px;

}

.winner-home {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.stack .player {
    position: absolute;
}

.stack .player:nth-child(1) {
    margin-top: 4px;
    margin-left: 4px;
}

.stack .player:nth-child(2) {
    margin-top: 8px;
    margin-left: 8px;
}

.stack .player:nth-child(3) {
    margin-top: 12px;
    margin-left: 12px;
}

.stack .player:nth-child(4) {
    margin-top: 16px;
    margin-left: 16px;
}


.rwh.stack .player:nth-child(1) {
    margin-top: 0px;
    margin-left: -16px;
}
.rwh.stack .player:nth-child(2) {
    margin-top: 29px;
    margin-left: -16px;
}
.rwh.stack .player:nth-child(3) {
    margin-top: 14px;
    margin-left: -2px;
}
.rwh.stack .player:nth-child(4) {
    margin-top: 14px;
    margin-left: -14px;
}

.ywh.stack .player:nth-child(1) {
    margin-top: 5px;
    margin-left: 20px;
}
.ywh.stack .player:nth-child(2) {
    margin-top: -27px;
    margin-left: 20px;
}
.ywh.stack .player:nth-child(3) {
    margin-top: -11px;
    margin-left: 5px;
}
.ywh.stack .player:nth-child(4) {
    margin-top: -11px;
    margin-left: 19px;
}

.gwh.stack .player:nth-child(1) {
    margin-top: -15px;
    margin-left: 5px;
}
.gwh.stack .player:nth-child(2) {
    margin-top: -15px;
    margin-left: -25px;
}
.gwh.stack .player:nth-child(3) {
    margin-top: 0px;
    margin-left: -10px;
}
.gwh.stack .player:nth-child(4) {
    margin-top: -12px;
    margin-left: -10px;
}

.bwh.stack .player:nth-child(1) {
    margin-top: 18px;
    margin-left: 0px;
}
.bwh.stack .player:nth-child(2) {
    margin-top: 18px;
    margin-left: 27px;
}
.bwh.stack .player:nth-child(3) {
    margin-top: 5px;
    margin-left: 13px;
}
.bwh.stack .player:nth-child(4) {
    margin-top: 17px;
    margin-left: 13px;
}
.winner-home .player {
    width: 22px;
    height: 22px;
}









#dice,
#dice2 {
    height: 50px;
    width: 50px;
    background-color: transparent;
    border: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

#dice2 {
    display: none
}

.ludoHome.yellow #dice2,
.ludoHome.green #dice {
    float: right
}

.ludoHome.red #dice,
.ludoHome.green #dice,
.ludoHome.yellow #dice2,
.ludoHome.blue #dice2 {
    display: inline
}

.ludoHome.yellow #dice,
.ludoHome.blue #dice,
.ludoHome.red #dice2,
.ludoHome.green #dice2{
    display: none
}

.dice {
    width: 40px;
    height: 40px;
    display: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;}

.dice.activ {
    display: block;
}

.nard0 {
    background-size: 115%;
    background-image: url('../img/d0.png');
}
.nard1 {
    background-image: url('../img/d1.png');
}

.nard2 {
    background-image: url('../img/d2.png');
}

.nard3 {
    background-image: url('../img/d3.png');
}

.nard4 {
    background-image: url('../img/d4.png');
}

.nard5 {
    background-image: url('../img/d5.png');
}

.nard6 {
    background-image: url('../img/d6.png');
}


.player_1 .player[data-itme="1"],
.player_2 .player[data-itme="2"],
.player_3 .player[data-itme="3"],
.player_4 .player[data-itme="4"] {
    animation: circle-size 0.2s cubic-bezier(0.03, 1.58, 0, -2.04) infinite alternate;
}

@keyframes circle-size {
    from {
        box-shadow: 0px 0px 2px 3px #fff;
    }

    to {
        box-shadow: 0px 0px 5px 5px #fff;
    }
}


@keyframes boxtop {
    0% {
        margin-left: -100%;
        background-color: green
    }

    25% {
        margin-left: 0%;
        background-color: green
    }

    50% {
        margin-left: 0%;
        background-color: green
    }

    51% {
        margin-left: 0%;
        background-color: #e7c600
    }

    75% {
        margin-left: 0%;
        background-color: #e7c600
    }

    76% {
        margin-left: 0%;
        background-color: red
    }

    100% {
        margin-left: 0%;
        background-color: red
    }
}

@keyframes boxright {
    0% {
        margin-top: -100%;
        background-color: green
    }

    25% {
        margin-top: -100%;
        background-color: green
    }

    50% {
        margin-top: 0%;
        background-color: green
    }

    51% {
        margin-top: 0%;
        background-color: #e7c600
    }

    75% {
        margin-top: 0%;
        background-color: #e7c600
    }

    76% {
        margin-top: 0%;
        background-color: red
    }

    100% {
        margin-top: 0%;
        background-color: red
    }
}

@keyframes boxbottom {
    0% {
        margin-right: -100%;
        background-color: green
    }

    50% {
        margin-right: -100%;
        background-color: green
    }

    51% {
        margin-right: -100%;
        background-color: #e7c600
    }

    75% {
        margin-right: 0%;
        background-color: #e7c600
    }

    76% {
        margin-right: 0%;
        background-color: red
    }

    100% {
        margin-right: 0%;
        background-color: red
    }
}

@keyframes boxleft {
    0% {
        margin-top: 0%;
        background-color: white
    }

    75% {
        margin-top: 0%;
        background-color: white
    }

    76% {
        margin-top: 0%;
        background-color: red
    }

    100% {
        margin-top: -99%;
        background-color: red
    }

}

.ludobox {
    width: 50px;
    height: 50px;
    margin: 2px;
    float: right;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.boxtop,
.boxbottom {
    width: 100%;
    height: 3px;
    background-color: red;
    display: none;
}

.boxright,
.boxleft {
    width: 3px;
    height: 100%;
    background-color: red;
    display: none;
}
.ludobox.activ .boxtop,
.ludobox.activ .boxbottom,
.ludobox.activ .boxright,
.ludobox.activ .boxleft {
    display: block;
}

.boxtop {
    animation: boxtop 10s linear;
    float: left;
}

.boxright {
    margin-left: -4px;
    animation: boxright 10s linear;
    float: right;
}

.boxleft {
    margin-top: -100%;
    animation: boxleft 10s linear;
    float: none;

}

.boxbottom {
    animation: boxbottom 10s linear;
    margin-top: -2px;
    float: right;

}

.ludoUser {
    width: 45px;
    height: 45px;
    background-color: white;
    margin: 2px;
    float: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: none;
}

.ludoUser.red {
    background-image: url(../img/users/1.png);
}

.ludoUser.green {
    background-image: url(../img/users/2.png);
}

.ludoUser.yellow {
    background-image: url(../img/users/3.png);
}

.ludoUser.blue {
    background-image: url(../img/users/4.png);
}
