* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

:root{
	--background : #f7f3ee;
	--heading : #43413e;
	--content : #4A4743;
	--ignore : #7F7A73;
	--attention : #8b0000;
	--attention-hover : #630000;
}

body {
	background-color: var(--background);
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.6;
	min-height: 100vh;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--heading);
}

a {
	color: var(--attention);

	&:hover {
		color: var(--attention-hover);
	}
}

button {
	color: var(--attention);
	border: none;
	font-size: 1rem;
	padding: 6px;
	border-radius: 4px;
	box-shadow: none;
	cursor: pointer;

	&:hover {
		color: var(--attention-hover);
		background-color: rgba(0, 0, 0, 0.1);
	}
}

input, textarea {
	font-size: 1rem;
	padding: 6px;
	border: 1px solid rgb(57, 73, 96);
	background-color: #ede8e0;
	color: var(--heading);
	font-family: Arial, Helvetica, sans-serif;
	border-radius: 4px;
	width: 100%;
	margin-bottom: 4px;

}

.navLinks {
	text-align: center;
	padding: 4px;

	ul {
		list-style: none;
	}

	li {
		display: inline-block;
		margin-right: 10px;
	}

}

.index{
	text-align: center;
}

.boardNameHeading {
	text-align: center;
}

.postList {
	display: flex;
	flex-direction: column;

	padding: 8px 0px;
	width: 100%;
	max-width: 600px;
	margin: auto;
	margin-bottom: 350px;
}

.post {
	width: 100%;
	padding: 40px 12px;
	overflow-wrap: anywhere;
	animation: appear 500ms ease-in forwards;


	.ellipsis {
		-webkit-line-clamp: 2;
		line-clamp: 2;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		text-overflow: ellipsis;
		overflow: hidden;
		white-space: normal;
	}

	.title{
		font-size: 1.2rem;
	}

	.title-board {
		max-height: 3.6rem;
	}

	.content {
		color: var(--content);
		font-size: 1.1rem;
	}

	.content-post {
		white-space: pre-wrap;
	}

	.content-board {
		max-height: 3.3rem;
	}

	.userFile {
		display: block;
		width: 100%;
		max-height: 60vh;
		object-fit: contain;
		border-radius: 6px;
	}

	.name {
		color: var(--ignore);
		font-size: 1rem;
	}

	.postFooter {
		display: flex;
		align-items: center;
		gap: 12px;
		flex-wrap: wrap;

		color: var(--ignore);
		font-size: 1rem;
	}

}


.post > :not(:first-child) {
	margin-top: 8px;
}

.post-border{
	border-bottom: 2px dashed lightgray;
}


.newPostWindow {
	background-color: var(--background);
	border: 2px dashed lightgray;
	color: black;
	padding: 8px 0px;
	z-index: 2;
	position: fixed;
	bottom: 0;
	width: 100%;
	animation: appear 200ms ease-in forwards;

	display: flex;
	justify-content: center;

	button {
		margin-right: 8px;
		margin-top : 8px;
	}
}

@keyframes appear {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}

	to {
		opacity: 1;
		transform: translateY(0px);
	}
}

#goBack {
	display: none;
	position: fixed;
	bottom: 16px;
	right: 24px;
	color: var(--attention);
}

.hidden {
	display: none !important;
}

.link-look {
	background-color: transparent;
	font-size: 1rem;
	padding: 2px;

	&:hover {
		background-color: rgba(0, 0, 0, 0.1);
	}
}