* {
	font-family: sans-serif;
}

.novote body {
	background: #cff;
	transition: background 0.5s;
}

.vote body {
	background: #afff99;
	transition: background 0.5s;
}

body {
	margin: 0;
	padding: 20px;
}

h1 {
	font-size: 2.5em;
	margin: 0;
}

h3 {
	font-size: 1.2em;
	margin: 10px 0 30px 0;
}

.voting-container {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

/* Hide/show states */
.loading .ifnovote,
.loading .ifvote {
	display: none;
}

.ifvote {
	display: none;
}

.ifnovote {
	display: none;
}

.vote .ifvote {
	display: inherit;
}

.novote .ifnovote {
	display: inherit;
}


/* Preview (view-only) state */
.preview .ifnovote {
	display: none;
}

.preview .ifvote {
	display: none;
}

/* Re-show results specifically in preview */
.preview .results {
	display: inherit;
}

/* Back button only visible in preview */
.back-btn {
	display: none;
}

.preview .back-btn {
	display: inline-block;
}

/* Optional: keep preview background similar to novote */
.preview body {
	background: #cff;
	transition: background 0.5s;
}

/* Vote buttons */
.vote-buttons {
	margin: 40px 0;
}

.vote-btn {
	font-size: 1em;
	padding: 8px 16px;
	margin: 0 10px;
	border: 1px solid #333;
	background: white;
	cursor: pointer;
	font-family: sans-serif;
}

.vote-btn:hover {
	background: #eee;
}

.yes-btn {
	border-color: #090;
	color: #090;
}

.yes-btn:hover {
	background: #efe;
}

.no-btn {
	border-color: #c00;
	color: #c00;
}

.no-btn:hover {
	background: #fee;
}

/* Results section */
.results {
	margin-top: 30px;
}

.progress-container {
	margin: 20px 0;
}

.progress-bar {
	width: 100%;
	height: 30px;
	background: rgba(0, 0, 0, 0.1);
	display: flex;
	position: relative;
	border: 1px solid #333;
}

.progress-fill {
	height: 100%;
	transition: width 0.5s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.yes-fill {
	background: rgba(0, 153, 0, 0.8);
	color: white;
}

.no-fill {
	background: rgba(204, 0, 0, 0.8);
	color: white;
}

.progress-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 14px;
}

.yes-label {
	color: #090;
}

.no-label {
	color: #c00;
}

.total-votes {
	margin-top: 15px;
	font-size: 14px;
	font-family: monospace;
}

/* General messages */
.ifnovote p,
.ifvote p {
	font-size: 1em;
	margin: 20px 0;
}

/* Vote count styling */
.count {
	font-family: monospace;
	font-size: 14px;
	display: inline-block;
	width: 3em;
	text-align: right;
}

/* Responsive design */
@media (max-width: 600px) {
	.vote-btn {
		display: block;
		margin: 5px auto;
		width: 120px;
	}
	
	.progress-labels {
		flex-direction: column;
		gap: 5px;
		text-align: center;
	}
	
	h1 {
		font-size: 2em;
	}
}

/* Add some early web charm */
marquee {
	background: #ffa;
	border: 1px dashed #333;
	padding: 5px;
	margin: 10px 0;
}