﻿td {
    vertical-align: central;
}

/* keypad number indicator*/
.keypad {
    font-family: sans-serif;
    text-align: center;
    vertical-align: middle;
    color: white;
    margin: 0px;
    font-size: 35px;
    font-weight: bold;
}

.pincode {
    font-family: sans-serif;
    text-align: center;
    vertical-align: middle;
    margin: 0px;
    /*margin-left: -3px;
    display: inline-block;*/
    color: gainsboro;
    font-size: 15px;
}

.keypad-screen {
    padding: 0%;
    height: 100%;
    width: 100%;
    display: table;
}

.keypad-buttons {
    height: 100%;
    width: 100%;
    display: table-row;
    text-align: center;
}

.button {
    border-top: solid calc(min(20px, 4vh)) white;
    width: 33%;
}

.buttontext {
    font-family: "Luckiest Guy";
    color: #FFF;
    font-size: 12vh;
    text-align: center;
    vertical-align: middle;
    margin: 0px;
    text-shadow: 2px 2px 9px #33333350;
}

.remotebuttontext {
    font-weight: bold;
    font-family: sans-serif;
    font-size: 100%;
    text-align: center;
    vertical-align: middle;
}

.caption-name {
    color: white;
    margin: 8px;
    font-weight: bold;
    width: 50vw;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.caption-status {
    margin: 8px;
    color: white;
    width: 30vw;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.keypad-header-table {
    width: 100%;
    border-spacing: 0px;
}

.keypad-header {
    width: 100%;
    display: table-row;
}

.hand {
    height: calc(min(150px, 16vh));
    max-width: 100%;
}

body {
    margin: 0;
    padding: 0;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

table {
    border-spacing: 0;
}

table, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
}

.scores-header {
    color: white;
    text-align: center;
    margin: 0px;
    font-size: calc(min(8vh, 30vw));
}

.scores-value {
    color: gold;
    text-align: center;
    font-size: calc(min(10vh, min(20vw, 100px)));
    margin: 0px;
}

.rank-header {
    color: white;
    text-align: center;
    margin: 0px;
    margin-top: 10px;
    font-size: calc(min(8vh, 30vw));
}

.rank-value {
    color: gold;
    text-align: center;
    font-size: calc(min(10vh, min(20vw, 100px)));
    margin: 0px;
}

.scores-name {
    color: gold;
    white-space: nowrap;
    text-align: center;
    font-size: calc(min(8vh, 40px));
    margin: calc(min(2vh, 20px));
}

.scores-img {
    display: block;
    height: calc(min(130px, 20vh));
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 3vh;
}

.hidden {
    display: none;
}

.qx-indicator {
    width: 100%;
    height: 100%;
    position: absolute;
}

.qx-indicator-right {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: url(/Content/images/right.png);
    background-repeat: no-repeat;
    background-size: 70%;
    background-position: center center;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.qx-indicator-wrong {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: url(/Content/images/wrong.png);
    background-repeat: no-repeat;
    background-size: 70%;
    background-position: center center;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.keypad-table {
    width: 100%;
    height: 100%;
    table-layout: fixed;
}

#qx-sending {
    height: 60px;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0) rotate(0deg) translateY(0);
    }

    15%, 35%, 55%, 75%, 95% {
        transform: translateX(-1px) rotate(-4deg);
    }

    25%, 45%, 65%, 85% {
        transform: translateX(1px) rotate(4deg);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateY(1px);
    }

    20%, 40%, 60%, 80% {
        transform: translateY(-1px);
    }
}

.shake {
    animation-name: shake;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
}

.qx-chat-send-button-container {
    width: 100%;
    height: 40px;
}

.qx-chat-send-button {
    background-color: #008000;
    color: white;
    font-family: Arial;
    font-size: large;
    font-weight: bold;
    width: 100%;
    border: none;
    height: 100%;
}

.qx-chat-box-container {
    width: calc(min(300px, 75vw));
    height: 40vh;
}

.qx-chat-box {
    width: 100%;
    height: 100%;
    resize: none;
    font-size: large;
    font-family: Arial;
    padding: 5px;
}

.qx-group-selector {
    width: 100%;
    height: 100%;
    margin: 4px;
    font-size: medium;
}

.error {
    color: #ba3939;
    background: #ffe0e0;
    border: 1px solid #a33a3a;
    margin: 15px;
    padding: 15px;
}