﻿/* Initial CSS for main HTML elements  BODY has class=notouch if a mouse screen, otherwise class=touch;
can be used to define specific CSS rules for touch/notouch devices from http://stackoverflow.com/questions/2754546/can-i-disable-a-css-hover-effect-via-javascript */  

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #e5b43b;
    font-family: sans-serif;
    overflow-y: hidden;
}

#header, #content, #footer {
    position: absolute;
    width: 100%;
    left: 0;
}

/* header styles */
#header {
    top: 0;
    background-color: #e5b43b;
    background-image: url('images/bar-background.png');
    /*background-image: linear-gradient(to top, white, #ffeed6);*/
    background-repeat: repeat-x;
}

#userInfo {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
    padding: 6px 11px;
    font-size: 10pt;
    max-height: 70px;
    overflow: hidden;
}

#userInfo * {
    float: right;
}

#userName {
    padding-right: 5px;
}

/* Menu buttons */
#menu {
    float: left;
    padding: 8px;
    z-index: 20; /* make sure the menu appears above #userInfo */
    overflow: auto;
}

.header-btn {
    float: left;
    margin: 2px 2px 2px 2px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: .2s ease-in-out transform, .2s ease-in-out;
    filter: drop-shadow(1px 1px 1px #303030);
}

img.header-btn:hover {
    filter: brightness(80%) contrast(200%);
    transform: translate3d(0px, -2px, 0px);
    filter: drop-shadow(4px 4px 3px #303030);
}

#mytenlist {
    width: 100px;
    margin: 30px 0 10px 5px;
    position: relative;
}



/* stuff that is displayed in map canvas before login */
img.loading-screen {
    width: 80%;
    margin-left: 10%;
    max-width: 538px;
}

p.loading-screen {
    width: 60%;
    margin-left: 20%
}

/* content stuff */
#content {
    top: 70px;
}

#map_canvas {
    height: 100%;
    width: 100%;
}


/* footer styling */
#footer {
    height: 100px;
    bottom: 0;
}

/* screen bottom */
#InfoDiv {
    font-size: 10pt;
    background-color: #e5b43d;
    z-index: 5;
    position: relative;
}

#logDiv {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 8pt;
    overflow-y: auto;
    overflow-x: visible;
    height: 100%;
    width: 100%;
}

#advertDiv {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 8pt;
    overflow: hidden;
    height: 100%;
    width: 100%;
    z-index: 0;
    background-color: #e5b43d;
}


/* general styling stuff below */
.form {
    display: none;
}

A, A:visited, a:hover {
    color: #7d2b18;
    text-decoration:underline;
}



span.DataLabel {
    color:#7d2b18;
    font-weight:bold;
}

.noTitleStuff div.ui-dialog-titlebar {
    display: none;
}

/* Big devices - tablet, ipad;
iphone 3 = 320x480 */

.btn {
    height:46px;
    font-size:33px;
    background-color:gray;
    color:white;
    border-radius: 4px;
    padding:0 10px;
    margin:2px 1px;
    border: solid 1px brown;
    
}

.btmBtn {
    position:absolute;
    bottom:4px;
    z-index: 300;
}

.closeBtn {
    position:absolute;
    right:6px;
    bottom:4px;
    z-index: 300;
}

.dialog {
    height:100px;
    display:none;
    position:absolute;
    top:50px;
    margin: 2px;
    border: solid 2px brown;
    padding: 4px;
    background-color: White;
    z-index:200;
    font-size:25px;
    visibility:inherit;
    border-radius: 10px;
    -webkit-transition: all 1s ease-in-out;
}

/*.ui-icon {
    background-color: #000;
    display: block;
    margin: 0;
    width: 44px;
    height: 44px;
    padding: 1px;
    -webkit-border-radius: 36px;
    -moz-border-radius: 36px;
    border-radius: 36px;
    
}

*/    

#loader {
    background: url(images/ajax-loader.gif);
    background-size: 46px 46px;
    display: none;
    z-index: 99;
    position: fixed;
    top: 50%;
    left: 50%;
    border: 0;
    filter: Alpha(Opacity=18);
    opacity: .18;
    width: 46px;
    height: 46px;
    margin-left: -23px;
    margin-top: -23px;
    pointer-events: none;
}

INPUT {
    font-size:20px
}

/*#loader {
    position:fixed;
    top:50%;
    left: 50%;
    margin: -40px 0 0 -40px;
    display:none;
    z-index:100000;
    
}

#loader img {
    height:32px;
    width:32px;
    
}*/


body.notouch #nav li:hover ul{
    /* Display the dropdown on hover */  
    left:auto;
    right:0;
    /* Bring back on-screen when needed */
}

#nav li:hover ul li:hover  {
    background:#b75814;
    background-image: url(images/ui-bg_glass_50_e5b43b_1x400.png);
    background-position: 50% 50%;
    background-repeat: repeat-x;
    border: 1px solid #cccccc;
    -moz-border-radius: 4px;
    -khtml-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    cursor:pointer;
}

/* Here we define the most explicit hover states--what happens when you hover each individual link. */
#nav li:hover ul li a:hover {
    padding-bottom:0;
}

/* -----------------------------------  Login Form CSS stuff ------------------------------------------------- */
label, input {
    display:block;
}

input.text {
    margin-bottom:12px;
    width:95%;
    padding: .4em;
    background-color: #fff5de;
}

fieldset {
    padding:0;
    border:0;
    margin-top:15px;
}

.ui-dialog .ui-state-error {
    padding: .3em;
}

.validateTips {
    border: 1px solid transparent;
    padding: 0.3em;
}

.ui-dialog, .ui-dialog button {
    font-size:10pt
}

.ui-checkboxradio-icon.ui-icon.ui-icon-background {
    background-color: #fff5de;
    box-shadow: inset 1px 1px 1px #ebd;
}


/* layer widget */
div.layer-info {
   padding: 3px;
   border: 1px solid #c0c0c0;
   border-radius: 3px;
   margin: 2px 0px;
   width: 100%;
}

div.layer-info::after {
    content: "";
    clear: both;
    display: table;
}

.layer-btn-container {
    float: left;
    width: 100%;
    margin-right: -50%;
    overflow: hidden;
    height: 25px;
    z-index: 50;
}

.layer-label {
    padding: .4em .5em;
}

.layer-opacity-container {
    overflow: hidden;
    padding: 8px 10px 5px 10px;
    float: right;
    width: 48%;
    z-index: 500000;
}

.layer-opacity-container div {
    z-index: 500000;
}

.layer-help-btn {
    height: 24.78px;
    width: 22px;
}

.ui-widget-overlay {
    background-color:#303030;
    opacity:0.7;
    background-image:none;
}

.ui-button-text {
    font-size:11pt;
    padding:2px 1em 2px 1em;
}

.layer-control-widget {
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 3px;
    padding: 1px 3px;
    width: 300px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    cursor: pointer;
    float: left;
    margin: 10px 10px 10px 10px;
}

.layer-info-dialog {
    width: auto;
}

#toggleLayerWidgetLabel {
    float: left;
    position: relative;
    top: 6px;
}

/* Map labels */
.labels {
    color: black;
    background-color: white;
    font-family: "Lucida Grande", "Arial", sans-serif;
    font-size: 10pt;
    font-weight: normal;
    padding: 3px;
    text-align: center;
    border: 1px solid black;
    white-space: nowrap;
}

div#map_canvas.nolabel div.labels {
    display: none
}

/* polygon edit context menu */
.edit-menu {
    position: absolute;
    background: white;
    padding: 0;
    color: #000;
    font-weight: bold;
    border: 1px solid #999;
    font-family: sans-serif;
    font-size: 12px;
    box-shadow: 1px 3px 3px rgba(0, 0, 0, .3);
    margin: 1px 0 0 1px;
    padding: 2px;
    cursor: pointer;
    overflow: hidden auto;
}

.edit-menu-item {
    display: block;
    padding: 3px 20px 3px 5px;
    border-bottom: 1px solid #ccc;
}

.edit-menu-item:last-child {
    border-bottom: 0;
}

.edit-menu-item-clickable:hover {
    background: #8bf;
}
