@font-face {
  font-family: 'Avenir-Medium';
  src: url('../fonts/Avenir-Medium.eot');
  src: url('../fonts/Avenir-Medium.woff2') format('woff2'),
       url('../fonts/Avenir-Medium.woff') format('woff'),
       url('../fonts/Avenir-Medium.ttf') format('truetype'),
       url('../fonts/Avenir-Medium.svg#Avenir-Medium') format('svg'),
       url('../fonts/Avenir-Medium.eot?#iefix') format('embedded-opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
    font-family: 'Avenir-Black';
    src: url('../fonts/subset-Avenir-Black.eot');
    src: url('../fonts/subset-Avenir-Black.eot?#iefix') format('embedded-opentype'),
        url('../fonts/subset-Avenir-Black.woff2') format('woff2'),
        url('../fonts/subset-Avenir-Black.woff') format('woff'),
        url('../fonts/subset-Avenir-Black.ttf') format('truetype'),
        url('../fonts/subset-Avenir-Black.svg#Avenir-Black') format('svg');
    font-weight: 900;
    font-style: normal;
}


body {
  background-color: #fff;
  color: #555;
  font: 1.25em/1.25 'Avenir-Medium', sans-serif;
  margin: 0;
  overflow: hidden;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  box-sizing: border-box;
}

a:visited, a {
  color: #00c;
  transition: .5s color;
  text-decoration: none;
}
a:hover {
  color: #00f;  
}

b {
  font-weight: normal;
  color: #000;
  font-family: 'Avenir-Black';
}
.section {
  padding: 52px 12px 12px 12px;
  max-width: 990px;
  margin: 0 auto;
  height: 100vh;
}
.container {
  max-width: 990px;
  margin: 0 auto;
}
.solid-bg {
  background-color: #fff;
  pointer-events: all;
}
.text-only .text-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  line-height: 1.4;
  transform:translate(-50%,-50%);
}
.text-only .text-box p {
  margin: .7em 0;
}
p { margin: 7px 0; }
li { margin: 1em 0;}

.pietext { font-size: .8em; }

.pieLabel { 
  font-family: 'Avenir-Black';
  color: #000;
  position: absolute;
  width: 100%;
  text-align: center;
}
.relative {
  position: relative;
  width: 100%;
}
#deescalate {
  text-align: right;
  margin-top: 1.5em;
}
.fp-scrollable {
  margin: 0 -12px;
}

#pagenumber {
  position: fixed;
  bottom: 15px;
  right: 12px;
  text-align: right; 
  z-index: 10;
  font-size: 90%;
  opacity: .35;
  height: 12px;
}

/*
#berkeley {
  background-image: url('../img/berkeley.png?1');
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
}
*/

#berkeley .grid .domain  {
  display: none;
}
#berkeley .tick text,
#berkeley .axis text {
  font-size: 1rem;
}
#berkeley .axis .tick { 
  display: none;
}
#berkeley .axis .tick:nth-child(3n) {
  display: block;
  font-family: "Avenir-Medium", sans-serif;
}
#berkeley .grid line {
  stroke: #ccc;
}
#lawdate {
  display: none;
}


#berkeley .axis .tick:nth-of-type(2n) {
    opacity: 0;   
}

@media only screen and (min-width : 576px) {
  #berkeley .axis .tick:nth-of-type(2n) {
    opacity: 1;
  }
}


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

  #lawdate {
    display: block;
    font-family: "Avenir-Medium", sans-serif;
    color: #333;
    font-size: 1rem;
    position: absolute;
    top: 80px;
    text-align: right;
  }

}


/* splash page */


h1,h3 {
  margin: 0px;
  font-size: 1.5em;
  display: inline-block;
  font-family: 'Avenir-Black';
  color:#000;
}

#section1  {
  max-width: 100%;
  background-image: url('../img/photos-bw.jpg');
  background-size: cover;
  background-position: center;
}

#topfloor {
  text-align: center;
  cursor: pointer;
  color: #00f;  
  margin-bottom: 1em;
}

#footer::after,
#section1::after {
 -moz-box-shadow: inset 0 0 10em #000;  
 -webkit-box-shadow: inset 0 0 10em #000;   
 box-shadow: inset 0 0 10em #000;
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 z-index: 1;
 content: "";
}




#overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform:translate(-50%,-50%);
  padding: 6px 12px;
  width: 70%;
  max-width: 650px;
  min-width: 340px;
  box-sizing: border-box;
  line-height: 1.5;
  z-index: 3;
  margin: 0 auto 1em auto;
  background-color: rgba(255,250,245,.75);
  text-shadow: 0px 0px 10px #fff;
}
#overlay p {
  color: #000;
}







#Map {
  max-width: 100%;
  max-height: 100%;
}

#header {
  background-color: #1c3066;
  display: flex;
  font-size: 16px;
  height: 30px;
  left: 0;
  letter-spacing: 1px;
  overflow: hidden;
  position: fixed;
  text-transform: uppercase;
  width: 100%;
  z-index: 10;
}
#header { color: #6e9de9; }
#header a { color: #6e9de9; }
#header a:hover { color: #fff; }

#header .hed {
  flex: 1;
  padding: 4px;
}
#header .site {
  padding-top: 6px;
  text-align: center;
  white-space: nowrap;
}
#header .pull-left,
#header .pull-right {
  font-size: 12px;
  padding-right: 8px;
}
#header .pull-left { float: left; }
#header .pull-right { float: right; }




/* pagination arrows */

.align-bottom {
	position: absolute;
	bottom: 0;
	left: 12px;
	width: calc(100% - 24px);
}

#section1 .align-bottom {
	z-index: 10;
}

.arrows {
	width: 30px;
	height: 40px;
	display: block;
	margin: 0 auto;
}

.arrows path {
	stroke: #000;
	fill: transparent;
	stroke-width: 1px;	
	animation: arrow 4s infinite;
	-webkit-animation: arrow 4s infinite; 
}

@keyframes arrow {
  0% {opacity:0}
  40% {opacity:1}
  80% {opacity:0}
  100% {opacity:0}
}

@-webkit-keyframes arrow {
  0% {opacity:0}
  40% {opacity:1}
  80% {opacity:0}
  100% {opacity:0}
}

.arrows path.a1 {
	animation-delay:-2s;
	-webkit-animation-delay:-2s;
}

.arrows path.a2 {
	animation-delay:-1s;
	-webkit-animation-delay:-1s;
}

#section1 .arrows path {
  stroke: #fff;
  stroke-width: 3px;	
}





/* key */

div.key {
  display: inline-block;
  white-space: nowrap;
  padding-right: 1.75rem;
}
span.victimdot {
  display: inline;
  float: none;
}

.victimdot {
  display: none;
  float: left;
  fill: #ddd;
  height: 10px;
  width: 10px;
}
.dot {
  height: 8px;
  width: 8px;
}


#usmap {
	max-width: 700px;
	margin: 2em auto;
}

#usmap svg {
	width: 100%;
	height: auto;
}





/* colors */

.tooltip.victimdot.orange .dot,
.align-bottom .victimdot.orange .dot { fill: #f90; }
.align-bottom .victimdot.darkorange .dot { fill: #a30; }
.align-bottom .victimdot.red .dot { fill: #400; }

.victimdot.blue .dot,
.align-bottom .victimdot.blue .dot { fill: #39c; }
.align-bottom .victimdot.darkblue .dot { fill: #009; }
.align-bottom .victimdot.gray .dot { fill: #dadada; }
.align-bottom .victimdot.darkgray .dot { fill: #999; }
.align-bottom .victimdot.lightgray .dot { fill: #eee; }

.tooltip.victimdot.lightblue .dot,
.align-bottom .victimdot.lightblue .dot { fill: #9acbff; }

.align-bottom .victimdot.unarmed .dot { fill: #16008a; }
.align-bottom .victimdot.gun .dot { fill: #bd7889; }
.align-bottom .victimdot.knife .dot { fill: #b0c6ff; }
.align-bottom .victimdot.vehicle .dot { fill: #7198ff; }
.align-bottom .victimdot.other .dot { fill: #c9a9f8; }
.align-bottom .victimdot.undetermined .dot { fill: #ddd; }

.align-bottom .victimdot.white .dot { fill: #9acbff; }
.align-bottom .victimdot.black .dot { fill: #ab4646; }
.align-bottom .victimdot.hispanic .dot { fill: #e59800; }
.align-bottom .victimdot.asian .dot { fill: #b5814e; }
.align-bottom .victimdot.nativeamerican .dot { fill: #e16f1e; }
.align-bottom .victimdot.asianpacificislander .dot { fill: #be54cb; }
.align-bottom .victimdot.unknown .dot { fill: #aaa; }

.align-bottom .victimdot.attacking .dot { fill: #fc7172; }
.align-bottom .victimdot.notAttacking .dot { fill: #d1dee8; }

.align-bottom .victimdot.dBlack .dot { fill: #dd6e63; }
.align-bottom .victimdot.dHispanic .dot { fill: #f1a25b; }
.align-bottom .victimdot.dOther .dot { fill: #c1b1d2; }

/* prosecutors */
.align-bottom .victimdot.whitemale .dot { fill: #a8c7e9; }
.align-bottom .victimdot.whitefemale .dot { fill: #0178b9; }
.align-bottom .victimdot.hispanicmale .dot { fill: #f1a25a; }
.align-bottom .victimdot.hispanicfemale .dot { fill: #db8439; }
.align-bottom .victimdot.blackmale .dot { fill: #dc6e63; }
.align-bottom .victimdot.blackfemale .dot { fill: #e03321; }
.align-bottom .victimdot.asianmale .dot { fill: #cb9a92; }
.align-bottom .victimdot.asianfemale .dot { fill: #a37b75; }



.align-bottom .victimdot.mentalillnesswelfarecheck .dot { fill: #316fa5; }
.align-bottom .victimdot.trafficstop .dot { fill: #86a6ce; }
.align-bottom .victimdot.domesticdisturbance .dot { fill: #b1c5e4; }
.align-bottom .victimdot.othernonviolentoffense .dot { fill: #d2dded; }
.align-bottom .victimdot.othercrimesagainstpeople .dot { fill: #f2acaa; }
.align-bottom .victimdot.personwithaweapon .dot { fill: #f1ccdb; }
.align-bottom .victimdot.violentcrime .dot { fill: #ce7c7b; }
.align-bottom .victimdot.noneunknown .dot { fill: #ccc; }



.fewer-people {
  background-color: #39c;
  color: #fff;
  padding: 0 8px;
}





/* grid */

#fullpage {
  background: none;
  position: relative;
  z-index: 1;
}

#grid {
	position: fixed;
	top: 0;
	width: 100% !important;
	height: 100%;
  transition: top .25s;
  z-index: -1;
}

#allVictims {
  position: relative;
	margin: 0 auto;
	top: 0px;
	width: 100%;
	max-width: 990px;
	height: 100%;
	bottom: 24px;
	left: 12px;
	right: 12px;
}

.d3t {
  stroke: #fff;
  stroke-width: 1px;
  fill: #f90;
  cursor: pointer;
}

.selected {
  stroke: #000;
  stroke-width: 2px;
  fill: none;
}



#prosecutors {
  font-size: 1rem;
}



/* big list of cities */

#cities {
  margin-top: 1em;
  font-size: .95em;
}
.cities p span.victimdot  {
  padding-left: 6px;
}

#showmorecities {
  margin: 0 auto;
  display: block;
  font-size: 1em;
  border-radius: 4px;
  background-color: #fff;
  border: 1px solid #09f;
  color: #03c;
  font-family: 'Avenir-Medium';
  margin-top: 1em;
  transition: .5s all;
}
#showmorecities:hover {
  background-color: #09f;
  color: #fff;
}

#morecities {
  display: none;
}

#citiesList {
  height: auto !important;
}
.dept-row {
	clear: both;
	overflow: hidden;
	margin-bottom: 10px;
	padding-bottom: 5px;
}
.dept-name {
	width: 50%;
	float: left;
	text-align: right;
	padding-right: 1em;
  display: inline-block;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-wrap: normal;
  position: relative;
  overflow: hidden;
}
.ellip {
  display: block;
  height: 100%;
  position: relative;
  overflow: hidden;
}






/* Tooltip */

.tultip {
    background-color: #fff;
    margin-left: 20px; 
    z-index: 10;
    position: absolute;
    visibility: hidden;
    -webkit-box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
       -moz-box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
            box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: 1s color;
}
.tultip .close {
  position: absolute;
  right: 3px;
  top: 1px;
  color: #ccc;
  z-index: 1;
}
.tultip:hover .close {
  color: #900;
}


.tooltip {
    position: relative;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #fff;
    color: #000;
    padding: 5px;
    border-radius: 3px;
    top: -5px;
    left: 50px; 
    position: absolute;
    z-index: 1;
}
.tooltip:hover .dot {
  fill: #c00;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
}





/* share on social media */

ul.social_links {
	padding-left: 0;
	display: table;   /* Allow the centering to work */
	margin: 3em auto;
}
ul.social_links li {
  display:inline-block;	
  margin-right: 10px;
  height: 61px;
  width: 61px;
}
ul.social_links li a {
  display: block;
  height: 61px;
  width: 61px;
  text-indent: -999px;
  background: url('../img/social-icons.svg') no-repeat;
  text-decoration: none;
  padding: 0px;
  border: none;
  background-size: 200px 130px; 
}
ul.social_links li a.twitter { background-position: -7px -64px; }
ul.social_links li a.facebook { background-position: -69px -64px; }
ul.social_links li a.email { background-position: -132px -64px; }

ul.social_links li a.twitter:hover { background-position: -7px -4px; }
ul.social_links li a.facebook:hover { background-position: -69px -4px; }
ul.social_links li a.email:hover { background-position: -132px -4px; }




/* resources */

#action {
  background-color: #eee;
  padding: 24px 12px 12px 12px;
}

#recommendations {
  margin-top: 27px;
}
.box {
  border: 1px solid #ddd;
  padding: 12px;
  margin-bottom: 28px;
  background-color: #fff;
}
#campaign-zero-widget {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#scrollstatus {
  position: fixed;
  width: 0px;
  height: 3px;
  top: 30px;
  left: 0;
  background-color: #39c;
  z-index: 10;
  transition: .25s width;
}




/* responsive syles */

.phone-hidden { display: none; }

/* phones and up */ 
@media only screen and (min-width : 480px) {
  body {
    font-size: 1.25em;
    line-height: 1.25;
  }
}

/* small font for mobile */
@media (max-width: 640px) {
   html { font-size:0.8em; }
   h1,h3 { font-size: 1.3em; }
}


/* tablets */
@media only screen and (min-width : 768px) {

  #header { font-size: 18px; }
  #header .site { padding-top: 4px; }
  .phone-hidden { display: inline; }

  .victimdot {
    height: 18px;
    width: 18px;  
  }
  .dot {
    height: 15px;
    width: 15px;
  }

  .text-only .text-box,
  #overlay {
    width: 50%;
  }

  #prosecutors {
    font-size: 1.25rem;
  }

	#recommendations {
	  min-height: 100%;
	  display: flex;
	  flex-wrap: wrap;
	  flex-direction: row;
	  justify-content: space-between;
	}
	#recommendations > div {
	  display: flex; 
	  flex-basis: calc(50% - 12px);  
	  flex-direction: column;
	}

}

/* desktops */
@media only screen and (min-width : 992px) { }

