/**
 * @Last modified time: 2017-06-05T14:30:54-05:00
 */


/* css variable declaration */

 :root {
  --class-font-size: 1.4vmax;
  --font-size: 1vmax;
  --legend-font-size: 1.4vmax;
  --tab-image-length: 2vw;
  --tab-height: 2vw;
  --tab-width: 8vw;
  --title-font-size: 3.5vmax;
  --title-font-weight: 900;
  --transition-duration: 0.4s;
}

body {
  font-size: 1vw;
  font-size: var(--font-size);
}


/** Results Table Styling  **/

.resultsTable {
  border-collapse: collapse;
  border-bottom: 4px ridge #ddd;
  margin: 10px;
  width: 100%;
}

td {
  border-bottom: 0px solid #ddd;
  padding: 5px;
  text-align: left;
}

th {
  border-bottom: 2px solid #ddd;
  padding: 5px;
  text-align: left;
}

.tableHeading {
  border-bottom: 0px;
}

.tableHeading:hover {
  background: rgba(256, 256, 256, 0);
}

tr:hover {
  background-color: rgba(154, 173, 163, 0.5);
}


/** Main page styling **/

.tab img, .tabSelected img {
  width: 2vw;
  width: var(--tab-image-length);
}

.tab, .tabSelected {
  background-color: rgba(40, 44, 42, 0.03);
  box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, .6);
  cursor: pointer;
  display: inline-block;
  float: left;
  height: 2vw;
  height: var(--tab-height);
  line-height: 0%;
  margin: 10px;
  padding: 10px;
  text-align: center;
  width: 8vw;
  width: var(--tab-width);
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Chrome/Safari/Opera */
  -khtml-user-select: none;
  /* Konqueror */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, */
}

.tabSelected {
  background-color: rgba(0, 0, 0, 0.6);
  position: relative;
  display: inline-block;
  overflow: hidden;
  max-width: 100%;
  height: auto;
}


/*When you hover over either tab, it will turn a slightly darker color
*/

.tab:hover {
  background-color: rgba(40, 44, 42, 0.1);
}

#tab1 .tab1text {
  visibility: hidden;
  font-size: small;
  width: 60px;
  color: #000;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 90%;
}


/* When selected and hovered*/

#tab2 .tab2text {
  visibility: hidden;
  font-size: small;
  width: 60px;
  color: #000;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  top: 70%;
  right: 90%;
}


/*Graphics
*/

#tab1:hover .tab1text {
  visibility: visible;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  position: static;
  top: 18.3%;
  right: 88%;
}


/*Tables
*/

#tab2:hover .tab2text {
  visibility: visible;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  position: static;
  top: 19%;
  left: 23.5%;
}

#centralContentHolder {
  display: inline-block;
  border-top: 2px solid black;
  height: 100%;
  margin: 0px;
  padding: 0px;
  width: 100%;
}

#innerContainer {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}


/** Graphics elements for first tab **/

.graph-svg-component {
  margin: 0px;
}

.legend {}

.ecoLegend {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

.arc {
  opacity: 1;
}

.arcHighlight {
  opacity: 0.5;
}

.graph-section {
  /*border: 3px solid #6ac5ac;*/
  height: 40%;
  margin: 5% auto;
}

.mouseoverInfo, .mouseoverInfoRadarRight, .mouseoverInfoRadarLeft {
  background-color: #000000;
  border: 3px solid black;
  border-radius: 8px;
  box-shadow: 0px -2px 10px 5px rgba(0, 0, 0, 1);
  color: #FFFFFF;
  display: none;
  font-size: 22px;
  font-weight: bold;
  margin-left: 25px;
  margin-top: 20px;
  opacity: 0.9;
  padding: 15px;
  position: absolute;
  text-align: center;
  width: 260px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-box-shadow: 2px 2px 10px 5px #616161;
  -moz-box-shadow: 2px 2px 10px 5px #616161;
}

.mouseoverInfoRadarRight {
  margin-left: 490px;
  margin-top: -160px;
}

.mouseoverInfoRadarLeft {
  margin-left: -315px;
  margin-top: -160px;
}

.mouseoverInfo:after {
  border-style: solid;
  border-width: 0 17px 15px;
  border-color: #000000 transparent;
  content: "";
  display: block;
  left: 130px;
  position: absolute;
  top: -15px;
  width: 0;
  z-index: 1;
}

#graphics {
  display: block;
  margin: 1%;
}

#contentsG {
  height: 100%;
  left: 25%;
  position: absolute;
  /*width: 800px;*/
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Chrome/Safari/Opera */
  -khtml-user-select: none;
  /* Konqueror */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                              not supported by any browser */
}

#landUseTypeContainer {}

#yearHolder {
  /*border: 3px solid #fdc72f;*/
  display: inline-block;
  float: left;
  height: 98%;
  width: 23.3%;
}

#landusePieChart {
  /*border: 3px solid #d64078;*/
  display: inline-block;
  height: 98%;
  position: relative;
  width: 75%;
}

.upArrow, .upArrowDisabled, .downArrow, .downArrowDisabled {
  border-radius: 20px;
  border-style: solid;
  height: 0;
  position: relative;
  width: 0;
  left: 53%;
}

.upArrow, .upArrowDisabled {
  border-width: 0 20px 30px 20px;
  margin-top: 20%;
}

.upArrow {
  border-color: transparent transparent #000000 transparent;
  -webkit-transform: rotate(360deg);
  opacity: 1;
}

.upArrow:hover {
  opacity: 0.6;
}

.upArrowDisabled {
  border-color: transparent transparent #c9c9d1 transparent;
}

.downArrow, .downArrowDisabled {
  border-width: 30px 20px 0 20px;
  margin-top: 6px;
}

.downArrowDisabled {
  border-color: #c9c9d1 transparent transparent transparent;
}

.downArrow {
  border-color: #000000 transparent transparent transparent;
  opacity: 1;
  -webkit-transform: rotate(360deg);
}

.downArrow:hover {
  opacity: 0.6;
}

.barData {
  color: white;
  font-weight: bold;
  font-size: 16px;
}

#precipChart {
  background-color: rgba(40, 44, 42, 0.1);
  box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, .6);
  display: inline-block;
  float: left;
  height: 90%;
  width: 60%;
}

text {
  cursor: default;
}

.precipInfo {
  background-color: rgba(40, 44, 42, 0.1);
  box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, .6);
  display: inline-block;
  float: left;
  height: 90%;
  margin: 0px;
  width: 35%;
}

#precipTitle {
  background-color: rgba(40, 44, 42, 0.1);
  display: inline-block;
  color: #000000;
  float: left;
  height: 90%;
  margin: 0px;
  width: 5%;
}
#PrecipitationTitle{
  left: 64%;
  font-size: 20px;
  font-weight: bold;
  position: relative;
  bottom: 10%;
}
#precipTitle img {
  height: 100%;
  width: 100%;
}

.yearLabel, .precipValue, .precipType {
  font-weight: bold;
  margin-top: 10px;
  line-height: 120%;
  text-align: center;
}

.leftPrecipContainer {
  display: inline-block;
  float: left;
  margin-top: 8%;
  width: 58%;
}

.precipImg {
  display: inline-block;
  height: 8vw;
  margin-top: 1.9vw;
  width: 40%;
}

#toggleYearPie {
  background-color: rgba(40, 44, 42, 0.03);
  box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, .6);
  cursor: pointer;
  font-size: 1.4vw;
  font-size: var(--class-font-size);
  font-weight: bold;
  height: 15%;
  line-height: 200%;
  margin: 0 auto;
  position: relative;
  text-align: center;
  top: 42%;
  transition-duration: 0.4s;
  width: 70%;
  -webkit-transition-duration: 0.4s;
}

#toggleYearPie:hover {
  background-color: rgba(40, 44, 42, 0.1);
}
#yearText{
  right: 50%;
  font-size: 20px;
  font-weight: bold;
}

#landUseTitle{
  left: 64%;
  font-size: 20px;
  font-weight: bold;
  position: relative;
}
#asterChart {
  display: block;
  float: left;
  margin-top: 40px;
  height: 400px;
  width: 360px;
  overflow: hidden;
}

#asterHUD {
  display: block;
  margin-top: 40px;
  float: left;
  width: 320px;
  height: 400px;
  /** FOR NOW, DELETE LATER **/
  margin-bottom: 200px;
}

#asterContainer {
  box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, .6);
  display: block;
  height: 200px;
  margin-top: 80px;
  margin-left: 10px;
  padding: 0px;
  width: 300px;
}

#yearHolder2 {
  display: inline-block;
  float: left;
  height: 400px;
  margin: 0px;
  margin-top: 40px;
  width: 16vw;
}

#yearDownESI, #yearUpESI {
  margin-left: 40px;
}

#precipSection {
  height: 20%;
}

#radarContainer, #yieldRadarContainer {}

#yieldRadarContainer {}

#radarChart, #yieldRadarChart {
  /*border: 3px solid #d64078;*/
  float: left;
  height: 98%;
  width: 60%;
}

#radarLegend {
  /*border: 3px solid #fdc72f;*/
  display: inline-block;
  float: left;
  height: 98%;
  margin: 0px;
  padding: 0px;
  width: 38.3%;
}

#radarLegend svg g g {
  margin: 30% 0;
}

#yieldRadarLegend {
  /*border: 3px solid #fdc72f;*/
  display: inline-block;
  float: left;
  height: 98%;
  width: 38.3%;
}

/*
#container {
  border: 3px solid #6ac5ac;
  display: -webkit-flex;
  display: flex;
  margin: 0 auto;
  width: 74%;
}

#left {
  -webkit-flex: 1;
  flex: 1;
  border: 3px solid #fdc72f;
}

#right {
  -webkit-flex: 3;
  flex: 3;
  border: 3px solid #d64078;
}
*/

#results-header {
  position: static;
}

#yearArrows {
  display: block;
  position: relative;
  top: 25%;
}

@media screen and (max-width: 768px) {
  /*<= 768px */
}

@media screen and (min-width: 768px) and (max-width: 992px) {
  /* 768px ~ 992px */
}

@media screen and (min-width: 1200px) {
  /* >= 1200px */
}
