html {
    background: #cbc395 url('../img/tausta.jpg');
    height: 100%;
    margin: 0px;
    padding: 0px;
}

body {
    color: #333;
    background: transparent url('../img/headerbg2.png') top center no-repeat;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}

body footer {
    padding-top: 30px;
}
body footer .panel {
    font-size: 11px;
}

h1, h2, h3 {
    font-family: Georgia, 'Sans serif';
}

input:disabled, label.disabled {
    text-decoration: line-through;
}

table {
    width: 100%;
}
table.valign thead tr,
.valign {
    vertical-align: middle;
}

.zebra {
    background: #aeaeae;
}

.valign-top {
    vertical-align: top;
}
table thead th button {
    margin: 0px;
}
#cardlist td label {
    display: block;
}
#cardlist td label input {
    margin-right: 10px;
    padding: 0px;
    margin-bottom: 0px !important;
}

#cardlist img {
    margin-bottom: 3px;
}

.center {
    text-align: center;
}
.center * {
    margin: 0 auto;
}

.top-bar-section .adminmenu > a {
    background-color: #805219 !important;
}
.top-bar-section .adminmenu a.logout {
    background-color: #900 !important;
}

.pagefooter a {
    color: #333;
    border-bottom: 1px dashed #333;
    margin: 0 2px;
}
.pagefooter a:hover {
    color: #000;
    border-bottom: none;
}

.progress span {
    display: block;
    padding: 4px 5px;
    font-size: 11px;
    overflow: hidden;
    color: #fff;
}

.progress span.queue {
    background: #699938;
}
.progress span.public {
    background: #9ecb45;
}
.progress span.private {
    background: #f69637;
}
.progress span.hidden {
    background: #777;
}

.clear {
    clear: both;
    overflow: auto;
}

.loginlink {
    float: right;
    font-size: 12px;
    color: #aaa;
}

.headerlogo {
    text-align: center;
    padding-right: 20px;
    margin-bottom: 0px;
}

.backgroundfix {
    background: #fff;
}

.panel {
    border-color: transparent;
}

.image-panel a {
    color: #333;
    font-size: 11px;
}

form label.error {
    margin-top: -10px;
    padding-bottom: 20px;
    clear: both;
    overflow: auto;
}

#message_text {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    height: 200px;
    min-height: 200px;
    max-height: 500px;
}

#previewpanel {
    border: 1px solid #333;
    position: relative;
    height: 350px;
}

#previewpanel, .previewpanelclear {
    clear: both;
    overflow: auto;
}

#previewimage {
    position:absolute;
    top: 0px;
    left: 0px;
    border: 1px solid #333;
    z-index: 1;
    width: 100%;
    height: auto;
}

.postcard_preview {
    width: 100%;
    height: 300px;
    background: #333;
}

#message_title_preview,
#message_text_preview {
    position:   relative;
    z-index:    2;
    color:      #fff;
    text-shadow: 0px 0px 10px rgba(150, 150, 150, 1);
    width:      90%;
    border:     1px dashed transparent;
}
#message_title_preview {
    top:        20px;
    left:       10px;
    font-size:  30px;
    font-weight: 700;
}
#message_text_preview {
    top:        40px;
    left:       10px;
    font-size: 20px;
    line-height: 140%;
    white-space: pre;
}

.toteutuva .url {
    white-space: pre;
}

#previewpanel:hover .ui-draggable,
.ui-draggable-dragging,
.ui-resizable-resizing {
    cursor:     move;
    border:     1px dashed #666;
    background: #fff;
    background: rgba(255, 255, 255, 0.5);
}

ul.thumbnails.image_picker_selector {
    overflow: auto;
    list-style-image: none;
    list-style-position: outside;
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}
ul.thumbnails.image_picker_selector li {
    margin: 0px 3px 3px 0px;
    float: left;
}
ul.thumbnails.image_picker_selector li .thumbnail {
    padding: 3px;
    border: 1px solid #dddddd;
    width: 90px;
    height: 71px;
}
ul.thumbnails.image_picker_selector li .thumbnail.selected {
    background: #0088cc;
    width: 90px;
    height: 71px;
}