#homeMain { display: flex; gap: 48px; align-items: flex-start; margin-top: 34px; }
#mainLeft { flex: 1 1 55%; min-width: 0; }
#mainTitle { font-family: Garamond, Georgia, serif; font-size: 135%; font-weight: bold; color: #6b66c6; margin: 0 0 12px 0; }
#mainLeft p { font-size: 95%; line-height: 1.55; margin: 0 0 14px 0; }

#mainRight { flex: 0 1 430px; min-width: 300px; display: flex; flex-direction: column; align-items: stretch; }

/* Generator box */
#content { border: 2px solid #c7c7c7; background: #fff; }
#top { background: #c7c7c7; padding: 12px 10px; text-align: center; }
#top h3 { margin: 0; font-size: 112%; }
#middle { padding: 16px 16px 10px 16px; display: flex; flex-direction: column; gap: 12px; }
.form { display: flex; align-items: center; gap: 10px; }
.lbl { flex: 0 0 62px; text-align: right; font-size: 108%; }
.txt {
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 9px;
	font-size: 100%;
	font-family: Arial, Helvetica, sans-serif;
	border: 1px solid #b5b5b5;
	border-radius: 2px;
}
.txt:focus { outline: none; border-color: #6b66c6; }
.btnRow { justify-content: center; gap: 16px; padding-top: 6px; }
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	background: #d9d9d9;
	border: 1px solid #000;
	border-radius: 2px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 100%;
	cursor: pointer;
	user-select: none;
}
.btn:hover { border-width: 2px; }
.btn:focus-visible { outline: 2px solid #6b66c6; outline-offset: 2px; }
.hiddenBtn { visibility: hidden; }
#info { display: block; text-align: center; font-size: 76%; color: #444; min-height: 1.2em; padding-bottom: 4px; }
#blue { height: 4px; width: 0; background: gray; transition: width 0.4s ease; }

/* Results box */
#bottom { margin-top: 14px; border: 2px solid #c7c7c7; background: #c7c7c7; padding: 4px 0 12px 0; }
#bottom h3 { margin: 6px 0 8px 15px; text-align: left; line-height: 1.2; font-size: 100%; }
#bottom.resultHidden { display: none; }
.drawRow {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid #d6d6d6;
	margin: 0 15px 7px 15px;
}
.drawNum { font-size: 150%; font-weight: bold; line-height: 1; }
.drawMeta { font-size: 80%; color: #333; text-align: right; line-height: 1.5; overflow-wrap: anywhere; }
#codeWrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
	padding: 0 10px;
}
#codeTitle { font-weight: bold; }
#code { font-weight: bold; font-size: 135%; letter-spacing: 2px; }
#code:hover { text-decoration: underline; }

@media (max-width: 820px) {
	#homeMain { flex-direction: column; gap: 30px; margin-top: 20px; }
	/* generator before the text on phones */
	#mainRight { order: -1; flex: 1 1 auto; width: 100%; min-width: 0; }
	#mainLeft { width: 100%; }
	#mainTitle { font-size: 128%; }
	.drawNum { font-size: 130%; }
}
