body,
input,
select,
textarea {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
}

body {
    padding: 0px;
    margin: 0px;
    /*background: radial-gradient(#f8feff 0% ,#f7f7f7 100%);*/
    background: #f7f7f7;
}

body,
html {
    height: 100%;
    width: 100%;
}

.full-height { height: 100%; }

header {
	display: block;
	width: 100%;
	min-height: 90px;
	background: #f7f7f7;
	text-align: left;
	padding-top: 20px;
    padding-bottom: 10px;
    position: relative;
}

nav {
	background: #339999;
	color: #fff;
	height: 50px;
	line-height: 50px;
	width: 100%;
	border-bottom: 0.8px solid lightgray;
    text-align: left;
    font-size: 1.1em;
    position: relative;
}

header > div, nav > div { width: 100%; box-sizing: border-box; padding: 0px 20px; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;  }
nav > section { height: 100%;  background: rgba(0,0,0,0.2); display: inline-block; padding: 0px 20px; cursor: pointer; vertical-align: top; }
nav > section:hover { background: rgba(0,0,0,0.3); }
nav > section.selected { background:#FF8C55; font-weight: bold; cursor: default;  }

nav ul {
	margin: 0px;
	padding: 0px;
	list-style-type: none;
}

nav ul li {
	max-width: 120px;
	color: #fff;
	height: 50px;
	line-height: 50px;
	vertical-align: middle;
	font-size: 0.7em;
	text-align: center;
	padding: 0px 10px;
	box-sizing: border-box;
	float: left;
	border-left: 0.8px solid lightgray;
}

nav ul li.selected {
	background: #008078;
	box-shadow: 0 -3px 0px yellow;
}

nav ul li a {
	line-height: 12px;
	color: #fff;
	text-decoration: none;
}

#page-years { display: inline-block; position: relative; float: right; height: 50px; line-height: 50px; width: auto; font-size: 1.0em; text-transform: uppercase; }
#page-years span:not(.date-range) { font-weight: bold; }

#search-bar {
	float: right;
	box-shadow:inset 0 1px 1px rgba(0,0,0,.075);
	border-radius: 5px;
	border: 1px solid #ccc;
	padding: 5px 10px;
	color: #777;
	margin-top: 10px;
}


.page-wrapper {
	margin: 0px 15px;
	display: inline-block;
	width: 1280px;
	text-align: left;
}

header #qg-logo {
	float: left;
    height: 50px;
    vertical-align: top;
    font-size: 1.5em;
}

header #qg-logo img {
	height: 100%;
	display: block;
}

#open-menu { position: absolute; right: 0px; top: -80px; width: auto; padding: 10px 20px; box-sizing: border-box; font-size: 1.5em; vertical-align: top; color: #339999; cursor: pointer; }
#open-menu:hover i { color: #000; }
#open-website { width: 100%; position: relative;}
#open-website.disabled {  background: transparent;  }
#open-website-text { font-weight: bold; }
#open-website-percent { width: 0%; height: 100%; display: block; top: 0px; left: 0px; background: #339999; position: absolute;  transition: 0.3s ease all; z-index: -1; }

#select-year {
    z-index: 1;
}

#modal-screen {
    position: fixed;
    height: 100%;
    width: 100%;
    display: flex;
    /*display: none;*/
    justify-content: center;
    align-items: center;    
    background: rgba(0,0,0,0.6);
    z-index: 99999999;
    padding: 50px; 
    box-sizing: border-box;
}

#modal-screen-box h2 {
    margin: 0px;
    padding: 0px;
    margin-bottom: 10px;
}

#modal-screen-box {     
    width: calc(100% - 0px);        
    box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
    display: block;
    border-radius: 5px;    
}

#modal-screen-title {     
    box-sizing: border-box;
    background: #339999;
    color: #fff;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;    
}

#modal-screen-title-text,#close-modal {
    padding: 15px 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

#modal-screen-title-text {
    width: calc(100% - 60px);
}

#close-modal {
    background: rgba(0,0,0,0.1);
    cursor: pointer;
    border-top-right-radius: 5px;
}

#close-modal:hover {
    background: rgba(0,0,0,0.2);
}

#model-screen-content {
    padding: 20px !important;
    display: block;
    box-sizing: border-box;
    overflow-y: auto;    
    max-height: calc(100vh - 150px);
    background: #fff;   
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

#modal-screen-box.small-container {
    max-width: 600px;
}

#modal-screen-box h3 { font-weight: bold; font-size: 1.0em; }

button { 
    padding: 10px;
}

button:not(.disabled):hover {
    opacity: 0.8;
}

button.disabled { 
    cursor: default;
}

button.disabled,button:hover { 
    opacity: 0.5;
    background: #ddd;
    border: 1px solid #bbb;
}

button:not(.disabled) {
    background: #339999;
    color: #fff;
    font-weight: bold;
    border: 1px solid rgba(0,0,0,0.2);
    text-transform: uppercase;
}

button.secondary-button {
    background: rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.2);
    color: rgba(0,0,0,0.8);
    text-transform: none;
    width: 100%;
    font-weight: normal;
}

#modal-screen-content > div {
    display: block;    
    width: 100%;
}

#modal-screen-text {
    text-align: center;
    position: absolute;
    top: 62%;
    width: 100%;
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 300;
    z-index: 9999;
}

#australia-map-bar {
    display: block;
    position: absolute;
    background: #fff;
    top: 0px;
    left: 0px;
    width: 0px;
    transition: 0.1s ease all;
}

#loader {
    width: 60px;
    height: 60px;
    border-radius: 100%;
    border: 10px solid #fff;
    border-top: 10px solid #008078;
    -webkit-animation: rotate 1s linear infinite;
    animation: rotate 1s linear infinite;
    box-shadow: 0px 0px 5px #aaa;
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    z-index: 99;
    display: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#left-wrapper { width: calc(100% - 400px); transition: 0.2s ease all; }

#active-wrapper {
    display: block;
    position: relative;
    overflow: hidden;
    height: calc(100% - 140px);    
    width: 100%;
    visibility: visible;
}

#content-wrapper,
#explore-years {
    display: inline-flex;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    vertical-align: top;
    position: absolute;
    transition: 0.5s ease all;
    bottom: 0px;
}

#explore-years {
    bottom: -100%;
}

#content-wrapper,
#map-details-wrapper {
    transition: 0.2s ease all;
}

#view-period { width: 100%; text-align: center; margin-bottom: 10px; }

#map-details-wrapper {
    vertical-align: top;
    display: inline-block;
    height: 100%;
    width: calc(100% - 40px);
    max-width: 400px;
    position: absolute;
    right: 0px;
    top: 0px;
    background: #f7f7f7;
    overflow-y: scroll;
    overflow-x: hidden;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.15);
    box-sizing: border-box;
    white-space: nowrap;
    z-index: 9999999; 
    padding: 20px;
    box-sizing: border-box;   
}

#expand-menu { display: none; position: fixed; top: 160px; right: 0px; background: rgba(0,0,0,0.5); width: 30px; height: 60px; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0px 0px 5px rgba(0,0,0,0.1); color: #fff; z-index: 99999; }
#expand-menu:after { content: " \f104"; font-family: "Font Awesome 5 Pro"; font-weight: bold; font-size: 1.5em; }
#expand-menu:hover { background: rgba(0,0,0,0.8); }
body.showing-menu #expand-menu:after { content: " \f105";  }

.map-details {
    display: inline-flex;
    align-items: center;
    padding-left: 20px;
    width: 100%;
    background: #339999;
    position: relative;
    color: #fff;
    box-sizing: border-box;
    transition: 0.1s ease background-color;
    height: 139px;
}

.map-details:hover {
    background: #008078;
    cursor: pointer;
}

#map-close {
    position: absolute;
    left: 20px;
    top: 50%;
    height: 50px;
    line-height: 50px;
    margin-top: -25px;
    font-size: 1.5em;
    font-weight: 300;
    color: #fff;
}

#map-details-year,
#grouped-details-year {
    text-align: left;
    display: inline-block;
    width: 400px;
    font-size: 1.5em;
   
    box-sizing: border-box;
    font-weight: 300;
}

#return-to-slider {
    padding: 20px;
    box-sizing: border-box;
    text-transform: uppercase;
    font-size: 1.2em;
    text-align: center;
}

#grouped-details-year {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

#map-details-content {}

#map-details-content ul,
#grouped-years-display {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

#period-overview,
#map-details-content ul li,
#grouped-years-display li {
    padding: 20px;
    margin-bottom: 10px;
    box-sizing: border-box;
    width: 100%;
    white-space: normal;
    background: #fff;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

#period-overview { 
    background: #fff;    

}

#period-overview .emphasise {

}

#map-details-content ul li:hover {
    
}

#clouds {
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0px;
    top: 0px;
    overflow: hidden;
}

#clouds>div {
    position: absolute;
    display: block;
    background: url("../images/clouds.png") no-repeat;
    background-size: contain;
}

#clouds-one {
    width: 45%;
    height: 45%;
    background-position: left;
    top: 30%;
    animation: moveCloud1 60s linear infinite;
}

#clouds-two {
    width: 20%;
    height: 20%;
    bottom: 10%;
    right: 0%;
    background-position: right;
    animation: moveCloud2 30s linear infinite;
}

#clouds-three {
    width: 50%;
    height: 50%;
    background-position: right;
    top: 0%;
    right: 5%;
    z-index: 6000;
    animation: moveCloud3 60s linear infinite;
}

#clouds-four {
    width: 50%;
    height: 50%;
    background-position: right;
    bottom: -20%;
    right: 5%;
    animation: moveCloud4 60s linear infinite;
}

@keyframes moveCloud1 {
    0% {
        right: -100%;
    }
    100% {
        right: 120%;
    }
}

@keyframes moveCloud2 {
    0% {
        right: -50%;
    }
    100% {
        right: 120%;
    }
}

@keyframes moveCloud3 {
    0% {
        right: -50%;
    }
    100% {
        right: 120%;
    }
}

@keyframes moveCloud4 {
    0% {
        right: -10%;
    }
    100% {
        right: 120%;
    }
}

#details-close {
    display: inline-block;
    width: 400px;
    height: 30px;
    position: relative;
    padding: 40px 20px;
    box-sizing: border-box;
}

#details-close:after,
#details-close:before {
    content: "";
    position: absolute;
    right: 20px;
    top: 30px;
    display: block;
    width: 20px;
    height: 5px;
    background: #fff;
}

#details-close:after {
    transform: rotate(45deg);
}

#details-close:before {
    transform: rotate(-45deg);
}

#details-close:hover {
    cursor: pointer;
}

#details-close:hover:after,
#details-close:hover:before {
    background: #000;
}

#view-maps {
    position: absolute;
    display: inline-block;
    top: 20px;
    right: 20px;    
    box-sizing: border-box;
    text-align: center;
    z-index: 3000;
    transition: 0.5s ease all;
    white-space: nowrap;
}

#view-maps .button {
    display: inline-block;
    margin: 0px 5px;
}

.button {
    background: #fff;
    font-size: 1.3em;
    font-weight: bold;
    padding: 20px 30px;
    border-radius: 5px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #339999;
    text-transform: uppercase;
    transition: 0.1s ease background-color;
    display: inline-block;
    position: relative;
}

.button.forwards:after {
    content: " \f105"; font-family: "Font Awesome 5 Pro";  font-weight: bold; margin-left: 10px;
}

.button.backwards:before {
    content: " \f104"; font-family: "Font Awesome 5 Pro";  font-weight: bold; margin-right: 10px;
}

.button:hover {
    background: #339999;
    color: #fff;
    cursor: pointer;
}

.button.alternate {
    background: #FF8C55;
    color: #fff;
}

.button.alternate:hover {
    background: #FFA478;    
}

#map-slider-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;    
    width: 100%;
    height: calc(100% - 200px); /* 100% - (150px - 50px for maps timeline height) */
    padding-top: 50px;
    box-sizing: border-box;
    transition: 0.5s ease all;
}

.map-title { position: absolute; bottom: 10%; right: 45%; font-size: 2.0em; font-weight: bold; text-align: center; display: block; transition: 0.5s ease all; display: none; }
.map-title > div { font-size: 0.7em; }
.__slider3d-current .map-title { opacity: 1.0; display: block; }
#selected-period .map-title { right: 48%; bottom: 5%; }

#map-switcher { 
    position: absolute;
    top: 20px;
    left: 20px;
    transition: 0.5s ease all;
    z-index: 99999;
}

#map-switcher ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

#map-switcher ul li input[type='radio'] { display: none; }
#map-switcher ul li label,#map-switcher ul li input[type='radio'] { cursor: pointer; }
#map-switcher ul li label { display: inline-block; vertical-align: top; }
#map-switcher ul li label:before { content: ""; display: inline-block; vertical-align: top; width: 25px; height: 25px; border: 2px solid rgba(0,0,0,0.2); background: #fff; box-shadow: 0px 0px 2px rgba(0,0,0,0.1); margin-right: 5px; text-align: center; }
#map-switcher ul li input[type='radio'] + label:before, #map-switcher ul li input[type='radio'] + label { opacity: 0.5; }
#map-switcher ul li input[type='radio']:checked + label { opacity: 1.0; }
#map-switcher ul li input[type='radio']:checked + label:before { content: "\f00c"; font-family: "Font Awesome 5 Pro"; font-weight: bold; background: #FF8C55; opacity: 1.0; color: rgba(0,0,0,0.5); font-size: 0.9em; }

#map-switcher ul li:hover input[type='radio'] + label:before { opacity: 0.8; background: rgba(0,0,0,0.2); }
#map-switcher ul li:hover input[type='radio']:checked + label:before { background: #FF8C55; }

#primary-timeline-position {
    position: absolute;
    left: calc(50% - 50px);
    height: 60px;
    width: 100px;
    background: pink;
}

#primary-timeline-wrapper {
    width: 100%;
    height: 60px;
    display: block;
    background: #fff;
    position: absolute;
    left: 0px;
    bottom: 0px;
    overflow: hidden;
    transition: 0.25s ease all;
    font-weight: 300;
    border-top: 5px solid #fff;
    z-index: 4000;
}

#primary-timeline-wrapper:after {
    content: "";
    position: absolute;
    left: calc(50% - 10px);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 0 10px;
    border-color: #ffffff transparent transparent transparent;
    top: 0px;
}

#enso-chart-wrapper {
    position: absolute;
    height: calc(100% - 33px);
    display: block;
    bottom: 0px;
    left: 0px;
    width: 100%;       
}

#ensochart_chart_container {
    background: transparent;
}

#ensochart { 
    transition: 0.5s ease all;
    height: 100%;
    display: block;
    white-space: nowrap;        
    width: 999999px;
    margin-left: 0px;
    position: relative;
}

#ensochart > div { 
    float: left;    
}

#ensochart-previous {
    position: absolute;    
    border-left: 1px solid rgba(0,0,0,0.1);
    opacity: 0.2;
}

#ensochart-previous:after {
    content: "";
    position: absolute;
    width: 100%;
    background: rgba(0,0,0,0.1);
    height: 33px;
    top: -33px;
    border-top: 3px solid #000;
    box-sizing: border-box;
}


/*
.timeline-button {
	position: absolute;
	top: 0px;
	height: 60px;
	width: 50px;
	background: #000;
}
*/

.rainfall-low,
.rainfall-average,
.rainfall-high {
    display: block;
    height: 5px;
    width: 100%;
}

.rainfall-low {
    margin-top: 10px;
    background: orange;
}

.rainfall-average {
    margin-top: 10px;
    background: #aaa;
}

.rainfall-high {
    margin-top: 10px;
    background: #008078;
}

#primary-timeline-left {
    left: 0px;
}

#primary-timeline-right {
    right: 0px;
}

#primary-timeline {
    display: block;
    width: auto;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    margin-left: 10px;
    /* temporary */
    /*transform: translate3d(-2686px, 0px, 0px);*/
}

#primary-timeline .t-year {
    display: inline-block;
    text-align: center;
    width: 100px;
    height: 60px;
    line-height: 40px;
    box-sizing: border-box;
    transition: 0.2s ease all;
}

#ensolegend tr {
    display: inline-block;
    width: 100px;
}

.legend,
#ensolegend {
    position: absolute;
    bottom: 0px;
    background: transparent;
}


/*
#primary-timeline .t-year:before {
	content: "";
	display: block;
	border-left: 1px solid #000;
	height: 10px;
	width: 0px;
}
*/

#primary-timeline .t-year:first-child:before {
    border: 0px;
}

#primary-timeline .t-year:not(.year-selected):hover {
    background: #ddd;
    cursor: pointer;
}

#map-image,
#grouped-years {
    display: block;
    height: 150px;
    width: 400px;
    background-size: auto 80%;
    background-repeat: no-repeat;
    background-position: calc(50% - 20px) 50%;
    background-color: #fafafa;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    position: relative;
}

#map-image {  }

#grouped-years {
    background-position: center;
}

#map-image>div {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -20px;
    height: 40px;
    font-weight: 300;
}

#map-image span {
    display: inline-block;
    width: 100px;
    height: 10px;
    margin-right: 5px;
    border-radius: 5px;
}

#view-information-box {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 6000;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 5px;
    color: #333;
    font-size: 1.2em;
    display: table;
    font-weight: 300;
    transition: 0.1s ease background-color;
}

#view-information-content {
    display: table-cell;
    box-sizing: border-box;
    padding: 20px;
}

#view-information {
    color: #fff;
    background: #339999;
    display: table-cell;
    vertical-align: middle;
    font-size: 1.5em;
    font-weight: 300;
    width: 30px;
    padding: 20px;
    box-sizing: border-box;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: 0.1s ease background-color;
}

#view-information-box:hover {
    cursor: pointer;
    background-color: #fafafa;
}

#view-information-box:hover #view-information {
    background: #008078;
    color: #fff;
}

#view-information-box table {
    padding: 0px;
    margin: 0px;
    border-collapse: collapse;
}

.bold {
    font-weight: bold;
}

#map-grid {
    position: absolute;
    top: 0%;
    left: 100%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

#map-grid-content {
    display: block;
    height: 100%;
    width: 100%;   
}

#map-grid-timeline {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
}

.timeline-image {
    border-bottom: 1px solid #eee;
}

#map-grid-timeline ul {
    width: 100%;
    display: table;
    table-layout: fixed;
    margin: 0px;
    padding: 0px;
}

#map-grid-timeline ul li {
    display: table-cell;
    text-align: center;
    height: 60px;
    line-height: 60px;
    border-right: 1px solid #eee;
    position: relative;
    transition: 0.2s ease all;
}

#map-grid-timeline ul li.active-year {
    background: #339999;
    font-weight: bold;
    font-size: 1.1em;
    color: #fff;
}

#map-grid-timeline ul li:hover {
    cursor: pointer;
}

.timeline-image:hover,.active-year .timeline-image {    
    cursor: pointer;
    height: 60px;
    background-size: 60%;
    background-color: #f2c6a8;
}

.wet .active-year .timeline-image,.wet .timeline-image:hover { background-color: #a3c9e2; }

#map-grid-year-desc,#map-grid-grass-year-desc {
    display: inline-block;
    position: absolute;
    top: 15px;
    right: 15px;
    text-align: left;
    font-size: 1em;
    padding: 10px 20px;
    background: #fff;
    font-weight: bold;
    border-radius: 5px;    
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);    
}

.column {
    float: left;
    width: 50%;
    height: 100%;
    text-align: center;
    padding: 30px;
    box-sizing: border-box;        
}

#map-grid-content .column:first-child {
    padding-right: 5px;
}

#map-grid-content .column:last-child {
    padding-left: 5px;
}

#map-grid-year-image { 
   
}

#map-grid-year-image,#grass-year-map {
    position: relative;
    display: inline-block;
    height: 100%;    
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /*add float here for another div*/
    float: left;
    overflow: auto;   
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 5px;
    background-color: rgba(0,0,0,0.05);     
    box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
}

#comparison-years {
    position: absolute;
    top: 50px;
    left: 50%;    
    transform: translate3d(-50%,0%,0);
    padding: 15px 20px;
    border-radius: 3px;
    background: #339999;    
    color: #fff;
    text-align: center;
    font-weight: bold;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease all;
    font-size: 1.1em;
}

/*add new div here*/

.overflow-hidden { overflow: hidden; }
#ind-grid-years { display: inline-block; transition: 0.5s ease all; }
.year-grid { position: absolute; bottom: -50px; left: 0px; white-space: nowrap; background: rgba(0,0,0,0.1); overflow: hidden; padding: 20px 50px 20px 50px; box-sizing: border-box; width: 100%; text-align: center; border-top: 3px solid rgba(0,0,0,0.05); }
.slider-button { display: inline-flex; height: 100%; top: 0%; width: 50px; position: absolute; left: 0px; top: 0px; background: rgba(0,0,0,0.1); opacity: 0.9; justify-content: center; align-content: center; align-items: center; font-size: 2.0em; cursor: pointer; }
.slider-button:not(.disabled):hover { background: rgba(0,0,0,0.2); }
.slider-button.disabled { opacity: 0.5; cursor: default; }
.slider-button.disabled i { display: none; }
.next-set { left: auto; right: 0px; border-left: 2px solid rgba(0,0,0,0.1); }
.prev-set { border-right: 2px solid rgba(0,0,0,0.1); }
#map-browser { height: 100%; width: 100%; }
#grid-wrapper { width: 100%; height: 100%; display: block; box-sizing: border-box; position: relative; }
#selected-period-wrapper { display: block; height: calc(100% - 120px); width: 100%; padding: 20px; box-sizing: border-box; }
#selected-period { display: block; background-size: contain; background-position: center; background-repeat: no-repeat; height: 100%; width: 100%; position: relative; }

#selected-period-wrapper .map-title { display: none !important; }
#grass-year-map {
   float:right;
}

.map-grid-year {
    display: inline-block;
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    background: #fff;
    box-sizing: border-box;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0px;
    box-sizing: border-box;
    margin-left: 10px;
}

.map-grid-year.inactive {
    opacity: 0.7;
}

.map-grid-year.inactive .mgy-description { background: #ddd; }

.mgy-image {
    background-size: contain;
    background-repeat: no-repeat;
    width: calc(100% - 20px);
    height: 70px;
    margin: 10px;
    display: block;
    background-position: center;
}

.mgy-description {
    display: block;
    text-align: center;
    width: 100%;
    border-top: 1px solid rgba(0,0,0,0.1);
    height: 40px;
    line-height: 40px;
    background: #eee;
    color: #fff;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);     
    font-size: 1.0em;
    font-weight: bold;
}

.map-grid-year:not(.inactive):hover .mgy-description {
    opacity: 0.8;    
}

.map-grid-year:not(.inactive):hover {
    cursor: pointer;
    background: #fff;
}

#map-grid,
#map-slider {
    transition: 0.5s ease all;
}

#map-slider {
    height: 80%;
    width: 100%;
    display: block;
}

.legend,
#ensolegend,
#legend,
#description-box {
    position: absolute;
    bottom: 20px;    
    right: 20px;
    background: #fff;
    box-sizing: border-box;
    border-radius: 5px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 300;
    transition: 0.5s ease all;
    font-size: 0.8em;
    z-index: 999999;
}

#legend-growth { bottom: 170px; transition: 0.5s ease all; }
#legend { bottom: 170px; }
#legend.from-timeline { left: 45px; right: auto; bottom: 245px; }
#legend-growth.from-timeline { left: calc(50% + 20px); right: auto; bottom: 245px; }
#ensolegend img,#ensolegend-2 img { height: 40px; }
#ensolegend,#ensolegend-2 { right: auto; left: 15px; position: absolute; bottom: 30px; z-index: 1000; background: none; border-radius: 0px; box-shadow: none; font-size: 0.9em; padding: 8px 5px; }
#ensolegend-2 { left: auto; right: 15px; }
#ensolegend ul,#ensolegend-2 ul { padding: 10px !important; }
#ensolegend ul li,#ensolegend-2 ul li { cursor: help; }

.legend:not(.from-timeline) .legend-heading + ul { padding-bottom: 0px !important; }
.legend:not(.from-timeline) .legend-heading + ul + ul { padding-top: 0px !important; }
.from-timeline .legend-heading + ul { float: left; padding-right: 0px !important }
.from-timeline .legend-heading + ul + ul { float: right; padding-left: 0px !important; }

#description-box {
    left: 3%;
    right: auto;
}

.emphasise {
    color: #FF8C55;
    font-weight: bold;
    text-decoration: underline;
}

.legend-heading,
#legend-heading,
#description-heading {
    width: 100%;
    background: #ddd;
    color: #333;
    text-align: center;
    font-weight: bold;
    font-size: 0.8em;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
    padding: 10px 10px;
    text-transform: uppercase;
}

#description-heading {
    text-align: left;
    padding: 10px 10px;
    box-sizing: border-box;
}

.legend ul,
#ensolegend ul,
#legend ul,
#description-box ul {
    list-style-type: none;
    font-size: 0.8em;
    margin: 0px;
    padding: 10px 15px 15px 15px;
}

#legend-growth span,
.legend ul span,
#ensolegend ul span,
#legend ul span {
    float: right;
    vertical-align: top;
    width: 25px;
    height: 11px;
    border-radius: 3px;
    margin-top: 0px;
    margin-left: 7px;    
    border: 1px solid rgba(0,0,0,0.2);
}

.legend ul span,
#ensolegend ul span {
    float: left;
    margin-right: 7px;
    margin-left: 0px;
}

#ensolegend-2 ul span {
    float: right;
    margin-right: 0px;
    margin-left: 7px;
}

#legend-growth ul li,
.legend ul li,
#ensolegend ul li,
#legend ul li {
    padding: 0px 0px;
    text-align: right;
    line-height: 12px;
}

.legend ul li,
#ensolegend ul li {
    text-align: left;
    clear: both;
}

#ensolegend .legend-heading { text-align: left;  }
#legend-heading { text-align: center; }

.rain-high { background: #021a63; }
.rain-medium { background: #3f5098; }
.rain-average { background: #84b753; }
.rain-low { background: #d47a32; }
.rain-bad { background: #c12c2e; }
.rain-9 { background: #20265e; }
.rain-8 { background: #3e5199; }
.rain-7 { background: #83b852; }
.rain-6 { background: #b3d195; }
.rain-5 { background: #dfdfdf; }
.rain-4 { background: #f6f6f7; }
.rain-3 { background: #fbe213; }
.rain-2 { background: #d67b31; }
.rain-1 { background: #c12b2f; }
.rain-0 { background: #87231a; }

.gwth-9 { background: #1A9850; }
.gwth-8 { background: #66BD63; }
.gwth-7 { background: #A6D96A; }
.gwth-6 { background: #D9EF8B; }
.gwth-5 { background: #DEDEDE; }
.gwth-4 { background: #F4F4F4; }
.gwth-3 { background: #FEE08B; }
.gwth-2 { background: #FDAE61; }
.gwth-1 { background: #F46D43; }
.gwth-0 { background: #D73027; }

.legend .el-nino { background: #bfbfff; }
.legend .la-nina { background: #ffbfbf; }
.legend .ipo-positive { background: #3333ff; opacity: 0.3; }
.legend .ipo-negative { background: #ff3333; opacity: 0.3; }
.legend .soi-positive { background: #3333ff; }
.legend .soi-negative { background: #ff3333; }

.year-selected {
    background: #339999;
    color: #fff;
    font-weight: bold;
    position: relative;
}

#terminology-heading {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: #339999;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

#select-year {
    position: absolute;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0px);
    bottom: 200px;
    color: #555;
}

#select-year:after {
    content: "";
    position: absolute;
    left: 50%;
    margin-left: -20px;
    top: 30px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 20px 0 20px;
    border-color: #555 transparent transparent transparent;
}


/* transform: perspective( 600px ) rotateY( 45deg ); */

#grouped-timeline-wrapper {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 150px;
    transition: 0.5s ease all;
    background: #fff;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

#grouped-timeline {
    transition: 0.5s ease all;
    white-space: nowrap;
    position: relative;
}

#grouped-timeline > ul {
    display: inline-block;
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    transition: 0.5s ease opacity;
    position: relative;
    color: rgba(0,0,0,0.1);
    border-top: 3px solid rgba(0,0,0,0.2);
}

#grouped-timeline > ul.gt-selected {
    color: #fff;
}

#grouped-wet-dry { width: 100%; height: calc(100% - 150px); display: block; left: 0%; top: 0%; position: absolute;  }
#grouped-wet-dry.wet { background:radial-gradient(#cee4ff 0%, #f9fbff 50%, #cee4ff 100%); }
#grouped-wet-dry.dry { background:radial-gradient(#ffe4e2 0%,#fff7f7 50%, #ffe4e2 100%); }
#grouped-wet-dry.uncertain { background:radial-gradient(#c7c7c7 0%,#fff7f7 50%, #c7c7c7 100%); }

#grouped-timeline:hover > ul:after {
    
}

#grouped-timeline > ul:after { 
    content: "";
    position: absolute; 
    width: 100%;
    background: rgba(255,255,255,0.8);
    height: 200px;
    left: 0px;
    bottom: -170px;
    z-index: 100;
    transition: 0.5s ease all;   
}

#grouped-timeline > ul.gt-selected:after { 
    background: rgba(255,255,255,0);
    border: 1px solid rgba(0,0,0,0.05);
    border-top: 0px;
    border-bottom: 0px;   
}

#grouped-timeline > ul:first-child.gt-selected:after { 
    /*border-left: 0px;*/
}

#grouped-timeline>ul:first-child {}

#grouped-timeline>ul:last-child {}

#grouped-timeline li {
    display: inline-block;
    line-height: 30px;
    text-align: center;
    width: 70px;
    max-width: 70px;
    box-sizing: border-box;
    transition: 0.2s ease background-color;
    position: relative;
    z-index: 200;
}

#grouped-timeline ul li:after {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    border-left: 2px solid rgba(0,0,0,0.1);
    height: 10px;
    width: 1px;
    z-index: 9999;
}

#grouped-timeline ul {
    
}

#grouped-timeline > ul.gt-selected {
    color: #fff;
    font-weight: bold;
    border-top: 3px solid rgba(0,0,0,0.9) !important;
}

#grouped-timeline > ul.gt-selected li:after {
    border-left: 2px solid transparent !important;
}

#grouped-timeline li {
    font-size: 0.8em;
}

#grouped-timeline > ul > li > span {
    display: inline-block;
    line-height: 20px;
    background: #fafafa;
    padding: 5px 0px;        
    width: 100%;
    border-left: 1px solid rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.mobile-year { display: none; }

#grouped-timeline > ul.gt-selected span {
    background: #339999;
}

#grouped-timeline > ul.gt-selected li {}
#grouped-timeline > ul.gt-selected li.year-la span,#comparison-years.year-la,.mgy-description.year-la { background: #1685db; }
#grouped-timeline > ul.gt-selected li.year-el span,#comparison-years.year-el,.mgy-description.year-el { background: #e02128; }
#grouped-timeline > ul.gt-selected li.year-ne span,#comparison-years.year-ne,.mgy-description.year-ne { background: #666; }


#grouped-timeline > ul.extra-years:after,#grouped-timeline > ul.extra-years li span {
    background: rgba(255,255,255,1.0);
    border: 0px;
}

#grouped-timeline > ul.extra-years li:after { border: 0px; }

.timeline-image {
    display: none;
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background-size: 50%;
    background-position: center;
    background-color: #fff;
    background-repeat: no-repeat;
    box-shadow: 0px -2px 2px rgba(0,0,0,0.1);
    height: 50px;
    width: calc(100% - 2px);   
    transition: 0.2s ease all;
    z-index: 99999999999;
}

#mobile-swipe-explanation {
    position: absolute; 
    bottom: 50px;
    left: 50%;
    text-align: center;
    margin-left: 0px; 
    color: #339999;   
    opacity: 0;
}

#mobile-swipe-explanation.swiped {
    transition: 0.5s ease all;
    opacity: 0;
}

#mobile-swipe-explanation i {
    font-size: 2.0em; 
}

#mobile-swipe-explanation > div {
    opacity: 0.4;
    text-transform: uppercase;
    font-weight: bold;
}

#mobile-swipe-explanation:not(.swiped).animated {
    transition: 0.5s ease all;
    opacity: 1.0;
    animation: 10s swipeLeftRight infinite;  
}

@keyframes swipeLeftRight {
    0% { opacity: 0; }
    5% { opacity: 1; margin-left: 0px; transform: rotate(0deg);  }
    15% { margin-left: 100px; transform: rotate(15deg); }
    25% { margin-left: 0px; transform: rotate(0deg); }
    35% { margin-left: -100px; transform: rotate(-15deg); }
    45% { opacity: 1; margin-left: 0px; transform: rotate(0deg); }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

.gt-selected .timeline-image {
    display: block;
}

#inspect-year {
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 70%;
}

#inspect-year-pane {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: 0px 0px 20px #ccc;
    box-sizing: border-box;
    white-space: nowrap;
    z-index: 9999;
}

#inspect-year-wrapper {
    position: absolute;
    width: calc(100% - 400px);
    left: 400px;
    height: 100%;
}

.ui-tooltip { opacity: 1.0 !important; color: #fff !important; background: #339999 !important; font-size: 1.0em !important; padding: 10px !important; box-sizing: border-box !important;}

.help-tooltip { display: inline-block; text-align: center; font-size: 0.9em; }
.help-tooltip:after { display: inline-block; content: "?"; height: 16px; width: 16px; box-sizing: border-box; background: #339999; color: #fff; border-radius: 100%; font-weight: bold; }

#ensolegend .help-tooltip { float: right; margin-left: 5px; }

.blue-text { color: #1685db; }
.red-text { color: #e02128; }
.grey-text { color: #666; }