html { overflow: hidden; }

html, body {
    font-family: Helvetica;
    font-size: 13px;
    margin: 0;
    padding: 0;
    height: 100%;
}

body { margin: 10px; }

#content {
     margin-top: 10px;
     position: relative;
}

#map {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     border: 1px solid #aaa;
}

#map-wrapper {
     position: relative;
     height: 100%;
}

#sidebar-wrapper {
    position: absolute;
    top: 0;
    width: 215px;
    height: 100%;
    color: #111;
    text-decoration: none;
}

#sidebar-top {
    overflow: auto;
    overflow-x: hidden;
    overflow-y: auto; 
}

#sidebar-bottom {
    margin-top: 10px;
    display: none;
}

.showbottom #sidebar-bottom {
    display: block;
}

.sidebar {
    border: 1px solid #aaa;
}

#sidebar-internal {
    padding: 0 10px;
}

#sidebar-bottom #pointinfo {
    padding: 0 10px;
}

#sidebar-bottom #pointinfo dl dt {
    margin-top: 6px;
    font-weight: bold;
}

#sidebar .point-nav { 
display: block; background: #eee; border: 1px solid #777;
text-decoration: none; padding: 4px 8px; text-align: center; color: #333; }
#sidebar .point-nav:hover { background: #ddd; }

body #map-wrapper { margin-right: 228px; }
body #sidebar-wrapper { right: 0; }

#ranges-pattern {
    display: none;
}

.rangeend {
    background: #bda url(img/round-green.png) 7px 6px no-repeat;
    height: 26px;
    padding: 0 6px 0 27px;
    position: relative;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    margin: 4px 0;
}

.rangeend h3 {
    font-size: 16px;
    margin: 0;
    padding: 3px 0 0 0;
}

.rangeend a.closebutton {
    display: block;
    float: right;
    width: 14px;
    height: 15px;
    text-decoration: none;
    color: black;
    background: #8a7;
    text-align: center;
    font-size: 10px;
    border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    position: relative;
    top: 5px;
}

.rangeend a.closebutton:hover {
    background: #9b8;
}





#toolbar {
    background: white;
    padding: 4px;
    border: 1px solid #aaa;
    position: relative;
}

/* holly hack for IE to get position:bottom right
   see: http://www.positioniseverything.net/abs_relbugs.html
 \*/
* html #toolbar { height: 1px; }
/* */

#toolbar h1 {
    margin: 0;
    font-weight: bold;
    font-size: 16px;
}

#toolbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#toolbar ul#sidebar-controls li {
    position: absolute;
    right: 5px;
    bottom: 5px;
}

#toolbar ul li {
    display: inline;
}

#toolbar ul li a {
    padding: 3px 6px;
    color: #444;
    text-decoration: none;
}

#toolbar ul li a:hover {
    color: #aaa;
    background: #444;
}

#blackout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: black;
    display: none;
    height: 100%;
}

#popup-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
}

#selection, #loading, #notify {
    /*margin: 0 auto;*/
    position: absolute;
    top: 0;
    left: -180px;
    width: 360px;
    border: 1px solid #777;
    background: white;
    display: none;
}

#selection {
    margin-top: 40px;
    width: 360px;
}

#selection-internal {
    overflow: scroll;
    overflow-x: hidden;
    overflow-y: scroll;
}

#selection-internal ol {
    list-style: none;
    margin: 0;
    padding: 10px;
}

#selection-internal ol li {
    margin: 0; padding: 0;
}

#selection-internal ol li a {
    display: block;
    padding: 3px 6px 3px 6px;
    text-decoration: none;
    border: 1px solid white;
    color: #444;
}

#selection-internal ol li a:hover {
    border: 1px solid #aaa;
}

#selection-internal ol li a span {
    float: right;
}

#notify {
    margin-top: 230px;
    width: 260px;
    left: -130px;
}

#notify #notify-internal {
    padding: 1px 14px;
}

#loading {
    margin-top: 200px;
    width: 260px;
    left: -130px;
}

#loading ol {
    list-style: none;
}

#loading ol li {
    margin: 10px 0;
    padding: 0 0 0 10px;
}

#loading ol li .check {
    float: left;
    position: relative;
    margin-left: -1em;
    left: -8px;
    display: none;
}

#timeline-wrapper {
    position: absolute;
    bottom: -74px;
    width: 99.8%;
    height: 60px;
}

.controls ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.controls ul li {
    width: 14px;
    height: 14px;
    float: left;
    margin: 10px 0 0 10px;
}

.controls ul li a {
    width: 14px;
    height: 14px;
    float: left;
    display: block;
    border: 1px solid #aaa;
    text-decoration: none;
    color: #444;
    text-align: center;
    font-size: 11px;
}

.controls ul li a:hover {
    background: #aaa;
    color: white;
}

#timeline-wrapper .controls {
    position: absolute;
    top: 0; left: 0;
    width: 14px;
    height: 100%;
}

#timeline-wrapper .controls ul li { margin-left: 0; }


#pointinfo .controls {
    float: right;
}

#timeline {
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 90%;

    overflow: scroll;
    overflow-x: scroll;
    overflow-y: hidden;
    border: 1px solid #aaa;
}

#timeline-internal {
    display: none;
}

#timeline-internal #timeline-draggable {
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    height: 25px;
    cursor: url(http://www.google.com/intl/it_ALL/mapfiles/openhand.cur), move;
    z-index: 1;
}

#timeline-internal #timeline-draggable:active {
    cursor: url(http://www.google.com/intl/it_ALL/mapfiles/closedhand.cur), move;
}

#timeline-internal ol {
    list-style: none;
    float: left;
    margin: 0;
    padding: 0;
    position: relative;
    white-space: nowrap;
    /*z-index: 0;*/
}

#timeline-internal ol li {
    display: inline-block;
    position: relative;
    margin: 0; padding: 0;
    border: 1px solid black;
    border-width: 0px 0 25px 0;
    width: 0px;
    height: 24px;
    /*z-index: 0;*/
}

#timeline #timeline-internal ol li.bookend {
    width: 20px;
    background: rgb(179, 179, 179);
    border-color: rgb(179, 179, 179);
}

#timeline-internal ol li .flag {
    display: block;
    width: 14px;
    height: 14px;
    position: absolute;
    top: 5px;
    left: -6px;
    background: url(img/round-green.png) top left no-repeat;
    z-index: 2;
}

#timeline-internal ol li .time-tick, #timeline-internal ol li .time-tick-10s {
    position: absolute;
    display: block;
    top: 21px;
    left: 0;
    width: 1px;
    height: 7px;
    background: black;
    z-index: 1;
    visibility: hidden;
}

#timeline-internal ol li .time-tick-10s {
    top: 23px;
    height: 3px; 
}

#timeline-internal ol li .time-tick .time-tick-label {
    position: absolute;
    display: block;
    left: -20px;
    width: 40px;
    top: 8px;
    text-align: center;
    background: transparent;
    visibility: hidden;
}
 

.zoom-0 #timeline-internal ol li { width: 8px; }
.zoom-1 #timeline-internal ol li { width: 4px; }
.zoom-2 #timeline-internal ol li { width: 2px; }
.zoom-3 #timeline-internal ol li { width: 1px; }
.zoom-4 #timeline-internal ol li.z2 { width: 1px; } /* show one of two */
.zoom-5 #timeline-internal ol li.z4 { width: 1px; } /* show one of four */
.zoom-6 #timeline-internal ol li.z8 { width: 1px; } /* show one of eight */
.zoom-7 #timeline-internal ol li.z16 { width: 1px; } /* show one of sixteen */

.zoom-0 #timeline-internal ol li .time-tick,
.zoom-1 #timeline-internal ol li .time-tick,
.zoom-2 #timeline-internal ol li .time-tick,
.zoom-3 #timeline-internal ol li .time-tick,
.zoom-4 #timeline-internal ol li .time-tick,
.zoom-5 #timeline-internal ol li .time-tick { visibility: visible; }

.zoom-0 #timeline-internal ol li .time-tick .time-tick-label,
.zoom-1 #timeline-internal ol li .time-tick .time-tick-label,
.zoom-2 #timeline-internal ol li .time-tick .time-tick-label,
.zoom-3 #timeline-internal ol li .time-tick .time-tick-label { visibility: visible; }

.zoom-4 #timeline-internal ol li .min5 .time-tick-label,
.zoom-5 #timeline-internal ol li .min5 .time-tick-label { visibility: visible; }

.zoom-6 #timeline-internal ol li .min30,
.zoom-7 #timeline-internal ol li .min30,
.zoom-6 #timeline-internal ol li .min30 .time-tick-label,
.zoom-7 #timeline-internal ol li .min30 .time-tick-label { visibility: visible; }

.zoom-0 #timeline-internal ol li .time-tick-10s,
.zoom-1 #timeline-internal ol li .time-tick-10s,
.zoom-2 #timeline-internal ol li .time-tick-10s,
.zoom-3 #timeline-internal ol li .time-tick-10s { visibility: visible; }
