/* $Id$
 * Herve Saint-Amand
 * Edinburgh
 */

/*-------------------------------------------------------------------------------------------------------------------------------*/

div.thumbnail {
    position: relative;
    padding: 3px;
}

.thumb-col-vertical div.thumbnail {
}

.thumb-col-horizontal div.thumbnail {
    display: inline-block;
    margin-right: 5px;
}

img.thumbnail {
    width: 80px;
    height: 60px;
    border: solid 2px white;
}

.thumb-col-vertical img.thumbnail {
}

.thumb-col-horizontal img.thumbnail {
    position: relative;
}

img.thumbnail-highlighted {
    border-color: #666;
}

div.thumb-prev-arrow, div.thumb-next-arrow {
    position: absolute;
    width: 9px;
    padding-left: 6px;
    height: 15px;
    background-color: white;
    cursor: pointer;
    font-weight: bold;
    font-family: arial;
    font-size: 11px;    
}

div.thumbnail-vertical div.thumb-prev-arrow {
    top: 5px;
    right: 21px;
}

div.thumbnail-vertical div.thumb-next-arrow {
    top: 50px;
    right: 21px;
}

div.thumbnail-horizontal div.thumb-prev-arrow {
    top: 5px;
    left: 5px;
}

div.thumbnail-horizontal div.thumb-next-arrow {
    top: 5px;
    left: 70px;
}

div.thumb-arrow-hidden {
    display: none;
}

/*-------------------------------------------------------------------------------------------------------------------------------*/

.thumb-col {
}

.thumb-col-vertical {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.thumb-col-horizontal {
    height: 90px;
}

.thumb-col-vertical .thumb-col-scrollable-thumbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 2em;
    overflow: auto;
    padding: 2px;
}

.thumb-col-horizontal .thumb-col-scrollable-thumbs {
    overflow-x: auto;
    display: inline-block;
}

.thumb-col-vertical .thumb-col-button-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2em;
}

.thumb-col-horizontal .thumb-col-button-panel {
    display: inline-block;
    position: relative;
    top: -30px;
}

.thumb-col-curtain {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background-color: white;
    opacity: 0.75;
    filter: alpha(opacity=75); /* For IE8 and earlier */
}

.thumb-col-disabled .thumb-col-curtain {
    display: block;
}

.thumb-col-disabled img {
    /* copied from http://www.karlhorky.com/2012/06/cross-browser-image-grayscale-with-css.html */
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
}

/*-------------------------------------------------------------------------------------------------------------------------------*/

div#big-pic-container {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 660px;
    margin-left: -330px;
    height: 540px;
    margin-top: -275px;
    z-index: 10;
    background-color: white;
    border: solid 1px #999;
}

div.big-pic-hidden {
    display: none;
}

div#big-pic-img-container {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 640px;
    height: 480px;
}

img#big-pic {}

div#big-pic-but-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background-color: white;
    cursor: pointer;

    font-family: arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #333;
}

div#big-pic-left-arrow, div#big-pic-right-arrow {
    position: absolute;
    bottom: 0;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-family: arial;
    font-weight: bold;
    font-size: 50px;
    color: #333;
    padding-bottom: 10px;
}

div#big-pic-left-arrow {
    left: 10px;
    text-align: left;
}

div#big-pic-right-arrow {
    right: 10px;
    text-align: right;
}

div.crosshair {
    position: absolute;
    width: 17px;
    height: 17px;
    background: url("../img/crosshair.gif");
}

/*-------------------------------------------------------------------------------------------------------------------------------*/

div.map-apology {
    text-align: center;
    font-family: verdana, sans-serif;
    font-size: 10pt;
}

.map-hidden {
    /* For some reason if this is display:none GMaps doesn't load properly */
    z-index: 1 !important;
}

/*-------------------------------------------------------------------------------------------------------------------------------*/

#targeter-thumb-col-container {
    position: absolute;
    top: 1em;
    left: 1em;
    bottom: 1em;
    width: 110px;
}

#targeter-map-container {
    position: absolute;
    top: 1.3em;
    left: 8em;
    right: 1.3em;
    bottom: 1.3em;
}

body.targeter #big-pic-img-container {
    cursor: crosshair;
}

div#targeter-save-button-container {
    position: absolute;
    left: 1em;
    bottom: 1em;
    width: 6em;
}

div#targeter-save-button {
    font-size: 8pt;
    font-family: verdana;
    font-style: italic;
}

/*-------------------------------------------------------------------------------------------------------------------------------*/

#grouper-thumb-row-container {

}

/*-------------------------------------------------------------------------------------------------------------------------------*/

#aligner-map-container {
    position: absolute;
    top: 1em;
    left: 1em;
    right: 1em;
    bottom: 1em;
}

#aligner-curtain {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background-color: white;
    opacity: 0.75;
    filter: alpha(opacity=75); /* For IE8 and earlier */
    color: black;
    font-size: 20pt;
    padding-left: 45%;
    padding-top: 25%;
    font-family: verdana, sans-serif;
}

/*-------------------------------------------------------------------------------------------------------------------------------*/

#viewer-main-img-container, #viewer-map-container {
    position: absolute;
    width: 640px;
    left: 50%;
    margin-left: -320px;
    top: 10px;
    z-index: 5;
}

#viewer-main-img-container {
    height: 530px;
    background-color: white;
}

#viewer-main-img {
    position: absolute;
    width: 640px;
    height: 480px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    background-attachment: fixed;
}

.viewer-main-img-arrow-left,.viewer-main-img-arrow-right {
    position: absolute;
    bottom: -20px;
    width: 75px;
    height: 75px;
    cursor: pointer;
}

.viewer-main-img-date {
    position: absolute;
    top: 480px;
    width: 240px;
    left: 200px;
    text-align: center !important;
}

.viewer-main-img-arrow-left {
    left: 0;
}

.viewer-main-img-arrow-right {
    right: 0;
}

.viewer-main-img-arrow-hidden {
    display: none;
}

#viewer-edit-links {
    position: absolute;
    border: solid 1px black;
    padding: 0.5em;
    top: 3em;
    right: 1em;
}

#viewer-edit-links ul {
    margin: 0.5em 0;
    padding-left: 2em;
}

#viewer-map-container {
    z-index: 50;
    height: 530px;
}

img#preloader {
    position: fixed;
    top: -1000px;
    visibility: hidden;
}

div.toolbar {
    position: absolute;
    width: 640px;
    left: 50%;
    margin-left: -320px;
    top: 550px;
    text-align: center;
}

/*-------------------------------------------------------------------------------------------------------------------------------*/

div.dialog-curtain {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;

    background-color: black;
    opacity: .4;  /* for all other browsers */
    filter: alpha(opacity=40); /* for IE5-7 */
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)"; /* for IE8 */
}

div.dialog-hidden, div.dialog-curtain-hidden {
    position: fixed;
    display: none;
}

div.dialog {
    position: fixed;
    width: 600px;
    height: 320px;
    left: 50%;
    margin-left: -300px;
    top: 30px;
    border: solid 2px black;
    background-color: white;
    z-index: 101;
}

div.dialog-report-problem {
    width: 380px;
    margin-left: -190px;
}

div.dialog textarea {
    width: 350px;
    height: 70px;
}

div.dialog input.text {
    width: 350px;
}

div.dialog-loading {
    text-align: center;
    padding-top: 220px;
}

div.dialog-close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    width: 27px;
    height: 27px;
    background-image: url('../img/close_button_gray.png');
    background-repeat: no-repeat;
}

div.dialog-title {
    position: absolute;
    top: 10px;
    left: 10px;
    font-weight: bold;
    font-size: 20px !important;
}

div.dialog-body {
    position: absolute;
    top: 38px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    overflow: auto;
    padding-right: 1.75em;
}

/*-------------------------------------------------------------------------------------------------------------------------------*/

#clickmap-page {
    position: absolute;
    left: 50%;
    width: 1030px;
    margin-left: -515px;
    top: 50%;
    height: 480px;
    margin-top: -240px;
}

#clickmap-canvas {
    position: absolute;
    width: 640px;
    height: 480px;
    top: 10px;
    left: 10px;
}

#clickmap-img {
    position: relative;
    width: 640px;
    height: 480px;
}

#clickmap-canvas, #clickmap-img {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

#clickmap-dst-pic {
    position: absolute;
    left: 660px;
    top: 10px;
    width: 320px;
    height: 240px;
}

#clickmap-map {
    position: absolute;
    left: 660px;
    top: 260px;
    width: 320px;
    height: 230px;
}

div.clickmap-area {
    position: absolute;
    border: solid 2px white;
}

div.clickmap-area:hover, div.clickmap-area-selected {
    background-color: white;
    opacity: 0.3;
    filter: alpha(opacity=30); /* For IE8 and earlier */
}

div#clickmap-arrow-selector {
    position: absolute;
    left: 990px;
    top: 10px;
}

div.clickmap-arrow-selector-arrow {
    background-color: #ccc;
    margin-bottom: 3px;
}

div.clickmap-arrow-selector-arrow:hover, div.clickmap-arrow-selector-arrow-selected {
    background-color: #666;
}

div.clickmap-arrow-selector-arrow img {
    width: 50px;
    height: 50px;
}

/*-------------------------------------------------------------------------------------------------------------------------------*/
