#content .wrapper {
  height: auto;
  overflow: visible;
}

#apphed {
  margin: 0;
  padding: 10px 0 0 10px;
  margin-bottom: 0 !important;

}
#national {
  width: 640px;
  border: 1px solid #efefef;
  box-shadow: 1px 1px 2px #efefef;
  float: left;
  height: 432px;
}

#topper:after {
  clear: both;
}

.guff {
  padding: 10px;
  font-family: "Helvetica Nueue", Helvetica, Arial, Sans-Serif;
  font-size: 13px;
  height: 80px
}

h2 {
  font-family: "ff-meta-serif-web-1","ff-meta-serif-web-2","Georgia",serif;
  font-size: 20px;
  margin-bottom: 0.5em;
}

#districts .guff {
  height: 81px; /* hacks */
}

#national #year {
  font-family: "Helvetica Nueue", Helvetica, Arial, Sans-Serif;
  font-size: 16px;
  border-right: 1px solid #efefef;
  padding: 10px;
  width: 38px;
  padding-bottom: 6px;
  font-weight: bold;
  float: left;
  height: 19px;
  overflow: hidden;
}

#national #controls {
  height: 35px;
  border-top: 1px solid #efefef;
}

#national #slider {
  width: 559px;
  float: left;
  height: 10px;
  margin: 10px;
  margin-top: 12px;
  border: 1px solid #cdcdcd;
}

#national #slider-bar {
  width: 100%;
  height: 100%;
  position: relative;
}

#national #slider #knob {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 12px;
  background-color: #034e7b;
  box-shadow: 0 0 3px #999;
  z-index: 100;
  margin-top: -4px;
  cursor: pointer;
}

#national #map, #national #breaks {
  width: 299px;
  padding: 10px;
  font-size: 11px;
  font-family: "Helvetica Nueue", Helvetica, Arial, Sans-Serif;
  border: 1px solid #efefef;
  border-left: 0;
  border-bottom: 0;
  float: left;
}

#national #breaks {
  border-right: 0;
}

#color-bars {
  margin-left: 9px;
  width: 90%;
}

#color-bars .color-bar {
  float: left;
  height: 10px;
  border-left: 1px solid white;
}

#color-bars .color-bar:first-child {
  border-left: 0;
}

#color-labels {
  margin-left: 9px;
  width: 90%;
  position: relative;
  margin-top: 10px;
  margin-bottom: 10px;
}

#color-labels .color-label {
  width: 9px;
  position: absolute;
  top: 12px;
  text-indent: -7px;
}

#breaks {
  display: block;
}

#breaks #breaks-chart {
  margin-top: 1em;
  height: 212px;
  position: relative;
}

#breaks #breaks-chart .grid {
  width: 100%;
  position: absolute;
  border-bottom: 1px solid #999;
  color: #999;
}

#breaks .bar {
  width: 29px;
  height: 100%;
  float: left;
}

#breaks .bar .bar-wrapper {
  height: 100%;
  width: 100%;
  position: relative;
}

#breaks .bar .bar-wrapper .amount {
  border: 1px solid #999;
  width: 26px;
  position: absolute;
  bottom: 0px;
}

#breaks .bar:last-child .bar-wrapper .amount {
  background-color: #034e7b;
  border: 1px solid #333;
}

#breaks .bar .bar-wrapper label {
  position: absolute;
  top: 100%;
  width: 100%;
  text-align: center;
}

#breaks .legend {
  text-align: right;
  color: #999;
  position: relative;
  top: 30px;
}

#districts {
  width: 318px;
  background-color: #e9f0f8;
  box-shadow: 1px 1px 2px #efefef;
  float: right;
  height: 434px;
}

#districts-search {
  border-top: 1px solid #cdcdcd;
  border-bottom: 1px solid #cdcdcd;
  width: 298px;
  padding: 10px;
  padding-top: 6px;
  height: 19px;
}

#district-search-box {
  width: 298px;
}

#hints, #district-show {
  overflow: scroll;
  height: 285px;
  background-color: white;
  width: 298px;
  border: 1px solid #cdcdcd;
  border-top: 0;
  margin-left: 9px;
  font-family: "Helvetica Nueue", Helvetica, Arial, Sans-Serif;
}

#hints li a {
  padding: 10px;
  display: block;
  color: black;
  background-color: white;
}

#hints li a:hover {
  background-color: #034e7b;
  color: white;
  text-decoration: none;
}

#district-show table {
  text-align: right;
  font-size: 10px;
}

#district-show table td, #district-show table th {
  padding: 5px;
  vertical-align: middle;
}

#district-show thead tr th {
  vertical-align: bottom;
  border-bottom: 1px solid #efefef;
}

#district-show thead tr th:first-child,  #district-show tbody tr td:first-child {
  text-align: left;
  width: 100px;
}

#district-show #district {
  padding: 5px;
  border-bottom: 1px solid #efefef;
}

#district-show h3.hint{
  position: absolute;
  text-align: center;
  width: 200px;
  margin-left: 37px;
  margin-top: 100px;
  padding: 10px;
  background-color: #034e7b;
  color: white;
  box-shadow: 2px 2px 2px #666;
  border-radius: 4px;
}

#districts .chart-guff {
  font-family: "Helvetica Nueue", Helvetica, Arial, Sans-Serif;
  text-align: right;
  font-size: 11px;
  color: #999;
  position: absolute;
  width: 318px;
  margin-top: 16px;
}

#districts-table {
  margin-top: 50px;
  width: 100%;
}


#app-table {
  margin-top:1.5em;
}
#app-table-note-defunct {
  margin-top:1em;
}
#app-table-src {
  font-family: "Helvetica Nueue", Helvetica, Arial, Sans-Serif;
  /*text-align: right;*/
  font-size: 11px;
  color: #999;
  width:100%;
  margin-top: 16px;
}

#districts-table table {
  width: 100%;
  font-family: "Helvetica Nueue", Helvetica, Arial, Sans-Serif;
  text-align: left;
}

#districts-table table th, #districts-table table td {
  border-bottom: 1px solid #efefef;
  padding: 10px;
}

#districts-table table th {
  border-bottom-color: #999;
  cursor: pointer;
}

#deseg-table th.sortyDown {
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAPCAYAAAAGRPQsAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAANdJREFUeNpibGhoYKAWYGKgIhghhrFs2LAhhpGRcTE2yT9%2F%2FlRfvny5H8j8CcT%2FCEUW08%2BfP3f%2F%2B%2FdvLRaDjl%2B9enUrkMlLrA%2BYrl%2B%2F%2FvrDhw%2FVQAOvwQT%2F%2F%2F%2F%2F%2BdmzZ7OBYv%2BB3N8gVxEbZv8ePnx47%2B%2Ffv4ugGhk%2Bffo0%2F%2B3btyDDXwPxF1IMA%2Fvq1atXM4EGbgF679S9e%2FfWAMXeAPFHkBzREQDzGdCwT0CcCGSLQsXeAvEPkByphjFAvfIF5lUg%2BEWs97AZBgJ%2Fgfgb2els0GZ0gAADAADQbKnqwtPPAAAAAElFTkSuQmCC);
}

#deseg-table th.sortyUp {
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAPCAYAAAAGR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
  padding: 6px 15px 6px 10px;
  vertical-align: top;
  background-size: 15px 15px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ie-user-select: none;
  user-select: none;
  cursor: pointer;
}

@media screen and (max-width: 480px) {

  * {
    -webkit-text-size-adjust: none;
  }

  #app-table {
    width: 420px;
  }

  #national {
    width: 295px;
    height: auto;
    margin-bottom: 40px;
  }

  .guff {
    height: auto;
  }

  #national #slider {
    width: 180px;
  }

  #national #map {
    width: 275px
  }

  #national #breaks {
    width: 275px
  }

  #national #breaks .bar {
    width: 26px;
  }

  #national #breaks .amount {
    width: 23px;
  }

  .social-module {
    display: none;
  }
  #national .legend {
    font-size: 8px;
  }
}
