webringer 1.0.3

A bin/lib crate for a webring site
Documentation
/* General page styling */
body {
	font-family: system-ui, sans-serif;
	margin: 2rem auto;
	padding: 0 1rem;
	background: #f9f9f9;
	color: #333;
	line-height: 1.6;
}

header {
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
}

footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 1rem;
}

.nav-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 2rem;
	background-color: #f9f9f9;
	flex-direction: row;
	/* margin-bottom: 1rem; */
}

.nav-cell a {
	font-family: "Merriweather", serif;
	font-size: 1.5rem;
	color: #2c3e50;
	text-decoration: none;
	padding: 0.5rem 1rem;
}

/* Heading */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: merriweather, serif;
	text-align: center;
	color: #2c3e50;
}
h1 {
	font-size: 3rem;
	margin-bottom: 1rem;
}
h2 {
	font-size: 2rem;
}

/* Center logo */
img {
	display: block;
	margin: 0.5rem auto 1.5rem;
}

/* Links */
a {
	color: #0077cc;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

main {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1rem;
}

.centered-box {
	width: 60%; /* proportional width (adjust as needed) */
	padding: 2rem;
	border: 2px solid #2c3e50;
	border-radius: 12px; /* rounded borders */
	text-align: center; /* center text/content inside */
}

/* Paragraphs */
p {
	margin: 1rem 0;
}

/* Forms */
form {
	background: #fff;
	padding: 1rem;
	margin: 1.5rem 0;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Labels and inputs */
label {
	display: block;
	margin-bottom: 1rem;
	font-weight: 500;
}

input[type="url"],
input[type="email"],
input[type="text"] {
	display: block;
	width: 100%;
	padding: 0.6rem;
	margin-top: 0.4rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 1rem;
	box-sizing: border-box;
}

input[type="url"]:focus,
input[type="email"]:focus,
input[type="text"]:focus {
	border-color: #0077cc;
	outline: none;
	box-shadow: 0 0 4px rgba(0, 119, 204, 0.3);
}

/* Submit buttons */
input[type="submit"] {
	display: inline-block;
	background: #0077cc;
	color: #fff;
	padding: 0.7rem 1.2rem;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.2s;
}

input[type="submit"]:hover {
	background: #005fa3;
}

table {
	width: 100%; /* table fills the container */
	border-collapse: collapse; /* combine borders for a clean look */
	table-layout: fixed; /* ensures fixed column widths */
}

th,
td {
	border: 1px solid #2c3e50; /* visible lines */
	padding: 0.5rem; /* space inside cells */
	text-align: left;
	word-wrap: break-word; /* break long URLs/emails to fit */
}

td form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.message {
	padding: 0.5rem 1rem;
	border-radius: 6px;
	margin: 0.5rem 0;
}

.message.Info {
	background: #d9edf7;
	color: #31708f;
	border: 1px solid #bce8f1;
}
.message.Success {
	background: #dff0d8;
	color: #3c763d;
	border: 1px solid #d6e9c6;
}
.message.Warning {
	background: #fcf8e3;
	color: #8a6d3b;
	border: 1px solid #faebcc;
}
.message.Error {
	background: #f2dede;
	color: #a94442;
	border: 1px solid #ebccd1;
}