body {
    margin: 0;
    padding: 0;
}
div {
    box-sizing: border-box;
}

.plan-hry {
    width: calc(16*85px);
    height: calc(11*85px);
    margin: auto auto;
}

.policko {
    border: 1px solid black;
    margin: 5px;
    height: 75px;
    width: 75px;
    text-align: center;
    line-height: 50px;
    color: gray;
    overflow: hidden;
    border-radius: 5px;

}
.policko::before {
/*    content: attr(id);*/
}
.plan-hry.predStartem .policko {
    opacity: 0.2;
}

.policko-lehka {
    background: lightgreen;
}

.policko-tezka {
    background: lightcoral;
    color: white;
}

.policko-lehka::before {
    content: "?"
}
.policko-tezka::before {
    content: "??"
}

.policko-start {
    font-size: 80%;
    background: lightgoldenrodyellow;
    position: relative;
}
.policko-start::before {
    content: '\2192';
    position: absolute;
    left: 15px;
    top: -15px;
}
.policko-start::after {
    content: 'START';
}
/* POZICE */
.policka-horni {
}
.policka-horni .policko {
    float: left;
}
.policka-leve {
    float: left;
    width: 85px;
}
.policka-leve .policko {
    float: left;
}
.stred {
    float: left;
    width: calc(14 * (75px + 5px + 5px));
    background: #ececec;
    height: calc(7 * (75px + 5px + 5px));
    overflow-y: auto;
    border-radius: 5px;
}
.policka-prave {
    float: left;
    width: 75px;
}
.policka-prave .policko {
    float: left;
}
.policka-dolni {
    float: left;
}
.policka-dolni .policko {
    float: right;
}

/*Form*/
fieldset .hrac {
    float: left;
    background: lightblue;
    padding: 5px;
    margin: 5px;
    border-radius: 5px;

}
.clearfix {
    clear: both;
}
/* FIGURKY */
.figurka {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    position: absolute;
    -webkit-box-shadow: 0px 9px 21px 0px rgb(0,0,0);
    -moz-box-shadow: 0px 9px 21px 0px rgb(0,0,0);
    box-shadow: 0px 9px 21px 0px rgb(0,0,0);

    transition: all ease 1s;
    border: 1px solid grey;
}
.figurka:nth-of-type(1) { 
    background-color: blue;
}

.figurka:nth-of-type(2) {
    background-color: red;
}
.figurka:nth-of-type(3) {
    background-color: darkgreen;
}
.figurka:nth-of-type(4) {
    background-color: black;
}
.figurka:nth-of-type(5) {
    background-color: yellow;
}
  .figurka:nth-of-type(5) {
    background-color: yellow;
}
.figurka:nth-of-type(6) {
    background-color: white;
}
.figurka:nth-of-type(7) {
    background-color: pink;
}
.figurka:nth-of-type(8) {
    background-color: brown;
}

.prehledHrace:nth-of-type(1) .oi { 
    color: blue;
}

.prehledHrace:nth-of-type(2) .oi {
    color: red;
}
.prehledHrace:nth-of-type(3) .oi {
    color: darkgreen;
}
.prehledHrace:nth-of-type(4) .oi {
    color: black;
}
.prehledHrace:nth-of-type(5) .oi {
    color: yellow;
}
.prehledHrace:nth-of-type(6) .oi {
    color: white;
}
.prehledHrace:nth-of-type(7) .oi {
    color: pink;
}
.prehledHrace:nth-of-type(8) .oi {
    color: brown;
}
.prehledHrace.naTahu {
    font-weight: bold;
    font-size: x-large;
}



/* KOSTKA */
.kostka-img {
    background-image: url("/bchl/dice_5.jpg");
    display: inline-block;
    background-repeat: no-repeat;
    background-size: auto;
    background-position: 50%;
    height: 50px;
    width: 50px;
}
.kostka > * {
    vertical-align: middle;
}

/* KARTA */
.karta {
    min-width: 340px;
    min-height: 60px;
    margin: 0;
    padding: 5px; 
}

.karta-wrapper {
    min-width: 340px;
    min-height: 60px;
    margin-bottom: 10px;
    border: 1px dashed #868e96;
    border-radius: .25rem;    
    position: relative;
}
.karta-wrapper.disabled {
    border: 1px dashed #868e96;
}
.karta-wrapper.primary, .karta-wrapper.info {
    border: 1px dashed #17a2b8;
}

.text-background {
    display: block;
    position: absolute;
    top:0;
    bottom: 0;
        left:0;
        right:0;

}
#karty-ke-koupi .karta {
    color: black;
}
#karty-ke-koupi, #koupeneKarty {
    position: relative;  
    min-width: calc(300px + 5px * 10);
    min-height: calc(40px + 5px * 10);


}

#karty-ke-koupi .karta, #koupeneKarty .karta {
    position: absolute;
}
#karty-ke-koupi .karta:nth-child(1), #karty-ke-koupi .karta:nth-child(1), #koupeneKarty .karta:nth-child(1) {
    top: 5px;
    left: 5px;
}
#karty-ke-koupi .karta:nth-child(2), #koupeneKarty .karta:nth-child(2) {
    top: 10px;
    left: 10px;
}
#karty-ke-koupi .karta:nth-child(3), #koupeneKarty .karta:nth-child(3) {
    top: 15px;
    left: 15px;
}
#karty-ke-koupi .karta:nth-child(4), #koupeneKarty .karta:nth-child(4) {
    top: 20px;
    left: 20px;
}
#karty-ke-koupi .karta:nth-child(5), #koupeneKarty .karta:nth-child(5) {
    top: 25px;
    left: 25px;
}
#karty-ke-koupi .karta:nth-child(6), #koupeneKarty .karta:nth-child(6) {
    top: 30px;
    left: 30px;
}
#karty-ke-koupi .karta:nth-child(7), #koupeneKarty .karta:nth-child(7) {
    top: 35px;
    left: 35px;
}
#karty-ke-koupi .karta:nth-child(8), #koupeneKarty .karta:nth-child(8) {
    top: 40px;
    left: 40px;
}
#karty-ke-koupi .karta:nth-child(9), #koupeneKarty .karta:nth-child(9) {
    top: 45px;
    left: 45px;
}
#koupeneKarty .karta:nth-child(10) {
    top: 50px;
    left: 50px;
}
#koupeneKarty .karta:nth-child(11) {
    top: 55px;
    left: 55px;
}
#koupeneKarty .karta:nth-child(12) {
    top: 60px;
    left: 60px;
}
#koupeneKarty .karta:nth-child(13) {
    top: 65px;
    left: 65px;
}

#vylozene-karty div {
}
#vylozene-karty div.hovered {
    background: #aaa;
}

