@font-face {
    font-family: "courierNew";
    src: url("../fonts/Courier New/Courier New Regular/Courier New Regular.ttf");
	font-weight: normal;
}

@font-face {
    font-family: "courierNew";
    src: url("../fonts/Courier New/Courier New Bold/Courier New Bold.ttf");
	font-weight: bold;
}

@font-face {
    font-family: "courierNew";
    src: url("../fonts/Courier New/Courier New Italic/Courier New Italic.ttf");
	font-style: italic;
}

@font-face {
    font-family: "courierNew";
    src: url("../fonts/Courier New/Courier New Bold Italic/Courier New Bold Italic.ttf");
	font-weight: bold;
	font-style: italic;
}

@font-face {
    font-family: "carima";
    src: url("../fonts/Carima Regular/Carima Regular.ttf");
}

:root {
  --accent-color: lime;
  --playing-track-accent-color: white;
  --color-bg: #504d57;
  --color-border: #3c3a40;
  --color-dark: #2c2b2e;
  --color-bright: #575361;
  overflow: hidden;
}

/* * { */
	/* background: red !important; */
/* } */

html {
	overflow: hidden;
}

body {
	width: 100vw;
	height: 100vh;
	background-color: black;
	background-image: url("../img/constellations.png");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	overflow: hidden;
	font-family: "courierNew";
	color: white;
	margin: 0;
}

#graphCanvas {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
	touch-action: none;
}

#sideBar {
	position: absolute;
	height: 100%;
	width: 450px;
	max-width: 80vw;
	top: 0;
	right: 0;
	background: var(--color-bg);
	transition: transform 0.5s ease-out;
}

#sideBar, #littlePlayer {
	filter: drop-shadow(0 0 10px black);
}

#sideBarBorder {
	position: absolute;
	top: 0;
	right: 100%;
	height: 100%;
	width: 6px;
	background: var(--color-border);
	cursor: col-resize;
}

#sideBarButton {
	position: absolute;
	top: 1em;
	left: 0;
	transform: translateX(calc(-100% - 6px));
	background: var(--color-border);
	border-radius: 20% 0 0 20%;
 	height: 2em;
	width: 2.5em;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

#sideBarButton:hover {
	color: var(--accent-color);
}

#sideBarButton span {
	transition: transform 0.5s ease-out;
}

#sideBarContent {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	overflow-x: hidden;
	overflow-y: scroll;
}

#trackOrAlbumInfo {
	width: 100%;
}

#trackOrAlbumInfo h2, #trackOrAlbumInfo > p, .commentaryEntry {
	width: calc(100% - 2em);
	padding-left: 1em;
	padding-right: 1em;
}

#nameAndArtists {
	width: 100%;
	padding: 1.5em 0;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 50% 20%;
	border-bottom: 6px solid var(--color-border);
}

#sideBar h2 {
	margin: 0;
	text-align: center;
}

#trackName {
	overflow-wrap: break-word;
}

#artists, #albumName, #contributors {
	margin: 0;
	text-align: center;
}

#artists, #contributors {
	width: calc(100% - 2em);
	margin-right: 1em;
	margin-left: 1em;
}

#coverWrapper {
	width: 100%;
	position: relative;
	overflow: hidden;
	background: var(--color-border);
	border-bottom: 6px solid var(--color-border);
}

#cover {
	position: relative;
	width: 100%;
	max-height: 250px;
	object-fit: contain;
	display: block;
	z-index: 1;
	cursor: zoom-in;
}

#coverBg {
	object-fit: cover;
    object-position: center;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: var(--color-border);
	display: block;
	filter: blur(5px) brightness(70%);
}

#coverTags {
	position: absolute;
	width: 100%;
	bottom: 0;
	left: 0;
	background: rgba(50, 50, 50, 0.8);
	filter: opacity(0);
	transition: filter 0.5s;
	z-index: 2;
}

#coverWrapper:hover > #coverTags {
	filter: opacity(100%);
}

#albumName {
	width: 100%;
	/* text-shadow: 1px 1px 0 black; */
	font-weight: bold;
	padding-top: 0.3em;
	padding-bottom: 0.3em;
	margin: 0;
	cursor: zoom-in;
}

#albumName:hover a {
	color: white !important;
	text-decoration: underline;
}

a {
	color: white;
	text-decoration: none;
}

a:hover {
	color: var(--accent-color);
	text-decoration: underline;
}

#trackName a,
.accent, .accent a,
.commentary-entry-artists a,
.commentaryEntry p a {
	color: var(--accent-color);
}

#trackName a:hover,
.accent a:hover, a.accent:hover,
.commentary-entry-artists a:hover,
.commentaryEntry p a:hover {
	color: white;
}

#trackEmbed {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	pointer-events: none;
	opacity: 0;
}

#commentaryTitle {
	background: var(--color-border);
	text-align: center;
	margin: 0;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
}

.commentaryEntry {
	padding-top: 1em;
	padding-bottom: 1em;
	border-bottom: 6px solid var(--color-border);
}

.commentaryEntry p {
	margin-bottom: 0;
}

.commentaryEntry img {
	max-width: 100%;
}

.commentary-entry-accent {
	font-style: italic;
}

#durationAndDateWrapper {
	width: calc(100% - 2em);
	display: flex;
	justify-content: center;
	padding: 0 1em;
}

#durationAndDate {
	width: 100%;
	max-width: 30em;
	display: flex;
	justify-content: space-between;
	gap: 1em;
}

#numberOfTracks {
	display: flex;
	justify-content: center;
	margin-top: 0;
}

#titleWrapper {
	width: 100%;
	position: relative;
	margin-top: 2em;
	margin-bottom: 2em;
	display: flex;
	align-items: center;
	justify-content: center;
}

#generalInfo h2 {
	font-family: "carima";
	font-size: 4em;
	text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
}

#generalInfo h2::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 3em;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-image: url("../img/spirograph.gif");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	z-index: -10;
	filter: drop-shadow(0 0 5px #00d74255) drop-shadow(0 0 12px #ffffffdd);
}

#source {
	width: 100%;
	text-align: center;
	font-style: italic;
	padding-bottom: 1em;
}

.generalAmount, .smallDropdown {
	width: 100%;
	background: var(--color-border);
}

.generalAmount {
	padding-top: 1em;
	padding-bottom: 1em;
	margin-bottom: 2.2em;
}

.smallDropdown {
	margin-bottom: 1.5em;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
}

.generalAmount > p, .smallDropdown > p {
	width: 100%;
	text-align: center;
	font-weight: bold;
	margin: 0;
	position: relative;
	z-index: 10;
}

.generalAmount > p {
	font-size: 1.5em;
	font-variant-caps: small-caps;
}

.dropdown {
	position: relative;
	cursor: pointer;
}

.dropdownButton {
	position: absolute;
	width: 1.3em;
	height: 1.3em;
	top: calc(100% - 0.65em);
	left: 50%;
	transform: translateX(-50%);
	background: var(--color-border);
	border-radius: 100%;
	font-size: 1.5em;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dropdown:hover:not(:has(.dropdownContainer:hover)) .dropdownButton span {
	color: var(--accent-color);
}

.dropdownContainer {
	background: var(--color-dark);
	overflow: hidden;
	cursor: auto;
	transition: height 1.75s ease;
}

.dropdownContainer > p {
	width: calc(100% - 2em);
	margin-right: 1em;
	margin-left: 1em;
}

.dropdownEntries, .dropdownMainButtons {
	padding: 0.2em;
	display: flex;
	flex-wrap: wrap;
}

.dropdownMainButtons {
	justify-content: center;
	border-bottom: 1px solid var(--color-border);
}

.dropdownEntry {
	background: var(--color-border);
	border-radius: 0.25em;
	padding: 0 0.2em;
	margin: 0.2em;
	cursor: pointer;
}

.dropdownEntry:hover {
	background: var(--color-bright);
}

.dropdownMainButtons .dropdownEntry {
	padding: 0.5em;
}

.dropdownEntryState span {
	color: red;
	width: 1em;
	display: inline-block;
	text-align: center;
}

.dropdownEntry[data-active="true"] .dropdownEntryState span {
	color: lime;
}

#connectionMethods {
	width: 100%;
	background: var(--color-border);
	padding: 0.5em 0;
	margin-bottom: 3em;
}

#connectionMethods h3 {
	width: 100%;
	text-align: center;
	font-size: 1.5em;
	font-variant-caps: small-caps;
	margin-top: 0.5em 0;
}

#connectionMethods > div {
	width: calc(100% - 2em);
	margin: 1em;
}

#connectionMethods input {
	margin-right: 0.5em;
}

#connectionMethods label, #connectionMethods input {
	cursor: pointer;	
}

.connectionMethod {
	accent-color: var(--accent-color);
}

#searchBar {
	font-family: "courierNew";
	position: absolute;
	top: 0;
	left: 0;
	margin: 0.5em;
	color: white;
	border: gray 1px solid;
	border-radius: 0.25em;
	background: rgba(0, 0, 0, 0.5);
	accent-color: var(--accent-color);
}

#playTrackWrapper {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 1.5em;
}

#playTrack {
	cursor: pointer;
	height: 1.25em;
	padding: 0.5em;
	background: var(--color-border);
	border-radius: 0.25em;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 0.5em;
	justify-content: center;
	align-items: end;
}

#playTrack span {
	margin: 0;
	font-variant-emoji: text;
}

#playTrack:hover span {
	color: var(--accent-color);
}

#littlePlayerWrapper {
	position: absolute;
	bottom: 0;
	left: 0;
}

#littlePlayer {
	background: var(--color-bg);
	border-radius: 0 1em 0 0;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	padding: 0.75em;
	transition: transform 0.6s ease;
	transform: translateY(100%);
	border-top: 6px solid var(--color-border);
	border-right: 6px solid var(--color-border);
}

#littlePlayerWrapper:hover #littlePlayer, #littlePlayer.playing {
	transform: translateY(0);
}

#littlePlayerPlayIcon {
	font-size: 1.5em;
	height: 1.5em;
	width: 1.5em;
	border: 0.075em solid white;
	border-radius: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-right: 0.5em;
	cursor: pointer;
}

#littlePlayerPlayIcon:hover {
	border: 0.075em solid var(--playing-track-accent-color);
	color: var(--playing-track-accent-color);
}

#littlePlayerPlayIcon p {
	margin: 0;
	font-variant-emoji: text;
}

#littlePlayerContent {
	display: flex;
	flex-direction: column;
}

#littlePlayerStatus {
	font-size: 0.75em;
	font-variant-caps: all-small-caps;
	margin: 0;
}

#littlePlayerTrackNameWrapper {
	max-width: 15em;
	overflow: hidden;
}

#littlePlayerTrackName {
	font-weight: bold;
	margin: 0;
	text-wrap: nowrap;
	white-space: nowrap;
}

#littlePlayerBar {
	width: 15em;
	height: 0.2em;
	background: var(--color-dark);
	position: relative;
	margin-bottom: 0.3em;
	cursor: pointer;
}

#littlePlayerBarProgress {
	position: absolute;
	height: 100%;
	width: 0;
	top: 0;
	left: 0;
	background: var(--playing-track-accent-color);
	transition: width 0.25s linear;
	pointer-events: none;
}

/* Hide TW-related images from wiki */
.reveal-text-container, .reveal-thumbnail {
	display: none;
}

#fullscreenImage {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.5);
	cursor: zoom-out;
	transition: filter 1s ease, backdrop-filter 1s ease;
	z-index: 100;
	filter: opacity(0%);
}

#fullscreenImage img {
	position: absolute;
	width: 90%;
	height: 90%;
	top: 5%;
	left: 5%;
	object-fit: contain;
}

#banner {
	width: 100%;
	border-bottom: 6px solid var(--color-border);
	display: block;
}

.outline {
	filter: drop-shadow(0 0.05em 0 black)
			drop-shadow(0.05em 0 0 black)
			drop-shadow(0 -0.05em 0 black)
			drop-shadow(-0.05em 0 0 black);
}

.subtle, .subtle a {
	color: #bbb;
}

#mobileBottomPadding {
	display: none;
}

:root .mobile, .mobile input {
	font-size: 40px;
}

.mobile #sideBar {
	width: 100vw;
	max-width: unset;
	height: 50vh;
	bottom: 0;
	left: 0;
	top: unset;
	transition: unset;
	border-top: 6px solid var(--color-border);
}

.mobile #trackEmbed {
	pointer-events: unset;
	opacity: 100%;
	width: 480px;
	height: 360px;
}

.mobile #littlePlayer {
	width: 480px;
	height: 360px;
	padding: 0;
	overflow: hidden;
}


.mobile #littlePlayerPlayIcon, .mobile #littlePlayerContent {
	display: none;
}

.mobile #mobileBottomPadding {
	display: block;
	width: 100%;
	height: 380px;
}