/* General resetting */

button,
textarea,
[type="text"],
[type="email"],
[type="password"],
[type="submit"] {
	-moz-appearance: none; /* Firefox */
	-webkit-appearance: none; /* Safari and Chrome */
	appearance: none;
	background: none;
	border: none;
	font-size: inherit;
	font-family: inherit;
	color: inherit;
	outline: none;
}

/* Conversations page buttons */

.new_post_buttons {
	display: flex;
	padding: 6px 6px;
	width: 100%;
	flex-direction: row;
	justify-content: flex-end;
	box-sizing: border-box;
	font-weight: bold;
}

.new_post_buttons a.button:last-of-type {
	margin-right: 0;
}

.new_post_buttons a.button {
	font-size: 0.9em;
	font-family: inherit;
	font-weight: bold;
	color: inherit;
	display: block;
	text-decoration: none;
	font-weight: bold;
	color: var(--button-color);
	background: var(--button-background);
	border-radius: 6px;
	height: 32px;
	padding: 2px 16px;
	margin-right: 8px;
	display: flex;
	align-items: center;
	cursor: pointer;
}

.new_post_buttons a.button:hover,
.new_post_buttons a.button:active,
.new_post_buttons a.button:focus {
	background: var(--button-background-highlighted);
}

.new_post_buttons a.button svg {
	width: 15px;
	height: 15px;
	margin-right: 6px;
}

@media only screen and (max-width: 869px) {
	.new_post_buttons a.button {
		height: 38px;
		padding: 0 16px;
	}
}

/* Conversation reply form */

article.new_post {
	background: none;
	padding: 8px 0;
	width: 100%;
	padding-bottom: 35px;
	box-sizing: border-box;
	display: block;
}

article.new_post > form {
	background: var(--post-background-weak);
	border-radius: 8px;
	padding: 0;
	width: 100%;
	box-sizing: border-box;
	display: block;
}

article.new_post textarea {
	padding: 25px;
	width: 100%;
	box-sizing: border-box;
	border-radius: 8px 8px 0 0;
	cursor: pointer;
}

.expanded{
	height: 40vh;
}

article.new_post textarea:focus,
article.new_post textarea:active {
	background: var(--post-background);
	cursor: text;
}

article.new_post .new_post_buttons {
	display: flex;
	padding: 14px 16px;
	width: 100%;
	flex-direction: row;
	justify-content: flex-end;
	box-sizing: border-box;
}

article.new_post .new_post_buttons button {
	width: 100px;
	color: var(--button-color);
	background: var(--button-accented-background);
	font-weight: bold;
	border-radius: 6px;
	height: 40px;
	cursor: pointer;
}

article.new_post .new_post_buttons button:hover,
article.new_post .new_post_buttons button:active {
	background: var(--button-accented-background-highlighted);
}

@media only screen and (max-width: 869px) {
	article.new_post > form {
		border-radius: 0;
	}

	article.new_post {
		padding: 5px 10px 10px 10px;
	}

	article.new_post textarea {
		padding: 15px;
	}
}

/* New conversation form */

main.new_post {
	background: none;
	padding: 8px 0;
	width: 100%;
	min-width: var(--main-min-width);
	max-width: var(--main-max-width);
	padding-bottom: 15px;
	box-sizing: border-box;
	display: block;
	height: 100dvh;
	max-height: 1000px;
	box-sizing: border-box;
}

main.new_post > form {
	background: var(--post-background-weak);
	overflow: hidden;
	border-radius: 8px;
	padding: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

main.new_post textarea,
main.new_post input {
	padding: 25px;
	width: 100%;
	box-sizing: border-box;
	border-radius: 0;
	cursor: pointer;
	box-sizing: border-box;
	cursor: pointer;
}

main.new_post textarea:focus,
main.new_post input:focus,
main.new_post textarea:active,
main.new_post input:active {
	background: var(--post-background);
	cursor: text;
}

main.new_post input.post_title {
	font-size: 1.2em;
	height: 70px;
	overflow: hidden;
	padding: 25px;
	width: 100%;
	box-sizing: border-box;
}

main.new_post textarea.post_text {
	padding: 25px;
	width: 100%;
	flex: 1;
	box-sizing: border-box;
}

main.new_post .new_post_buttons {
	display: flex;
	padding: 14px 16px;
	width: 100%;
	flex-direction: row;
	justify-content: flex-end;
	box-sizing: border-box;
}

main.new_post .new_post_buttons button {
	width: 100px;
	color: var(--button-color);
	font-weight: bold;
	background: var(--button-accented-background);
	border-radius: 6px;
	height: 40px;
	cursor: pointer;
}

main.new_post .new_post_buttons button:hover,
main.new_post .new_post_buttons button:active {
	background: var(--button-accented-background-highlighted);
}

@media only screen and (max-width: 869px) {
	main.new_post {
		padding-top: 0;
		padding-bottom: 0;
		max-height: none;
	}
	main.new_post textarea {
		padding: 15px;
	}
}

/* Server setup form */

.form_main {
	background: none;
	width: 100%;
	min-width: var(--main-min-width);
	max-width: var(--main-max-width);
	padding: 15px 25px;
	box-sizing: border-box;
	display: block;
	box-sizing: border-box;
}

main.setup textarea,
main.setup input,
.form_main textarea,
.form_main input[type="text"],
.form_main input[type="password"]  {
	padding: 25px;
	width: 100%;
	box-sizing: border-box;
	border-radius: 0;
	cursor: pointer;
	box-sizing: border-box;
	cursor: pointer;
}

main.setup textarea:focus,
main.setup input:focus,
main.setup textarea:active,
main.setup input:active,
.form_main textarea:focus,
.form_main input:focus,
.form_main textarea:active,
.form_main input:active {
	cursor: text;
}

main.setup input.post_title,
.form_main input.post_title {
	background: var(--post-background);
	font-size: 1.2em;
	height: 70px;
	overflow: hidden;
	border-radius: 6px;
	padding: 25px;
	width: 100%;
	box-sizing: border-box;
}

main.setup input.setup_file,
.form_main input.setup_file  {
	padding-left: 0;
	padding-top: 10px;
	color: var(--main-color-200);
}

.form__label {
	color: var(--main-color-100);
	padding: 15px 0 6px 0;
	font-size: 1em;
	display: block;
	box-sizing: border-box;
}

.new_settings_buttons {
	display: flex;
	padding: 40px 0 20px 0;
	font-weight: bold;
	width: 100%;
	flex-direction: row;
	justify-content: flex-end;
	box-sizing: border-box;
}

.select_dropdown {
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	border: none;
	padding: 7px 14px;
	border-radius: 5px;
	cursor: pointer;
	background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
	background-repeat: no-repeat;
	background-position-x: 95%;
	background-position-y: 4px;
	color: var(--button-color);
	background-color: var(--button-background);
	margin: 5px 0;
}

.select_dropdown:hover, .select_dropdown:active {
	background-color: var(--button-background-highlighted);
}

/* @media (prefers-color-scheme: dark) {
	.select_dropdown {
		background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
	}
} */

.checkbox__group {
	display: flex;
	flex-direction: row;
}

.checkbox__group > label {
	flex: auto;
	cursor: pointer;
}

.group__checkbox {
	width: auto;
	margin-top: 9px;
	margin-right: 10px;
	cursor: pointer;
}

.radio__color__group {
	display: flex;
	flex-direction: row;
	padding: 5px 0 25px 0;
}

.radio__hidden {
	display: none;
}

.group__radio__label {
	cursor: pointer;
	display: inline;
	margin-right: 4px;
}

.group__radio__label:last-of-type {
	margin-right: 0;
}

.group__radio__label input:hover ~ .group__radio__border {
	border: 2px solid var(--radio-border-color-highlighted);
}

.group__radio__label input:checked ~ .group__radio__border {
	border: 2px solid var(--radio-border-color-checked);
}

.group__radio__border {
	width: 18px;
	height: 18px;
	border: 2px solid var(--radio-border-color);
	padding: 2px;
	border-radius: 50%;
	overflow: hidden;
}

.group__radio__dot {
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.group__radio__dot__color--yellow {
	background: var(--member-color-yellow);
}

.group__radio__dot__color--purple {
	background: var(--member-color-purple);
}

.group__radio__dot__color--green {
	background: var(--member-color-green);
}

.group__radio__dot__color--blue {
	background: var(--member-color-blue);
}

.group__radio__dot__color--deepblue {
	background: var(--member-color-deepblue);
}

.group__radio__dot__color--pink {
	background: var(--member-color-pink);
}

.group__radio__dot__color--orange {
	background: var(--member-color-orange);
}

.group__radio__dot__color--red {
	background: var(--member-color-red);
}

.group__radio__dot__color--cyan {
	background: var(--member-color-cyan);
}

.group__radio__dot__color--grey {
	background: var(--member-color-grey);
}

@media only screen and (max-width: 869px) {
	.form_main {
		padding-bottom: 0;
		max-height: none;
	}
	main.setup textarea,
	.form_main textarea {
		padding: 15px;
	}
}
