html {
    display: block;
    height: 100%;
    width: 100%;
}

body {
    color: #515256;
    background-color: white;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-family: 'Arial', sans-serif;
    height: 100%;
    margin: 0;
    width: 100%;
}

/* KLN Header */

.kln-header {
    align-items: center;
    background: #009a9a;
    display: flex;
    font-size: 15px;
    padding: 0 1px;
    text-transform: uppercase;
}

.kln-header .kln-header-title {
    flex: 1 1 auto;
    margin: 0;
    text-align: center;
}

.kln-header .kln-language-selector .kln-lang-button {
    background: white;
    border: 1px solid #009a9a;
    border-radius: 50%;
    color: #009a9a;
    cursor: pointer;
    height: 30px;
    margin: 0 4px;
    outline: none;
    text-align: center;
    width: 30px;
}

.kln-header .kln-language-selector .kln-lang-button:disabled {
    background: white;
    border-color: #515256;
    color: #515256;
    cursor: default;
}

.kln-header .kln-language-selector ul {
    background: white;
    border-radius: 10px;
    display: block;
    height: 0;
    list-style: none;
    margin:0;
    padding: 0;
    position: absolute;
    overflow: hidden;
    right: 0;
    top: 27px;
    transition: height 400ms linear;
    z-index: 2;
}

.kln-header .kln-language-selector.kln-language-selector-opened ul {
    border: 1px solid #009a9a;
    height: auto;
    margin-top: 4px;
    padding-top: 4px;
    transition: height 400ms linear;
}

.kln-header .kln-language-selector ul li .kln-lang-button {
    margin: 0 4px 4px;
}


/*KLN Warning modal */

.kln-game-warning-modal {
    background-color: whitesmoke;
    box-shadow: 0px 0px 10px 3px #009a9a;
    left: calc(50% - 350px);
    padding: 0 24px;
    position: fixed;
    max-width: 700px;
    text-align: center;
    top: -10%;
    transition: top .4s linear;
}

.kln-game-warning-modal.kln-game-warning-modal-visible {
    top: 5%;
    transition: top .4s linear;
}

/* KLN Game section*/

.kln-game {
    background-color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    bottom: 100%;
    display: flex;
    padding: 8px 0;
    overflow-x: auto;
    flex: 1 1 auto;
    width: 100%;
}

.kln-game .kln-game-box {
    border-radius: 10px;
    border: 2px solid #ccc;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    margin: 0 4px;
    min-width: 460px;
    overflow-y: auto;
    position: relative;
}

.kln-game .kln-game-box:first-child {
    margin-left: 8px;
}

.kln-game .kln-game-box:last-child {
    margin-right: 8px;
}

.kln-game .kln-game-box.kln-game-devices::before {
    background-color: #009a9a;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    content: '';
    display: block;
    height: 10px;
    left: 0;
    position: absolute;
    top: -1px;
    width: 100%;
}

.kln-game .kln-game-box.kln-game-showcase {
    max-width: 500px;
}

.kln-game .kln-game-box.kln-game-showcase::before {
    background-color: #b1d575;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    content: '';
    display: block;
    height: 10px;
    left: 0;
    position: absolute;
    top: -1px;
    width: 100%;
}

@keyframes kln-rotates-spin {
    100% {
        transform: rotate(1turn);
    }
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item {
    position: relative;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item .kln-game-box-item-section-arrow {
    align-items: center;
    display: none;
    height: 80px;
    justify-content: center;
    transform: rotate(90deg);
    position: absolute;
    width: 80px;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item .kln-game-box-item-section-arrow .kln-game-box-item-section-arrow-item {
    position: absolute;
    -webkit-animation: arrow-slide 4s linear infinite; 
            animation: arrow-slide 4s linear infinite;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item .kln-game-box-item-section-arrow .kln-game-box-item-section-arrow-item.kln-game-box-item-section-arrow-item-delay1 {
  -webkit-animation-delay: 1s; 
    animation-delay: 1s;
}
.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item .kln-game-box-item-section-arrow .kln-game-box-item-section-arrow-item.kln-game-box-item-section-arrow-item-delay2 {
  -webkit-animation-delay: 2s; 
    animation-delay: 2s;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item .kln-game-box-item-section-arrow .kln-game-box-item-section-arrow-item .kln-game-box-item-section-arrow {
    width: 23px;
    height: 23px;
    border: 10px solid;
    border-color: #009a9a transparent transparent #009a9a;
    transform: rotate(-45deg);
}

@keyframes arrow-slide {
    0% { opacity:0; transform: translateX(23px); }	
   20% { opacity:1; transform: translateX(-12px); }	
   50% { opacity:1; transform: translateX(-46px); }	
  100% { opacity:0; transform: translateX(-69px); }	
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item .kln-game-box-item-section-arrow.kln-game-box-item-section-arrow-request {
    left: 30px;
    top: -80px;
    opacity: 1;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item .kln-game-box-item-section-arrow.kln-game-box-item-section-arrow-response {
    right: 40px;
    top: -80px;
    transform: rotate(-90deg);
    opacity: 0;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item .kln-game-box-item-section-compounding {
    align-items: center;
    background: #009a9a;
    border-radius: 6px;
    color: white;
    display: none;
    padding: 0 6px;
    width: 100%;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item .kln-game-box-item-section-compounding .kln-game-box-item-section-compounding-icon {
    animation: kln-rotates-spin 2s linear infinite;
    background-image: url('../assets/spin.png');
    background-size: cover;
    cursor: default;
    height: 16px;
    margin-right: 6px;
    width: 16px;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item .kln-game-box-item-section-result {
    background-color: papayawhip;
    border: 2px solid #423f3c;
    bottom: 6px;
    border-radius: 6px;
    display: none;
    font-weight: bold;
    height: 80px;
    position: absolute;
    right: 6px;
    width: 100px;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item .kln-game-box-item-section-result.kln-game-box-item-section-result-over {
    opacity: 0.8;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item .kln-game-box-item-section-result .kln-game-box-item-section-result-item {
    background: white;
    border: 2px dashed #423f3c;
    border-radius: 6px;
    cursor: grab;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 8px;
    padding: 4px;
    text-align: center;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-item-working .kln-game-box-item-section-compounding {
    display: flex;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-item-working .kln-game-box-item-section-result,
.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-item-finished .kln-game-box-item-section-result {
    display: block;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-item-source {
    margin-top: 80px;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-item-source .kln-game-box-item-section-arrow {
    display: flex;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-item-source.kln-game-box-item-source-ready .kln-game-box-item-section-arrow.kln-game-box-item-section-arrow-request,
.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-item-source.kln-game-box-item-source-pending .kln-game-box-item-section-arrow.kln-game-box-item-section-arrow-request,
.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-item-source.kln-game-box-item-source-completed .kln-game-box-item-section-arrow.kln-game-box-item-section-arrow-request {
    opacity: 0;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-item-source.kln-game-box-item-source-pending .kln-game-box-item-section-arrow.kln-game-box-item-section-arrow-response {
    opacity: 1;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-item-source.kln-game-box-item-source-pending .kln-game-box-item-section-result {
    display: block;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-item-source.kln-game-box-item-source-pending .kln-game-box-item-section-result .kln-game-box-item-section-result-item {
    display: none;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-static {
    display: block;
    border-style: dashed;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-static .kln-game-box-item-section-title {
    display: block;
    text-align: center;
    margin: 0;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-static .kln-game-box-item-section {
    justify-content: space-evenly;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-static .kln-game-box-item-section .kln-game-box-item-section-logo,
.kln-game .kln-game-box.kln-game-showcase .kln-game-box-item.kln-game-box-static .kln-game-box-item-section .kln-game-box-item-section-device {
    height: 75px;
    width: auto;
    margin: 0;
    padding: 0;
}

.kln-game .kln-game-box.kln-game-console {
    background-color: #423f3c;
    color: white;
    flex: 0 0 485px;
}

.kln-game .kln-game-box.kln-game-console::before {
    background-color: #efd93f;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    content: '';
    display: block;
    height: 10px;
    left: 0;
    position: absolute;
    top:0;
    width: 100%;
}

.kln-game .kln-game-box h3 {
    text-align: center;
}

.kln-game .kln-game-box .kln-game-box-item {
    border-radius: 8px;
    border: 2px solid grey;
    display: flex;
    margin: 8px;
    padding: 8px;
}

.kln-game .kln-game-box .kln-game-box-item.kln-game-box-template {
    display: none;
}

.kln-game .kln-game-box .kln-game-box-item .kln-game-box-item-section {
    display: flex;
    flex-wrap: wrap;
}

.kln-game .kln-game-box .kln-game-box-item .kln-game-box-item-section .kln-game-box-item-header {
    display: flex;
}

.kln-game .kln-game-box .kln-game-box-item .kln-game-box-item-section img.kln-game-box-item-section-logo{
    width: 100px;
}

.kln-game .kln-game-box .kln-game-box-item .kln-game-box-item-section h4 {
    flex: 1 1 auto;
    margin: 0;
    text-align: center;
}

.kln-game .kln-game-box .kln-game-box-item .kln-game-box-item-section .kln-game-box-item-section-table {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.kln-game .kln-game-box .kln-game-box-item .kln-game-box-item-section .kln-game-box-item-section-table .kln-game-box-item-section-table-row {
    align-items: center;
    border-bottom: 2px solid #009a9a;
    display: flex;
    font-weight: 700;
    justify-content: flex-end;
    padding: 8px 0;
}

.kln-game .kln-game-box .kln-game-box-item .kln-game-box-item-section .kln-game-box-item-section-table .kln-game-box-item-section-table-row .kln-game-box-item-section-table-row-text {
    flex: 1 1 auto;
    padding: 0 8px;
}

.kln-game .kln-game-box .kln-game-box-item .kln-game-box-item-section .kln-game-box-item-section-table .kln-game-box-item-section-table-row .kln-game-box-item-section-table-row-amount,
.kln-game .kln-game-box .kln-game-box-item .kln-game-box-item-section .kln-game-box-item-section-table .kln-game-box-item-section-table-row .kln-game-box-item-section-table-row-button {
    flex: 0 0 40px;
    display: flex;
    justify-content: center;
}

.kln-game .kln-game-box .kln-game-box-item .kln-game-box-item-section .kln-game-box-item-section-table .kln-game-box-item-section-table-row .kln-game-box-item-section-table-row-text.kln-game-box-item-section-table-row-text-header {
    padding: 0;
    text-align: end;
}

.kln-game .kln-game-box .kln-game-box-item .kln-game-box-item-section img.kln-game-box-item-section-device {
    border-radius: 8px;
    margin-left: 8px;
    padding: 4px;
    width: 200px;    
}

.kln-game .kln-game-box .kln-game-box-item .kln-device-button {
    background-image: url('../assets/play.png');
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 50%;
    border-width: 0;
    cursor: pointer;
    display: block;
    height: 20px;
    outline: none;
    width: 20px;
}

.kln-game .kln-game-box .kln-game-box-item .kln-device-button:hover:not(:disabled) {
    box-shadow: 0px 0px 15px 8px grey;
}

.kln-game .kln-game-box .kln-game-box-item .kln-device-button:disabled {
    background: gray;
}

.kln-game .kln-game-box.kln-game-devices .kln-game-box-items {
    display: flex;
    flex-wrap: wrap;
}

.kln-game .kln-game-box.kln-game-devices .kln-game-box-items .kln-game-box-item {
    max-width: 420px;
}

.kln-game .kln-game-box.kln-game-showcase .kln-game-box:last-child
.kln-game .kln-game-box.kln-game-devices .kln-game-box:last-child {
    margin-bottom: 0;
}


.kln-game .kln-game-box.kln-game-console .kln-game-console-list {
    list-style: none;
}

.kln-game .kln-game-box.kln-game-console .kln-game-console-list-item.kln-game-console-list-item-template {
    display: none;
}

.kln-game .kln-game-box.kln-game-console .kln-game-console-list .kln-game-console-list-item .kln-game-console-text:not(:first-child){
    margin-right: 24px;
}

/* KLN Legacy - Tmp */

.kln-game-box ul {
    height: calc(100% - 58px);
    margin: 0 5px 5px;
    overflow-y: auto;
    padding: 0 10px;
}

.kln-game-box ul.kln-item-dragover {
    border-radius: 10px;
    background-color: #cccccc2b;
}

.kln-item {
    background: transparent;
    display: flex;
    list-style: none;
    margin: 5px 0;
    max-width: 365px;
    position: relative;
}

.kln-item[draggable="true"] {
    cursor: move;
}

.kln-item.kln-item-draging {
    opacity: .5;
}

.kln-item h5 {
    margin: 10px;
    flex: 1 1 auto;
}

.kln-item-touchmoving {
    position: fixed;
}

.kln-item::before {
    border-radius: 50%;
    content: '';
    background: #ccc;
    height: 20px;
    left: 0;
    position: absolute;
    top: calc(50% - 10px);
    width: 20px;
}

.kln-item .kln-item-left {
    align-items: center;
    background-color: white;
    border: 1px solid #ccc;
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
    display: flex;
    flex: 0 0 115px;
    margin-left: 30px;
    text-align: center;
}

.kln-item .kln-item-right {
    align-items: center;
    background-color: white;
    border: 1px solid #ccc;
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
}

.kln-item .kln-item-right h5 {
    flex: 0 0 auto;
}

.kln-item .kln-item-right .kln-item-sizes {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    justify-content: center;
    padding: 0 6px;
}

.kln-item .kln-item-right .kln-item-sizes span {
    background-color: whitesmoke;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 5px;
    margin-right: 5px;
    padding: 3px;
}

.kln-item.kln-item-green::before {
    background-color: green;
}

.kln-item.kln-item-warning::before {
    background-color: orange;
}

.kln-item[draggable="true"]:hover .kln-item-right,
.kln-item[draggable="true"]:hover .kln-item-left {
    background-color: whitesmoke;
}