/*
File:           styles.css
Description:    Main stylesheet
Author:         Adrian deCola
Relative Path:  uSnapback/src/base.css
*/

/* --------------------------------- */
/* ---------- Core Layout ---------- */
/* --------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
		Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
		sans-serif;
	background: #f8fafc;
	color: #0f172a;
	line-height: 1.5;
}

/* ---------- Header ---------- */
.app-header {
	background: #1d4ed8;
	color: #ffffff;
	padding: 1rem 1.5rem;
}

.title {
	font-size: 1.5rem;
	font-weight: 600;
	text-align: center;
}

/* ---------- Main Content ---------- */
.app-main {
	max-width: 90%;
	margin: 2rem auto 4rem; /* bottom margin leaves space for the fixed button */
	padding: 0 1.25rem 6rem;
}

.instructions p {
	margin-top: 0;
	margin-bottom: 4rem;
	font-size: 1rem;
}

/* ---------- Form Elements ---------- */
.field-label {
	display: block;
	font-weight: 600;
	margin: 1rem 0 0.5rem;
}

/* ---------- Buttons ---------- */
.prev-btn,
.next-btn,
.restart-btn {
	position: fixed;
	bottom: 1.5rem;
	padding: 0.75rem 1.75rem;
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	border: none;
	border-radius: 0.75rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;

	display: inline-flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	font-family: inherit;
	line-height: 1;
	user-select: none;
}

.prev-btn {
	left: 1.5rem;
	background: #64748b;
}
.next-btn {
	right: 1.5rem;
	background: #0284c7;
}

.restart-btn {
	left: 50%;
	transform: translateX(-50%);
	background: #e53935; /* red */
}

.prev-btn:hover {
	background: #475569;
}
.next-btn:hover {
	background: #0369a1;
}

.restart-btn:hover {
	background: #c62828;
}

.prev-btn:active,
.next-btn:active {
	transform: translateY(2px);
}

.restart-btn:active {
	transform: translate(-50%, 2px); /* keep centered but pressed look */
}

/* ---------- Stats Preview Box ---------- */
/* This is used on the amplicon.htlm and primer.html pages */
.stats-display {
	margin-top: 2rem;
	padding: 0.75rem 1rem;
	background: #e2e8f0; /* light slate */
	border-radius: 0.5rem;
	font-family: 'Courier New', monospace;
	word-break: break-all;
}
.stats-display code {
	color: #0f172a;
}

/* ------------------------------------ */
/* ---------- Responsiveness ---------- */
/* ------------------------------------ */
@media (max-width: 600px) {
	.prev-btn {
		bottom: 1rem;
		left: 1rem;
		right: auto;
		padding: 0.6rem 1.25rem;
	}
	.next-btn {
		bottom: 1rem;
		right: 1rem;
		left: auto;
		padding: 0.6rem 1.25rem;
	}
}
