html, body, .panel, #panels {
    /*height: 100%;*/
    /*width: 100%;*/
    position: relative;
    /*font-size: 80%;*/
}

body.ui-widget-content {
    margin: 0;
    padding: 0;
    color: black;
    background: white;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
}

#bg {
    clear: both;
}

#message {
    font-size: 150%;
    text-align: center;
    color: white;
    background-color: #ff003bf0;
    border: 1px solid grey;
    padding: 30px;
    margin: 30px;
    /* width: 100%; */
    display: none;
    position: fixed;
    z-index: 1000;
}

#diagnostic_dialog H4 {
    color: #ff003bf0;
}

#diagnostic_dialog .current_panel {
    font-family: "Courier New", Courier, monospace;
}

label, h3 {
    color: black;
}

.panel {
    display: none;
}

.panel {
    max-width: 100%;
    max-height: 100%;
}

#new_question_text {
    /*width: 300px;*/
    height: 50px;
}

/*INPUT, TEXTAREA {
    border: 1px solid black;
    background-color: white;
    width: 100%;
}*/

BUTTON {
    -webkit-appearance: none;
}

#ask_question_panel, #custom_html_player_div, #custom_flash_player {
    /*width: 848px;*/
    text-align: left;
}

#custom_html_player_div, #custom_flash_player {
    /*height: 480px;*/
}

#ask_question_panel {
    border: 2px solid slategray;
    margin: 10px;
    background: lavender !important;
    margin-top: 40px;
}

#ask_question_panel > div {
    padding: 15px;
}

#custom_flash_player {
    margin: 10px;
    /*height: 610px;*/
    overflow: hidden;
    position: relative;
}

#custom_html_player_div {
}

#custom_html_player_div video {
    width: 100%;
    height: 100%;
    /*position: relative;*/
}

#custom_flash_player, #custom_html_player_div, #ask_question_panel {
    /*display: inline-block;*/
}

#question_sent {
    display: none;
    font-weight: bold;
    color: darkgreen;
    font-size: 120%;
    font-style: italic;
}

.state_info {
    font-size: 190%;
    color: #056ab2;
    font-style: italic;
    font-weight: bold;
}

#connect_status {
    width: 5px;
    height: 5px;
    background-color: grey;
}

.connect_ok {
    background-color: #008000 !important;
}

.connect_pending {
    background-color: orange !important;
}

.connect_lost {
    background-color: red !important;
}

#my_questions UL {
    list-style: none;
    margin: 0;
    padding: 0;
}

#my_questions LI {
    padding: 5px;
}

#my_questions .question_TS {
    font-size: 80%;
    color: lightgrey;
    margin: 3px;
}

#my_questions .question_text {
    margin-left: 10px;
    line-height: normal;
    font-weight: normal;
}

#my_questions .question_answer {
    display: block;
    font-style: italic;
    margin-left: 20px;
    line-height: normal;
}

#my_questions .question_answer:before {
    content: '→';
}

#bottom_links_div {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

#bottom_links_div A {
    color: grey;
    font-size: 90%;
    cursor: pointer;
}

#bottom_links_div A {

}


/* clock spinner for thumb buttons */


.btn_bar BUTTON {
    color: #fff;
    text-align: center;
    line-height: 1;
    vertical-align: middle;
    border: 1px solid #9ccbd8;
    background: #f7f7f7;
    font-size: 1.8em !important;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 0.25em;
    margin: 0.556em 0;
    display: inline-block;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.clock_spinner {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    padding: 0;
    box-sizing: initial;
    position: absolute;
    left: 15px;
    top: 5px;
    display: none;
}

.clock_spinner_left, .clock_spinner_right {
    margin: 0;
    padding: 0;
    float: left;
    background: transparent;
    height: 100%;
    width: 50%;
    overflow: hidden;
    position: relative;
}

.clock_spinner div span {
    display: block;
    width: 200%;
    height: 100%;
    box-sizing: border-box;
    float: left;
    background: #ea515b;
    border: 15px solid rgba(0, 0, 0, .5);
    border-radius: 200%;
    border-left-color: transparent;
    border-top-color: transparent;
    position: absolute;
}

.clock_spinner_left span {
    transform: rotate(135deg);
    animation: rotate1 8s linear;
}

.clock_spinner_right span {
    transform: rotate(-45deg);
    animation: rotate2 8s linear;

    margin-left: -100%;
}

.clock_spinner div span {
    animation-play-state: paused;
}

.running {
    animation-play-state: running !important;
}

@keyframes rotate1 {
    0% {
        transform: rotate(135deg);
        opacity: 1;
    }
    50% {
        transform: rotate(135deg);
    }
    100% {
        transform: rotate(315deg);
        opacity: 0.25;
    }
}

@keyframes rotate2 {
    0% {
        transform: rotate(-45deg);
        opacity: 1;
    }
    50% {
        transform: rotate(135deg);
    }
    100% {
        transform: rotate(136deg);
        opacity: 0.25;
    }
}

@-webkit-keyframes rotate1 {
    0% {
        transform: rotate(135deg);
    }
    50% {
        transform: rotate(135deg);
    }
    100% {
        transform: rotate(315deg);
    }
}

@-webkit-keyframes rotate2 {
    0% {
        transform: rotate(-45deg);
    }
    50% {
        transform: rotate(135deg);
    }
    100% {
        transform: rotate(136deg);
    }
}


.video_is_muted, .video_is_behind, .video_is_paused {
    display: none;
    color: red;
}