* { box-sizing: border-box; }

body {
	margin: 0;
	padding: 0;
	background-color: #26415a;
	background-size: cover;
	overflow-x: hidden;
	min-height: 100vh;
}

.container {
	padding: 10px;
	margin: auto;
	max-width: 1850px;
	background-color: #26415a;
}

.title {
	font-size: 23pt;
	font-family: "SiteFontTitle", "Helvetica Neue", Arial;
	font-weight: bold;
	font-stretch: condensed;
	font-style: italic;
	color: rgb(255, 255, 255);
	text-decoration: none;
	text-align: center;
	width: 100%;
	max-width: 1700px;
	margin: auto;
	padding: 15px 40px;
	background-color: #26415a;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	position: relative;
}


h1 { margin: 0; }

p {
	font-family: "SiteFont";
	font-weight: 300;
	color: #868377;
}

.links {
	font-size: 20pt;
	margin-right: 5px;
	margin-bottom: 2px;
	margin-top: 2px;
	font-family: "SiteFont" !important;
	font-weight: 300;
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: none;
	padding: 3px 8px;
	color: #3d3d3d;
	cursor: pointer;
	display: inline-block;
	text-decoration: none;
}

.stuff {
	background-color: #fffbe8;
	padding: 26px 30px;
	min-height: 500px;
	flex: 1 1 400px;
	min-width: 300px;
	font-family: "SiteFont", Tahoma, sans-serif;
}

.buttons {
	text-align: center;
	width: 100%;
	max-width: 1700px;
	margin: auto;
	padding: 0 320px;
	background-image: linear-gradient(in oklch, #a5a5a5, #888888);
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 2px;
	border: solid 2px #868377;
	border-bottom: none;
}

.search-bar {
	display: flex;
	width: 600px;
	max-width: 90%;
	min-width: 180px;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

.search-input {
	flex: 1;
	font-family: "SiteFont";
	font-weight: 200;
	font-size: 22pt;
	padding: 5px 15px;
	border: solid 1px rgb(200, 200, 200);
	border-radius: 2px 0 0 2px;
	background-color: #1e3448;
	color: rgb(255, 255, 255);
}

.search-input::placeholder { color: rgb(255, 255, 255); }

.search-btn {
	font-family: "SiteFont";
	font-style: italic;
	font-weight: 300;
	font-size: 15pt;
	padding: 0 16px;
	border: none;
	border-radius: 0 2px 2px 0;
	background-color: rgb(200, 200, 200);
	color: rgb(30, 30, 30);
	cursor: pointer;
}

.search-btn:hover {
	background-color: rgb(255, 255, 255);
}

.header {}

.rant-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.rant-footer-left {
	display: flex;
	gap: 16px;
	font-family: "SiteFont";
	color: #5c5a4e;
	font-weight: 300;
}

.rant-footer-right {
	font-size: 12pt;
	color: #5c5a4e;
	font-family: "SiteFont";
	margin-right: 10px;
	font-weight: 300;
}

.rant-delete-form {
	margin-top: 10px;
	text-align: right;
}

.rant-title {
	margin: 10px 0 0;
	font-family: "SiteFont";
	font-weight: 200;
	font-size: 30pt;
	color: #3d3d3d;
}

.rant-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.rant-card-wrap:hover {
	background-color:#b9b5a1;
}

.rant-body {
	color: #3d3d3d;
}

.rant-delete-btn {
	font-family: "SiteFont";
	font-size: 10pt;
	padding: 3px 10px;
	border: 1px solid #c0392b;
	border-radius: 2px;
	background-color: transparent;
	color: #c0392b;
	cursor: pointer;
}

.rant-card-wrap {
	background-color: #d5d1be;
	border: 2px solid #868377;
	border-radius: 3px;
	padding: 0 0 10px 10px;
	margin: 15px 0;
	transition: background-color 0.2s ease;
}


.rant-card-wrap .rant-card {
	margin: 0;
	display: block;
	text-decoration: none;
	color: inherit;
}

.rant-delete-form {
	margin-top: -8px;
	text-align: right;
}

.auth-links {
	font-size: 23pt;
	font-family: "SiteFontTitle", "Helvetica Neue";
	font-weight: 300;
	color: rgb(255, 255, 255);
	white-space: nowrap;
	font-style: normal;
	font-stretch: condensed;
}

.auth-links a {
	color: rgb(255, 255, 255);
	text-decoration: none;
}

.auth-links a:hover { text-decoration: underline; }

.main {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 1700px;
	margin: auto;
	border-bottom: 2px solid #868377;
}

.title-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.sidebar {
	flex: 0 3 320px;
	min-width: 140px;
	padding: 2px 24px 26px;
	background-color: #d5d1be;
	font-family: "SiteFont";
	border: 2px solid #868377;
	border-top: none;
	border-bottom: none;
}

.sidebar--right {
	margin-left: auto;
}

.sidebar-title {
	font-size: 38pt;
	font-weight: 200;
	color: #5c5a4e;
	margin: 0 0 18px;
}

.group-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.group-item {
	border-bottom: 2px solid #868377;
}

.group-item a {
	display: block;
	padding: 6px 0;
	font-size: 24pt;
	font-weight: 300;
	color: #5c5a4e;
	text-decoration: none;
}

.group-item a:hover { color: #26415a; }

.group-item.active a { font-weight: bold; color: rgb(40, 40, 40); }

.group-item--other { border-bottom: none; }

.group-item--other a { font-style: italic; }

.vote-form {
	display: inline-block;
	margin-right: 10px;
}

.vote-btn {
	font-family: "SiteFont";
	font-size: 11pt;
	padding: 4px 12px;
	border: 1px solid #868377;
	border-radius: 3px;
	background-color: #fffbe8;
	color: #3d3d3d;
	cursor: pointer;
}

.vote-btn:hover {
	background-color: #e8e2c8;
}

.vote-btn.vote-active {
	background-color: #26415a;
	border-color: #26415a;
	color: #fdf8e3;
}

.comments-heading {
	font-family: "SiteFont";
	font-size: 16pt;
	font-weight: 300;
	color: #5c5a4e;
	margin: 20px 0 12px;
}

.comment-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}

.comment-form textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 80px;
	font-family: "SiteFont";
	font-size: 12pt;
	padding: 12px;
	border: 2px solid #868377;
	border-radius: 3px;
	background-color: #fffbe8;
	color: #3d3d3d;
	resize: none;
}

.comment-submit {
	align-self: flex-start;
	font-family: "SiteFont";
	font-size: 12pt;
	padding: 8px 20px;
	border: 2px solid #868377;
	border-radius: 3px;
	background-color: #d5d1be;
	color: #3d3d3d;
	cursor: pointer;
}

.comment-submit:hover {
	background-color: #b3af9f;
}

.comment-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.comment {
	background-color: #f2eeda;
	border: 1px solid #c9c4a8;
	border-radius: 3px;
	padding: 12px 16px;
}

.comment-meta {
	font-size: 9pt;
	color: #868377;
	margin: 0 0 6px;
}

.comment-body {
	font-size: 11pt;
	color: #3d3d3d;
	margin: 0;
	white-space: pre-wrap;
}

.content-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 18px;
}

.content-title {
	font-size: 42pt;
	font-family: "SiteFont";
	font-style: italic;
	font-weight: 200;
	color: rgb(90, 90, 90);
	margin: 0;
}

.content-subtitle {
	font-size: 40pt;
	font-weight: 200;
	font-family: "SiteFont";
	color: rgb(90, 90, 90);
}

hr {
  	border: none;
	height: 1px;
  	background-color: #868377;
}

.create-rant {
	border: solid 2px #868377;
	background-color: #d5d1be;
	border-radius: 2px;
	font-weight: 400;
	font-family: "SiteFont";
	color: rgb(90, 90, 90);
	width: 100%;
	padding: 7px 0;
	font-size: 17pt;
	cursor: pointer;
}

.create-rant:hover {
	background-color: rgb(90, 90, 90);
	color: #d5d1be;
}

.title a {
	text-decoration: none;
	color: rgb(255, 255, 255);
}

.post-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	margin: 0 auto;

}

.post-subject,
.post-group {
	font-family: "SiteFont";
	font-size: 14pt;
	padding: 10px 14px;
	border: solid 2px #868377;
	border-radius: 2px;
	background-color: #d5d1be;
	color: #3d3d3d;
	width: 100%;
}

.post-body {
	font-family: "SiteFont";
	font-size: 13pt;
	padding: 14px;
	min-height: 200px;
	resize: none;
	border: solid 2px #868377;
	border-radius: 2px;
	background-color: #d5d1be;
	color: #3d3d3d;
	width: 100%;
}

.post-subject::placeholder,
.post-body::placeholder {
	color: #858171;
}

.acct-widget {
	position: relative;
	display: inline-block;
	font-family: "SiteFont";
	font-stretch: condensed;
}

.acct-widget .username-link {
	font-family: "SiteFont";
	font-size: 30pt;
	font-weight: bold;
	background: none;
	border: none;
	color: #ffffff;
	cursor: pointer;
	padding: 0;
	font-stretch: condensed;
}

.acct-panel {
	display: none;
	position: absolute;
	top: 30px;
	right: 0;
	background: #26415a;
	border: 1px solid #4a6478;
	border-radius: 4px;
	padding: 12px;
	width: 180px;
	z-index: 999;
}

.acct-panel.open {
	display: block;
}

.acct-panel-username {
	font-size: 16pt;
	color: #9fb4c4;
	margin: 0 0 8px;
	padding-bottom: 8px;
	border-bottom: 2px solid #4a6478;
}

.acct-panel-link {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: left;
	font-family: "SiteFont";
	font-size: 15pt;
	color: #fdf8e3;
	text-decoration: none;
	background: none;
	border: none;
	padding: 6px 4px;
	cursor: pointer;
}

.acct-panel-link:hover {
	color: #d5d1be;
}

.acct-logout-form {
	margin: 0;
	border-top: 1px solid #4a6478;
	margin-top: 4px;
	padding-top: 4px;
	font-stretch: condensed;
}

.username-link {
	font-stretch: condensed;
}

.links {
	transition: font-weight 0.20s ease;
}

.links:hover {
	font-weight: 700;
}

.profile-section {
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid #c9c4a8;
}

.profile-section:last-child {
	border-bottom: none;
}

.profile-section-title {
	font-size: 18pt;
	font-weight: bold;
	color: #3d3d3d;
	text-transform: lowercase;
	margin: 0 0 10px;
	font-family: "SiteFont";
	font-weight: 300;
}

.profile-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 400px;
}

.profile-form input {
	font-family: "SiteFont";
	font-size: 12pt;
	padding: 10px 14px;
	border: 2px solid #868377;
	border-radius: 3px;
	background-color: #fffbe8;
	color: #3d3d3d;
}

.profile-submit {
	align-self: flex-start;
	font-family: "SiteFont";
	font-size: 12pt;
	padding: 8px 20px;
	border: 2px solid #868377;
	border-radius: 3px;
	background-color: #d5d1be;
	color: #3d3d3d;
	cursor: pointer;
}

.profile-submit:hover {
	background-color: #b3af9f;
}

.profile-success {
	background-color: #e0f0d8;
	border: 1px solid #a8c99a;
	border-radius: 3px;
	padding: 10px 16px;
	color: #3d5c33;
	margin-bottom: 16px;
}

.profile-error {
	background-color: #f5dcdc;
	border: 1px solid #d99a9a;
	border-radius: 3px;
	padding: 10px 16px;
	color: #7a2e2e;
	margin-bottom: 16px;
}

.group-card {
	display: block;
	background-color: #d5d1be;
	border: 2px solid #868377;
	border-radius: 3px;
	padding: 20px 24px;
	margin-bottom: 16px;
	font-family: "SiteFont";
	text-decoration: none;
	color: inherit;
	transition: background-color 0.2s ease;
}

.group-card:hover {
	background-color: #b3af9f;
}

.group-card-title {
	margin: 0 0 4px;
	font-size: 25pt;
	font-weight: 300;
	color: #3d3d3d;
}

.group-card-meta {
	margin: 0 0 10px;
	font-size: 11pt;
	color: #868377;
}

.group-card-desc {
	margin: 0;
	font-size: 12pt;
	color: #5c5a4e;
}

.group-item.active a {
	font-weight: bold;
	color: rgb(40, 40, 40);
}

.sidebar-toggle {
	display: none;
}

@media (max-width: 1280px) {

	.search-input {
		font-size: 14pt;
		padding: 6px 12px;
	}

	.search-btn {
		font-size: 11pt;
		padding: 0 12px;
	}

	.sidebar-toggle {
		display: block;
		width: 100%;
		font-family: "SiteFont";
		font-size: 14pt;
		padding: 10px;
		margin-bottom: 4px;
		border: 2px solid #868377;
		border-radius: 3px;
		background-color: #d5d1be;
		color: #3d3d3d;
		cursor: pointer;
	}
	
	.sidebar:not(.sidebar--right) {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		width: 280px;
		max-width: 80vw;
		z-index: 200;
		transform: translateX(-100%);
		transition: transform 0.25s ease;
		overflow-y: auto;
	}

	.sidebar:not(.sidebar--right).open {
		transform: translateX(0);
	}

	.sidebar--right {
		display: none;
	}

	.sidebar-backdrop {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		z-index: 150;
	}

	.sidebar-backdrop.open {
	display: block;
	}

	.links {
		font-size: 16pt;
 	}

	.search-bar {
		width: 45vw;
		max-width: 500px;
	}

	.buttons {
		font-size: 16pt;
		padding: 0 20px;
	}
}

.rant-delete-btn:hover {
	background-color: #c0392b;
	color: #ffffff;
}

@media (max-width: 1600px) {
	.title h1 {
		font-size: 32pt !important;
	}
}

@media (max-width: 1390px) {
	.title h1 {
		font-size: 27pt !important;
	}

	.auth-links .username-link {
		font-size: 27pt;
	}

}

@media (max-width: 900px) {
    .title {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .title h1 {
	order: 1;
	flex: 0 0 auto;
	font-size: clamp(14pt, 5.5vw, 24pt) !important;
	width: auto;
	min-width: 0;
	overflow: visible;
	padding-right: 4px;
    };

.auth-links {
    order: 2;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    text-align: right;
}

    .search-bar {
        order: 3;
        position: static;
        left: auto;
        transform: none;
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-top: 8px;
    }

    .search-input {
        min-width: 0;
    }
}

@media (max-width: 510px) {
	.descrip {
		font-size: 12pt;
	}

	.links {
		font-size: 13pt;
	}

	.title {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
    }

	.title h1 {
	order: 1;
	flex: 0 0 auto;
	font-size: clamp(14pt, 5.5vw, 24pt) !important;
	width: auto;
	min-width: 0;
	overflow: visible;
	padding-right: 4px;
    }

.auth-links {
order: 2;
flex: 0 0 auto;
font-size: 14pt !important;
white-space: nowrap;
text-align: right;
    }

.search-bar {
order: 3;
position: static;
left: auto;
transform: none;
flex: 0 0 100%;
width: 100%;
min-width: 0;
max-width: none;
margin-top: 6px;
    }

.search-input {
min-width: 0;
    }

		.content-title {
			font-size: 18pt;
		}

		.content-subtitle {
			font-size: 18pt;
		}


}

@font-face {
	font-family: "SiteFont";
	src: local("HelveticaNeue-Thin"), local("Helvetica Neue Thin"), url("fonts/Inter-Thin.ttf") format("truetype");
	font-weight: 200;
	font-style: normal;
}

@font-face {
	font-family: "SiteFont";
	src: local("HelveticaNeue-ThinItalic"), local("Helvetica Neue Thin Italic"), url("fonts/Inter-ThinItalic.ttf") format("truetype");
	font-weight: 200;
	font-style: italic;
}

@font-face {
	font-family: "SiteFont";
	src: local("HelveticaNeue-Light"), local("Helvetica Neue Light"), url("fonts/Inter-ExtraLight.ttf") format("truetype");
	font-weight: 300;
	font-style: normal;
}

@font-face {
	font-family: "SiteFont";
	src: local("HelveticaNeue-LightItalic"), local("Helvetica Neue Light Italic"), url("fonts/Inter-ExtraLightItalic.ttf") format("truetype");
	font-weight: 300;
	font-style: italic;
}

@font-face {
	font-family: "SiteFont";
	src: local("HelveticaNeue-Bold"), local("Helvetica Neue Bold"), url("fonts/Inter-Bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: "SiteFontTitle";
	src: local("Helvetica Neue Condensed Bold"), local("HelveticaNeue-CondensedBold"), url("fonts/BarlowCondensed-Bold.ttf") format("truetype");
	font-weight: bold;
	font-style: normal;
	font-stretch: condensed;
}
