﻿:root {
    --color-a: #21ACFD;
    --color-b: #F99219;
    --color-c: #70D91D;
    --color-d: #FFCC00;
    --color-e: #701EB1;
    --color-f: #F42A2A;
}

td {
    vertical-align: central;
}

button:disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* keypad number indicator*/
.keypad {
    font-family: sans-serif;
    text-align: center;
    vertical-align: middle;
    color: white;
    margin: 0;
    font-size: 35px;
    font-weight: bold;
}

.pincode {
    font-family: sans-serif;
    text-align: center;
    vertical-align: middle;
    margin: 0;
    /*margin-left: -3px;
    display: inline-block;*/
    color: white;
    font-size: 15px;
    display: inline-block;
}

.keypad-buttons {
    height: 100%;
    width: 100%;
    /*display: table-row;*/
    text-align: center;
}

.button {
    border-top: solid calc(min(20px, 4vh)) white;
    width: 33%;
}

/* legacy keypad buttontext */
.buttontext {
    font-family: "Luckiest Guy", Arial, sans-serif;
    color: #FFF;
    font-size: 12vh;
    text-align: center;
    vertical-align: middle;
    margin: 0;
    text-shadow: 2px 2px 9px #33333350;
}

.remotebuttontext {
    font-weight: bold;
    font-family: sans-serif;
    font-size: 100%;
    text-align: center;
    vertical-align: middle;
}

.caption-text {
    margin-left: auto;
    margin-right: auto;
    margin-top: 8px;
    margin-bottom: 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: white;
}

.caption-name {
    font-weight: bold;
    width: 50vw;
}

.caption-status {
    width: 30vw;
}

.caption-clock {
    font-weight: bold;
    width: 50vw;
    font-size: 40px;
}

.keypad-header-table {
    width: 100%;
    border-spacing: 0;
    height: 68px;
}

.keypad-header {
    width: 100%;
    z-index: 10;
    position: fixed;
    display: inline-block;
    box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
}

span.header-key {
    color: white;
    display: inline-block;
    font-size: 13px;
}

.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;
}

.score-screen-font {
    font-family: "Fjalla One", Arial, sans-serif;
}

.scores-header {
    color: white;
    text-align: center;
    margin: 0;
    font-size: calc(min(8vh, 30vw));
}

.scores-value {
    color: gold;
    text-align: center;
    font-size: calc(min(10vh, min(20vw, 100px)));
    margin: 0;
}

.rank-header {
    color: white;
    text-align: center;
    margin: 0;
    margin-top: 1vh;
    font-size: calc(min(8vh, 30vw));
}

.rank-value {
    color: gold;
    text-align: center;
    font-size: calc(min(10vh, min(20vw, 100px)));
    margin: 0;
    margin-top: 1vh;
}

.scores-name {
    white-space: nowrap;
    text-align: center;
    font-size: calc(min(8vh, 40px));
    margin: calc(min(2vh, 20px));
    color: #0d87f5;
    border-radius: 10px;
    overflow: hidden;
    padding: 8px;
    background: gold;
}

img.scores-img {
    display: block;
    height: calc(min(130px, 15vh));
    margin-left: auto;
    margin-right: auto;
    margin-top: 1vh;
    margin-bottom: 3vh;
}

@media only screen and (max-height: 400px) {
    img.scores-img {
        display: none;
    }
}

div.qx-scores-container {
    /* offset for header */
    margin-top: 70px;
}

@media only screen and (min-width: 768px) {
    div.qx-scores-container {
        width: 50vw;
        min-width: 650px;
        height: calc(90vh - 70px);
        margin: 0 auto;
        position: relative;
        border-radius: 15px;
        border-color: white;
        border-width: 4px;
        border-style: solid;
        padding: 1.5vh;
        margin-top: 70px;
        background: radial-gradient(#06b7fb, #183eea);
        box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.25);
    }
}


.qx-indicator {
    width: 100%;
    height: 100%;
    position: absolute;
}

.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;
}

.innerpage {
    width: 100%;
    height: 100%;
    background-color: white;
    padding: 1.5vh;
    padding-top: 68px;
    overflow-y: auto;
}

div.qx-overlay {
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: black;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 0;
    z-index: 5;
    /*cursor: not-allowed;*/
}

.innerpage-without-padding {
    padding: 0;
    padding-top: 68px;
}

@supports (-webkit-touch-callout: none) {
    /* CSS specific to iOS devices */
    .innerpage {
        padding-top: 44px;
    }

    .innerpage-without-padding {
        padding-top: 44px;
    }
}

#btnHAND {
    border-radius: 0 0;
}

#btnF {
    border-radius: 0 0;
}

#btnD {
    border-radius: 0 0;
}

/* dynamicaly added!! */
div.qx-white-background {
    background-color: white;
}

.qx-ftx-response-list {
    overflow-y: auto;
    height: calc(57vh - 68px);
    margin-bottom: 1vh;
    margin-top: 1vh;
}

#qx-ftx-response-list {
    margin-bottom: 1.2vh;
    margin-top: 1.2vh;
}

@media only screen and (min-width: 768px) {
    /* desktop browser */
    .innerpage {
        width: 50vw;
        min-width: 650px;
        height: 85vh;
        margin: 0 auto;
        position: relative;
        border-radius: 15px;
        background-color: white;
        margin-top: 70px;
        padding: 1.5vh;
        box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.25);
        overflow-y: hidden;
    }

    .innerpage-without-padding {
        padding: 0;
        overflow-y: unset;
    }

    div.qx-overlay {
        width: 100%;
        height: 100%;
        opacity: 0;
        background-color: black;
        position: absolute;
        left: 0;
        top: 0;
        border-radius: 15px;
        z-index: 5;
    }

    #btnHAND {
        border-radius: 15px 15px 0 0;
    }

    #btnF {
        border-radius: 0 0 15px 0;
    }

    #btnD {
        border-radius: 0 0 0 15px;
    }

    div.qx-white-background {
        background-color: transparent;
    }

    .qx-ftx-response-list {
        overflow-y: auto;
        height: calc(53vh - 68px);
    }
}

.promopage {
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    box-shadow: none;
    width: 100vw;
    height: 90vh;
    overflow-y: hidden;
}

/* buzzer image button */
.qx-buzzer-button {
    padding: 20px;
    width: 100%;
    height: 80%;
    margin: auto;
    object-fit: contain;
}

.qx-buzzer-button-with-pic {
    padding: 0px;
    width: 100%;
    height: 34vh;
    margin: auto;
    object-fit: contain;
    margin-top: -2vh;
}

/* background for the queastion text */
.qx-question-frame {
    height: 25vh;
    width: 100%;
    /*display: table;*/
    border-radius: calc(min(15px, 1.5vh));
    background-color: rgba(0, 0, 0, 0.05);
    display: block;
    overflow: hidden;
    margin-top: 1.5vh;
}

/* centered for banner */
.qx-banner-frame {
    top: 50%;
    position: relative;
    transform: translate(0, -50%);
    /*same as qx-question-frame */
    height: 25vh;
}

.qx-image-banner-frame {
    height: 25vh;
    margin-bottom: 1.5vh;
}

/* question */
p.qx-question {
    height: 25vh;
    color: darkslateblue;
    font-size: calc(min(24px, 4.5vh));
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    font-family: "Fjalla One", Arial, sans-serif;
    padding: 1vh;
    display: table-cell;
    margin: 0;
    /* to get horizontal center, dispite table-cell */
    width: 100vw;
}

#letter-container {
    width: 100%;
    height: 60%;
    margin-top: 3.5vh;
}

.letter-table {
    width: 100%;
    height: 100%;
    table-layout: fixed;
    background: none;
}

.numeric-keyboard {
    margin-top: 0;
    height: 42%
}

.numeric-keyboard-small {
    height: 36%
}

td.letter-cell {
    padding: 2px;
}

button.letter-button {
    width: 100%;
    height: 100%;
    background: dodgerblue;
    color: white;
    font-size: 3vh;
    border: none;
    border-radius: 8px;
    font-family: 'Fredoka One', Arial, sans-serif;
    border-bottom: calc(min(0.4vh, 5px)) solid #006dd8;
    text-shadow: 0 -2px #006dd8;
    transition: all 0.1s;
    -webkit-transition: all 0.1s;
    padding: 0;
}

/* only support :hover style on desktop! */
@media(hover: hover) and (pointer: fine) {
    button.letter-button:hover {
        background: #38CF20;
        border-bottom: calc(min(0.4vh, 5px)) solid #17a800;
        text-shadow: 0 -2px #118100;
    }
}

button.letter-button:active {
    transform: translate(0,5px) scale(0.98);
    -webkit-transform: translate(0, 5px) scale(0.98);
    border-bottom: 1px solid;
}

/* banner image */
img.banner-image {
    padding: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    object-fit: contain;
    display: block;
}

/* banner and text */
img.banner-text-image {
    padding: 0;
    width: 100%;
    height: 54vh;
    margin: auto;
    object-fit: contain;
    display: block;
}

#qx-tap-to-img {
    padding: 0;
    width: 99%;
    height: 58%;
    margin: auto;
    margin-top: 1vh;
    margin-bottom: 1vh;
    object-fit: contain;
    display: block;
}

.qx-tap-to-img-fx {
    padding: 0;
    width: 99%;
    height: 58%;
    margin: auto;
    margin-top: 1vh;
    margin-bottom: 1vh;
    display: block;
}

input.qx-ftx-correct {
    background-color: lightgreen !important;
}

input.qx-ftx-wrong {
    background-color: indianred !important;
    text-decoration: line-through;
}

input.fulltext-input-condensed {
    margin-top: 1.2vh !important;
    margin-bottom: 1.2vh !important;
}

/* for numeric and full text input type */
input.fulltext-input[type=text] {
    padding: calc(min(10px, 1vh)) 0;
    text-align: center;
    background-color: #ECF0F1;
    border: 2px solid transparent;
    border-radius: 100px;
    font-size: 20px;
    font-weight: bold;
    width: 100%;
    margin-top: 3vh;
    margin-bottom: 3vh;
}

button.submit-button {
    width: 100%;
    background: #38CF20;
    color: white;
    border-radius: 100px;
    padding: 1vh;
    border: 0;
    font-size: calc(min(22px, 4vh));
    text-shadow: 0 -2px #17A800;
    border-bottom: calc(min(0.4vh, 5px)) solid #17A800;
    font-family: 'Fredoka One', Arial, sans-serif;
    transition: all 0.1s;
    -webkit-transition: all 0.1s;
}

    button.submit-button:hover {
        background: #22F501;
        text-shadow: 0 -2px #38CF20;
        border-bottom: calc(min(0.4vh, 5px)) solid #38CF20;
    }


    button.submit-button:active {
        transform: translate(0, 5px) scale(0.98);
        -webkit-transform: translate(0, 5px) scale(0.98);
        border-bottom: 1px solid;
    }

button.submit-button-numeric {
    margin-top: 2vh;
}

button.submit-button-numeric-small {
    margin-top: 0;
}

div.qx-mpc-button-container {
    /* top margin to question area */
    margin-top: 1.5vh;
}

/* multiple choice page */
button.qx-mpc-button {
    width: 100%;
    color: white;
    height: 7vh;
    margin-top: 1vh;
    font-size: calc(min(22px, 5vh));
    font-family: "Fjalla One", Arial, sans-serif;
    border-radius: 1vh;
    border: none;
    overflow: hidden;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

    button.qx-mpc-button:active {
        box-shadow: none;
        transform: scale(0.97);
    }

button.qx-mpc-button-a {
    margin-top: 0;
    background-color: var(--color-a);
}

button.qx-mpc-button-b {
    background-color: var(--color-b);
}

button.qx-mpc-button-c {
    background-color: var(--color-c);
}

button.qx-mpc-button-d {
    background-color: var(--color-d);
}

button.qx-mpc-button-e {
    background-color: var(--color-e);
}

button.qx-mpc-button-f {
    background-color: var(--color-f);
}


/* on desktop we support hover state form mpc buttons */
@media(hover: hover) and (pointer: fine) {
    button.qx-mpc-button-a:hover {
        /*
        filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.5)) brightness(115%);
        transform: scale(1.01);
    */
        filter: brightness(115%)
    }

    button.qx-mpc-button-b:hover {
        filter: brightness(115%);
    }

    button.qx-mpc-button-c:hover {
        filter: brightness(115%);
    }

    button.qx-mpc-button-d:hover {
        filter: brightness(110%);
    }

    button.qx-mpc-button-e:hover {
        filter: brightness(150%);
    }

    button.qx-mpc-button-f:hover {
        filter: brightness(150%);
    }
}

span.deleteicon {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
}

    span.deleteicon span {
        position: absolute;
        display: block;
        right: 10px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        filter: opacity(0.5);
    }

    span.deleteicon input {
        padding-right: 18px;
        box-sizing: border-box;
    }
/* for sorting and correct answer indicator */
span.qx-mpc-button-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
}
/* for sorting indicator */
span.qx-order {
    position: absolute;
    display: block;
    color: #fff;
    font-size: calc(min(40px, 6vh));
    font-family: monospace;
    text-align: center;
    cursor: pointer;
    left: 10px;
    font-weight: bold;
    /* correction for vertical alignment on font*/
    margin-top: -0.5vh;
}

span.qx-order-a {
    left: 45px;
}

/* for checkmark image*/
img.qx-check-mark {
    position: absolute;
    right: 10px;
    height: 4.5vh;
    width: 4.5vh;
}

button.mpc-clear-button {
    float: left;
    width: 49%;
    margin-top: 1vh;
    background: dodgerblue;
    text-shadow: 0 -2px #006dd8;
    border-bottom: calc(min(0.4vh, 5px)) solid #006dd8;
}

button.mpc-submit-button {
    float: right;
    width: 49%;
    margin-top: 1vh;
}

.lottie-player {
    width: 90%;
    height: 80%;
    background-color: transparent;
    position: absolute;
    left: 5%;
    top: 10%;
    pointer-events: none;
    z-index: 999;
}

/* popper styling */
#tooltip {
    font-family: "Fredoka One", Arial, sans-serif;
    background: #38CF20;
    color: white;
    padding: 4px 8px;
    font-size: 20px;
    border-radius: 4px;
    z-index: 10;
}

.tooltip-red {
    background-color: red !important;
    background: red !important;
}

#arrow,
#arrow::before {
    position: absolute;
    width: 8px;
    height: 8px;
    background: inherit;
}

#arrow {
    visibility: hidden;
}

    #arrow::before {
        visibility: visible;
        content: '';
        transform: rotate(45deg);
    }

#tooltip[data-popper-placement^='top'] > #arrow {
    bottom: -4px;
}

#tooltip[data-popper-placement^='bottom'] > #arrow {
    top: -4px;
}

#tooltip[data-popper-placement^='left'] > #arrow {
    right: -4px;
}

#tooltip[data-popper-placement^='right'] > #arrow {
    left: -4px;
}

#tooltip {
    display: none;
}

    #tooltip[data-show] {
        display: block;
    }

#qx-tooltip-text {
    margin: 8px;
}

.qx-correct-text {
    color: #38CF20;
}

.qx-incorrect-text {
    color: #f42a2a;
    text-decoration: line-through;
}

button.qx-correct-button {
    background: #38CF20;
    border-bottom: calc(min(0.4vh, 5px)) solid #17a800;
    text-shadow: 0 -2px #118100;
}

button.qx-incorrect-button {
    background: #f42a2a;
    text-shadow: 0 -2px #c32f22;
    border-bottom-color: #c32f22;
}

.qx-bingo {
    background: #006dd8;
}

.hidden {
    display: none;
}

/* pictures questions */
.qx-img-ans {
    padding: 0.5vh;
    margin: auto;
    object-fit: contain;
    display: block;
    width: 100%;
}

    .qx-img-ans:active {
        transform: scale(0.9);
    }

span.qx-mpc-img-wrap-2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 49%;
}

#qx-buzzer-pic {
    padding: 0.5vh;
    margin: auto;
    object-fit: contain;
    display: block;
    width: 100%;
    height: 29vh;
    margin-top: 2vh;
}

/* effect view with buzzer */
.qx-buzzer-pic-fx {
    padding: 0.5vh;
    margin: auto;
    width: 100%;
    height: 29vh;
    margin-top: 2vh;
}

#qx-mpc-pic {
    margin: auto;
    object-fit: contain;
    display: block;
    width: 100%;
    height: 22vh;
    margin-top: 1.5vh;
}

.qx-mpc-pic-fx {
    margin: auto;
    width: 100%;
    height: 22vh;
    margin-top: 1.5vh;
}

.qx-joker-img {
    height: 60px;
    width: 60px;
    padding: 10px;
}

.qx-joker-menu {
    position: absolute;
    bottom: 70px;
    right: 20px;
    flex-direction: column;
    gap: 10px;
}

.qx-joker-icon {
    width: 25px; /* Adjust size */
    height: 25px;
    animation: colorShift 3s linear infinite, wobble 1.5s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes colorShift {
    0% {
        filter: hue-rotate(0deg) brightness(1.2) saturate(1.5);
    }

    100% {
        filter: hue-rotate(360deg) brightness(1.2) saturate(1.5);
    }
}

@keyframes wobble {
    0%, 100% {
        transform: rotate(0deg) translateY(0px);
    }

    25% {
        transform: rotate(-5deg) translateY(-2px);
    }

    50% {
        transform: rotate(5deg) translateY(2px);
    }

    75% {
        transform: rotate(-3deg) translateY(-1px);
    }
}

.qx-joker-btn {
    margin: 3px;
    width: 200px;
    background-color: floralwhite;
    color: #333;
    padding: 10px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.2s ease;
    font-weight: 600;
    font-family: 'Fjalla One';
    font-size: 20px;
    color: darkslateblue;
    display: flex;
    gap: 8px; /* Space between icon and text */
}

    .qx-joker-btn:hover {
        background-color: darkslateblue;
        color: white;
        transform: scale(1.05);
    }

#qx-joker-cont:hover {
    opacity: 1 !important;
    transition: opacity 0.5s ease-in-out;
}

.qx-joker-menu {
    background-color: #9d8cff;
    padding: 8px;
    border-radius: 10px;
}
