:root {
    --text-color: #555;
    --font-size: 16px;
}

html {
    margin: 0;
    padding: 0;
    font-family: Arial, serif;
    font-size: var(--font-size);
    color: var(--text-color);
    line-height: 1.5em;
}

@media screen and (min-width: 320px) {
    html {
        font-size: calc(var(--font-size) + 8 * ((100vw - 320px) / 680));
    }
}
@media screen and (min-width: 1000px) {
    html {
        font-size: 22px;
    }
}

body {
    /*background: url(../../img/eworxx/bg.png) repeat-x #BBBBBB;*/
    margin: 0;
    padding: 0;
}

textarea {
    resize: none
}
button:focus {outline:0;}

.hupHeadDiv {
    background: url(../../img/eworxx/head_banner_bg.jpg) center left no-repeat;
    background-color: rgba(0, 0, 0, 0);
    background-blend-mode: multiply;
    background-size: cover;
    background-color: #5F5F5F;
}

.hupHeadLogo {
    display: block;
    margin: 0 auto;
    max-height: 150px;
    max-width: 100%;
    box-shadow: 0 0 50px #fff;
}

.hupContent {
    background-color: #fff;
    width: 100%;
}

.hupContentDiv {
    padding: 10px;
}

.hupIntroText, .hupTitle{
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hupPreviewStatic, .hupConfirmPreview {
    margin: 0 0 10px 0;
    border: 1px solid #999;
    color: var(--text-color);
}

.hupFormOverlay {
    background: url(../../img/ajax_bar.gif) no-repeat center center #fff;
    position: absolute;
    width: 834px;
    height: 100px;
}

.controls {
    display: none;
}

.textFields label {
    display: block;
}

.textFields textarea {
    display: block;
}

.textFields ul {
    padding: 5px 5px 5px 0;
    margin: 5px 5px 5px 0;

    list-style: none;
}

.textFields ul li {
    /*background-color: #DDD;*/
    padding: 5px 5px 5px 8px;
    margin: 5px 5px 5px 0;
    /*border-radius: 5px;*/
}

.textFields ul li input {
    width: 400px;
    height: 20px;
    color: var(--text-color);
}

.textFields ul li span {
    background-color: #DDDDDD;
    display: block;
    float: right;
    width: 30px;
    height: 22px;
    margin: 0 0 0 5px;
    padding: 2px 0 0 0;

    border: 1px solid #AAA;

    font-size: 16px;
    text-align: center;
}

.textFields ul li span:hover {
    cursor: pointer;
    -webkit-box-shadow: 0 0 5px 0 rgba(0, 116, 217, 1);
    -moz-box-shadow: 0 0 5px 0 rgba(0, 116, 217, 1);
    box-shadow: 0 0 5px 0 rgba(0, 116, 217, 1);
}

.middleButton {
    background-color: #DDD;
    min-width: 60px;
    height: 40px;
    margin: 0 5px 0 12px;

    border-radius: 8px;
    border: 1px solid #AAA;
    cursor: pointer;
}

.middleButton:hover {
    border: 1px solid #777;
}

.bigButton {

    background: rgba(255, 255, 255, 1);

    min-width: 200px;
    height: 50px;
    padding: 2px 10px 2px 10px;
    margin: 5px 0 0 0;

    border-radius: 4px;
    border: 1px solid #AAA;

    font-size: 18px;
    cursor: pointer;

    color: var(--text-color);
}

.bigButton:hover {
    border: 1px solid #777;
}

.formErrorBox {
    display: none;
    background-color: #BDE5F8;
    padding: 10px;
    margin: 0 0 5px 0;
    border: 1px solid #00529B;
}

.formErrorNoInput {
    font-size: 14px;
    color: #00529B;
    font-weight: bold;
}

.formErrorText {
    display: inline-block;
    float: left;
    width: 80%;
}
.formErrorButtons {
    display: inline-block;
    float: left;
    width: 20%;
}
.spezOder {
    width: 300px;
    margin: 20px 0 0 0;
    text-align: center;
    font-size: 18px;
}
.hupTitle {
    font-weight: bold
}

.hupPreviewImage, .hupConfirmPreview {
    margin: auto;
    overflow: auto;
    background: #ddd
}

.hupStateDiv {
    background: none #eee no-repeat center calc(50% - 30px);
    text-align: center;
    box-sizing: border-box;
}

.hupStateDivAjax {
    background-image: url(../../img/ajax_bar.gif);
}

.hupStatusFailed, .hupStatusFailedAlreadyDone, .hupStatusFailedDb, .hupPreviewFailed, .hupPreviewImageFailed, .hupPreviewImagePossibleFailed, .hupStatusFailedNotYetPossible {
    background-image: url(../../img/warn.gif);
    color: var(--text-color);
}

/** Zoom-Slider */
.hupPreviewZoom, .hupConfirmZoom {
    float: right;
    margin-right: -1px;
    border: 1px solid #999;
    border-top: 1px solid #eee;
    border-radius: 0 0 5px 5px;
    padding: 5px
}

.hupConfirmZoom {
    right: 0
}

.hupZoomSliderPanel, #hupZoomMinus, #hupZoomPlus {
    float: left
}

.hupZoomSliderPanel {
    width: 120px;
    margin: 4px 5px 0 5px
}

.ui-slider-horizontal {
    height: 0.5em
}

.ui-slider-horizontal .ui-slider-handle {
    height: 1em;
    width: 1em
}

#hupZoomMinus, #hupZoomPlus {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 15px;
    text-align: center;
    cursor: pointer
}

#hupZoomMinus:hover, #hupZoomPlus:hover {
    border: 1px solid #FBCB09
}

.hupConfirmAjax {
    background: url(../../img/ajax_bar.gif) #eee no-repeat;
    height: 19px;
    width: 220px
}

.hupControlPanel {
    background: url(../../img/bg_panel.png) repeat-x;
    border: 1px solid #ddd;
    padding: 5px 10px 10px 10px
}

.hupLeftInput {
    width: 400px
}

.hupInputHint, .hupError {
    background: url(../../img/warn.gif) no-repeat 10px 50%;
    border: 1px solid red;
    font-weight: bold;
    margin-top: 20px;
    padding: 5px 5px 5px 50px
}

.hupConfirmInputs {
    padding: 20px 20px 45px 20px;
    background: #eee;
    border: 1px solid #ddd;
    margin-bottom: 10px
}

.hupConfirmSubmit {
    display: inline-block;
    padding: 5px;
    border: 1px solid #999;
    background: #eee;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold
}

.hupConfirmHint {
    font-family: Courier, serif;
    font-size: 11px;
    padding: 10px;
    border: 1px solid #ccc;
    background: #fff
}

/* HTML5-Scribble */
.scribbleApplet {
    height: 100%;
    position: relative;
    background: #F5F5F5;
}

.scribbleUploadMsgPanel {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: #eee
}

.scribbleUploadMsgInProgress, .scribbleUploadMsgDone, .scribbleUploadMsgFailed {
    text-align: center;
    margin-top: -60px;
    font-size: 14px;
    top: 50%;
    position: relative
}

.scribbleProgressOut {
    width: 70%;
    margin: 20px auto;
    height: 33px;
    background: #fff;
    border: 1px solid #999;
    position: relative;
}

.scribbleProgressIn {
    background: #33a;
    position: absolute;
    height: 33px
}

.scribbleTopPanel {
    position: absolute;
    top: 0;
    bottom: 60px;
    width: 100%;
}

.scribbleScrollPanel {
    position: relative;
    display: block;
    height: 100%;
    overflow: auto;
}

.scribbleTempCanvas {
    position: absolute;
    display: none;
    z-index: 10;
}

.scribbleTempCanvas, .scribbleCanvas {
    margin: 0 auto;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}

.scribbleFreeCanvas {
    z-index: 9;
    display: block;
}

.scribbleFallbackDiv {
    text-align: center;
    margin-top: 40px;
}

.scribbleToolbar {
    position: absolute;
    bottom: 0;
    height: 59px;
    width: 100%;
    border-top: 1px solid #999
}

.scribbleToolbar button {
    max-width: 5vW;
    max-height: 5vW;
}

.scribbleToolName {
    background-color: #F5F5F5;
    position: absolute;
    bottom: 59px;
    /*height: 25px;*/
    display: none;
    /*padding: 5px 8px 0 4px;*/
    padding: 3px 10px;
    border-top:1px solid #999;
    border-right:1px solid #999;
    border-bottom:1px solid #999;
    /*border-top-right-radius:15px;*/
    /*font-size: 1.3em;*/
    z-index: 12;
}

/*.scribbleUndo, .scribbleCommentMarker, .scribbleDrag {*/
/*background-color: #FFF;*/
/*height: 50px;*/
/*width: 50px;*/
/*margin: 5px 0 0 0;*/
/*padding: 4px 0 0 0;*/
/*border: 2px solid #BBB;*/
/*border-radius: 10px;*/
/*cursor: pointer;*/
/*}*/
/*.scribbleUndo:hover, .scribbleCommentMarker:hover, .scribbleDrag:hover, .scribblePaintMode button:hover, .chosenColor:hover {*/
/*border: 2px solid #000;*/
/*}*/

.scribbleUndo {
    margin-left: 16px;
    float: left;
}

.scribbleCommentMarker {
    margin-left: 16px;
    float: left;
}

/*.scribbleCommentMarker.active {*/
/*border: 2px solid #000;*/
/*box-shadow: none;*/
/*}*/

.scribblePaintMode {
    float: left;
    margin-left: 20px;
}

.scribblePaintMode button {
    background-color: #FFF;
    /*width: 50px;*/
    /*height: 50px;*/
    margin: 5px;
    padding: 5px;
    border: 2px solid #EEE;
    /*border-radius: 10px;*/
    cursor: pointer;
}

.scribblePaintMode .active {
    border-color: #BBB;
    box-shadow: none;
}

.colorDiv {
    float: left;
    margin: 0 0 0 20px;
}

.colorDiv button{
    background-image: url("../../img/scribbleButtons/colorBtnBg.png");
    background-position: center;
}

.chosenColor {
    background-color: black;
    /*width: 46px;*/
    /*height: 46px;*/
    border: 2px solid #BBBBBB;
    border-radius: 10px;
    cursor: pointer;
}
.colorPanel {
    background-color: #F0F0F0;
    bottom: 60px;
    position: absolute;
    width: 120px;
    padding: 5px 0 5px 0;
    border: solid 1px #1c94c4;
    z-index: 11;
}

.colorButton {
    /*width: 50px;*/
    /*height: 40px;*/
    margin: 0 5px 2px 5px;
    cursor: pointer;
}

/*.colorButton.active {*/
/*border: 2px solid #000;*/
/*box-shadow: none;*/
/*}*/

.scribbleDrag {
    margin: 5px;
}

/*.scribbleDrag.active {*/
/*border: 2px solid #000;*/
/*box-shadow: none;*/
/*}*/

.scribbleToolPanel {
    float: right;
    margin-right: 20px;
    position: relative
}

/*.scribbleZoomButton {*/
/*background-color: #FFF;*/
/*width: 50px;*/
/*height: 50px;*/
/*padding: 5px;*/
/*margin: 5px;*/
/*border: 2px solid #BBB;*/
/*border-radius: 10px;*/
/*cursor: pointer;*/
/*}*/

/*.scribbleZoomButton:hover {*/
/*border: 2px solid #000;*/
/*}*/

button.scribbleUndo{
    background-image: url("../../img/scribbleButtons/undo.png");
}
button.scribbleCommentMarker{
    background-image: url("../../img/scribbleButtons/comment2.png");
}
button.scribbleModeFree{
    background-image: url("../../img/scribbleButtons/pencil.png");
}
button.scribbleModeEllipse{
    background-image: url("../../img/scribbleButtons/50px_ellipse_norm.png");
}
button.scribbleModeRectangle{
    background-image: url("../../img/scribbleButtons/50px_rectangle_norm.png");
}
button.scribbleModeRectangle{
    background-image: url("../../img/scribbleButtons/50px_rectangle_norm.png");
}
button.scribbleDrag{
    background-image: url("../../img/scribbleButtons/50px_move_512.png");
}
button.zoomPlus{
    background-image: url("../../img/scribbleButtons/50px_zoom_plus.png");
}
button.zoomMinus{
    background-image: url("../../img/scribbleButtons/50px_zoom_minus.png");
}

.scribbleToolbar button{
    background-color: #f5f5f5;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    width: 50px;
    height: 50px;
    padding: 5px;
    margin: 5px;
    border: 1px solid #f5f5f5;
    border-radius: 0;
    cursor: pointer;
}

.scribbleToolbar .colorDiv button {
    background-size: 100%;
}
.scribbleToolbar button.scribbleDrag, .scribbleToolbar button.zoomPlus, .scribbleToolbar button.zoomMinus {
    background-size: 60%;
}

/*.scribbleToolbar button {*/
    /*background-color: #FFF;*/
    /*width: 50px;*/
    /*height: 50px;*/
    /*padding: 5px;*/
    /*margin: 5px;*/
    /*border: 1px solid #BBB;*/
    /*border-radius: 5px;*/
    /*cursor: pointer;*/
/*}*/

.scribbleToolbar button:hover, .scribbleToolbar button.active {
    border-color: #888;
}


/*Helper Classes*/
.hidden {
    display: none;
}

.clearBoth {
    clear: both
}

.leftAlign {
    float: left
}

.rightAlign {
    float: right
}
.width33 {
    width: 33%;
}
.grabbable {
    cursor: move; /* fallback if grab cursor is unsupported */
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

/* (Optional) Apply a "closed-hand" cursor during drag operation. */
.grabbable:active {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

.exception-Info-opener {
	margin-top: 10px;
	opacity: 0.5;
	cursor: pointer;
	font-size: 0.75em;
}

.exception-Info {
	opacity: 0;
	height: 0;
	transition: none;
}

.exception-Info > * {
	display: none;
}

.exception-Info.open {
	opacity: 1;
	height: initial;
	transition: opacity 0.25s ease-in;
}

.exception-Info.open > * {
	display: block;
}