/* Forked from MixedName's style.css: same background, fonts, colours and pills */
body {
	background-image: url("bg.jpg");
	background-image: url("bg.webp");
	background-position: -500px 0px;
	background-size: cover;
	background-repeat: repeat-x;
	background-attachment: fixed;
	background-color: #E6F0EF;
	margin: 0;
}
body.index {
	animation-name: scroll;
	animation-duration: 100s;
	animation-iteration-count: infinite;
	animation-timing-function: ease-in-out;
}
@keyframes scroll {
	0% {background-position: -500px 0px;}
	50% {background-position: 0px 0px;}
	100% {background-position: -500px 0px;}
}
.logo {
	text-shadow: 0 1px 2px white;
}
body.index p, body.index h1 {
	text-shadow: 0 0 2px white;
}
/* The paws holding the globe, faint behind the page like MixedName's hands */
#paws {
	position: fixed;
	bottom: 0px;
	right: 4%;
	height: 100%;
	z-index: -1000;
	opacity: .1;
	pointer-events: none;
}
body.index #paws {
	opacity: .25;
}
#paws img {
	height: 100%;
}
#content {
	font-family: nunito, helvetica, Arial, sans-serif;
	max-width: 680px;
	margin: 0 auto;
	margin-top: 20px;
	padding: 0 16px;
}
h1 {
	font-weight: 800;
	color: hsl(254, 50%, 50%);
	margin-bottom: 6px;
}
h1 .kind {
	font-weight: 200;
	font-size: 60%;
	color: #777;
}
h2 {
	color: #333;
	margin-top: 44px;
}
p, li {
	color: #333;
	line-height: 1.45;
}
a {
	color: black;
	text-decoration: none;
}
#content p a, #content li a, .stats_table a, .link_list a, .more_link a, .source a, .breadcrumbs a, .lead a {
	color: navy;
	text-decoration: underline;
	text-decoration-color: rgba(0,0,128,.3);
}
.lead {
	font-size: 115%;
}
.logo a {
	text-decoration: none;
}
.branda, .brandb {
	font-size: 150%;
	font-weight: 800;
}
.branda {
	color: hsl(296, 49%, 76%);
}
.brandb {
	color: hsl(210, 59%, 68%);
}
.logo .paw {
	font-size: 130%;
	margin-right: 4px;
}
.breadcrumbs {
	font-size: 85%;
	color: #777;
	margin-top: 4px;
}

/* Name pills, as on MixedName */
.name {
	padding: 8px 16px;
	border-radius: 5px;
	display: inline-block;
	margin: 6px;
	box-shadow: 0 0 10px white, inset 0 0 2px rgba(0,0,0,0.1);
	text-shadow: 0px 0px 8px #fff;
	font-weight: 400;
	color: black;
}
.name:hover {
	box-shadow: 0 0 10px white, inset 0 0 2px rgba(0,0,0,0.3);
}
.name.masculine, .name.M {
	background: hsl(210, 59%, 80%);
}
.name.feminine, .name.F {
	background: hsl(296, 49%, 85%);
}
.name.both, .name.U {
	background: hsl(253, 54%, 84%);
}
.name .count {
	color: #666;
	font-size: 75%;
	margin-left: 4px;
}
.pills {
	margin: 10px -6px;
}

/* Search box */
.search {
	margin: 20px 0;
}
.search input {
	padding: 10px 12px;
	font-size: 110%;
	border: solid 1px #bbb;
	border-radius: 6px;
	width: 220px;
	max-width: 60%;
	font-family: inherit;
}
.search button, .button {
	display: inline-block;
	padding: 10px 20px;
	background-color: #409D69;
	border: solid 1px #388e5e;
	border-radius: 6px;
	color: white;
	font-weight: 400;
	font-size: 100%;
	font-family: inherit;
	cursor: pointer;
	text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
}
.search .notfound {
	color: #a33;
	display: none;
	margin-top: 6px;
}

/* Tables and charts (MixedName's stats styles) */
.stats_table {
	width: 100%;
	border-collapse: collapse;
	font-size: 92%;
	background: rgba(255,255,255,.35);
}
.stats_table th, .stats_table td {
	text-align: left;
	padding: 5px 6px;
	border-bottom: 1px solid #ddd;
	vertical-align: top;
}
.stats_table td.num, .stats_table th.num {
	text-align: right;
	white-space: nowrap;
}
.stats_table .muted, .muted {
	color: #777;
	font-size: 85%;
}
.stats_source {
	font-size: 80%;
	color: #777;
}
.year_chart {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 100px;
	margin: 10px 0 28px;
}
.year_bar {
	flex: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
}
.year_bar .bar {
	border-radius: 3px 3px 0 0;
	min-height: 1px;
	background: hsl(253, 54%, 72%);
}
.year_bar .bar.F {
	background: hsl(296, 49%, 70%);
}
.year_bar .bar.M {
	background: hsl(210, 60%, 65%);
}
.year_bar span {
	position: absolute;
	bottom: -18px;
	left: 0;
	font-size: 70%;
	color: #777;
}
.chart_title {
	font-weight: bold;
	margin-top: 18px;
}
.split_bar {
	display: flex;
	height: 22px;
	border-radius: 5px;
	overflow: hidden;
	margin: 8px 0;
	font-size: 80%;
	line-height: 22px;
	color: #333;
	box-shadow: inset 0 0 2px rgba(0,0,0,0.15);
}
.split_bar .F {
	background: hsl(296, 49%, 82%);
	padding-left: 6px;
}
.split_bar .M {
	background: hsl(210, 59%, 78%);
	text-align: right;
	padding-right: 6px;
}
.hbar_list {
	list-style: none;
	padding: 0;
}
.hbar_list li {
	position: relative;
	padding: 3px 6px;
	margin: 3px 0;
}
.hbar_list .hbar {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	background: hsla(253, 54%, 79%, .55);
	border-radius: 3px;
	z-index: -1;
}
.hbar_list .val {
	float: right;
	color: #666;
	font-size: 85%;
}
.top_lists {
	display: flex;
	flex-wrap: wrap;
	gap: 0 40px;
}
.top_list {
	min-width: 180px;
}
.top_list_title {
	font-weight: bold;
	margin-top: 16px;
}
.top_list ol {
	padding-left: 28px;
	margin-top: 4px;
}
.top_list .count {
	color: #777;
	font-size: 85%;
}
.columns {
	columns: 3 160px;
	padding-left: 0;
	list-style: none;
}
.columns li {
	break-inside: avoid;
}
.letters {
	font-size: 120%;
	line-height: 2;
}
.letters a {
	display: inline-block;
	min-width: 1.6em;
	text-align: center;
	color: navy;
}
.famous {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.famous .who {
	font-weight: bold;
}
.babyname {
	background: rgba(255,255,255,.5);
	border-radius: 10px;
	padding: 4px 16px 10px;
	margin-top: 44px;
	box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.babyname h2 {
	margin-top: 12px;
}
.source {
	margin-bottom: 14px;
}
.source .meta {
	font-size: 85%;
	color: #555;
}
footer {
	margin: 60px auto 30px;
	text-align: center;
	font-family: nunito, helvetica, Arial, sans-serif;
	font-size: 85%;
	color: #777;
	max-width: 680px;
	padding: 0 16px;
}
footer a {
	color: #555;
	text-decoration: underline;
}
@media (max-width: 560px) {
	.stats_table .hide_narrow {
		display: none;
	}
	#paws {
		right: -20%;
	}
}

/* latin-ext */
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200;
  src: url(https://fonts.gstatic.com/s/nunito/v16/XRXQ3I6Li01BKofIMN5MZ9vEUT8tDntiXTI.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}
/* latin */
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200;
  src: url(https://fonts.gstatic.com/s/nunito/v16/XRXQ3I6Li01BKofIMN5MZ9vKUT8tDnti.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 800;
  src: url(https://fonts.gstatic.com/s/nunito/v16/XRXQ3I6Li01BKofIMN4kYNvEUT8tDntiXTI.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}
/* latin */
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 800;
  src: url(https://fonts.gstatic.com/s/nunito/v16/XRXQ3I6Li01BKofIMN4kYNvKUT8tDnti.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200;
  src: url(https://fonts.gstatic.com/s/nunito/v16/XRXW3I6Li01BKofA-seUb-vIWzgPDEtj.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}
/* latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200;
  src: url(https://fonts.gstatic.com/s/nunito/v16/XRXW3I6Li01BKofA-seUYevIWzgPDA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/nunito/v16/XRXV3I6Li01BKofIO-aBTMnFcQIG.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}
/* latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/nunito/v16/XRXV3I6Li01BKofINeaBTMnFcQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  src: url(https://fonts.gstatic.com/s/nunito/v16/XRXW3I6Li01BKofAksCUb-vIWzgPDEtj.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}
/* latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  src: url(https://fonts.gstatic.com/s/nunito/v16/XRXW3I6Li01BKofAksCUYevIWzgPDA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
.stats_table th.sortable {
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}
.stats_table th.sortable:hover {
	color: hsl(254, 50%, 50%);
}
.stats_table th.sortable::after {
	content: " ↕";
	color: #bbb;
	font-weight: normal;
	font-size: 80%;
}
.stats_table th.asc::after {
	content: " ▲";
	color: hsl(254, 50%, 50%);
}
.stats_table th.desc::after {
	content: " ▼";
	color: hsl(254, 50%, 50%);
}
.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 16px;
}
.animal_switch a {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 16px;
	color: #444;
	font-size: 95%;
	background: rgba(255,255,255,.45);
	margin-left: 4px;
}
.animal_switch a.current {
	background: hsl(253, 54%, 84%);
	color: #222;
	font-weight: bold;
}
.search .button {
	margin: 4px 4px 4px 0;
}
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	margin: 24px 0;
}
.card {
	display: block;
	background: rgba(255,255,255,.6);
	border-radius: 14px;
	padding: 6px 18px 16px;
	box-shadow: 0 1px 4px rgba(0,0,0,.1);
	color: #333;
}
.card:hover {
	box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.card h2 {
	margin-top: 12px;
	color: hsl(254, 50%, 50%);
}
.card .emoji {
	font-size: 150%;
}
.card .name {
	margin: 4px;
	padding: 5px 10px;
	font-size: 92%;
}
.card .go {
	display: inline-block;
	margin-top: 10px;
	color: navy;
	text-decoration: underline;
}
.also {
	background: rgba(255,255,255,.55);
	border-left: 4px solid hsl(253, 54%, 79%);
	padding: 8px 14px;
	border-radius: 4px;
}
.card h2 a, .card > a:first-child {
	color: inherit;
}
.roll_row {
	text-align: left;
	margin-top: 16px;
}
.roll_button {
	font-family: inherit;
	font-size: 100%;
	padding: 9px 20px;
	border-radius: 22px;
	border: none;
	background: hsl(254, 50%, 55%);
	color: white;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(80, 60, 160, .35);
	transition: transform .15s, box-shadow .15s;
}
.roll_button:hover {
	transform: translateY(-1px) rotate(-1deg);
	box-shadow: 0 4px 12px rgba(80, 60, 160, .45);
}
#roll_overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(35, 25, 75, .72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s, visibility .35s;
	font-family: nunito, helvetica, Arial, sans-serif;
	color: white;
	text-align: center;
	padding: 0 16px;
	cursor: pointer;
}
#roll_overlay.show {
	opacity: 1;
	visibility: visible;
}
.roll_label {
	font-size: 22px;
	font-weight: 200;
	opacity: .85;
	margin-bottom: 10px;
}
.roll_name {
	font-size: clamp(48px, 12vw, 110px);
	font-weight: 800;
	line-height: 1.1;
	min-height: 1.1em;
	text-shadow: 0 0 30px rgba(255, 255, 255, .35), 0 4px 18px rgba(0, 0, 0, .35);
	word-break: break-word;
}
.roll_name.tick {
	animation: roll_tick .12s ease-out;
}
@keyframes roll_tick {
	from { transform: translateY(-12px); opacity: .4; }
	to { transform: none; opacity: 1; }
}
/* Landing on the final name: grow to 120% with a cubic ease-in */
.roll_name {
	transition: transform .7s cubic-bezier(.32, 0, .67, 0), text-shadow .7s;
}
#roll_overlay.settled .roll_name {
	animation: none;
	transform: scale(1.2);
	text-shadow: 0 0 40px rgba(255, 230, 140, .8), 0 4px 18px rgba(0, 0, 0, .35);
}
.roll_confetti {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
