/* Vars */
:root {
	--main-color: #3135FC;
	--main-color-dark: hsl(from var(--main-color) h s calc(l - 30));
	--main-color-darkest: hsl(from var(--main-color) h s calc(l - 50));

	--download-margin: 8px;
}

/* General layout */
body {
	font-family: 'Inter',
	Arial, sans-serif;
	margin: 0;
	background: radial-gradient(circle,var(--main-color) 0%, var(--main-color-dark) 100%);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	background-attachment: fixed;
	color: #e6f4ea;
	min-height: 100vh;
}

h1 {
	font-family: 'Freckle Face', cursive;
	text-align: center;
	margin-bottom:30px;
	font-size: 4.4rem;
	color: #ffffff;
	text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
	font-weight: 100;
}

/* Cards & elements */
.container {
	margin: 0 5%;
	padding: 40px 20px;
}

.search-container {
	display: flex;
	justify-content: center;
	margin-bottom: 40px;

}

#searchBox {
	width: 320px;
	padding: 12px 16px;
	border-radius: 10px;
	border: none;
	outline: none;
	font-size: 1rem;
	box-shadow: 0 3px 8px rgba(0,0,0,0.5);
	background-color: #162447;
	color: #ffffff;
}

.card {
	flex: 0 1 280px;
	background-color: #162447;  
	padding: 15px 20px;
	border-radius: 14px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	text-align: left;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	color: #ffffff;
	flex-direction: column;
	display: flex;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
}

.rating-container {
	border-top: solid 1px;
}

.rating {
	margin-top: 10px;
}

.fire-container {
	float: right;
}

.fire {
	display: inline-block;
	width: 19px;
	cursor: pointer;
	margin-right: 4px;
	margin-bottom: -4px;
	filter: grayscale(100%) brightness(70%);
	transition: transform 0.2s, filter 0.2s;
}
.fire.highlight { filter: none; transform: scale(1.2); }
.avg-score { margin-left: 8px; font-weight: bold; color: #34d058; }
.site-description {font-size: 1.2rem; text-align: center; color: #cce7e0; margin-top: -15px; margin-bottom: 40px;}

/* --- Green accents --- */
.header {
	text-align: center;
	font-size: 2.2rem;
	margin-bottom: 30px;
	color: #21e6c1;  /* Neon green header */
}

.search-container input {
	background-color: #162447;
	color: #ffffff;
	border: 2px solid #21e6c1; /* subtle green border */
}

.card h2 {
	font-size: 1.3rem;
	margin: 0 0 8px 0;
	color: #21e6c1;
	border-bottom: solid;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	max-height: 30px;
	max-width: 280px;
}

.card a {
	display: inline-block;
	margin-top: 4px;
	color: #21e6c1;  /* Neon green for links */
	font-weight: bold;
	text-decoration: none;
}

.card p {
	margin: 6px 0;
	max-width: 280px;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.site-description {
	font-size: 1.2rem;
	text-align: center;
	color: #cce7e0;
	margin-top: -15px; /* pulls it closer to the title if you want */
	margin-bottom: 40px;
}

#flp-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
	gap: 24px;
	padding: 40px;
	margin: 0 auto;
}

.notes {
	resize: none;
	width: -webkit-fill-available;
	width: -moz-available;
	height: 60px;
	box-shadow: inset 0px 0px 10px rgb(0, 0, 0);
	background: #fff;
	padding: 5px 5px;
	color: black;
	margin-bottom: var(--download-margin);
	margin-top: auto;
}

.download {
	width: -webkit-fill-available;
	width: -moz-available;
	text-align: center;
	border: solid;
	border-radius: 10px;
	font-weight: bold;
}

.download.unavailable {
	color: gray;
	cursor: not-allowed;
}

/* TODO: Make a proper custom media player*/
.audio-preview {
	margin-left: -10px;
	width: 0;
}

.card-bottom {
	margin-top: auto !important;
	margin-bottom: var(--download-margin);
}

#date {
	color: gray;
	font-size: 12px;
	margin: 10px 0 -6px -10px;
}

/* Music Player Stuff */
#mute {
	height: 48px;
	background: transparent;
	padding-left: 5px;
	cursor: pointer;
}

#audioPlayer {
	position: fixed;
	top: 1%;
	right: -80%;
	/*
	width: 4rem;
	height: 4rem;
	background: transparent;
	backdrop-filter: blur(3px) brightness(0.6);
	*/
	color: white;
	padding: 0;
	margin: 5px 0;
	transition: right 1s ease-in-out;
	z-index: 1;
	display: grid;
	height: 48px;
}

#song-title {
	margin: 0;
	padding: 15px 15px 15px 15px;
	text-shadow: 1px 1px 1px black;
	grid-area: 1 / 1;
}

#song-title p {
	margin: 0;
}

#offscreen {
	height: calc(100%);
	width: 150%;
	grid-area: 1 / 1;
	transform: translate(-5px, -5px);
	z-index: -1;
	border: solid 5px;
	border-radius: 5px;
	background: #00000050;
}

/* Anim Toggle */
#animation-toggle {
	position: fixed;
	top: calc(1% + 70px);
	right: 0.5%;
	color: white;
	padding: 0;
	margin: 5px 0;
	transition: right 1s ease-in-out;
	z-index: 1;
	display: grid;
	height: 48px;
}

/* This is stupid*/
#animation-toggle #song-title {
	padding: 3px 0px 0px 2px;
}

#animation-toggle img {
	height: 48px;
	background: transparent;
	padding-left: 5px;
	cursor: pointer;
}

/* BG Stuff */

.background-pattern {
	mask-repeat: repeat;
	opacity: .15;
	height: 200%;
	width: 200%;
	background-color: black;
	mask-position: 0 0;
	z-index: -1;
}

#scanlines {
	-webkit-mask-image: url(/assets/Images/Lines.png);
	mask-image: url(/assets/Images/Lines.png);
	/*animation: scanlines 0.1s infinite linear;*/
	position: fixed;
	top: -200px;
	left: -200px;
}

#stripes {
	-webkit-mask-image: url(/assets/Images/Stripes.png);
	mask-image: url(/assets/Images/Stripes.png);
	mask-size: 250px 250px;
	animation: scrolling-stripes 12s infinite linear;
	position: fixed;
	top: -200px;
	left: -200px;
}

#checkerboard {
	height: 100%;
	width: 100%;
	background-color: #fff;
	mask-image: url(/assets/Images/Checkerboard.png);
	mask-size: 200px 200px;
	animation: test 6s infinite linear;
	opacity: .5;
}

.silhouette {
	-webkit-mask-image: url(/assets/Images/Meat.png);
	mask-image: url(/assets/Images/Meat.png);
	mask-repeat: no-repeat;
	mask-size: auto 100%;
	mask-position: center;
	opacity: .05;
	height: 100%;
	width: 100%;
	background-color: black;
	position: fixed;
	/*animation: scrolling-anim 6s infinite linear;*/
	z-index: -2;
}

.silhouette-img {
	opacity: .1;
	height: 100%;
	position: fixed;
	transform: translate(-50%, -50%);
	top: 50%;
	left: 50%;
	/*animation: scrolling-anim 6s infinite linear;*/
	z-index: -2;
}

#list-container {
	background-color: revert-layer;
	/*backdrop-filter: blur(3px) brightness(2);*/
	background-color: hsla(from var(--main-color) h calc(s + 30) l / 50%);
	display: grid;
	border-radius: 20px;
	overflow: clip;
	border: 2px solid #dbebe8;
	box-shadow: 0 0px 25px rgb(255, 255, 255);
}

#list-container * {
	grid-area: 1 / 1;
}


/* Animations */

@keyframes scrolling-stripes {
	100% {
		mask-position: 0px -250px;
	}
}

@keyframes test {
	100% {
		mask-position: 200px -200px;
	}
}

@keyframes scanlines {
	100% {
		mask-position: 0px -3px;
	}
}
