/* Background pattern from Toptal Subtle Patterns */
html, body {
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-size: 100%;
    font-family: arial;
    background-image: url("../images/dark.png");
}

header {
    width: 100%;
    background-color: #EEE;
    margin: 0;
    padding: 0;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
    background-image: url("../images/snow.png");
    background-image: url("../images/hintergrund.jpg");
}
.occupied{
    background-color: #AAA;
}

footer {
    background-color: #222;
    color: white;
    text-align: center;
    height: 3em;
    margin-top: 2em;
}

footer p {
    line-height: 3em;
    font-size: 0.9em;
    margin: 0;
}

footer li {
    display: inline-block;
    list-style: none;
    margin-left: 0.5em;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

h1 {
    margin: 1em 0 0 0;
    width: auto;
}

img {
    max-width: 100%;
    text-align: right;
    padding: 0em;
}

header img {
    float: right;
    padding: 0.1em 0.75em;
}

#logo {
    padding: 0em;
    height: 7em;
}

td {
    border: 1px solid black;
}
table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

tr{
    border: 2px solid black;
}

td {
    height: 3em;
    width: 33%;
    text-align: center;
}

td div {
    display: block;
    margin: auto;
    left: 0 !important;
    top: 0;
}

#load {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -16px;
    margin-left: -16px;
    z-index: 999;
}

#overview {
    height: auto;
}

#overview thead td div {
    position: relative;
    padding: 0.5em;
    vertical-align: middle;
}

#overview thead td div div{
    transform: rotate(270deg);
    position: absolute;
    bottom: 0;
}
#overview thead td:not(:first-child):not(:last-child) {
    background-color: #efcc4f;
    vertical-align: middle;
}
#overview thead td:first-child, #overview thead td:last-child {
    background-color: #D9E3FF;
}
#overview thead td:not(:first-child):not(:last-child) p{
    white-space: nowrap;
}
#overview tbody td:first-child {
    background-color: #A8CBFF;
}
#overview tbody td:last-child {
    background-color: #5D708C;
    color: #fff;
}
#overview tbody tr:hover {
    cursor: pointer;
    text-decoration: underline;
}

#overview td {
    width: auto;
}

#overviewCreateContainer li {
    margin-top: 0.75em;
}


#main {
    width: 90%;
    min-height: 40em;
    margin: 1em auto;
    border-radius: 1em;
    background-color: #FFF;
    background-image: url("../images/snow.png");
}

#mainContainer {
    min-height: 40em;
}
#hideContainer {
    overflow: hidden;
    min-height: 40em;
}

img.logo{
    max-width: 20em;
}

.content {
    max-width: 95%;
    margin: auto;
    text-align: left;
    padding: 1em 0;
}

#constructContainer ul {
    padding: 2em 0;
    list-style: none;
    background: #EEE;
    width: 100%;
    display: table;
    table-layout: fixed;
}

#constructContainer ul li {
    display: table-cell;
    width: auto;
    text-align: center;
    border: 1px solid #000;
}

#constructContainer li:first-child,#constructContainer li:last-child {
    background-color: #666;
    color: white;
}

button, input[type=submit], input[type=button], input[type=file], #linkStart {
    border: 0.1em solid #FFF;
    padding: 0.4em;
    font-size: 1.1em;
    color: #FFF;
    border-radius: 0.3em;
    background-color: #5b98f7;
}

button:hover, input[type=submit]:hover, input[type=button]:hover, input[type=file]:hover, #linkStart:hover  {
    background-color: #456fcc;
}

button:active, input[type=submit]:active, input[type=button]:active, input[type=file]:active, #linkStart:active  {
    background-color: #276bd8;
}
button:disabled, button.delete:disabled, input[type=submit]:disabled, input[type=button]:disabled button:disabled{
    background-color: grey;
    border: 2px solid white;
    color: white;
}

#linkStart{
    text-decoration: none;
}

button.delete {
    background-color: white;
    border: 2px solid #ff6866;
    color: #ff6866;
    color: black;
}

button.delete:hover:not(:disabled) {
    background-color: white;
    border: 2px solid #ff4744;
    color: #ff4744;
}

button.delete:active {
    background-color: white;
    border: 2px solid #ff3b38;
    color: #ff3b38;
}

div.inline{
    display: inline-block;
    margin: 2em;
}
div.draggable {
    cursor: pointer;
    display: inline-block;
    padding: 0;
    margin: 0;

    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                          supported by Chrome and Opera */
}
p.element, p.construct, p.triad {
    display: inline-block;
    width: 6em;
    text-align: center;
    background-color: #efcc4f;
    color: black;
    margin: 0;
    padding: 0.1em;

}
p.construct{
    background-color: #26B5FF;
    width: 12em;
}
p.triad {
    background-color: #b5e059;
    width: 16em;
}
#triadContainer {
    text-align: center;
    margin: 1em;
}
#triadLeft, #triadRight{
    display: inline-block;
    margin: 0 1em;
    background-color: #ffeca8;
    min-height: 10em;
    min-width: 35%;
    padding: 0.4em;
}

.triadElement.clickable {
    cursor: pointer;
}

#triadCommonContainer, #triadOppositeContainer {
    min-height: 2em;
    width: 100%;
}
#triadCommonContainer .elementDiv, #triadOppositeContainer .elementDiv {
    margin: 0 2em;
}
#elementContainer {
    margin: 2em 0 2em;
}
#constBtnNext, #createBtnNext, .btnNext, .rightAlign {
    float: right;
}
#constBtnFinish, #createBtnFinish {
    display: block;
    margin: auto;
}

h2 {
    font-size: 1.3em;
}

h3.description {
    text-align: center;
}

.answer {
    min-height: 2em;
}
.success {
    background-color: green;
    color: white;
}
.failed {
    background-color: red;
    color: white;
}
.invisible {
    display: none;
}
.visible {
    display: block !important;
}

.hidden {
    visibility: hidden;
}
div.selected {
    border: 0.15em solid black;
}

.btnDiv{
    width: 32%;
    display: inline-block;
}
div.clone{
    border: 0.15em solid black;
    cursor: auto !important;
}

.bold{
    font-weight: bold;
}
.red{
    color: red;
}
.green{
    color: green;
}

#hiddenSelect{
    visibility: hidden;
    display: none;
    margin: 0;
    padding: 0;
    max-height: 1px;
}
#uploadForm {
    margin: 0;
    padding: 0;
}

#elementImageUploadForm, #elementAudioUploadForm {
    margin: 0;
    padding: 0;
    display: inline;
}


.answer p {
    padding: 0.5em;
}

section.startSelection {
    display: inline-block;
    width: 42%; 
    background-color: #EEE;
    background-image: url("../images/hintergrund.jpg");
    padding: 0.5em 1em;
    margin: 1em;
    border-left: 0.25em solid #FF7F18;
    border-radius: 0.2em;
    min-height: 18em;
    vertical-align: top;
}

input[type=text], input[type=email], input[type=password] {
    width: 20em;
    height: 2em;
    border: 0.15em solid #5b98f7;
    padding: 0.5em;
    font-size: 1em;
}

input[type=checkbox] {
    width: 2em;
    height: 2em;
    vertical-align: bottom;
}
input[type=number] {
    width: 5rem;
    height: 1.5rem;
    vertical-align: bottom;
    border: 0.15rem solid #5b98f7;
    text-align: center;
    font-size: 1.2em;
}
select {
    border: 0.15rem solid #5b98f7;
    font-size: 1.2em;
    height: 1.61em;
    padding: 1px;
}

#uploader {
    width: 40em;
    margin: 1em 0;
}
.elementDiv, .constructDiv {
    cursor: pointer;
    border: 0.15em solid rgba(255, 0, 0, 0);
    position: relative;
}
.elementDiv > img {
    display: none;
    position: absolute;
    top: 1.5em;
    z-index: 999;
    max-width: 20em;
    max-height: 20em;
    margin-top: 1em;
}
.elementDiv:hover > img {
    max-width: 20em;
    display: block;
    
}
.elementDiv.print {
    display: inline-block;
    margin: 2em 2em 2em 0em;
}
.elementDiv.print > img {
    display: inline-block;
    position: relative;
    margin-top: 0;
    max-width: 10em;
    max-height: 10em;
}

#triadsContainerCreate tr.highlighted {
    background-color: #99c0ff;
}


.interviewText{
    background-color: #DDD;
    padding: 1em;
}

#interviews td{
    width: auto;
}

#result{
    background-color: green;
    color: white;
    padding: 1em;
}

#addCheckScope input[type="number"] {
    width: 17.5em;
    height: 2em;
}

input.invalid {
    border-color: red;
}
input {
    max-width: 100%;
}

@media print
{    
    .noprint, .noprint *
    {
        display: none !important;
        height: 0;
        margin: 0;
        padding: 0;
    }
    #main{
        width: 100%;
    }
    *{
        margin: 0;
        padding: 0;
    }
}