@import '~@angular/material/theming';
@import "../../../../scss/variables";
@import "../../../../scss/mixins";
@import "../../../../scss/palettes";

.knok {
    border: solid 2px black;
    overflow: visible;
position: relative;
}


// .test:after {
//     content: '\2807';
//     font-size: 16px;
//     margin-left: 5px;
// }

.test, .test2 {
    cursor: pointer;
}

// .test2:after {
//     content: '\02C5';
//     font-size: 16px;
//     color: #ffff;
// }

.expand{
    background-color: #1aafd0;
    
    vertical-align: middle;
    border: 2px solid black;
    cursor: pointer;
    padding-top: 10px;
    i{
        color: #ffff;
    }
}

.knokitem-menu{
    background-color:  #fc636b;
    // padding-top: 10px;
    border-top: 2px solid black;
    border-left: 2px solid black;
    border-right: 2px solid black;
    // padding-bottom: 5px;
}

// .box{
// 	position: relative;
//     width: 50%;		/* desired width */
// }

// .box:before{
// 	content: "";
// 	display: block;
// 	padding-top: 100%; 	/* initial ratio of 1:1*/
// }

// .content{
// 	position:  absolute;
// 	top: 0;
// 	left: 0;
// 	bottom: 0;
//     right: 0;
//     color: #000;
// }


.knokitem-top{
    border-top: 2px solid black;
    border-left: 2px solid black;
}

.knokitem-detail{
    border-top: 2px solid black;
    border-left: 2px solid black;
    border-bottom: 2px solid black;
}

.option{
    margin-top: 10px;
    height: 100%;
    width: 100%;
}

div.mat-expansion-panel-body, .mat-expansion-panel-content
{
    padding: 0 0 0 0;
}

knk-knok-item-option {
    border: 2px solid black;
    margin-top: 10px;
}

.knok-button{
    max-height: 88px;
    max-width: 88px;
    min-height: 88px;
    min-width: 88px;
    background-color: mat-color($mat-knoks-primary, 100); //#3be8b0;
    border: solid 2px black;
}

.knok-item {
    color: #000;
}

.knokitem-ext-right{
    background-color: #1aafd0;
    color: #fff;
    border-left: 2px solid #000;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
}

.knokitem-ext-left{
    background-color: #1aafd0;
    color: #fff;
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
}

.knok-button-ext{
    background-color:  #1aafd0;
    border-top: solid 0px black;
    border-left: solid 2px black;
    border-right: solid 2px black;
    border-bottom: solid 2px black;
    color: #fff;
}

// .sidebet-button{
//     font-size:12px;    
//     padding:0px;
//     margin:0px;
//     // margin: -24px 0 0 -12px;
//     white-space: nowrap;
//     letter-spacing: 0.8px;
//     flex-wrap: nowrap;
// }
// .sidebet-button-top{
//     padding:0px;
//     margin:0px;
//     font-size:8px;
//     //margin: 4px 0px 0px 6px;
//     flex-wrap: nowrap;
// }

.sidebet-top{
    margin:10px 0 0 0; 
    padding:0px;
    font-size:7px;
    line-height: 0;
}
.sidebet{
    font-size:11px;
    margin:0; 
    padding:0px;
    white-space: nowrap;
    letter-spacing: 2px;
    line-height: 20px;
}

.user-container{
    
    margin-left: 5px;
    padding: 0;
    i.user-icon{
        font-size: 36px;
    }
}

.user-container.follow{
    margin-right: -10px !important;
}

.user-info-container{
    
    .user-info-top{
        margin: 0;
        padding:0;
        font-size: 10px;
    }
    .user-info-bottom{
        margin: 0 5px 0 2px;
        padding:0;
        font-size: 8px;
        i{
            font-size: 13px;
            margin-right: 2px;
        }
        span{
            margin-right: 5px;
        }
        span:last-child{
            margin-right: 0px;
        }
    }
}

.knok-info-container{
    .knok-id{
        background:#000;
        color:#fff;
        font-size:10px;
        height: 16px;
    }

    .left-corner{
        background:#000;
        position: relative;
        height: 16px;
        width: 16px;
    }
    .right-corner{
        background:#000;
        position: relative;
        height: 16px;
        width: 16px;
    }
    .right-corner:before {
        content: '';
        position: absolute;
        top: 10px; right: 0px;
        border-bottom: 6px solid white;
        border-left: 6px solid #000;
        width: 0;
    }

    .left-corner:before {
        content: '';
        position: absolute;
        top: 10px; right: 10px;
        border-bottom: 6px solid white;
        border-right: 6px solid #000;
        width: 0;
    }
}

.analytic-container{
    .f{
        margin: 0 0 -4px 0;
        padding:0;

        .fa-info-circle { 
            position: relative; 
            top: -1.5em; 
            left: -3em;
            font-size: 80%; 
            color: gray;
        }
        .l{
            position: relative; 
            top: -1.2em; 
            left: -4.25em;
            font-size: 50%; 
            color: gray;
            font-style: normal;
            color: #000;
        }
        .val{
            position: relative; 
            top: -.5em; 
            left: -2em;
            font-size: 80%; 
            font-style: normal;
            color: #000;
        }
    }
    .ta{
        margin: 0 0 -4px -20px;
        padding:0;
        .l{
            position: relative; 
            top: -1.2em; 
            left: -2.7em;
            font-size: 50%; 
            font-style: normal;
            color: #000;
        }
        .val{
            position: relative; 
            top: -.5em; 
            left: -1.2em;
            font-size: 80%; 
            font-style: normal;
            color: #000;
        }
    }
    
}

.knokitem-detail-top{
    font-weight: bold;
    //white-space: nowrap;
    letter-spacing: 1.5px;
}

// .knokitem-detail-top{
//    //margin-top:1em;
// }

.knokitem-detail-bottom{
    font-size: 10px;
    //white-space: nowrap;
    letter-spacing: 2.2px;
    line-height:1em;
}

.currency-pair{
    
    i:after{
        content: attr(pair);
        font-size: 50%;
        position: absolute;
        margin-top:.5em;
        font-family: "Open Sans", sans-serif;
    }
}

.follow{
    font-weight: bold;
    i.fa-info-circle{
        font-size: 80%; 
        color: gray;
        position: inherit;
        margin: 2px 0 0 2px;
    }

    .knokitem-detail-bottom{
        letter-spacing: 2px;
        font-size: 8px !important;
        font-weight: normal;
        &.bottom{
            margin-bottom: 2px; 
        }
    }
}

.follow2{
    line-height: 1em;
    .knokitem-detail-top2 {
        margin-top:.5em;
    }
    
    i.fa-info-circle{
        position: relative; 
        top: -2.5em; 
        left: -5.5em;
        font-size: 80%; 
        color: gray;
    }

    .knokitem-detail-bottom2{
        font-weight: bold;
        font-size: 80%;
    }
    .knokitem-detail-top2{
        font-size: 8px;
        white-space: nowrap;
        letter-spacing: 1.5px;
    }
}

.knokitem-detail.follow.chart{
    i.fa-info-circle{
        position: inherit;
        margin: 2px 0 0 2px; 
    }
    i.fa-expand{
        position: inherit; 
        margin: 2px 2px 0 0; 
        font-size: 80%; 
        color: gray;
        visibility: hidden;
        cursor: pointer;
    }
    .knokitem-detail-bottom3{
        line-height: 1em;
        white-space: nowrap;
        letter-spacing: 2px;
        font-size: 8px !important;
        font-weight: normal;
        
        &.bottom{
            margin-bottom: 2px;
        }
    }
    
    i.material-icons.chart {
        position: relative;
        top: -5px;
        font-size: 30px;
    }
    &:hover > div > i.fa-expand{
        visibility: visible;
    }
}

.chart-container.expandChart {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 700px;
    height: 400px;
    background-color: #fff;
    border: 2px solid #000;
    z-index: 1001;
    // -moz-opacity: 0.8;
    // opacity: .80;
    // filter: alpha(opacity=80);
    //visibility: visible;
}

.chart-container.collapseChart {
    //background: indianred;
    position: inherit;
    //margin: auto;
    height: 0vh;
    width: 0vw;
    //margin: .7em 0 0 0 !important;
    //padding: 0 !important;
    //height: 50%;
    //width: 50%;
    //top: 10px;
    // canvas{
    //     height: 75 !important;
    //     width: 150 !important;
    //   }
    //visibility: hidden;
}

.user-container{
    margin: 0;
    padding:0 0 0 10px;
    .follow-badge{
        border-radius: 50%;
        min-width: 12px;
        min-height: 12px;
        background: #000;
        font-size: 8px;
        top: -1.2em;
        right: 5.1em;
        position: relative;
        border:1px solid #fff;
        
        i{
            font-size: 1em;
            color:#fff;
        }
    }
  }

  .user-background{
    background-color: rgba(196, 248, 231, 0.8);
  }

  .hide-star{
    .follow-badge{
        visibility: hidden;
    }
  }