@font-face {
  font-family: 'Dinot';
  src: url('dinot-bold.eot') format('eot');
  src: url('dinot-bold.otf') format('opentype');
  font-weight:600;
}


@font-face {
  font-family: 'Dinot';
  src: url('dinot.eot');
  src: local('Dinot'),
         url('dinot.otf') format('opentype');
}



@media only screen and (max-device-width: 799px) {
    
    @font-face {
    font-family: Dinot;
    src: url("dinot.otf") format("opentype");
    }
    
    body * {
        visibility: hidden;
    }
    
    #myVideo{
        visibility: visible;
    }
    
    #screensize{
        visibility: visible;
        font-family:'Dinot';
        padding:2vw;
    }
    
}

@media only screen and (min-device-width: 800px){
    
    @font-face {
  font-family: 'Dinot';
  font-weight: bold;
  src: url('dinot-bold.eot');
  src: local('Dinot'),
         url('dinot-bold.otf') format('opentype');
}

#screensize{
  visibility: hidden;
}
    
#myVideo{
        margin-top:-2.3vw;
    }
    
body {
  font-family: 'Dinot';
  margin-left:180px;
      max-width: 100%;
  overflow-x: hidden;
}

h3{
    font-family: 'Dinot';
    font-size:36px;
    margin:0px;
    margin-left:0;
    margin-bottom: 1vw;
    text-align: left;
    background-color:#8EC3DD;
    padding-left: 5vw;
    color:#18385F;
    font-weight: 600;
}

.dy{
    color:#1F649A;
    margin-bottom: 0;
    margin-top:0vw;
}
    
    .header{
         margin-top:-30px;
    }

h5{
    font-family: 'Dinot';
    font-size:14px;
    margin:-2px;
    margin-bottom: 2px;
    background-color: #FFBA52;
    border-radius:3px;
    padding: 7px;
    text-transform: uppercase;
}

h6{
    font-weight: 600;
    font-size:16px;
    margin-bottom:1vw;
    margin-left:5vw; 
}


    
h7{
    font-weight: 600;
    font-size:14px;
    margin-bottom:5px;
    margin-left:2%;
}

h8{
    font-size:10px;
    letter-spacing: 0.2px;
    
}

h9{
    font-weight: 600;
    font-size:12px;
    
}

h10{
    margin-left:5vw;
    margin-right:5vw;
    margin-top:0%;
    margin-bottom:1%;
    display:block;
    font-size:16px;
    
}
    
b {
    font-weight:600;
    }

h11{
    margin-left:5vw;
    margin-right:5vw;
    margin-top:2%;
    display:block;
    font-size:1.2vw;
}

h12{
    font-size:3vw;
    font-weight:600;
}

h13{
    font-size:1vw;
}

.textwrap{
    margin-top:0vw;
    margin-bottom:1.5vw;
    margin-right:5vw;
        clear:both;
}
    
    .textwrapwelcome{
    margin-top:3vw;
    margin-bottom:3vw;
    }

.outer-1 {
                background-color:#FFEED5;
                width:70px; /* You can define it by % also */
                height:140px; /* You can define it by % also*/
                position:relative;
                border-radius: 0 90px 90px 0  ;

}
.inner-1 {
                background-color:#FFDAA2;
                top: 10%; left:0%; /* of the container */
                width:80%; /* of the outer-1 */
                height:80%; /* of the outer-1 */
                position: absolute;
                border-radius: 0 90px 90px 0;
}
.inner-2 {
                background-color:#FFCB7E;
                top: 20%; left:0%; /* of the container */
                width:60%; /* of the inner-1 */
                height:60%; /* of the inner-1 */
                position: absolute;
               border-radius: 0 90px 90px 0;
}
    
.inner-3 {
                background-color:#FFC164;
                top: 28%; left:0%; /* of the container */
                width:44%; /* of the inner-1 */
                height:44%; /* of the inner-1 */
                position: absolute;
                border-radius: 0 90px 90px 0;
}
    
.inner-4 {
                background-color:#FFBA52;
                top: 38%; left:0%; /* of the container */
                width:24%; /* of the inner-1 */
                height:24%; /* of the inner-1 */
                position: absolute;
                border-radius: 0 90px 90px 0;
}

.inner-4 :hover{
    opacity:0.7;
    border: 1px solid black;

}
    
    .peopleiconmenu{
        position:absolute;
        top:41%;
        left:3%;
    }    

    #title{
        color:#fff;
        padding:4px;
        font-weight: 600;
        font-size:18px;
        margin-left:6px;
        margin-bottom:-20px;
        margin-top:-10px;
    }
#menuwrap {
  position: fixed;
  left: 0;
  top: 0%;
  width: 180px;
  height: 100%;
  margin-top: 0px;
  background-color: #FFBA52;
  font-size:12px;
    z-index: 100;
    
}

#menu{
    width:180px;
    text-align: left;
    list-style-type: none;
    margin:0;
    margin-top:0px;
    padding:0;
    line-height: 1.1;
    text-transform: uppercase;
    z-index:10;
}

    #menu li a{
        display:block;
        text-decoration:none;
        color:#fff;
        padding:10px;
        font-weight: 600;
        font-size:14px;

    }
    
    li a:hover {
    background-color: #8EC3DD;
    color: white;
}
    
   .active {
    background-color: #18385F;
    color: white;
}

    .moalogo{
        position:absolute;
        bottom:45px;
        margin-left:20px; 
    }
    
    .ssrclogo{
        position:absolute;
        bottom:5px;
        margin-left:40px;  
    }
    
       
/*animated line graph*/
    
    #National{
        margin-top:0vw;
    }    
    
.g-line {
  margin-top: -1vw;
  margin-left: 10%
}

.datapoints{
    fill:none;
  stroke: #488DB5;
  stroke-width:2px;
    
}
.datalabel{
    fill:#488DB5;
    font-size:1.5vw;
    transform: translate(0.5vw,-0.5vw);
}

.datalabel :nth-of-type(1){
  transform: translate(1.0vw,0.2vw);  
}

.datalabel :nth-of-type(2){
  transform: translate(-2.2vw,-0.6vw);  
}

/*.datalabel :nth-of-type(8){
  transform: translate(-1.5vw,2.5vw);  
}*/

path.line {
  fill: none;
  stroke: #488DB5;
  stroke-width: 3px;
}

path.area {
  fill: #516578;
}

.axis {
  shape-rendering: crispEdges;
    font-family:'Dinot';
    font-size:12px;
}

.x.axis .minor {
  stroke-opacity: .5;
}

.g-line .x.axis path {
  display: none;
}

.y.axis line, .y.axis path {
  fill: none;
  stroke: #000;

}
    
.guideline {
  margin-right: 100px;
  float: right;
}

.overlay {
  fill: none;
  pointer-events: all;
}

.focus {
    font-family:'Dinot';
    font-size:12px;
}

.focus circle {
  fill: none;
  stroke: #8398AC;
  stroke-width:2px;
}

    
    
    
    
    
/*Race Lines*/
    
    .racewrap{
        text-align:center;
    }    
    
.g-raceline{
        position:relative;
        margin-top:1vw;
        //left:25vw;
        font-size:70%;
        
    }
    
.g-raceline .x.axis path {
  display: none;
}

    
    
    
 
    
    
/*gender lines*/
    
    
    
.genderwrapicon{
     position:relative;
    text-align:center;
    width:100%;
    margin-bottom:1vw;
    }
    
    .peopleicon{
      //position:absolute;
      bottom:5%;
        margin-top:1%;
        margin-left:125px;
        margin-right:200px;
    }
    
    
  /*  .vertical{
        background-color:#FFBA52;
        height:50px;
        width:3px;
        margin-left:45%;
    }
    
.horizontal{
        background-color:#FFBA52;
        height:3px;
        width:350px;
        margin-left:29%;
    }  */  
      
    
    
.genderwrap{
     position:relative;
    text-align:center;
    width:100%;
    margin-bottom:5vw;
    }    
    
.g-femaleline .x.axis path {
  display: none;
} 
    
.g-femaleline{
    font-size:70%;
    }  

.g-maleline .x.axis path {
  display: none;
} 
    
.g-maleline{
    //position:absolute;
    //right:0;
    font-size:70%;
    }  
    
    .g-maleline text{
        background-color:aqua;
    }    
    
    
    /*connected vs. disconnected breakdowns*/
    
    .g-breakdown {
        position: relative
    }
    
    	.g-breakdown .dot {
			stroke-width: 1px;
			fill-opacity: .7;
		}
		.g-breakdown .dot.a {
			stroke: #8398AC;
			fill: #8398AC;
		}
		.g-breakdown .dot.b {
			stroke: #323F4A;
			fill: #323F4A;
		}
        /* .dot.selected{
             stroke: red; 
        }*/
		.g-breakdown .connect-line {
			stroke: #aaa;
			stroke-width: 2px;
		}
           .g-breakdown .connect-line-background {
                stroke: #ccc;
                stroke-width:20px;
                opacity: 0;
            }
         
.g-breakdown .x.axis line, .x.axis path {
  fill: none;
  stroke: #000;
    stroke-width:1px;

}
      /* .tooltipy {
            position: absolute;
            font-size: 12px;
            z-index: 10;
            width:  auto;
            height: auto;
            pointer-events: none;
            background-color: white;
        }*/

    
    .tooltipy {   
    font-family: 'Dinot';
    font-size:12px;
 	position:absolute;           
	text-align: center;           
	width: auto;                  
	height: auto;                 
	padding: 0px;             
	font: 12px;        
	background: white; 
	border: 0px;      
	border-radius: 8px;
	pointer-events: none;
    fill-opacity:0.8;
}
            
         .g-breakdown   .selected {
                fill-opacity:1;
            }
            
          .g-breakdown  .unselected {
                fill-opacity:0.7;
            }
    
    

    
/*Disability breakdown*/
    
 .g-breakdown-disability {
        position: relative
    }
    
    	.g-breakdown-disability .dot {
			stroke-width: 1px;
			fill-opacity: .7;
		}
		.g-breakdown-disability .dot.a {
			stroke: #8EC3DD;
			fill: #8EC3DD;
		}
		.g-breakdown-disability .dot.b {
			stroke: #18385F;
			fill: #18385F;
		}
        /* .dot.selected{
             stroke: red; 
        }*/
		.g-breakdown-disability .connect-line {
			stroke: #aaa;
			stroke-width: 2px;
		}
           .g-breakdown-disability .connect-line-background {
                stroke: #ccc;
                stroke-width:20px;
                opacity: 0;
            }
         
.g-breakdown-disability .x.axis line, .x.axis path {
  fill: none;
  stroke: #000;
    stroke-width:1px;

}
      /* .tooltipy {
            position: absolute;
            font-size: 12px;
            z-index: 10;
            width:  auto;
            height: auto;
            pointer-events: none;
            background-color: white;
        }*/

    
    .tooltipy-disability {   
    font-family: 'Dinot';
    font-size:12px;
 	position:absolute;           
	text-align: center;           
	width: auto;                  
	height: auto;                 
	padding: 0px;             
	font: 12px;        
	background: white; 
	border: 0px;      
	border-radius: 8px;
	pointer-events: none;
    fill-opacity:0.8;
}
            
         .g-breakdown-disability   .selected {
                fill-opacity:1;
            }
            
          .g-breakdown-disability  .unselected {
                fill-opacity:0.7;
            }
    
    
/*Waffles*/
    
    .wafflechart {
        text-align: center;
    }
    
.wafflespan {
display:inline-block;
  float:center;
    /*margin:10px;*/
}
    
 .waffle {
  display: flex;
  flex-wrap:wrap;
  width: 120px;
  float:left;
  margin:20px;
  justify-content: center;
    
}
    

.waffle .block {
  width: 10px;
  height: 10px;
  margin: 1px;
}



.waffle .title{
    margin-left:20px
}

 .wafflelegend{
    margin-top:20px
}
    
 .wafflelegend div{
    white-space: nowrap;
    margin-top:5px;
}
    
    .wafflelegend .first{
        margin-top:60px
    }

.wafflelegend .legendblock3{
      width: 10px;
  height: 10px;
  margin-top: 65px;
    margin-right:5px;
    background-color:#18385F;
    display:inline-block;
    float:left
}

.wafflelegend .legendblock2{
      width: 10px;
  height: 10px;
  margin-top: 10px;
      margin-right:5px;
    background-color:#1F649A;
    display:inline-block;
    float:left
}

.wafflelegend .legendblock1{
      width: 10px;
  height: 10px;
  margin-top: 10px;
      margin-right:5px;
    background-color:#8EC3DD;
    display:inline-block;
    float:left
}


    
    
    
/*Rural Urban*/


.g-ruralurban{
    position:relative;
}
.g-ruralurban .info{
    position:absolute;
    border-style: solid;
    border-color:#134A86;
    border-radius:15px;
    background:#CDD2D4;

}

.infotext{
    position:relative;
    font-size:1.3vw;
}
    

.infotextbold{
    position:relative;
    font-size:1.3vw;
    font-weight: 600;
}    
    
.infotext1{
    position:relative;
    font-size:2.2vw;
    font-weight:600;
}

.g-ruralurban .axis path,
.g-ruralurban .axis line {
  fill: none;
  stroke: #000;
  shape-rendering: crispEdges;
}

/*.bar {
  fill: #516578;
}*/

.bar:hover {
  opacity:0.8 ;
}

.g-ruralurban .axis{
    font-size:1vw;
}
    
@media (max-width: 1000px) {
    .g-ruralurban .axis{
    font-size:0.8vw;
}    
}  
    
.g-ruralurban .x.axis path {
  display: none;
}

.d3-tip {
  line-height: 1;
  font-weight: bold;
  padding: 0.7vw;
  background: #fff;
  border-style:solid;
  border-color:#8398AC;
  color: #8398AC;
  border-radius: 12px;
  text-align: center;
  font-size:1.5vw;
}

/* Creates a small triangle extender for the tooltip */
.d3-tip:after {
  box-sizing: border-box;
  display: inline;
  font-size: 20px;
  width: 100%;
  line-height: 1;
  color: #8398AC;
  content: "\25BC";
  position: absolute;
  text-align: center;
}

/* Style northward tooltips differently */
.d3-tip.n:after {
  margin: -3px 0 0 0;
  top: 100%;
  left: 0;
}


/*PUMA*/
    #PUMA{margin-top:5vw;}
    
    

/*states*/

    #State{
       margin-top:5vw;
       margin-bottom: 10vw;
    }    
    
.statewrap{
    position:relative;
    width:100%;
    text-align:center;
}
.g-chart{
    margin-bottom: 0vw;
    margin-left:-5vw;
    position:
}
.states {
  fill: #d3d3d3;
  stroke: #a6a6a6;
  stroke-linejoin: round;

}

.states :hover {
  opacity: 0.7;

}
.selected{
    stroke:#FFBA52;
    stroke-width:2px;
}
.legend .block {
  width:5%;
  height: 1.5vw;
  display:block;
  float:right;
 margin-bottom:0px;
  
}

.legend{
    clear:left;
    margin-right:3%;
    text-align: left;

}

.legend p{
   font-size:1vw;
    margin-left:-30%;
    margin-top:40%;
}

/*State change over time*/
path.linesc{
 fill: none;
  stroke: #134A86;
  stroke-width: 3px;
}

.changebox{
    padding:0vw;
    position:absolute;
    bottom:0;
    right:0%;
}

.changebox .x.axis line, .changebox .x.axis path{
    fill:none;
    stroke:#999;
}

.changebox .y.axis line, .changebox .y.axis path{
    fill:none;
    stroke:#999;
}

.changebox .axis {
  shape-rendering: crispEdges;
    font-family:'Dinot';
    font-size:80%;
    fill:#333
}

/*State Small Multiples */
   
    
.wrap{
    position:relative;
   margin-top:100px; 
    margin-bottom:5vw;
}

    .g-staterace {
        margin-top: 0vw;
        margin-left:2%;
        margin-bottom:1vw;
    }

    .g-staterace div {
        float: left;
        position: relative;
        font-family:'Dinot';
        font-size: 11px;

    }
    .g-staterace path {

        stroke: #FFF;
        stroke-width: 1px;
    }
    .g-staterace div.leg {
        text-align: center;
        position:absolute;
        top:70%;
        left: 10%;
        width: 70%;
    }

.g-staterace div.title{
    font-size:16px;
    font-weight:600;
    margin-left:3.3vw;
    
}
    
    .wrap div.legend{
        position:relative;
        right:0;
        bottom:0;
        
    }

        
/*#q5-9 { fill: #323F4A; }
#q4-9 { fill: #516578; }
#q3-9 { fill: #657F97; }
#q2-9 { fill: #8398AC; }
#q1-9 { fill: #B1BECB; }
#q0-9 { fill: #d3d3d3; }*/

#q5-9 { fill: #18385F; }
#q4-9 { fill: #134A86; }
#q3-9 { fill: #1F649A; }
#q2-9 { fill: #488DB5; }
#q1-9 { fill: #8EC3DD; }
#q0-9 { fill: #d3d3d3; }
    
/*metro area*/    

    #Metro{
        margin-top:5vw;
        margin-bottom:10vw;
    }    
    
.g-bubble {
    margin-top: 2%;
    margin-left:8%;
    margin-bottom:3%;
    //background-color:darkgrey;
}

.g-bubble circle {
    opacity:0.8;
    stroke:#fff;
    stroke-width: 0.5;
        
}    
/* On mouse hover, lighten circle color */
.g-bubble circle:hover {
	fill-opacity: .7;
        stroke:#000;
    stroke-width: 1.5;
}


.bubblelegend circle {
  fill: none;
  stroke: #333;
}


.bubblelegend text {
  fill: #333;
  font: 10px sans-serif;
  text-anchor: middle;
}


/* Style for Custom Tooltip */
div.tooltip {   
    font-family: 'Dinot';
    font-size:12px;
 	position: absolute;           
	text-align: center;           
	width: auto;                  
	height: auto;                 
	padding: 8px;             
	font: 12px;        
	background: white; 
	border: 0px;      
	border-radius: 8px;
	pointer-events: none;         
}

    
    /*congressional districts*/
    
    #Congress{
        margin-top:5vw;
    }    
    
.g-cd{
    margin-top: 2%;
    margin-left:8%;
}

.districts {
  fill: #bbb;
}

.districts :hover {
  opacity: 0.7;
}

.district-boundaries {
  pointer-events: none;
  fill: none;
  stroke: #fff;
  //stroke-width: .5px;
}

.state-boundaries {
  pointer-events: none;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5px;
}


/*    
.q5-9 { fill: #323F4A; }
.q4-9 { fill: #516578; }
.q3-9 { fill: #657F97; }
.q2-9 { fill: #8398AC; }
.q1-9 { fill: #B1BECB; }
.q0-9 { fill: #d3d3d3; }

#q5-9 { background-color: #323F4A; }
#q4-9 { background-color: #516578; }
#q3-9 { background-color: #657F97; }
#q2-9 { background-color: #8398AC; }
#q1-9 { background-color: #B1BECB; }
#q0-9 { background-color: #d3d3d3; }
*/
    
.q5-9 { fill: #18385F; }
.q4-9 { fill: #134A86; }
.q3-9 { fill: #1F649A; }
.q2-9 { fill: #488DB5; }
.q1-9 { fill: #8EC3DD; }
.q0-9 { fill: #d3d3d3; }

#q5-9 { background-color: #18385F; }
#q4-9 { background-color: #134A86; }
#q3-9 { background-color: #1F649A; }
#q2-9 { background-color: #488DB5; }
#q1-9 { background-color: #8EC3DD; }
#q0-9 { background-color: #d3d3d3; }


/*counties*/

  
    .buttons{
     position:absolute;
     margin-left:7.5%;
     margin-top:0.5%
    }
    
    .buttonscd{
     position:absolute;
     margin-left:7.5%;
     margin-top:0.8%
    }
    #zoom_in{
       width:30px;
    }
    #zoom_out{
        width:30px;
    }
    #zoom_incd{
       width:30px;
    }
    #zoom_outcd{
        width:30px;
    }
    
    
    
    
    #County{
       margin-top:5vw; 
       margin-bottom:10vw;
    }    
    
.g-county{
    margin-top: 2%;
    margin-left:8%;
    margin-bottom: 3%
}

.counties {
  fill: #d3d3d3;
}

.counties :hover {
  opacity: 0.8;
}
 
    
    
.county-boundaries {
  fill: none;
  stroke: #fff;

}

    .ruralwrap {
      margin-top:8vw;    
    }    
    
.state-boundaries {
    fill:none;
    stroke:#fff
}
    
    
    /*Overview*/
    
    #Overview{
        margin-top:5vw;
    }
    
    .quiz{
        background-color:#FFBA52;
        border-radius:8px;
        margin-left:35%;
        width:20%;
        text-align: center;
        padding:10px;
        position:relative;

    }
    .quiz p{
        margin-top:0px;
        font-weight:600;
        color:#fff;
    }
    .quiz h3{
        background:none;
        color:#fff;
        text-align: center;
        padding-left:0;
        margin-top:-15px;
        margin-bottom:-5px;
    }
    
    .link{
        position:absolute; 
        width:100%;
        height:100%;
        top:0;
        left: 0;
        z-index: 1
    }
    
    .cover{
        margin-left:35%;
        position:relative;
    }
}

@media (max-width: 799px) {
    
    @font-face {
    font-family: Dinot;
    src: url("dinot.otf") format("opentype");
    }
    
    body * {
        visibility: hidden;
    }
    
    #myVideo{
        visibility: visible;
    }
    
    #screensize{
        visibility: visible;
        font-family:'Dinot';
        padding:2vw;
    }
    
}

