/* 
*	THIS IS WHERE YOUR CUSTOM CSS FOR EACH PROJECT WILL BE WRITTEN.
*	THE CONTENTS OF THIS FILE WILL BE MERGED WITH MAIN.CSS & MINIMIZED DURING PUBLICATION
*	
*	REMEMBER Styles should be scoped by assigning an ID to the article. e.g.:
*	#my-article-id .some-class {
*   	...
*	}
*
*/
section.viz {
    max-width: 900px;
    margin: 0 auto;
    color: #444;
    position: relative;
}
#chart {
/*    height: 500px;
*/    width: 100%;
/*    min-width: 500px;
*/    font-family: 'GoodWeb-Book';
}
#chart text {
   fill: #444;
   font-size: .9em;
}

span#icon {
    width:8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 3px;
    padding: 0;
}
.ap-tooltip .name {
    display: inline;
}
.ap-tooltip .Democratic {
 background-color: #5186B4;
}
.ap-tooltip .Republican {
 background-color: #DA968E;
}
#chart .x.axis .tick line, .xtime.axis .tick line  {
    display: none;
}
.select2-container {
    margin-left: 5px;
}
.axis path, .axis line {
    fill: none;
    stroke: #ccc;
    stroke-width: 0.95px;}

.bubbles .marker {
    fill-opacity: .7;
    cursor: pointer;
    stroke: #eee;
    stroke-width:.25px;
}
.axis path {
    stroke: none;
}
.ap-interactive .ap-tooltip {
  line-height: 1;
  font: 14px 'GoodWeb-Book';
  padding: 12px;
  border-radius: 2px;

}
/* Style northward tooltips differently */
.d3-tip.n:after {
  margin: -1px 0 0 0;
  top: 100%;
  left: 0;
}
.d3-tip div.head {
  color:#999;
  margin-bottom: 5px;
  font-size: 1.1em;
  font-family: 'GoodWeb-Bold';
}
.d3-tip div.head span {
  font-size: 1.1em;
  color:#444;
}
section #judge-select input {
    padding: 9px 10px 9px;
    border: 1px solid #d5d5d5;
    border-radius: 3px;
    background: white;
    color: #000;
    box-shadow: none;
    font-family: 'GoodWeb-Bold';
    line-height: 15px;
    width: 160px;
}


section #judge-select .tt-menu {
    text-align: left;
    margin-top: 10px;
    padding:5px 10px;
    background-color:rgba(255,255,255,0.9);
    border:1px solid #ccc;
    border-radius: 3px;
    width:280px;
    font-family: 'GoodWeb-Book';
}
section #judge-select .tt-suggestion.tt-selectable {
    padding: 3px 0;
    font-size: 0.85em;
    color:#999;
    font-weight: 400;
    letter-spacing: 0.04em;
    cursor: pointer;
}
section #judge-select .tt-suggestion.tt-selectable.tt-cursor,
section #judge-select .tt-suggestion.tt-selectable:hover {
    background:rgba(0,0,0,0.1);
}

span.female {
    border-bottom: 3px solid #D1B6E1;
}
span.male {
    border-bottom: 3px solid #519D9E;
}
section .display {
    position: relative;
    pointer-events: none;
    width: 100%;
    height: 50px;
    z-index: 1;
}
#judge-select {
    margin: 2rem auto 1rem auto;
    display: inline-block;
}
.stats-wrap {
        margin-bottom: 2.5rem;
}
.chart-nav-wrap .dropdown-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-family: 'GoodWeb-Book';
    padding: 0 15px 4px 3px;
    font-size: 1em;
    min-width: 111px;
    top: 6px;


}
.chart-nav-wrap .dropdown-wrapper {
    top: 7px;

}

.chart-nav-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
        left: 112px !important;
}
.viz .select-text {
    display: inline;
    position: relative;
    top: 6px;
    font-family: 'GoodWeb-Book';
}
.viz span.selection {
    top: 11px;
    position: relative;
}
.rect {
    fill: #ccc;
    fill-opacity:.15;
}
.viz-navigation {
        margin: 10px auto 0;
    text-align: center;
    max-width: 640px;
}
.viz-navigation .stats {
    display: inline;
    font-family: 'GoodWeb-Book';
    position: relative;
    top: 9px;
    margin-left: 29px;
    position: relative;
}
.inline-text {
        display: inline;
        line-height: 1.5rem;
}
.viz .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 100%;
    border-color: inherit;
    -webkit-transition: background 0.2s, border-color 0.2s;
    transition: background 0.2s, border-color 0.2s;
    width: 100%;
    font-family: 'GoodWeb-Bold';
   font-size: 1.15em;
    text-align: left;
    white-space: nowrap;
    background-color: transparent !important;
    border-bottom: 2px solid #444;
    display: inline-block;
    width: auto;
    padding: 0 15px 0 4px;
    top: 0;
    position: relative;
    cursor: pointer;
    min-width: 131px
}

.ap-interactive .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 11px;
    position: absolute;
    top: 1px;
    left: 137px;
    width: 20px;
}
.viz .select2-container--default .select2-selection--single {
    background-color: #fff;
    border: none;
}
.chart-select {
    width: 300px;
    font: 20px "GoodWeb-Bold", Arial ,sans-serif;
    margin: 0 auto;
    position: relative;
    border: 0;
}
.chart-select, .chart-select div, .chart-select input, .chart-select span {
    box-sizing: border-box;
}
.dropdown-wrapper {
    display: inline;
/*    top: 16px;
*/    position: relative;
    margin-left: 12px;
}
.stats-wrap .dropdown-wrapper {
    margin-left: 0;
}
.dropdown-wrapper .no-search .select2-search {
    display:none
}

.select2-container--open .select2-dropdown--below {
    margin: 0;
    outline: none;
    line-height: 14px;
    padding: 8px 0 12px;
    -webkit-appearance: none;
    /* padding: 12px 15px 15px; */
    border: 1px solid #d5d5d5;
    border-radius: 3px;
    background: white;
    color: #000;
    box-shadow: none;
    font-family: 'GoodWeb-Bold';
    line-height: 24px;
}

.viz .story-nav .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-family: 'GoodWeb-Book';

}
.ap-interactive .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #ccc;
    color: #444;
    font-family: 'GoodWeb-Book';
    margin: 0 auto;
}

.ap-interactive li{
    font-family: 'GoodWeb-Book';
}

.select-control {
    border: 0;
    border-radius: 0px;
    background: white;
    border-bottom: 2px solid #231f20;
    color: #333;
    cursor: default;
    display: table;
    border-spacing: 0;
    border-collapse: separate;
    height: 36px;
    outline: none;
    overflow: hidden;
    position: relative;
    width: 100%;
}

 .ap-interactive h1 {
    font-size: 1.95em;
    line-height: 2.5rem;
    max-width: 100%;
    font-size: 2rem;
    font-family: 'GoodWeb-Book';
}

.ap-interactive.apnews .viz-navigation {
    text-align: left;
    margin:0;
}
.fallback img {
    width: 100%;
    display: none;
}
.fallback h2 {
    display: none;
}
.ap-interactive.apnews section.viz {
    margin: 0;
}

@media screen and (max-width: 600px) {
    
    .viz-navigation {
        margin: 10px 0 0;
/*        text-align: left;
*/        width: 100%;
    }
    .ap-interactive {
        padding: 0 .35rem;
    }
    .inline-text {
        display: inline;
        line-height: 1.75rem;
    }
    
}
@media screen and (max-width: 500px) {

/*    #chart {
        display: none;
    }
    .fallback {
        display: block;
    }*/
    .chart-nav-wrap {
        display: none;
    }
    #chart text {
    fill: #444;
    font-size: .8em;
    }

/*    .fallback img {
    display: block;
    }*/
    .ap-interactive h1 {
    font-size: 1.55rem;
    line-height: 2rem;
    max-width: 85%;
    }
}