@font-face {
	font-family: Helvetica;
	font-weight: normal;
	font-style: normal;
	src: local("Helvetica");
}

html {
	background-color: #262626;
	color: #e6e6e6;
	font-family: Helvetica, sans-serif;
	font-size: 18px;
}

body {
	margin: 0;
}

body > * {
	padding-left: 20px;
	padding-right: 20px;
}

audio {
	width: 100%;
	max-width: 300px;
}

nav {
	position: fixed;
	top: 20px;
    right: 20px;
	display: flex;
	height: 21px;
    padding: 10px;
    border: 2px solid #e6e6e6;
    outline: 2px solid #2e2e2e;
    border-radius: 5px;
	background-color: #2e2e2e;
	z-index: 999;
}

nav a {
	font-weight: bold;
	color: #02d3fb;
    text-decoration: none;
    margin: 0 5px;
}

nav a:hover {
	text-decoration: underline;
}

.section-text {
	width: 100%;
	font-weight: bold;
	overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mine {
	right: unset;
	left: 20px;
}

.mine > span {
	font-weight: bold;
}

.mine > a {
	overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mine > a:first-of-type {
	padding-right: 10px;
}

.mine > a:nth-of-type(2) {
	padding-left: 10px;
}

a:has(.active):hover {
	text-decoration: unset;
}

.active::before {
	display: inline-block;
	translate: 0 -2.5px;
	margin-right: 5px;
	color: #fbb35a;
	font-size: 12px;
	content: "▶ ";
}

.active::after {
	content: "Mine";
	text-decoration: underline;
}

.idol .active::after {
	content: "Mine (Idol)";
	text-decoration: underline;
}

header {
	display: flex;
	justify-content: center;
	padding-top: 20px;
	margin-bottom: 20px;
	font-size: 32px;
	font-weight: bold;
}

.image-container {
	display: flex;
	justify-content: center;
	align-items: center;
	max-height: 600px;
	overflow: hidden;
}

.image-container img {
    max-width: 100%;
    max-height: 600px;
    height: auto;
	margin: 0 10px;
	opacity: 1;
	transition: opacity 500ms ease-in-out;
}

section > span {
	display: inline-block;
	margin-top: 40px;
	margin-bottom: 20px;
	font-size: 24px;
	font-weight: bold;
}

section > div {
	display: grid;
	grid-template-columns: 13rem 319px 1fr 1fr;
	border-bottom: 1px solid #ffffff;
	border-right: 1px solid #ffffff;
}

section > div > div {
	padding: 8px;
	border-top: 1px solid #ffffff;
	border-left: 1px solid #ffffff;
}

.head {
	display: flex;
	align-items: center;
	font-weight: bold;
	color: #191919;
	background-color: #02d3fb;
}

.name {
	color: #ffffff;
}

.audio,
.transcription,
.romaji {
	min-height: 56px;
}

.name,
.audio {
	display: flex;
	align-items: center;
}

.transcription,
.romaji {
	align-content: center;
}

.odd {
	background-color: #262626;
}

.even {
	background-color: #373737;
}

.name.odd {
	background-color: #484848;
}

.name.even {
	background-color: #737373;
}

hr {
	width: 100%;
	height: 1px;
	border: 0;
	background-color: #a2a9b1;
	margin: 4.5px 0;
}

.name:has(hr) {
	display: flex;
	flex-direction: column;
	align-items: unset;
	justify-content: center;
}

div:has(.chibi) {
	position: relative;
}

.chibi {
	position: absolute;
	height: 100px;
	right: 0;
	top: -71.27px;
}

.name .chibi {
	display: none;
}

.chibi-1 {
	top: -67.77px;
}

section:last-of-type {
	margin-bottom: 20px;
}

footer {
	padding-top: 26px;
	margin: 32px 0 16px;
	text-align: center;
}

/*
header span {
	padding: 0 18.5px;
	background: red;
}
*/

.grid-r-2 {
	grid-row: span 2;
}

.grid-r-3 {
	grid-row: span 3;
}

.grid-c-2 {
	grid-column: span 2;
}

@media (pointer: coarse) {
	body {
		-webkit-tap-highlight-color: transparent;
	}
	nav a:hover {
		text-decoration: unset;
	}
	nav a:active {
		text-decoration: underline;
	}
}

@media (max-width: 1245px) {
	nav {
		position: sticky;
		top: calc(20px + 45px);
		translate: 0 -4px;
		justify-content: space-evenly;
        transform: translateY(-18px);
		border-radius: unset;
		outline: unset;
	}
	nav a {
		margin: 0 20px;
	}
    nav > div {
        display: grid;
        grid-template-columns: fit-content(100%) 1fr fit-content(100%);
        justify-items: center;
    }
	.mine {
		top: 45px;
		translate: 0 -27px;
	}
	.idol .image-container img {
		max-height: calc(600px - (45px * 2));
	}
	section > div {
		grid-template-columns: 1fr 1fr;
	}
	.head {
		display: none;
	}
	.audio {
		background-color: #262626;
	}
	.transcription,
	.romaji {
		background-color: #373737;
	}
	.name {
		grid-column: span 2;
		align-items: unset;
		color: #000000;
		font-weight: bold;
	}
	.name.odd,
	.name.even {
		background-color: #02d3fb;
	}
	.name .chibi {
		display: unset;
	}
	.audio {
		grid-column: span 2;
	}
	.grid-r-2 {
		grid-row: unset;
	}
}

@media (pointer: coarse) and (max-width: 1245px) {
	body {
		-webkit-tap-highlight-color: transparent;
	}
	nav {
		display: grid;
		grid-template-columns: 1fr 3fr 1fr;
		height: 41px;
		padding: 0;
	}
	nav a {
		width: 100%;
		margin: 0;
		text-align: center;
		align-content: center;
		transition: background-color 0.3s;
	}
	nav a:active {
		text-decoration: unset;
		background-color: #e6e6e6;
	}
    nav > div {
        grid-template-columns: 1fr 1fr 1fr;
    }
	.section-text,
	nav > a > span {
		margin: 0 5px;
		text-align: center;
		align-content: center;
	}
	.mine {
		display: flex;
		align-items: center;
	}
	.mine > span {
		display: flex;
		align-items: center;
	}
	.mine > * {
		height: 100%;
	}
	.mine > a:first-of-type {
		padding-right: 0;
	}
	.mine > a:nth-of-type(2) {
		padding-left: 0;
	}
}

@media (max-width: 768px) {
	body > *:not(nav) {
		padding-left: 10px;
		padding-right: 10px;
	}
	section > div {
		grid-template-columns: 1fr;
	}
	.name {
		grid-column: unset;
	}
	.audio {
		grid-column: unset;
	}
	.romaji {
		background-color: #262626;
	}
}

@media (max-width: 480px) {  
	body > section {
		padding-left: 0;
		padding-right: 0;
	}
	section > span {
		padding-left: 10px;
	}
	#to-top span {
		display: none;
	}
	#to-top::before {
		content: "↑";
	}
	#to-bottom span {
		display: none;
	}
	#to-bottom::before {
		content: "↓";
	}
}
