/* start light mode styling */
:root {
	--text: darkslategrey;
	--border: lightgrey;
	--accent: teal;
	--bg: #dce3e1;
	--gradientTop: white;
	--gradientBottom: rgba(240, 248, 255, 0.8);
}

header {
	background: url('***light mode banner image***');
}
/* end light mode styling */


/* start dark mode styling */
@media (prefers-color-scheme: dark) {
	:root {
		--text: white;
		--border: #5a7678;
		--accent: #74C365;
		--bg: rgba(0, 60, 60, 0.8);
		--gradientBottom: rgb(0, 50, 60);
		--gradientTop: darkslategrey;
	}

	header {
		background: url('***dark mode banner image***');
	}

	a:link {
		color: lightblue;
	}
}
/* end dark mode styling */


* {
	box-sizing: border-box;
}

body {
	padding: 10px;
	font-family: 'MS PGothic', sans-serif;
	color: var(--text);

	background-color: var(--gradientTop);
	background-image: linear-gradient(30deg, var(--bg) 12%, transparent 12.5%, transparent 87%, var(--bg) 87.5%, var(--bg)),
	linear-gradient(150deg, var(--bg) 12%, transparent 12.5%, transparent 87%, var(--bg) 87.5%, var(--bg)),
	linear-gradient(60deg, var(--bg) 25%, transparent 25.5%, transparent 75%, var(--bg) 75%, var(--bg));
	background-size: 20px 35px;
	background-position: 0 0, 0 0, 10px 18px;
}

.container {
	max-width: 55rem;
	margin: 5vw auto 12px auto;
	border: 6px ridge var(--border);
	outline: 3px solid var(--gradientTop);
	outline-offset: 4px;
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	padding: 5px;
	gap: 5px;

	background-color: var(--gradientBottom);
	background-image: repeating-radial-gradient(circle at 0 0, transparent 0, var(--gradientBottom) 9px),
	repeating-linear-gradient(var(--bg), var(--bg));
}

/* columns */
.small { flex: 1 1 9%; }
.large { flex: 1 1 82%; }
.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }

header {
	background-size: cover;
	background-position: center;
	width: 100%;
	height: 120px;
	border: 2px ridge var(--border);
	border-radius: 5px;
	position: relative;
}

header span {
	font-size: 2.5rem;
	position: absolute;
	bottom: 0;
	right: 10px;
	margin: 10px;
	font-weight: bold;
	text-shadow:
		1px 1px var(--text),
		-1px 1px var(--text),
		1px -1px var(--accent),
		-1px -1px var(--accent);
	color: var(--gradientTop);
}

nav {
	border: 2px ridge var(--border);
	border-radius: 5px;
	padding: 5px;
	background: linear-gradient(var(--gradientTop), var(--gradientBottom));
}

nav div {
	text-align: center;
	font-size: 1.25rem;
	margin: 5px 5px 10px 5px;
}

nav a {
	display: block;
	margin: 5px;
	background: linear-gradient(to right, var(--bg), var(--gradientBottom));
	border-radius: 5px;
	padding: 2px 7px;
	text-decoration: none;
	color: var(--text);
}

nav a:hover,
nav a:focus {
	background: linear-gradient(to right, var(--bg), var(--gradientBottom), var(--gradientTop));
	font-style: italic;
}

div.small > img {
	display: block;
	margin: 5px auto;
	border: 2px ridge var(--border);
	border-radius: 5px;
}

section {
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: linear-gradient(var(--gradientTop), var(--gradientBottom));
	padding: 5px;
}

footer {
	text-align: center;
	margin-bottom: 5vw;
	font-size: 0.8rem;
}

footer a {
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p {
	margin: 5px;
	line-height: 1.2;
}

h1 {
	font-size: 1.4rem;
	letter-spacing: 2px;
	font-weight: normal;
	text-align: center;
	border-bottom: 2px ridge var(--border);
	padding-bottom: 5px;
}

h2 { font-size: 1.25rem; font-weight: normal; text-align: center; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; color: var(--accent); padding-left: 12px; }

img { max-width: 100%; }

pre { overflow-x: auto; }
spotify-widget {
  width: 320px;
  background: #121212;
  color: white;
  font-family: Arial, sans-serif;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.sp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 10px;
}

.sp-header .dot {
  width: 8px;
  height: 8px;
  background: #1db954;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.sp-content {
  display: flex;
  gap: 10px;
  align-items: center;
}

sp-cover {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: #333;
}

.sp-info {
  flex: 1;
}

sp-title {
  font-weight: bold;
  font-size: 14px;
}

sp-artist {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

.sp-bar {
  margin-top: 8px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}

sp-progress {
  height: 100%;
  width: 0%;
  background: #1db954;
  transition: width 0.3s;
}