
@keyframes moveUp {
	0% {
		transform: translateY(0);
	}
	100% {
		transform: translateY(-200px);
		opacity: 0;
	}
}

:root {
	--background-color: rgba(0, 34, 0, 0.500);
	--text-color: #00ff00;
	--border-color: #00ff00;
	--highlight-color: #00ff00;
	--header-background-color: #002200;
	--header-text-color: #00ff00;
	--instruction-background-color: #002200;
	--button-background-color: #009900;
	--button-text-color: #000000;
/* --background-image-url: url('b42c2.webp'); */
	--background-image-url: url('black.jpg');
}

.theme-block.blue {
	background-color: #2E3B4E;
}
.theme-block.beige {
	background-color: #3E2C35;
}
.theme-block.green {
	background-color: #2F3E34;
}
.theme-block.purple {
	background-color: #3B2F4E;
}
.theme-block.termgreen {
	background-color: #00ff00;
}
.theme-block.termorange {
	background-color: #FF8C00;
}
.theme-block.glow {
	background-color: #F72585;
}
.theme-block.dream {
	background-color: #FF3131;
}
.theme-block.neon {
	background-color: #8F00FF;
}
/*Yes, the '2' for each of these going from Dark to Light lazy. */
.theme-block.blue2 {
	background-color: #AFC4E0;
}
.theme-block.beige2 {
	background-color: #D3B5A3;
}
.theme-block.green2 {
	background-color: #A3B4A7;
}
.theme-block.purple2 {
	background-color: #A69BB3;
}
.theme-block.termgreen2 {
	background-color: #b2ffb2;
}
.theme-block.termorange2 {
	background-color: #FFB380;
}
.theme-block.glow2 {
	background-color: #cb305d;
}
.theme-block.dream2 {
	background-color: #FF9999;
}
.theme-block.neon2 {
	background-color: #C580FF;
}

/*Background theme images and their settings/sizes */
.theme-bg.land1 {
	background: url("b42c2.webp");
	background-size: 60px 30px;	
}
.theme-bg.land2 {
	background: url("dusk.webp");
	background-size: 60px 30px;	
}
.theme-bg.land3 {
	background: url("night.webp");
	background-size: 60px 30px;	
}
.theme-bg.land4 {
	background: url("midnight.webp");
	background-size: 60px 30px;	
}
.theme-block.black {
	background-color: black;
}
.theme-block.white {
	background-color: white;
}

/* These .theme options were intended to be for my theme preview window specifically. I think they achieve what I wanted, but the function is incorrect. */

.theme-block {
	width: 30px;
	height: 30px;
	margin: 0 5px;
	cursor: pointer;
	border-radius: 3px;
}

.theme-bg {
	width: 60px;
	height: 30px;
	margin: 0 5px;
	cursor: pointer;
	border-radius: 3px;
}

.theme-selector {
	display: flex;
	justify-content: center;
	padding: 5px;
}

.theme-preview {
	margin-top: 10px;
	padding: 10px;
	border: 2px solid var(--border-color);
	background-color: var(--background-color);
	color: var(--text-color);
	border-radius: 8px;
	max-width: 620px;
	margin-left: auto;
	margin-right: auto;
	
}

.theme-preview h3 {
	color: var(--highlight-color);
	border: 2px solid var(--highlight-color);
	background: var(--background-color);
	border-radius: 5px;
	margin-bottom: 0px;
}

.over {
	background: var(--background-image-url) no-repeat center center fixed;
	border: 2px solid var(--border-color);
	border-radius: 8px;
	padding:10px;
	margin-left: auto;
	margin-right: auto;
}

.theme-preview .preview-button {
	padding: 8px 50px 8px;
	background-color: var(--button-background-color);
	color: var(--button-text-color);
	border-radius: 5px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--highlight-color);
	font-weight: bold;
	font-family: Courier New, monospace;
	font-size: 1em;
	
}

.theme-preview .preview-button:hover {
	background-color: var(--highlight-color);
	color: var(--background-color);
}

.preview-container {
	display: flex;
	flex-direction: column;
	padding: 10px;
	border-top: 2px solid var(--border-color);
	cursor: url(cursor.cur), text;
	width: calc(100% - 20px);
}

.preview-container input {
	flex: 1;
	padding: 8px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	background-color: var(--background-color);
	color: var(--text-color);
	font-family: 'Courier New', Courier, monospace;
	font-size: 1em;
	cursor: url(cursor.cur), text;
}

.preview-container input::placeholder {
	color: var(--text-color);
	font-family: 'Courier New', Courier, monospace;
	font-size: 1em;
}


body {
	font-family: 'Courier New', Courier, monospace;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	background-color: var(--background-color);
	color: var(--text-color);
	margin: 0;
	cursor: url(cursor.cur), auto;	
	background: var(--background-image-url) no-repeat center center fixed; 
	overflow: hidden;
	background-size: cover;
}

a {
  background: var(--button-background-color);
  color: var(--button-text-color);
  font-weight: bold;
  padding: 0 0.25em;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a:hover {
  background-color: var(--button-background-color);
  color: white;
}

hr {
	border: none;
	border-top: 2px dashed var(--text-color);
	margin: 10px 0;
}

h3 {
	margin-top: 0;
	color: var(--highlight-color);
}

h4 {
	margin: 10px 0;
	margin-bottom: 5px;
	color: var(--highlight-color);
}

.ascii {
	white-space: pre; /* Preserves spaces and line breaks */
	font-size: 1.1em; /* Adjust the font size as needed */
	line-height: 1.2; /* Adjust line height for better readability */
	display: flex;
	overflow: hidden; /* Hide overflow */
	white-space: nowrap; /* No line wrapping */
	margin: 0 auto; /* Centering */
	justify-content: center;
}
.container {
	width: 120vh;
	height: 85vh;
/*	height: 525px; /* Set a fixed height */
	border: 2px solid var(--border-color);
	background-color: var(--background-color);
	box-shadow: 0 0 5px rgba(215, 215, 215, 0.5);
	flex-direction: column;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	display: flex;
	cursor: url(cursor.cur), pointer;
	font-size: 1em;
}

 /* Mobile devices in vertical orientation */
 @media screen and (max-width: 855px) and (orientation: portrait) {
	 body {
	font-family: 'Courier New', Courier, monospace;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	background-color: var(--background-color);
	color: var(--text-color);
	margin-top: -3em;
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 0;
	background: var(--background-image-url) no-repeat center center fixed;
	overflow: hidden;
	background-size: cover;
	 }
	.container {
	width: calc(100% - 1px);
	height: 565px; /* Set a fixed height */
	border: 2px solid var(--border-color);
	border-radius: 4px;
	background-color: var(--background-color);
	box-shadow: 0 0 5px rgba(215, 215, 215, 0.5);	
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	}
	.header {
	width: 100vh;
	padding: 10px;
	border-bottom: 2px solid var(--border-color);
	border-radius: 4px;
	background-color: var(--header-background-color);
	color: var(--header-text-color);
	text-align: center;
	}
	.foot {
	  position: ;
	  font-family: 'Courier New', monospace;
	  z-index: 10;
	  bottom: 5px;
	  left: 50%;
	  color: var(--highlight-color);
	  background: none;
	  transform: translateX(-50%);
	  font-weight: 700;
	  opacity: .7;
	  text-decoration: none;
	} 
 }
 

#messages {
	flex: 1;
	font-size: 1.1em;
	overflow-y: visible;
	padding: 10px;
	border-bottom: 2px solid var(--border-color);
	position: relative;
	display: flex;
	flex-direction: column-reverse; /* New messages appear at the bottom */
}

.instruction {
	background-color: var(--instruction-background-color);
	border: 1px solid var(--border-color);
	color: var(--text-color);
	border-radius: 5px;
	padding: 10px;
	margin-bottom: 10px;
	font-size: 1.1em;
	font-weight: bold;
}

.message {
	background-color: var(--instruction-background-color);
	border-radius: 5px;
	padding: 8px;
	margin: 5px 0;
	font-size: 1em;
	position: relative;
	/*width: 100vh */
	width: calc(100% - 20px); /* Account for padding */
	border: 1px solid var(--border-color);
	animation: moveUp 25s linear forwards;
	word-wrap: break-word; /* Allows long words to break and wrap to the next line */
	white-space: pre-wrap; /* Preserves whitespace and wraps text */
	font-weight: bold;

}

.input-container {
	display: flex;
	flex-direction: column;
	padding: 10px;
	border-top: 2px solid var(--border-color);
	cursor: url(cursor.cur), text;
	width: calc(100% - 20px);
}

.input-container input {
	flex: 1;
	padding: 8px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	background-color: var(--background-color);
	color: var(--text-color);
	font-family: 'Courier New', Courier, monospace;
	font-size: 1.1em;
	cursor: url(cursor.cur), text;
	font-weight: bold;
}

.input-container input::placeholder {
	color: var(--text-color);
	font-family: 'Courier New', Courier, monospace;
	font-size: 1em;
	font-weight: bold;
}

.input-container button {
	padding: 8px 12px;
	margin-top: 5px;
	background-color: var(--highlight-color);
	color: var(--button-text-color);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	font-family: 'Courier New', Courier, monospace;
	font-weight: bold;
	font-size: 1.1em;
	cursor: url(cursor.cur), pointer;
}

.input-container button:hover {
	background-color:  var(--button-background-color);
}

#menu {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--instruction-background-color);
	color: var(--text-color);
	padding: 20px;
	box-sizing: border-box;
	z-index: 1000;
	font-weight: bold;
	margin-top: 5vh;
}
.section {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--instruction-background-color);
	color: var(--text-color);
	padding: .5em;
	box-sizing: border-box;
	z-index: 1000;
}
.section .section-content {
	max-height: 100%;
	font-size: 1.1em;
	overflow-y: auto; /* Enables scrolling for the content */
}

.hidden {
	display: none;
}

.menu-item {
	padding: 10px;
	border: 2px solid var(--highlight-color);
	border-radius: 5px;
	margin-bottom: 10px;
	cursor: pointer;
	text-align: center;
	cursor: url(cursor.cur), pointer;
	font-size: 1.2em;
}
.menu-item-highlight {
	padding: 10px;
	border: 1px solid var(--highlight-color);
	background-color: var(--button-background-color);
	color: #000000;
	border-radius: 5px;
	margin-bottom: 10px;
	cursor: pointer;
	text-align: center;
	cursor: url(cursor.cur), pointer;
	font-weight: bold;
	font-size: 1.2em;
}

.menu-item:hover {
	background-color: var(--button-background-color);
	color: var(--instruction-background-color);
}
.menu-item-highlight:hover {
	background-color: var(--highlight-color);
	color: var(--instruction-background-color);
}
.container.crt::before {
	content: " ";
	display: block;
	top: 0;
	left: 0;
	right: 0;
	height: 100%;
	background: linear-gradient(rgba(0, 0, 0, 0.054), rgba(0, 0, 0, 0.191));
	background-size: 100% 3px;
	z-index: 9999;
	pointer-events: none;
	position: absolute;
}

.header {
	padding: 10px;
	border-bottom: 2px solid var(--border-color);
	background-color: var(--header-background-color);
	color: var(--header-text-color);	
	text-align: center;
	width: calc(100% - 20px);
}

.header h1 {
	font-size: 1.4em;
	overflow: hidden; /* Hide overflow */
	border-right: .12em solid var(--border-color); /* Cursor effect */
	white-space: nowrap; /* No line wrapping */
	margin: 0 auto; /* Centering */
	max-width: 17ch;
	animation:
		typing 2.5s steps(30, end), 
		blink-caret 2s step-end 1.5s infinite;
	}
 @keyframes typing {
		from { width: 0 }
		to { width: 100% }
	} 
@keyframes blink-caret {
		from, to { border-color: transparent }
		50% { border-color: var(--border-color)}
	} 
	
/*Ethereal post-its css stuff */
	
	.ether {
		width: 100%;
		height: 100%;
		overflow: hidden;
		display: flex;
	}
	.etherLive {
		overflow: hidden;
		color: rgba(255, 255, 255, 0.752); 
		margin: 4px; 
		font-size: .75em; 
		justify-content: space-between;
		display: flex;
	}
	
	.msg {
		position: absolute;
		width: 13px;
		height: 13px;
		background-color: var(--highlight-color);
		opacity: 75%;
		animation: rise 18s linear forwards, fadeOut 17s linear forwards;
	}
	
	@keyframes rise {
		from { bottom: 0%; }
		to { bottom: 100%; }
	}
	
	@keyframes fadeOut {
		from { opacity: 1; }
		to { opacity: 0; }
	}
	
	
	.foot {
	  position: fixed;
	  font-family: 'Courier New', monospace;
	  z-index: 10;
	  bottom: 15px;
	  left: 50%;
	  color: var(--highlight-color);
	  background: none;
	  font-weight: 600;
	  transform: translateX(-50%);
	  opacity: .7;
	  text-decoration: none;
	} 

/* Ghosting Animation */
.ghost {
	animation: ghost 3s linear infinite;
	color: black;
	text-align: center;
}

@keyframes ghost {
	0% {
		opacity: 1;
	}
	50% {
		opacity: 0.1;
	}
	100% {
		opacity: 1;
	}
}