@import url("https://use.typekit.net/udn1rrh.css");
body {
  margin: 0;
  padding: 16px;
  font-family: 'Open Sans', sans-serif;
}

ul.pills {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: inline;
  text-transform: uppercase;
}

ul.pills * {
  box-sizing: unset !important;
}

ul.pills li.pill {
  display: inline;
  margin: 0;
  padding: 0;
}

ul.pills li.pill a {
  padding: 16px;
  display: inline-block;
  color: #fff;
  background: #27ABE3;
  border-radius: 5px;
  text-decoration: none;
  letter-spacing: 0.05em;
}

ul.pills li.pill a.active {
  background: #1C1C21;
}

ul.pills li.pill.pill-title {
  display: inline-block;
  padding: 16px;
}

header .header-nav {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
}

footer {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
}

.year-selector {
  -ms-flex-positive: 1;
  flex-grow: 1;
  margin-right: 16px;
}

.year-selector ul.pills {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: row;
  flex-direction: row;
  font-weight: 600;
}

.year-selector ul.pills li {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}

.year-selector ul.pills li:first-child,
.year-selector ul.pills li:last-child {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.year-selector ul.pills li:first-child a,
.year-selector ul.pills li:last-child a {
  background: #1C1C21;
  border-radius: 7px 0 0 7px;
  height: 17px;
  display: block;
  width: 18px;
  margin: 0;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.year-selector ul.pills li:first-child a:after,
.year-selector ul.pills li:last-child a:after {
  content: url(https://images.musicmagpie.co.uk/images/campaignpages/babynames/images/arrow.svg);
  position: absolute;
  width: 9px;
  height: 16px;
  top: 0;
  margin: auto;
  bottom: 0;
  left: 34px;
  right: 0;
  transform: rotate(180deg);
}

.year-selector ul.pills li:last-child a {
  border-radius: 0 7px 7px 0;
}

.year-selector ul.pills li:last-child a:after {
  right: 34px;
  left: 0;
  transform: none;
}

.year-selector ul.pills li:not(.pill) {
  border-top: 1px solid #DAEFFA;
  border-bottom: 1px solid #DAEFFA;
  background: #fff;
}

.year-selector ul.pills li:not(.pill) a {
  padding: 15px;
  text-decoration: none;
  text-transform: uppercase;
  display: block;
  text-align: center;
  margin: 0;
  border-right: 1px solid #DAEFFA;
  color: #1C1C21;
}

.year-selector ul.pills li:not(.pill) a:hover {
  background: #DAEFFA;
  border: 1px solid #DAEFFA;
  position: relative;
  margin: -1px 0 -1px -1px;
}

.year-selector ul.pills li:not(.pill) a.active {
  background: #27ABE3;
  border: 1px solid #27ABE3;
  position: relative;
  margin: -1px 0 -1px -1px;
  color: #fff;
}

.year-selector ul.pills li:not(.pill) a.active:after {
  content: '';
  position: absolute;
  top: -25px;
  left: 50%;
  margin-left: -13px;
  height: 0;
  width: 0;
  border: 12px solid #27ABE3;
  border-top: 12px solid transparent;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
}

.gender-selector ul li a.gender-male {
  border-radius: 7px 0 0 7px;
}

.gender-selector ul li a.gender-female {
  border-radius: 0 7px 7px 0;
}

.category-selector {
  position: absolute;
  z-index: 99;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: auto;
  margin: auto;
  text-align: center;
  font-size: 11px;
}

.category-selector ul.pills {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  padding: 1em;
}

.category-selector ul.pills li.pill {
  border-left: 1px solid rgba(0, 174, 239, 0.1);
}

.category-selector ul.pills li.pill:first-child {
  border-left: none;
}

.category-selector ul.pills li.pill a {
  cursor: text;
  background: transparent;
  padding: 0.25em 1em;
  font-weight: 600;
}

.category-selector ul.pills li.pill a.category-film {
  color: #146F8C;
}

.category-selector ul.pills li.pill a.category-tv {
  color: #207F77;
}

.category-selector ul.pills li.pill a.category-music {
  color: #28255A;
}

.category-selector ul.pills li.pill a.category-celebrity {
  color: #468E34;
}

.category-selector ul.pills li.pill a.category-sport {
  color: #88AD27;
}

.category-selector ul.pills li.pill a.category-royalty {
  color: #76226E;
}

.category-selector ul.pills li.pill a.category-art {
  color: #B56F15;
}

.category-selector ul.pills li.pill a.category-author {
  color: #AF3D17;
}

.category-selector ul.pills li.pill a.category-youtube {
  color: #911913;
}

.category-selector ul.pills li.pill a:before {
  position: relative;
  content: '';
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1.5px solid #fff;
  border-radius: 100%;
  background: #fff;
  margin-right: 0.5em;
  vertical-align: text-top;
  top: 2px;
}

.category-selector ul.pills li.pill a.active {
  background: transparent;
}

.category-selector ul.pills li.pill a.active.category-film:before {
  background: #27ABE3;
}

.category-selector ul.pills li.pill a.active.category-tv:before {
  background: #5EBFBD;
}

.category-selector ul.pills li.pill a.active.category-music:before {
  background: #4E368C;
}

.category-selector ul.pills li.pill a.active.category-celebrity:before {
  background: #80BD5A;
}

.category-selector ul.pills li.pill a.active.category-sport:before {
  background: #B2CC50;
}

.category-selector ul.pills li.pill a.active.category-royalty:before {
  background: #992985;
}

.category-selector ul.pills li.pill a.active.category-art:before {
  background: #DC9F07;
}

.category-selector ul.pills li.pill a.active.category-author:before {
  background: #D45D1E;
}

.category-selector ul.pills li.pill a.active.category-youtube:before {
  background: #C71A18;
}

.category-selector ul.pills li.pill a.active.category-film:before {
  border: 1.5px solid #146F8C;
}

.category-selector ul.pills li.pill a.active.category-tv:before {
  border: 1.5px solid #207F77;
}

.category-selector ul.pills li.pill a.active.category-music:before {
  border: 1.5px solid #28255A;
}

.category-selector ul.pills li.pill a.active.category-celebrity:before {
  border: 1.5px solid #468E34;
}

.category-selector ul.pills li.pill a.active.category-sport:before {
  border: 1.5px solid #88AD27;
}

.category-selector ul.pills li.pill a.active.category-royalty:before {
  border: 1.5px solid #76226E;
}

.category-selector ul.pills li.pill a.active.category-art:before {
  border: 1.5px solid #B56F15;
}

.category-selector ul.pills li.pill a.active.category-author:before {
  border: 1.5px solid #AF3D17;
}

.category-selector ul.pills li.pill a.active.category-youtube:before {
  border: 1.5px solid #911913;
}

.chart {
  position: relative;
  width: 900px;
  margin: 0 auto;
}

.chart--container {
  position: relative;
  background: linear-gradient(#D6EEFF, #FFFFFF);
  padding: 16px;
  text-align: center;
  min-width: 900px;
  font-size: 12px;
}

.chart--container.oops {
  background: url(https://images.musicmagpie.co.uk/images/campaignpages/babynames/images/oops-overlay.svg) 50% 50% no-repeat/contain;
  min-width: 0;
  height: 400px;
}

.chart--container.oops * {
  display: none;
}

.chart g {
  transition: opacity 0.1s linear;
}

.chart circle {
  fill: transparent;
  stroke-width: 5;
  transition: width 2s;
  position: relative;
  transition: all 0.1s linear;
}

.chart text {
  fill: #fff;
  font: 10px "vista-slab", serif;
  font-weight: 300;
  text-anchor: middle;
}

.chart .category-film > circle {
  fill: #ffffff;
  stroke: #ffffff;
}

.chart .category-tv > circle {
  fill: #ffffff;
  stroke: #ffffff;
}

.chart .category-music > circle {
  fill: #ffffff;
  stroke: #ffffff;
}

.chart .category-celebrity > circle {
  fill: #ffffff;
  stroke: #ffffff;
}

.chart .category-sport > circle {
  fill: #ffffff;
  stroke: #ffffff;
}

.chart .category-royalty > circle {
  fill: #ffffff;
  stroke: #ffffff;
}

.chart .category-art > circle {
  fill: #ffffff;
  stroke: #ffffff;
}

.chart .category-author > circle {
  fill: #ffffff;
  stroke: #ffffff;
}

.chart .category-youtube > circle {
  fill: #ffffff;
  stroke: #ffffff;
}

.chart .category-film.gender-male > circle {
  fill: #146F8C;
  stroke: #146F8C;
}

.chart .category-tv.gender-male > circle {
  fill: #207F77;
  stroke: #207F77;
}

.chart .category-music.gender-male > circle {
  fill: #28255A;
  stroke: #28255A;
}

.chart .category-celebrity.gender-male > circle {
  fill: #468E34;
  stroke: #468E34;
}

.chart .category-sport.gender-male > circle {
  fill: #88AD27;
  stroke: #88AD27;
}

.chart .category-royalty.gender-male > circle {
  fill: #76226E;
  stroke: #76226E;
}

.chart .category-art.gender-male > circle {
  fill: #B56F15;
  stroke: #B56F15;
}

.chart .category-author.gender-male > circle {
  fill: #AF3D17;
  stroke: #AF3D17;
}

.chart .category-youtube.gender-male > circle {
  fill: #911913;
  stroke: #911913;
}

.chart .category-film.gender-female > circle {
  fill: #27ABE3;
  stroke: #27ABE3;
}

.chart .category-tv.gender-female > circle {
  fill: #5EBFBD;
  stroke: #5EBFBD;
}

.chart .category-music.gender-female > circle {
  fill: #4E368C;
  stroke: #4E368C;
}

.chart .category-celebrity.gender-female > circle {
  fill: #80BD5A;
  stroke: #80BD5A;
}

.chart .category-sport.gender-female > circle {
  fill: #B2CC50;
  stroke: #B2CC50;
}

.chart .category-royalty.gender-female > circle {
  fill: #992985;
  stroke: #992985;
}

.chart .category-art.gender-female > circle {
  fill: #DC9F07;
  stroke: #DC9F07;
}

.chart .category-author.gender-female > circle {
  fill: #D45D1E;
  stroke: #D45D1E;
}

.chart .category-youtube.gender-female > circle {
  fill: #C71A18;
  stroke: #C71A18;
}

.chart-tooltip {
  width: 300px;
  padding: 16px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.1);
  color: #1C1C21;
  z-index: 9999;
  text-align: left;
  background-size: 100% 100%;
  background-position: 50% 50%;
  font-size: 11px;
  transition: opacity 0.3s ease;
}

.chart-tooltip .thumb {
  position: relative;
  border-radius: 100%;
  float: left;
  margin-bottom: 14px;
  cursor: pointer;
}

.chart-tooltip h2.details-rank {
  font-family: "OpenSans", sans-serif;
  text-align: right;
  margin: 0;
  font-size: 44px;
  line-height: 52px;
  font-weight: 700;
  margin-top: -12px;
  margin-bottom: -12px;
}

.chart-tooltip h2.details-rank span.hash {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: url(https://images.musicmagpie.co.uk/images/campaignpages/babynames/images/hash.svg) 0 0 no-repeat;
  background-size: contain;
  vertical-align: baseline;
  text-indent: 100%;
  overflow: hidden;
}

.chart-tooltip h2.details-rank span.rank-up {
  display: inline-block;
  position: relative;
  top: -21px;
  text-align: center;
  margin-left: 0px;
  font-size: 14px;
  color: #7ACC58;
  min-width: 14px;
  background: url(https://images.musicmagpie.co.uk/images/campaignpages/babynames/images/up-arrows.svg) 50% 100% no-repeat;
  background-size: 13px 15px;
}

.chart-tooltip h2.details-rank span.rank-same {
  display: inline-block;
  position: relative;
  top: -21px;
  text-align: center;
  margin-left: 0px;
  font-size: 14px;
  min-width: 14px;
  color: #CDCCCC;
  background: url(https://images.musicmagpie.co.uk/images/campaignpages/babynames/images/same.svg) 50% 95% no-repeat;
  background-size: 12px 15px;
}

.chart-tooltip h2.details-rank span.rank-down {
  display: inline-block;
  position: relative;
  top: -21px;
  text-align: center;
  margin-left: 0px;
  font-size: 14px;
  min-width: 14px;
  color: #C61717;
  background: url(https://images.musicmagpie.co.uk/images/campaignpages/babynames/images/down-arrows.svg) 50% 100% no-repeat;
  background-size: 13px 15px;
}

.chart-tooltip h3.details-name {
  font-family: "vista-slab", serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  margin: 0;
}

.chart-tooltip hr {
  margin: 1em 0;
  clear: both;
  border: none;
  height: 1px;
  background: #CDCCCC;
}

.chart-tooltip p {
  font-size: 14px;
  margin: 12px 0;
}
