/* Chat Interface Styles */

#response {
	border: 1px solid #ccc;
	padding: 15px;
	height: 300px;
	overflow-y: auto;
	margin-bottom: 15px;
	background: #fafafa;
	border-radius: 6px;
}

.input {
	margin-bottom: 20px;
}

.form-control.chat {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
}

.form-control.chat:disabled {
	background: #f5f5f5;
	color: #666;
}
.flappy {
	background-image: url(/assets/flappy-background-f662d1b683a8a65d770a6881b6a3b261bce2361dd25beaac5acac5c56148959f.png);
	width: 420px;
	height: 640px;
	margin: auto;
	
	position: relative;
	overflow: hidden;
}

.flappy .score {
	z-index: 10;
	padding: 1rem;
	color: white;
	background-color: rgba(0, 0, 0, 0.5);
	position: relative;
}

.flappy .highscores {
	color: white;
}

.flappy .prompt {
	z-index: 20;
	padding: 1rem;
	color: white;
	background-color: rgba(0, 0, 0, 0.5);
	
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	
	text-align: center;
}

.flappy .bird {
	z-index: 1;
	background-image: url(/assets/flappy-bird-d027de975c3f289fb2b96ef1ba5463d9a94fd4131d0e0984e5b5a955884c20f0.png);
	position: absolute;
	background-size: contain;
	
	transition: all 0.05s linear 0s;
}

.flappy .pipe {
	z-index: 5;
	background-image: url(/assets/flappy-pipe-04d0fb3b6ec8724d0dedfe14574aaced0cb30368280f186f2427664861d60f84.png);
	position: absolute;
	background-size: contain;
	
	transition: all 0.05s linear 0s;
}
/* Game Interface Styles */

.game-title {
	text-align: center;
	color: #2c3e50;
	margin-bottom: 20px;
}

.game-controls {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 20px;
	margin: 20px 0;
}

.game-controls h4 {
	margin-top: 0;
	margin-bottom: 15px;
}

.grid.control {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
	margin: 15px 0;
}

.control-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.control-item kbd {
	background: #e9ecef;
	border: 1px solid #adb5bd;
	border-radius: 3px;
	padding: 2px 6px;
	font-size: 12px;
}

.focus-tip {
	margin-top: 15px;
	font-style: italic;
	color: #6c757d;
}

.container.centered {
	text-align: center;
	margin: 30px 0;
}

.game-wrapper.simple {
	display: inline-block;
}

.message {
	min-height: 2.4em;
	line-height: 1.2em;
}

.board {
	border-collapse: collapse;
	border: 2px solid #333;
}

.game:focus {
	outline: none;
}

.game:focus .board {
	border-color: #007bff;
}
/* Job Interface Styles */

.form-inline {
	display: flex;
	align-items: center;
	gap: 15px;
	margin: 2rem;
	flex-wrap: wrap;
}

.form-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.form-control {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}

.table th,
.table td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}

.table th {
	background: #f8f9fa;
	font-weight: bold;
}
/* AI Chat Interface Styles */

.chat-container {
	margin: 2rem;
	min-height: 10rem;
}

.conversation input.prompt {
	width: 100%;
	box-sizing: border-box;
	padding: 12px;
	border: 2px solid #ddd;
	border-radius: 6px;
	font-size: 16px;
	margin-top: 15px;
}

.conversation input.prompt:focus {
	outline: none;
	border-color: #4caf50;
	box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.conversation .messages {
	max-height: 400px;
	overflow-y: auto;
	margin-bottom: 15px;
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 15px;
	background: #fafafa;
}

.conversation .message {
	margin: 10px 0;
	padding: 10px;
	border-radius: 6px;
}

.conversation .message .prompt {
	background: #e3f2fd;
	color: #1976d2;
	padding: 8px 12px;
	border-radius: 6px;
	margin: 0;
}

.conversation .message .response {
	background: white;
	border: 1px solid #ddd;
	padding: 12px;
	border-radius: 6px;
	margin: 0;
}
/* SSE Event Stream Specific Styles */

.event-count {
	color: #ffff00;
	font-weight: bold;
}

.event-data {
	color: #00ff00;
}
/* Streaming Specific Styles */

.terminal-status {
	color: #ffff00;
	font-weight: bold;
}

.terminal-complete {
	color: #00ff00;
	font-weight: bold;
	margin-top: 10px;
}

.terminal-error {
	color: #ff0000;
	font-weight: bold;
	margin-top: 10px;
}

.terminal-stopped {
	color: #ff8800;
	font-weight: bold;
	margin-top: 10px;
}

/* Button Styles */
.button {
	background: #007bff;
	color: white;
	border: none;
	padding: 12px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 16px;
	transition: all 0.3s;
	margin: 10px 10px 10px 0;
	text-decoration: none;
	display: inline-block;
}

.button:hover:not(:disabled) {
	background: #0056b3;
	transform: translateY(-1px);
}

.button:disabled {
	background: #6c757d;
	cursor: not-allowed;
	transform: none;
}

.button.success {
	background: #28a745;
}

.button.success:hover:not(:disabled) {
	background: #218838;
}
/* Shared Terminal Styles */
.terminal {
	background: #000;
	color: #00ff00;
	font-family: 'Monaco', 'Consolas', monospace;
	height: 400px;
	overflow-y: auto;
	border: 2px solid #333;
	padding: 20px;
	border-radius: 6px;
	margin: 20px 0;
}

.terminal-line {
	margin: 2px 0;
	font-size: 14px;
}

/* Shared Status Messages */
.status {
	padding: 10px;
	border-radius: 6px;
	margin: 15px 0;
	font-weight: bold;
}

.status.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.status.warning {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.status.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}
/* Welcome Page Grid Layout */

.examples-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

.example-card {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	background: #fff;
}

.example-header {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.example-emoji {
	font-size: 24px;
	margin-right: 10px;
}

.example-header a {
	font-size: 18px;
	font-weight: bold;
	text-decoration: none;
}

.example-description {
	margin: 15px 0;
	line-height: 1.5;
}

.example-tags {
	margin-top: 15px;
}

.tag {
	background: #f0f0f0;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	margin: 0.1rem;
	break-inside: avoid;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
 
html {
	font-family: "PT Sans", Verdana, Helvetica, Arial, sans-serif;
	font-size: 16px;
}

pre {
	tab-size: 2;
}

@media (min-width: 40em) {
	html {
		font-size: 18px;
	}
	
	pre {
		tab-size: 4;
	}
}

@media (min-width: 80em) {
	html {
		font-size: 20px;
	}
	
	pre {
		tab-size: 4;
	}
}

body {
	padding: 0;
	margin: 0;
	
	background-color: #fafafa;
}

nav {
	font-size: 0.8rem;
	text-align: right;
	margin: 0.5rem;
}

main, footer {
	max-width: 48rem;
	padding: 1rem;
	margin: auto;
}

body > header {
	margin: 0.5rem 0;
	
	background: white;
	
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

body > header img {
	display: block;
	margin: auto;
	height: 6rem;
}

p, ul, ol {
	color: #555;
}

p strong {
	color: #222;
}

h1, h2, h3, h4, h5, h6 {
	margin: 2rem 1rem 1rem 1rem;
	color: #54401d;
}

h1 {
	margin: 4rem 0;
}

h2 {
	margin-top: 6rem;
}

img {
	border: none;
}

a, mark {
	color: #2d8c46;
}

mark {
	background-color: inherit;
}

a.action {
	text-decoration: none;
}

a:hover {
	color: #55c;
}

p, ul, ol, dl, h3 {
	margin: 2rem;
}

section {
	margin: 2rem;
}

/* Collapse margins inside sections */
section > *:first-child {
	margin-top: 0;
}

section > *:last-child {
	margin-bottom: 0;
}

li {
	margin: 0.2rem;
}

li > ul, li > ol {
	margin: 0;
}

pre {
	overflow: auto;
	
	padding: 1rem 2rem;
	font-size: 0.8rem;
	
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	
	background-color: #eee;
}

h3 {
	border-bottom: 1px solid #ccf;
}

ul {
	margin-bottom: 1rem;
}

h2, h3, h4, h5, h6 {
	font-weight: normal;
}

body.front h1 {
	font-weight: normal;
	font-size: 300%;
	color: #4caf50;

	text-align: center;
}

footer {
	margin-top: 5rem;
	text-align: center;
	font-size: 0.65rem;
	color: #aaa;
}

section.features {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	
	margin: 1rem 0;
}

section.features > div {
	box-sizing: border-box;
	
	flex-basis: 20rem;
	flex-grow: 1;
	
	color: #171e42;
	margin: 1rem;
	padding: 1rem;
	
	padding-left: 3rem;
	
	position: relative;
}

section.features > div i {
	position: absolute;
	left: 0rem;
	
	font-size: 1.5rem;
	text-align: center;
	
	width: 3rem;
	color: #fafafa;
	text-shadow: 0px 0px 1px #000;
}

section.features div > * {
	margin: 0;
	margin-bottom: 1rem;
	font-size: 80%;
}

section.features h2 {
	margin: 0;
	font-size: 90%;
	padding: 0;
}

a.register.button {
	font-size: 120%;
	
	background-color: #d8e6db;
	border-radius: 1rem;
	padding: 1rem;
	
	text-decoration: none;
	
	display: inline-block; /* Ensures the element respects padding and margin */
	margin: 0.5rem; /* Adds space around the button */
	box-sizing: border-box; /* Ensures padding and border are included in the element's total width and height */
	text-align: center; /* Centers the text inside the button */
	white-space: nowrap; /* Prevents the text from wrapping */
}

dl {
	display: flex;
	flex-wrap: wrap;
	margin: 1rem;
}

dt {
	width: 25%;
	text-align: right;
	font-weight: bold;
	margin-top: 1rem;
}

dd {
	margin-top: 1rem;
	margin-left: auto;
	width: 66%;
}

.game .board {
	margin: auto;
}

.game .board {
	border-collapse: collapse;
}

.game .board td {
	text-align: center;
	vertical-align: middle;
	
	width: 4ch;
	height: 4ch;
}

.game .message {
	text-align: center;
}

/* Responsive Video Container */
.video-container {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	margin: 20px 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 8px;
}
