
/* 
       *****      *****    *       *    *****    *******    *********    *****      *****   
     **     **  **     **  **      *  **     **  *      **  *          **     **  **     ** 
     *       *  *       *  * *     *  *       *  *       *  *          *       *  *       * 
     *          *       *  *  *    *  *          *       *  *          *          *         
     *          *       *  *   *   *  *          *      **  *******    **         **        
     *          *       *  *   *   *  *    ****  *******    *            *****      *****   
     *          *       *  *    *  *  *       *  *    *     *                 **         ** 
     *          *       *  *     * *  *       *  *     *    *          *       *  *       * 
     **     **  **     **  *      **  **     **  *      *   *          **     **  **     ** 
       *****      *****    *       *    *****    *       *  *********    *****      *****   
 
     *********    *****    *******    **         *********    *****   
         *      **     **  *      **  *          *          **     ** 
         *      *       *  *       *  *          *          *       * 
         *      *       *  *       *  *          *          *         
         *      *       *  ********   *          *******    **        
         *      *********  *       *  *          *            *****   
         *      *       *  *       *  *          *                 ** 
         *      *       *  *       *  *          *          *       * 
         *      *       *  *      **  *       *  *          **     ** 
         *      *       *  *******    *********  *********    *****   
*/





















/* 
     *       *  *********    *****    *******    *********  *******   
     *       *  *          **     **  *      **  *          *      ** 
     *       *  *          *       *  *       *  *          *       * 
     *       *  *          *       *  *       *  *          *       * 
     *       *  *******    *       *  *       *  *******    *      ** 
     *********  *          *********  *       *  *          *******   
     *       *  *          *       *  *       *  *          *    *    
     *       *  *          *       *  *       *  *          *     *   
     *       *  *          *       *  *      **  *          *      *  
     *       *  *********  *       *  *******    *********  *       * 
*/

div.full-page #TitleBar {
  height: 25px;
  position: relative;
  padding: 4px 0;
  z-index: 100;
}
div.full-page #TitleBar #ScoreboardTitle {
  margin: auto;
  width: 600px;
  height: 25px;
  display: block;
  transition: background-position 0.5s ease;
  -webkit-transition: background-position 0.5s ease;
}
div.full-page #TitleBar.House #ScoreboardTitle {
  background: url(../../../uploads/spreadsheets/HouseScoreboard.png) bottom no-repeat;
}
div.full-page #TitleBar.Senate #ScoreboardTitle {
  background: url(../../../uploads/spreadsheets/SenateScoreboard.png) bottom no-repeat;
}
div.full-page #TitleBar #ScoreboardTitle:hover {
  background-position: top;
}
div.full-page #TitleBar #ScoreboardTitle a {
  width: 315px;
  display: block;
  height: 25px;
}
/*div.full-page #TitleBar.House #otherTableLink::after {
    content: "View Senate Table";
}
div.full-page #TitleBar.Senate #otherTableLink::after {
    content: "View House Table";
}*/
div.full-page #TitleBar #otherTableLink {
  position: absolute;
  top: 4px;
  left: 10px;
  cursor: pointer;
  font-size: 1.1em;
}
div.full-page #TitleBar #optionsButton::before {
    content: "Explanation & Options";
}
div.full-page #TitleBar #optionsButton {
  position: absolute;
  top: 4px;
  right: 10px;
  cursor: pointer;
  font-size: 1.1em;
}
div.full-page #TitleBar #otherTableLink:hover,
div.full-page #TitleBar #optionsButton:hover {
  text-decoration: underline;
}








/* 
     *******      *****      *****    ********* 
     *      **  **     **  **     **  *         
     *       *  *       *  *       *  *         
     *       *  *       *  *          *         
     *      **  *       *  *          *******   
     *******    *********  *    ****  *         
     *          *       *  *       *  *         
     *          *       *  *       *  *         
     *          *       *  **     **  *         
     *          *       *    *****    ********* 
*/


div.full-page {
  width: 99%;
  background-color: white;
  padding: 0 0.5%;
}

/*div.full-page div.dataTables_wrapper {*/
div.full-page div.entry-builder {
  width: 100%;
  margin: auto;
}










/* 
     *********    *****    *******    **         ********* 
         *      **     **  *      **  *          *         
         *      *       *  *       *  *          *         
         *      *       *  *       *  *          *         
         *      *       *  ********   *          *******   
         *      *********  *       *  *          *         
         *      *       *  *       *  *          *         
         *      *       *  *       *  *          *         
         *      *       *  *      **  *       *  *         
         *      *       *  *******    *********  ********* 
*/

div.full-page table.congressTable {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  border-collapse: collapse;
  display: block;
  opacity: 0;
  font-size: 1em;
  /*table-layout: fixed;*/
}
div.full-page table.congressTable.smallText {
  font-size: 0.7em;
}
div.full-page table.congressTable.unlockedHeaders {
  overflow: scroll;
  height: 88vh;
}

div.full-page table.congressTable thead {
  position: relative;
  display: block; /*seperates the header from the body allowing it to be positioned*/
  width: 100%;
  overflow: visible;
  font-size: .8em;
}
div.full-page table.congressTable.unlockedHeaders thead {
  display: default;
}

div.full-page table.congressTable thead th,
div.full-page table.congressTable tbody td {
  text-align: center;
  vertical-align: middle;
  padding: 0;
  border: none;
  border-bottom: 1px solid black;
  border-right: 1px solid black;
}

div.full-page table.congressTable thead tr.META-COLGROUPS span.score,
div.full-page table.congressTable td span.score {
  bottom: 8px;
  position: relative;
  z-index: 0;
}
div.full-page table.congressTable img.flag {
  margin: 2px;
  width: 24px;
}
div.full-page table.congressTable td div span.fraction {
  display: block;
  padding-top: 1em;
}
div.full-page table.congressTable td.scoreColumn img.flag {
  margin: 0 0 -12px;
  width: 36px;
}
div.full-page table.congressTable thead tr.META-COLGROUPS img.flag {
  margin: 0 2px -7px;
}
div.full-page table.congressTable thead th {
  background-color: #99a;
  padding: 0 10px;
}
div.full-page table.congressTable thead tr.row-1 th.header {
  padding: 0 10px 0 0;
}
div.full-page table.congressTable thead tr.row-1 th.sortless {
  padding: 0 10px;
}

div.full-page table.congressTable thead th:nth-child(1) {/*first cell in the header*/
  position: relative;
  /*display: block; seperates the first cell in the header from the header*/
  /*background-color: #88b;*/
  background-clip: padding-box;  /*prevents background color from obscuring cell border in Firefox*/
}

/*tbody*/
div.full-page table.congressTable tbody {
  position: relative;
  display: block; /*seperates the tbody from the header*/
  /*width: 700px;*/
  width: 100%;
  /*height: 239px;*/
  height: 75vh;
  overflow: scroll;
}
div.full-page table.congressTable.unlockedHeaders tbody {
  display: default; 
  overflow: visible;
}

div.full-page table.congressTable tbody tr {
  /*background-color: #bbc;*/
}

/*add colors in table-display.js instead*/
div.full-page table.congressTable tbody tr.republican {
  background-color: #FCC;
}
div.full-page table.congressTable tbody tr.democrat {
  background-color: #CEF;
}
div.full-page table.congressTable tbody tr.green {
  background-color: #CFC;
}
div.full-page table.congressTable tbody tr.libertarian { 
  background-color: #CCC;
}
div.full-page table.congressTable tbody tr.independent {
  background-color: #FFC;
}
div.full-page table.congressTable tbody tr td span.infoIcon {
  color: yellow;
}

/*div.full-page table.congressTable tbody tr.incumbent td:nth-child(1),*/
div.full-page table.congressTable tbody tr.incumbent {
  background-color: #EEE;
}
/*div.full-page table.congressTable tbody tr.challenger td:nth-child(1),*/
div.full-page table.congressTable tbody tr.challenger {
  background-color: #BBB;
}
/*div.full-page table.congressTable tbody tr.other td:nth-child(1)*/
div.full-page table.congressTable tbody tr.other {
  background-color: #888;
}

div.full-page table.congressTable thead tr.row-1 th:hover,
div.full-page table.congressTable thead tr.row-1 th.PRO-I:hover,
div.full-page table.congressTable thead tr.row-1 th.PRO-P:hover {
  cursor: pointer;
  background-color: #BBE;
}

/*highlight cells on hover*/
div.full-page table.congressTable tbody td:hover,
div.full-page table.congressTable tbody td.PRO-I:hover,
div.full-page table.congressTable tbody td.PRO-P:hover,
div.full-page table.congressTable tbody td.incumbent:hover,
div.full-page table.congressTable tbody td.challenger:hover,
div.full-page table.congressTable tbody td.other:hover,
div.full-page table.congressTable tbody td.column-1.PRO-I:hover,
div.full-page table.congressTable tbody td.column-1.PRO-P:hover,
div.full-page table.congressTable tbody td.column-1.incumbent:hover,
div.full-page table.congressTable tbody td.column-1.challenger:hover,
div.full-page table.congressTable tbody td.column-1.other:hover,
div.full-page table.congressTable tbody td.PRO-I.PAC_Column:hover,
div.full-page table.congressTable tbody td.PRO-P.PAC_Column:hover {
  cursor: pointer;
  background-color: #383838;
  color:white;
}

/*div.full-page table.congressTable tbody td.column-1:hover,*/
div.full-page table.congressTable tbody td.column-2:hover,
div.full-page table.congressTable tbody td.column-3:hover,
div.full-page table.congressTable tbody td.column-4:hover,
div.full-page table.congressTable tbody td.column-5:hover,
div.full-page table.congressTable tbody td.no-hover:hover {
  background-color: inherit;
  cursor: default;
  color: black;
}

div.full-page table.congressTable thead th.PRO-I,
div.full-page table.congressTable tbody td.PRO-I {
  background-color: #6FCBFE7F;
}
div.full-page table.congressTable thead th.PRO-P,
div.full-page table.congressTable tbody td.PRO-P {
  background-color: #FE6F717F;
}
div.full-page table.congressTable thead th.PAC_Column,
div.full-page table.congressTable tbody td.PAC_Column,
div.full-page table.congressTable thead th.PAC_Column.PRO-I,
div.full-page table.congressTable tbody td.PAC_Column.PRO-I,
div.full-page table.congressTable thead th.PAC_Column.PRO-P,
div.full-page table.congressTable tbody td.PAC_Column.PRO-P {
  background-color: inherit;
}

div.full-page table.congressTable tbody tr td div {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-height: 1.2em;     /* fallback */
  max-height: 6em;      /* fallback */
  -webkit-line-clamp: 5; /* number of lines to show */
  -webkit-box-orient: vertical;
  padding: .2em 1em;
  /*height: 100vh;*/
}

div.full-page table.congressTable tbody tr td:nth-child(1) {  /*the first cell in each tr*/
  position: relative;
  /*display: block; seperates the first column from the tbody*/
  /*background-color: #99a;*/
  border-right: 1px solid black;
  z-index: 1;
  /*background-color: inherit;*/
  background-clip: padding-box;  /*prevents background color from obscuring cell border in Firefox*/
}


#screenCover,
#screenCover2 {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:102;
    /*display: none;*/
    display: block;
}
#blackground {
    position:fixed;
    float:left;
    clear:both;
    display:block;
    left:0;
    right:0;
    top:0;
    width:100%; 
    /*height:100%;*/
    height:1590px;
    min-width:100%;
    min-height: 100vh;
    background: #000;
    padding:0;
    z-index:101;
    opacity: 0.7;
}

#container{
    position:relative;
    display:block;
    padding:0;
    margin:5% auto;
    z-index: 102;
    width: 60%;
    max-height: 100vh;
    border-radius: 6px;
    overflow: hidden;
    /*padding-top:10%;*/
    /*margin:40px auto;*/
}
#screenCover2 {
  z-index: 100;
  display: block;
  opacity: 0;
  transition: opacity .3s ease-in-out;
}
#screenCover2 #ScrollInstructions{
    position:relative;
    display:block;
    padding:0;
    margin:10% auto;
    z-index: 102;
    width: 600px;
    height: 400px;
    border-radius: 6px;
    overflow: hidden;
    background: url(../../../uploads/spreadsheets/TrackpadScrolling.png) bottom no-repeat;
    background-size: contain;
    box-shadow: 0px 0px 30px;
    cursor: pointer;
}
/*#screenCover2 #ScrollInstructions::before {
  box-shadow: 0px 0px 30px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}*/
#screenCover2.fadeIn {
  opacity: 1;
}
/*#screenCover2.fadeIn #ScrollInstructions::before {
  opacity: 1;
}*/

#infoBox {
    padding: 20px;
    overflow: auto;
    display: block;
    background: white;
    max-height: 70vh;
}
#infoBox .centered {
  text-align: center;
  display: block;
}
#infoBox h4 {
  margin-bottom: 1em;
}
#infoBox h5 {
  margin-top: 1em;
}
#infoBox li {
  margin-left: 20px;
}
#infoBox .percent {
  font-size: 40px;
  display: inline-block;
  vertical-align: top;
  padding-top: 15px;
}
#infoBox .flag {
  padding-top: 10px;
}
#infoBox .fraction {
  font-size: 30px;
  display: inline-block;
  vertical-align: top;
  padding: 20px 30px;
}
#infoBox .fraction::after {
  content: ' opportunities';
}
#infoBox #optionsBox p {
  margin-bottom: .5em;
}
#infoBox .boldText {
  font-weight: bold;
}
#infoBox .smallText {
  font-size: .8em;
}
#infoBox #optionsBox #prefs {
  position: relative;
  text-align: left;
  /*height: 100px;*/
  /*display: none;*/
}
#infoBox #optionsBox #prefs p {
  margin-bottom: 0;
}
#optionsBox h5#optionsLabel {
  text-align: left;
  /*display: none;*/
}
#optionsBox h5.expander {
  cursor: pointer;
}
#optionsBox h5.expander::after {
  /*content: "▼";*/
  content: " \25BE";
  display: inline-block;
  -webkit-transition: all 300ms 0s ease-in-out;
  transition: all 300ms 0s ease-in-out;
}
#optionsBox h5.expander.hidden::after {
  /*content: "▶︎";*/
  /*animation: rotate-arrow .5s linear 3;
  -webkit-animation: rotate-arrow .5s linear 3;*/
  
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
}


/*#infoBox #optionsBox #prefs #leftSide {
  width: 40%;
  text-align: left;
  right: 50%;
  position: absolute;
}
#infoBox #optionsBox #prefs #rightSide {
  width: 40%;
  position: absolute;
  top: 0;
  left: 50%;
  text-align: left; 
}*/
#infoBox #optionsBox #prefs #TwoColumns li {
  display:inline-block;
  text-align: left;
  margin-right: 50px;
  vertical-align: top;
  margin-left: 0;
}

#infoBox #optionsBox input[type="radio"]:checked {
    background-color: green;
}

#infoBox #optionsBox input[type="checkbox"] {
    background-color: #666;
}
#infoBox #optionsBox input[type="checkbox"]:checked {
    background-color: green;
}
#infoBox #optionsBox #prefs #viewOptions label {
    display:block;
  }
#infoBox #optionsBox #prefs #viewOptions label[for=stickFirstRow],
#infoBox #optionsBox #prefs #viewOptions label[for=stickFirstColumn],
#infoBox #optionsBox #prefs #viewOptions label[for=useSmallText] {
  display:none;
  /*display:block;*/
}
.totallyClear{
    zoom: 1;
    filter: alpha(opacity = 0);
    opacity: 0;
}
#XButton{
    color:#FFF;
    font-family:Arial, Helvetica, sans-serif;
    
    cursor:pointer;
    float:right;
    position:absolute;  
    top:0px;
    right:1px;
    width:24px;
    height:24px;
    background:url(../../../uploads/spreadsheets/CloseButton.png) bottom center no-repeat;
    display: none;
}

#XButton:hover{
      background-position:top;
}

div.full-page #loader {
  text-align: center;
  margin:2% auto;
}
div.full-page #barLoader {
  width: 200px;
  height: 20px;
  border: 1px solid black;
  text-align: left;
  margin: auto;
  overflow: hidden;
}
div.full-page #barLoader #loadedBar {
  width: 200px;
  height: 20px;
  background-color: green;
  -webkit-animation-name: fakeProgress; /* Safari 4.0 - 8.0 */
  -webkit-animation-duration: 60s; /* Safari 4.0 - 8.0 */
  /*-webkit-animation-timing-function: linear;*/
  animation-name: fakeProgress;
  animation-duration: 60s;
  /*animation-timing-function: linear;*/
}

/* Safari 4.0 - 8.0 */
@-webkit-keyframes fakeProgress {
    0% {transform: translateX(-200px);}
    60% {transform: translateX(-20px);}
    90% {transform: translateX(0px);}
    100% {transform: translateX(0px);}
}

/* Standard syntax */
@keyframes fakeProgress {
    0% {transform: translateX(-200px);}
    60% {transform: translateX(-20px);}
    90% {transform: translateX(0px);}
    100% {transform: translateX(0px);}
}

#loaderMessageBox {
  height: 1.5em;
  overflow: hidden;
  padding: 0;
  margin-bottom: 10px;
}

#loaderMessage {
  top: 0;
  position: relative;
  -webkit-animation-name: loadingMessage; /* Safari 4.0 - 8.0 */
  -webkit-animation-duration: 60s; /* Safari 4.0 - 8.0 */
  animation-name: loadingMessage;
  animation-duration: 60s;
}

/* Safari 4.0 - 8.0 */
@-webkit-keyframes loadingMessage {
  0% {transform: translateY(1.5em);}
  1% {transform: translateY(0em);}
  15% {transform: translateY(0em);}
  16% {transform: translateY(-1.5em);}
  55% {transform: translateY(-1.5em);}
  56% {transform: translateY(-3em);}
  100% {transform: translateY(-3em);}
}

/* Standard syntax */
@keyframes loadingMessage {
  0% {transform: translateY(1.5em);}
  1% {transform: translateY(0em);}
  15% {transform: translateY(0em);}
  16% {transform: translateY(-1.5em);}
  55% {transform: translateY(-1.5em);}
  56% {transform: translateY(-3em);}
  100% {transform: translateY(-3em);}
}

#infoBox  #optionsBox .mobileOnly,
#infoBox  #optionsBox .ieOnly {
  display: none;
}
#infoBox #optionsBox .ieOnly,
#infoBox #optionsBox .longLoad {
  color: red;
}

#infoBox span.infoIcon {
  display: none;
}

/* 
     *       *    *****    *******    ***  **         ********* 
     **     **  **     **  *      **   *   *          *         
     * *   * *  *       *  *       *   *   *          *         
     *  * *  *  *       *  *       *   *   *          *         
     *   *   *  *       *  ********    *   *          *******   
     *       *  *       *  *       *   *   *          *         
     *       *  *       *  *       *   *   *          *         
     *       *  *       *  *       *   *   *          *         
     *       *  **     **  *      **   *   *       *  *         
     *       *    *****    *******    ***  *********  ********* 
*/

/*@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 568px) 
and (orientation : portrait) { */
@media only screen and (max-device-width : 1000px) { 
  /*div.full-page #TitleBar.House #otherTableLink::after {
      content: "Go To Senate";
  }
  div.full-page #TitleBar.Senate #otherTableLink::after {
      content: "Go To House";
  }*/
  div.full-page #TitleBar #optionsButton::before {
    content: "Options";
  }
}




@media only screen and (max-device-width : 768px) { 
  /*div.full-page #TitleBar.House #otherTableLink::after {
      content: "Go To Senate";
  }
  div.full-page #TitleBar.Senate #otherTableLink::after {
      content: "Go To House";
  }*/
  div.full-page #TitleBar.Senate #otherTableLink,
  div.full-page #TitleBar.House #otherTableLink {
    position: relative;
    float:left;
    margin-bottom: 4px;
  }
  div.full-page #TitleBar #optionsButton::before {
    content: "Options";
  }
  div.full-page #TitleBar #optionsButton {
    position: relative;
    float: right;
    margin-bottom: 4px;
  }
  div.full-page #TitleBar #ScoreboardTitle,
  div.full-page #TitleBar.Senate #ScoreboardTitle,
  div.full-page #TitleBar.House #ScoreboardTitle {
    width: 100%;
    background-size: contain;
    height: 40px;
    background-position: top;
    border-bottom: 1px solid gray;
  }
  #container {
    width: 80%;
  }
  #loaderMessageBox {
    font-size: .75em;
  }
  #infoBox {
    font-size: .8em;
  }
  #infoBox #optionsBox #prefs {
    height: inherit;
  }
  #infoBox #optionsBox #prefs #TwoColumns li {
    margin-right: 0px;
    margin-bottom: 1em;
  }
/*  #infoBox #optionsBox #prefs #leftSide {
    width: 100%;
    position: relative;
    right:0;
  }
  #infoBox #optionsBox #prefs #rightSide {
    width: 100%;
    position: relative;
    margin-top: 1em; 
    left:0;
  }*/
  /*#infoBox #optionsBox #prefs #viewOptions label[for=stickFirstRow],*/
  #infoBox #optionsBox #prefs #viewOptions label[for=stickFirstColumn] {
    /*display:inline;*/
    display:none;
  }
  #infoBox #optionsBox #prefs #viewOptions label[for=useSmallText],
  #infoBox #optionsBox #prefs #viewOptions label[for=stickFirstRow] {
    display:block;
  }
  #infoBox #optionsBox .mobileOnly {
    display: block;
  }
  #screenCover2 #ScrollInstructions{
      width: 300px;
      height: 200px;
      background: url(../../../uploads/spreadsheets/MobileScrolling.png) bottom no-repeat;
      background-size:contain;
  }
  #infoBox .fraction::after {
    content: ' opportunities';
    font-size: .5em
  }

}




/* 
     *********  *********  *       *  *******      *****    *******      *****    *******    *       * 
         *      *          **     **  *      **  **     **  *      **  **     **  *      **   *     *  
         *      *          * *   * *  *       *  *       *  *       *  *       *  *       *    *   *   
         *      *          *  * *  *  *       *  *       *  *       *  *       *  *       *     * *    
         *      *******    *   *   *  *      **  *       *  *      **  *       *  *      **      *     
         *      *          *       *  *******    *       *  *******    *********  *******        *     
         *      *          *       *  *          *       *  *    *     *       *  *    *         *     
         *      *          *       *  *          *       *  *     *    *       *  *     *        *     
         *      *          *       *  *          **     **  *      *   *       *  *      *       *     
         *      *********  *       *  *            *****    *       *  *       *  *       *      *     
*/



/*Remove this when the house table is live.*/
/*div.full-page #TitleBar.Senate #otherTableLink {
  display: none;
}*/

