@font-face {
font-family: 'OsdMono';
src: url(VCR_OSD_MONO_1.001.ttf);
}
.static-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('whitenoise.gif');
  background-repeat: repeat;
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
}
body {
background-color: #0a0093;
color: #e5e2fc;
font-family: 'OsdMono';
position: relative;
}
.center-stock {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin-top: 0px;
}
.center-stock img {
	width: 100px;
	height: auto;
}
.center {
	text-align: center;
	margin: 20px auto;
}
form input {
	width: 80%;
	max-width: 400px;
	padding: 10px;
	margin: 5px auto;
	display: block;
}
form button {
	padding: 10px 20px;
	font-size: 18px;
	cursor: pointer;
}
p a {
	text-decoration: none;
	color: #e5e2fc;
	border-bottom: 1px dotted #e5e2fc;
	transition: color 0.2s ease, border-bottom 0.2s ease;
}
p a:hover {
	color: #ffffff;
	border-bottom: 1px solid #ffffff;
}
h1 {
text-align: center;
font-size: 55px;
font-family: 'OsdMono';
margin-top: -50px;
}
h2 {
text-align: center;
font-size: 55px;
font-family: 'OsdMono';
margin-top: 20px;
}
h3 {
text-align: center;
font-size: 55px;
font-family: 'OsdMono';
margin-top: 150px;
}
h4 {
text-align: center;
font-size: 50px;
font-family: 'OsdMono';
margin-top: 25px;
margin-left: -20px;
}
nav {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
display: flex;
justify-content: space-between;
align-items: center;
padding: 6px 150px;
border: none;
transition: border 0.3s ease;
}
nav.scrolled {
	border: 2px solid #0a0093;
	background-color: rgba(10, 0, 147, 0.2);
}
nav ul {
list-style-type: none;
display: flex;
justify-content: center;
gap: 8em;
margin-right: 25em;
}
#logo {
	background-image: url(logo.png);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	width: 500px;
	height: 500px;
	margin: 25px auto 0;
}
.contestants-layout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 30px;
	padding: 100px 150px 50px;
	justify-items: center;
	align-items: center;
}
.contestants-layout img {
	width: 100px;
	height: auto;
}
nav a { 
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 6px;
	color: #e5e2fc;
	transition: background-color 0.2s ease, color 0.2s ease;
}
nav a:hover {
	background-color: #e5e2fc;
	color: #0a0093;
}
.character-container {
	display: flex;
	align-items: flex-start;
	gap: 50px;
	padding: 100px 150px;
}
.character-image img {
	width: 500px;
	height: auto;
}
.profile-description h4 {
	font-size: 48px;
	margin-bottom: 20px;
	margin-left: 30px;
}
.profile-description p {
	font-size: 24px;
	margin: 10px 0;
}
.table-wrap {
	margin-top: -300px;
	margin-left: 1600px;
	max-height: 60vh;
	overflow-y: auto;
}
.sourcelist-table {
	width: 300px;
	border-collapse: collapse;
	color: #e5e2fc;
	font-size: 16px;
}
.sourcelist-table td {
	border: 1px solid #e5e2fc;
	padding: 6px 12px;
	text-align: center;
	background-color: #0a0093;
	color: #e5e2fc;
}
.story-base {
  padding: 150px 100px;
  color: #e5e2fc;
}
.story-base h2 {
  text-align: center;
  margin: 0px 0 0px;
}
.story-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 50px;
}
.story-layout a {
  display: block;
  background-color: #423aab;
  color: #e5e2fc;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
}
.dialogue-base {
	padding: 100px 150px;
	display: flex;
	flex-direction: column;
	gap: 50px;
}
.dialogue {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 30px;
	padding: 20px;
}
.dialogue-left {
	flex-direction: row;
	text-align: left;
}
.dialogue-right {
	flex-direction: row-reverse;
	text-align: right;
}
.dialogue img {
	width: 100px;
	height: auto;
	flex-shrink: 0;
}
.dialogue p {
	font-size: 20px;
	max-width: 600px;
}
.narration p {
	text-align: center;
	font-size: 20px;
	max-width: 800px;
	margin: 0 auto;
}
@media (max-width: 768px) {
	nav {
		flex-direction: column;
		padding: 10px 20px;
	}
	nav ul {
		flex-direction: column;
		gap: 20px;
		margin: 0;
	}
	#logo {
		width: 300px;
		height: 300px;
	}
	.character-container {
		flex-direction: column;
		padding: 50px 20px;
		gap: 30px;
	}
	.character-image img {
		width: 100%;
		max-width: 300px;
	}
	.profile-description h4 {
		font-size: 32px;
		margin-left: 0;
		text-align: center;
	}
	.profile-description p {
		font-size: 18px;
		text-align: center;
	}
	.dialogue-base {
		padding: 40px 20px;
	}
	.dialogue {
		flex-direction: column !important;
		text-align: center !important;
	}
	.dialogue img {
		width: 80px;
	}
	.dialogue p {
		font-size: 18px;
		max-width: 100%;
	}
	.table-wrap {
		margin: 0 auto;
		max-height: none;
		overflow: visible;
	}
	.contestants-layout {
		padding: 50px 20px;
	}
	h1, h2, h3, h4 {
		font-size: 36px;
	}
}

@media (max-width: 480px) {
	nav {
		padding: 10px;
	}
	.dialogue img {
		width: 60px;
	}
	.dialogue p {
		font-size: 16px;
	}
	form input, form button {
		width: 100%;
		font-size: 16px;
	}
	.story-base, .character-container, .dialogue-base {
		padding: 20px;
	}
	h1, h2, h3, h4 {
		font-size: 28px;
	}
}