body {
  background-color: #333;
  font-family: Arial,Helvetica,sans-serif;
}
a, a img {
  border: none;
}
.topbar_logobox-sublogo {
  float:none;
  position:relative;
  left:50%;
  margin-left:-40px;
}
.topbar_socialbox {
  width:290px;
}
.social-desktop {
  padding:0px;
}
@media only screen and (max-width: 500px) {
  .topbar_socialbox {
    width:0;
  }
}

.content {
  padding-top: 41px;
  box-sizing: border-box;
  box-shadow: 0 0 8px 8px #222;
  height: 100%;
  font-size:13px;
  background-color: #222;
  /*max-width: 1240px;*/
  padding:0 10px;
  position: relative;
  margin: auto;

  width:100%;
  max-width: 1240px;
  position:fixed;
  top:0;
  left: 0;

}
/*@media only screen and (max-width: 500px) {
.content {
    padding-bottom: 100px;
  }
}*/

.pane {
  height: 100%;
  padding: 55px 10px 10px 10px;
  display: inline-block;
  box-sizing: border-box;
  position: absolute;
  top: 0;
}
.pane_left {
  width: 30%;
  box-shadow: 4px 0 2px -2px #222;
  background:#222;
  color: #ccc;
  margin-left:-10px;
  z-index:1;
  /*overflow-y: scroll;*/
  /*overflow: scroll;*/
  -webkit-overflow-scrolling: touch;
}
@media only screen and (max-width: 500px) {
  .pane_left {
    width: 100%;
    height: 50%;
    padding-bottom: 5px;
  }
}
#accordion .ui-accordion-header {
  border: 1px solid #883333;
  border-radius: 5px;
  background: none repeat scroll 0 0 rgba(255, 0, 0, 0.25);
  color:#eee;
  font-size: 80%;
  /*font-family: Georgia,"Times New Roman",Times,serif;*/
  margin-bottom:10px;
}
#accordion #section_introduction {
    font-family: georgia;
    font-size: 96%;
    font-weight: bold;
    padding-bottom: 25px;
    padding-top: 25px;
}
#accordion .ui-accordion-header:hover, #accordion .ui-accordion-header.ui-state-active{
  border: 1px solid #551111;
  background: none repeat scroll 0 0 rgba(255, 0, 0, 0.5);
}
#accordion .ui-accordion-header.ui-state-active{
  margin-bottom:0px;
}
.ui-accordion .ui-accordion-content{
  padding:0.5em 1.2em;
}
.content-tab{
  background: none;
  border: none;
  color: #ccc;
}
.pane_right, .pane_right-animator-helper {
  width: 70%;
  right: 0;
  background:#111;
  color: white;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: local;
  background-size: cover;
  background-image: url(../images/intro.jpg);

}
@media only screen and (max-width: 500px) {
  .pane_right, .pane_right-animator-helper {
    width: 100%;
    height:50%;
    top:auto;
    bottom:0;
    padding-top: 10px;
    padding-bottom:70px;
    box-shadow: 0 -10px 10px 0 #222;
  }
}
#slider-range {
  margin:7px 0;
}
#calcButton, #searchButton {
  position: relative;
  left:50%;
  width:80px;
  margin-left:-40px;
}
#soldier_surname {
  width: 100%;
  margin-bottom: 7px;
}
.spacer{
  width:100%;
  height:100px;
}
@media only screen and (max-width: 500px) {
  .spacer{
    height:20px;
  }
}

.graph_pane-buttonpanel {
  background-color: #222;
  border-radius: 0 0 10px 10px;
  display: inline-block;
  left: 50%;
  margin-left: -68px;
  padding: 6px 6px 1px;
  position: absolute;
  top: 41px;
  width: 124px;
  z-index:1;
}
@media only screen and (max-width: 500px) {
  .graph_pane-buttonpanel{
    top:0px;
  }
}

.graph_pane, .memorial_pane {
  width:100%;
  height:100%;
  background-color: #000000;
  background-color: rgba(0,0,0,0.75);
  border-radius: 10px;
  opacity:0.01;
  /*margin-bottom:-45px;*/
}

.graph_btn {
  box-sizing: border-box;
  background-color:#333;
  display: inline-block;
  padding:3px;
  border: 1px solid white;
  border-radius: 3px;
  text-align: center;
  margin-right: 2px;
  margin-bottom: 5px;
  cursor: pointer;
}
.graph_btn:hover { 
  background-color: #551111;
}

.graph_btn.GraMemActive, .graph_btn.GraMemActive:hover {
  background-color: #883333;
}

.graph_btn-reset {
  width: 49%;
}
.graph_btn-expand {
  width: 100%;
  border-radius: 0 0 3px 3px;
}

#graph_surface{
  width: 100%;
  height: 100%;
}

#memorial_surface {
  display: none;
  padding: 10px;
  box-sizing: border-box;
  height: 100%;
  overflow: hidden;
}
.memorial_listings .ui-accordion-header {
  border: none;
  border-radius: 5px;
  margin: 5px;
  background: none repeat scroll 0 0 #fff;
  color:#000;
  /*font-size: 80%;*/
  /*font-family: Georgia,"Times New Roman",Times,serif;*/
}
.memorial_listings .ui-widget-content {
  border: none;
  color: #ddd;
  background: none;
}
.memorial_header{
  text-align:center;
  color: #883333;
  color: white;
  /*color: #551111;*/
  /*font-weight: bold;*/
  font-weight: normal;
  font-size: 24px;
  padding-bottom: 10px;
  border-bottom:  2px solid white;
  height: 75px;
  font-family: Georgia,"Times New Roman",Times,serif;
}
#memorial_header-title{
  margin: 13px 0;
}
#memorial_header-sub{
  font-family: arial;
  font-size: 14px;
}
#memorial_surface .nano {
  height:100%;
  border-bottom: 100px solid transparent;
  box-sizing: border-box;
}
.memorial_listings {
  overflow-y: scroll;
  overflow: scroll;
  -webkit-overflow-scrolling: touch;
}
.memorial_entry {
  font-size: 14px;
}
.memorial_entry p {
  margin: 6px 0;
}
.unitHeader {
  text-align: center;
  margin-top: 20px;
  padding: 10px 20px;
  font-weight: bold;
  border-radius:10px;
  background-color: black;
}



#selectable .ui-selecting { background: #FECA40; }
#selectable .ui-selected { background: #F39814; color: white; }
#selectable { list-style-type: none; margin: 0; padding: 0; width: 100%; }
#selectable li { text-align:center; border: 1px solid black; border-radius: 3px; padding:3px; margin: 3px; float: left; width: 10px; height: 10px;}


/* SCROLL BARS */
.nano > .nano-content{
  padding-left: 15px;
}
.nano > .nano-pane {
  background: none repeat scroll 0 0 rgba(255, 0, 0, 0.25);
  right: auto;
  left: 1px;
  opacity:0.99;
  z-index:1;
}
.nano > .nano-pane > .nano-slider {
  background: none repeat scroll 0 0 rgba(255, 0, 0, 0.5);
}


/* GRAPH STUFF */

.month{
  fill: #333;
  shape-rendering: crispEdges;
}
.month:nth-child(even) {
 /* fill: #d9c2b4;*/
}
.month:hover {
  /*fill: #b39686;*/
}

.bar {
  fill: #883333;
}

.legend {
  font-size: 10px;
}

.bar.AIB, .unitHeader.AIB     {fill: #3d7842; background-color: #3d7842;}
.bar.AMR, .unitHeader.AMR     {fill: #a0c8a6; background-color: #a0c8a6;}
.bar.CIB, .unitHeader.CIB     {fill: #953f3f; background-color: #953f3f;}
.bar.CMR, .unitHeader.CMR     {fill: #d0a0a0; background-color: #d0a0a0;}
.bar.OIB, .unitHeader.OIB     {fill: #355186; background-color: #355186;}
.bar.OMR, .unitHeader.OMR     {fill: #92aec7; background-color: #92aec7;}
.bar.WIB, .unitHeader.WIB     {fill: #866630; background-color: #866630;}
.bar.WMR, .unitHeader.WMR     {fill: #c4b98b; background-color: #c4b98b;}
.bar.MCON, .unitHeader.MCON   {fill: #2a2a2a; background-color: #2a2a2a; color: white;}
.bar.NZE, .unitHeader.NZE     {fill: #511b50; background-color: #511b50;}
.bar.NZFA, .unitHeader.NZFA   {fill: #9b6699; background-color: #9b6699;}
.bar.Other, .unitHeader.Other {fill: #189495; background-color: #189495;}

.bar:hover {
  /*fill: brown;*/
}

.axis text {
  font: 10px sans-serif;
  fill: white;
}

.axis path,
.axis line {
  fill: none;
  stroke: #fff;
  shape-rendering: crispEdges;
}

.x.axis path {
  /*display: none;*/
}
.x.axis .tick line {
  display: none;
}

/* GRAPH FLOATS*/

.d3-tip {
  line-height: 1;
  font-size: 14px;
  /*font-weight: bold;*/
  padding: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 2px;
  border: 1px solid #888;
  top:0;
  z-index: 2;
}

/* Creates a small triangle extender for the tooltip */
.d3-tip:after {
  box-sizing: border-box;
  display: inline;
  font-size: 10px;
  width: 100%;
  line-height: 1;
  color: rgba(128, 128, 128, 1);
  content: "\25BC";
  position: absolute;
  text-align: center;
}

/* Style northward tooltips differently */
.d3-tip.n:after {
  margin: -1px 0 0 0;
  top: 100%;
  left: 0;
}

