:root {
    --grid-cell-size: 3.5vw;
}

.poker-solver-container {
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
}

.poker-solver-container .side {
    width: calc(var(--grid-cell-size) * 9 + 60px);
    display: flex;
    flex-direction: column;
    justify-content: left;
    position: relative;
}

.poker-solver-container .side-top {
    padding: 4px 30px;
    display: flex;
    justify-content: left;
}

.poker-solver-container .side-bottom {
    padding: 4px 30px;
    display: flex;
    justify-content: space-between;
}

.side-top .title {
    font-size: 14px;
    border-bottom: 1px #707070 solid;
    padding-top: 6px;
}

.side-bottom .title {
    font-size: 12px;
    padding-top: 0px;
}

.grid-border-top {
    border-top: 1px #707070 solid;
}

.grid-border-left {
    border-left: 1px #707070 solid;
}

.poker-solver-grid {
    display: flex;
    flex-direction: column;
    padding: 4px 30px;
}

.poker-solver-grid > .single-row {
    display: flex;
    justify-content: center;
}

.poker-solver-grid .single-row .single-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--grid-cell-size);
    height: var(--grid-cell-size);
    /*overflow: hidden;*/
    border-right: 1px #707070 solid;
    border-bottom: 1px #707070 solid;
    font-size: 24px;
    color: #ffffff;
    text-shadow: 0 1px #000000EE;
    cursor: pointer;
}

.strategy {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: -1;
    display: flex;
}

.all-in-strategy {
    background-color: #900001;
    height: 100%;
}

.call-strategy {
    background-color: #94A860;
    height: 100%;
}

.fold-strategy {
    background-color: #7A95B0;
    height: 100%;
}

.raise-strategy {
    background-color: #C17428;
    height: 100%;
}

.undefined-strategy {
    background-color: #9F9F9F;
    height: 100%;
}

.customtooltip {
    display:inline-block;
    position:relative;
    border-bottom:1px dotted #666;
    text-align:left;
}

.customtooltip .bottom {
    min-width: 150px;
    top:40px;
    left:30%;
    /*transform:translate(-50%, 0);*/
    padding:4px 10px;
    color:#444444;
    background-color:#EEEEEEEE;
    font-weight:normal;
    font-size:13px;
    border-radius:8px;
    position:absolute;
    z-index:99999999;
    box-sizing:border-box;
    box-shadow:0 1px 8px rgba(0,0,0,0.5);
    display:none;
}

.customtooltip:hover .bottom {
    display:block;
}

.customtooltip .bottom i {
    position:absolute;
    bottom:100%;
    left:90%;
    margin-left:-12px;
    width:24px;
    height:12px;
    overflow:hidden;
}

/*.customtooltip .bottom i::after {*/
/*    content:'';*/
/*    position:absolute;*/
/*    width:12px;*/
/*    height:12px;*/
/*    left:50%;*/
/*    transform:translate(-50%,50%) rotate(45deg);*/
/*    background-color:#EEEEEE;*/
/*    box-shadow:0 1px 8px rgba(0,0,0,0.5);*/
/*}*/

.tooltip-title {
    font-size: 36px;
    text-align: center;
    border-bottom: 1px #707070 solid;
    margin-bottom: 4px;
    font-weight: bold;
    color: #707070;
    text-shadow: none;
}

.tooltip-description {
    font-size: 16px;
    margin: 0;
    text-align: center;
    font-weight: bold;
    color: #707070;
    text-shadow: none;
}

.tree-item {
    position: relative;
    cursor: pointer;
    font-size: 16px;
    border: 1px #AAAAAA solid;
    margin: 4px 4px 4px 0;
    border-radius: 4px;
    display: inline-block;
    padding: 2px 10px;
    width: 140px;
}

.tree-item:hover {
    background-color: #707070;
    color: #ffffff;
}

.tree-item.selected {
    font-weight: bold;
    text-decoration: underline;
}

.tree-item-container {
    margin-left: 20px;
}

.color-box {
    width: 30px;
    height: 20px;
    float: left;
    margin: 4px;
}

.color-box.fold {
    background-color: #7A95B0;
}

.color-box.call {
    background-color: #94A860;
}

.color-box.allin {
    background-color: #900001;
}

.color-box.raise {
    background-color: #C17428;
}

.title-description {
    float: left;
    padding-top: 6px;
    margin: 0 10px 0 0;
}

.tree-view {
    position: relative;
    /*border: 1px #707070 solid;*/
    margin: 8px 30px;
    -moz-box-shadow: 0 0 3px #707070;
    -webkit-box-shadow: 0 0 3px #707070;
    box-shadow: 0 0 3px #707070;
    height: calc(var(--grid-cell-size) * 9);
    width: calc(var(--grid-cell-size) * 6);
    overflow-y: scroll;
    padding-top: 16px
}

.tree-item-children {
    display: inline;
    position: absolute;
    right: -5px;
    top: 16px;
    width: 16px;
    height: 16px;
    border-radius: 10px;
    border: 1px #aaa solid;
    line-height: 10px;
    padding: 1px 3px;
    background-color: #ffffff;
    text-align: center;
    color: #666;
}

@media (max-width:1400px) {
    .poker-solver-grid .single-row .single-cell {
        font-size: 18px;
    }
}

@media (max-width:1300px) {
    .poker-solver-grid .single-row .single-cell {
        font-size: 16px;
    }
}

@media (max-width:1000px) {
    .poker-solver-grid .single-row .single-cell {
        font-size: 14px;
    }
}

@media (max-width:768px) {
    :root {
        --grid-cell-size: 8vw;
    }

    .poker-solver-container {
        flex-direction: column;
    }
    .poker-solver-container .side {
        justify-content: center;
        width: 100%;
    }
    .poker-solver-container .side-top {
        padding: 4px;
    }
    .poker-solver-grid {
        padding: 4px 4px;
    }

    .poker-solver-grid .single-row .single-cell {
        font-size: 20px;
    }

    .title-description {
        margin: 0 4px 0 0;
    }

    .color-box {
        width: 20px;
        height: 20px;
        float: left;
        margin: 4px;
    }

    .tree-view {
        width: 100%;
        margin: 0;
        font-size: 12px;
        height: 300px;
    }

    .poker-solver-grid > .single-row {
        justify-content: center;
    }

    .customtooltip .bottom {
        left: 0%;
    }

    .poker-solver-container .side-bottom {
        justify-content: center;
    }

    .poker-solver-container .side-top {
        justify-content: center;
    }
}

@media (max-width:500px) {
    :root {
        --grid-cell-size: 10vw;
    }

    .poker-solver-container .side-top {
        justify-content: center;
    }

    .customtooltip .bottom {
        left: 40%;
        transform: translateX(-50%);
    }
}

.item-action {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 4px;
}

.action-fold {
    background-color: #7A95B0;
}

.action-call {
    background-color: #94A860;
}

.action-allin {
    background-color: #900001;
}

.action-raise {
    background-color: #C17428;
}

.grid-available {
    height: 24px;
    color: #707070;
    float: right;
    margin-top: 1px;
    margin-right: -26px;
}



.loading-overview {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff99;
    z-index: 999;
}

.lds-facebook {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
}
.lds-facebook div {
    display: inline-block;
    position: absolute;
    left: 8px;
    width: 16px;
    background: #444;
    animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-facebook div:nth-child(1) {
    left: 8px;
    animation-delay: -0.24s;
}
.lds-facebook div:nth-child(2) {
    left: 32px;
    animation-delay: -0.12s;
}
.lds-facebook div:nth-child(3) {
    left: 56px;
    animation-delay: 0;
}
@keyframes lds-facebook {
    0% {
        top: 8px;
        height: 64px;
    }
    50%, 100% {
        top: 24px;
        height: 32px;
    }
}

.colapse-button {
    position: absolute;
    right: 10px;
    top: 24px;
    /*border: 1px solid #070707;*/
    padding: 0 10px;
    cursor: pointer;
}

.colapse-button svg {
    width: 20px;
    transition: color 0.2s;
    color: #000000;
}

.colapse-button svg:hover {
    color: #999999;
}

.colapse-button:hover .small-tooltip {
    display: inline-block;
}

.small-tooltip {
    display: none;
    color: #ffffff;
    width: auto;
    background-color: #707070;
    position: absolute;
    right: 0;
    top: 30px;
    z-index: 1000;
    border-radius: 4px;
    padding: 4px;
    font-size: 12px;
}
