.FIRE, .FRIDA, .ISIF {
	opacity: 0.9;
	fill: #fff;
	stroke-width: 4;	
}

.AFRINIC, .FIREapp, .FIREfill, .AFRINICrir {
	fill: #a8531e;
}

.FIRE {
	stroke: #a8531e;
}

.LACNIC, .FRIDAapp, .FRIDAfill, .LACNICrir {
	fill: #c89019;
}

.FRIDA {
	stroke: #c89019;
}

.APNIC, .ISIFapp, .ISIFfill, .APNICrir {
	fill: #b73030;
}

.ISIF {
	stroke: #b73030;
}

.RIPE {
	fill: #f3efe4;
}

.ARIN {
	fill: #f3efe4;
}

.RIPErir {
  fill: #305366;
}

.ARINrir {
  fill: #397457;
}

.AFRINIC, .LACNIC, .APNIC, .FIRE, .FRIDA, .ISIF, .AFRINICrir, .LACNICrir, .APNICrir, .FIRErir, .FRIDArir, .ISIFrir, .ARINrir, .RIPErir {
	opacity: 0.9;
}

.AFRINIC:hover, .LACNIC:hover, .APNIC:hover, .FIRE:hover, .FRIDA:hover, .ISIF:hover, .AFRINICrir:hover, .LACNICrir:hover, .APNICrir:hover, .ARINrir:hover, .RIPErir:hover {
	opacity: 1;
}

.border {
  shape-rendering: optimizeSpeed;
}

.selector, .selectorAp {
  float: left;
}

#regionSelector, #regionSelectorAp {
  margin-left: 6px;
  display: none;
}

.d3-tip {
  position: absolute;
  line-height: 1;
  font: 1em Lato, sans-serif;
  font-weight: 400;
  padding: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  pointer-events: none;
}

/* Creates a small triangle extender for the tooltip */
.d3-tip:after {
  box-sizing: border-box;
  display: inline;
  font-size: 10px;
  width: 100%;
  line-height: 1;
  color: rgba(0, 0, 0, 0.8);
}

/* Style northeast tooltips differently */
.d3-tip.ne:after {
  margin: -1px 0 0 -1px;
  top: 100%;
  left: 10px;
  content: "\25BC";
  position: absolute;
  text-align: left;
}

/* Style northwest tooltips differently */
.d3-tip.nw:after {
  margin: -1px -1px 0 0;
  top: 100%;
  right: 10px;
  content: "\25BC";
  position: absolute;
  text-align: right;
}

/* Style north tooltips differently */
.d3-tip.n:after {
  margin: -1px -1px 0 0;
  top: 100%;
  right: 0%;
  content: "\25BC";
  position: absolute;
  text-align: center;
}

.d3-tip h1, #recipScores h1, #recipScoresRes h1 {
  font: 1.1em 'Gentium Basic', serif;
  color: #fff;
  text-transform: uppercase;
  text-align: left;
  margin: 0;
}

.d3-tip p, #recipScores p, #recipScoresRes p {
  font: 0.8em 'Gentium Basic', serif;
  font-weight: normal;
  color: #fff;
  text-align: left;
  margin: 0.2em 0 0 0;
}

#tipHead {
  width: 100%;
  padding-bottom: 4px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.FIREhead {
  border-bottom: solid 1px #a8531e;
}

.FRIDAhead {
  border-bottom: solid 1px #f2b22a;
}

.ISIFhead {
  border-bottom: solid 1px #c4232b;
}

#tipRec {
  font-size: 1.2em;
}

#awardDetails {
  width: 280px;
}

#grantDetails {
  width: 180px;
  float: left;
}

#tipScores {
  width: 160px;
  float: right;
  padding: 8px;
  margin-left: 8px;
}

.FIREscores {
  background: rgba(168,83,30,0.7);  
}

.FRIDAscores {
  background: rgba(242,178,42,0.7);  
}

.ISIFscores {
  background: rgba(196,35,43,0.7);  
}

#tipScores h4, #recipScores h4, #recipScoresRes h4 {
  font: 1em Lato, sans-serif;
  border-bottom: solid 1px #222222;
  margin-top: 0;
  margin-bottom: 6px;
  padding-bottom: 4px;
  text-transform: uppercase;
  color: #fff;
}

#tipScores h3, #recipScores h3, #recipScoresRes h3 {
  margin-top: 0;
  font-size: 1.3em;
  color: #fff;
}

#tipPropScore, #tipRepScore {
  width: 45%;
  padding: 0 2%;
  text-align: center;
  float: left;
  font-size: 0.9em;
}

#tipPropScore {
  border-right: solid 1px #222222;  
}

#tipPropScore p, #tipRepScore p {
  text-align: center;
  font-size: 0.8em;
}

#tipPropScore h5, #tipRepScore h5 {
  color: #fff;
  font-size: 0.9em;
}

#tipOverallScore {
  width: 100%;
  text-align: center;
  font-size: 1.2em;
  float: left;
}

#tipOverallScore p {
  text-align: center;
  font-size: 0.9em;
}

#org {
  padding-top: 6px;
  margin-top: 6px;
  border-top: solid 1px #c0cbd1;
  font-size: 1em;
}

/* Application Process map */

.apps {
  font: 0.7em Lato, sans-serif;
  fill: #fff;
  text-anchor: middle;
  cursor: default;
}

.FIREapp, .FRIDAapp, .ISIFapp {
  opacity: 0.9;
  stroke: #fff;
  stroke-width: 2;  
}

.FIREapp:hover, .FRIDAapp:hover, .ISIFapp:hover {
  opacity: 1;  
}

#appDetails, #appDetails p {
  text-align: center;
}

.statsColumn {
  width: 30.88%;
  margin: 0 0 2em 1.84%;
  float: left;
}

.FIREgrantTot, .FRIDAgrantTot, .ISIFgrantTot, .FIREgrantEc, .FRIDAgrantEc, .ISIFgrantEc, .FIREawardTot, .FRIDAawardTot, .ISIFawardTot, .FIREawardEc, .FRIDAawardEc, .ISIFawardEc {
  font: 1.2em Lato, sans-serif;
  font-weight: 700;
  text-anchor: middle;
  cursor: default;
}

.FIREgrantTot, .FRIDAgrantTot, .ISIFgrantTot, .FIREawardTot, .FRIDAawardTot, .ISIFawardTot {
  fill: #fff;
}

.statsHead {
  font: 1em Lato, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}

.structureHead {
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1em;
}

.structure {
  margin-top: 0;
  line-height: 1em;
}

.statsPlain h6 {
  margin-top: 0;
}

.statsPlain {
  display: none;
}

.femaleMemFIRE, .natMemFIRE, .acMemFIRE, .femaleMemFRIDA, .natMemFRIDA, .acMemFRIDA, .femaleMemISIF, .natMemISIF, .acMemISIF {
  padding-left: 60px;
}

.femaleMemFIRE {
  background: url(../img/FemaleIconFIRE.png) no-repeat 10px 46px ;
}

.femaleMemFRIDA {
  background: url(../img/FemaleIconFRIDA.png) no-repeat 10px 46px ;
}

.femaleMemISIF {
  background: url(../img/FemaleIconISIF.png) no-repeat 10px 46px ;
}

.natMemFIRE {
  background: url(../img/FlagIconFIRE.png) no-repeat 5px top ;
}

.natMemFRIDA {
  background: url(../img/FlagIconFRIDA.png) no-repeat 5px top ;
}

.natMemISIF {
  background: url(../img/FlagIconISIF.png) no-repeat 5px top ;
}

.acMemFIRE {
  background: url(../img/AcademicIconFIRE.png) no-repeat left top ;
}

.acMemFRIDA {
  background: url(../img/AcademicIconFRIDA.png) no-repeat left top ;
}

.acMemISIF {
  background: url(../img/AcademicIconISIF.png) no-repeat left top ;
}

.selYear {
  display: block;
}

.appContainer {
  border-top: solid 1px #ccc;
}

/*.orgFIREy2012, .orgFIREy2013, .orgFIREy2014, .orgFIREy2015, .orgFRIDAy2012, .orgFRIDAy2013, .orgFRIDAy2014, .orgFRIDAy2015, .orgISIFy2012, .orgISIFy2013, .orgISIFy2014, .orgISIFy2015 {
  width: 291px;
  height: 845px;
}

.orgFIREy2012 {
  background: url(../img/organisational-FIRE.png) no-repeat 0 20px ;
}

.orgFIREy2013 {
  background: url(../img/organisational-FIRE.png) no-repeat -291px 20px ;
}

.orgFIREy2014 {
  background: url(../img/organisational-FIRE.png) no-repeat -582px 20px ;
}

.orgFIREy2015 {
  background: url(../img/organisational-FIRE.png) no-repeat -873px 20px ;
}

.orgFRIDAy2012 {
  background: url(../img/organisational-FRIDA.png) no-repeat 0 20px ;
}

.orgFRIDAy2013 {
  background: url(../img/organisational-FRIDA.png) no-repeat -291px 20px ;
}

.orgFRIDAy2014 {
  background: url(../img/organisational-FRIDA.png) no-repeat -582px 20px ;
}

.orgFRIDAy2015 {
  background: url(../img/organisational-FRIDA.png) no-repeat -873px 20px ;
}

.orgISIFy2012 {
  background: url(../img/organisational-ISIF.png) no-repeat 0 20px ;
}

.orgISIFy2013 {
  background: url(../img/organisational-ISIF.png) no-repeat -291px 20px ;
}

.orgISIFy2014 {
  background: url(../img/organisational-ISIF.png) no-repeat -582px 20px ;
}

.orgISIFy2015 {
  background: url(../img/organisational-ISIF.png) no-repeat -873px 20px ;
}*/

.orgTypes img {
  width: 100%;
  height: auto;
}

.prize {
  font-size: 2.2em;
}

.prizeDesc {
  margin-top: 2em;
  margin-bottom: 0;
}

.prizeDescAfter {
  margin-top: 0;
  margin-bottom: 2em;
}

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

    .statsCopy {
      font-size: 84%;
    }

    h6 {
      font-size: 2em;
    }

}

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


}


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

    #regionSelector, #regionSelectorAp {
      display: block;
    }
}

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

    .statsColumn {
      width: 92%;
      margin-left: 4%;
      margin-right: 4%;
    }

    .orgTypes {
      width: 291px;
    }

    .statsCopy {
      font-size: 100%;
    }

    h6 {
      font-size: 3em;
    }


}

