@import url('fonts/roboto-v32-latin.css');

* {
	font-family: 'Roboto';
}

.button {
	border: none;
	background-color: var(--colorSecondaryBackground);
	text-decoration: none;
	display: inline-block;
	padding: .75em 1.25em;
	border-radius: 10em;
	color: var(--colorSecondaryText);
	text-transform: uppercase;
	transition: all .3s;
	position: relative;
	overflow: hidden;
	z-index: 1;
}

.button:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--colorSecondaryBackground);
	border-radius: 10rem;
	z-index: -2;
}

.button:before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0%;
	height: 100%;
	background-color: var(--colorPrimaryBackground);
	transition: all .3s;
	border-radius: 10rem;
	z-index: -1;
}

.button:hover {
	background-color: var(--colorPrimaryBackground);
	color: var(--colorSecondaryBackground);
}

.button:hover:before {
	width: 100%;
}

.center {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.h1 {
	margin-top: 0;
	font-family: Arial;
	background-color: var(--colorSecondaryBackground);
	color: var(--colorSecondaryText);
}

hr {
	background-color: var(--colorPrimarySeparator);
	border-color: var(--colorPrimarySeparator);
}

html {
	outline: 0;
	height: 100%;
}

a:focus, button:focus, input:focus, textarea:focus {
	outline: 0;
}

button:focus {
	outline: 0;
}

button::-moz-focus-inner {
	border: 0;
}

textarea, input[type=text], input[type=email], input[type=password] {
	background-color: var(--colorPrimaryPost);
	color: var(--colorPrimaryText);
	border: 1px solid var(--colorPrimarySeparator);
	border-radius: 0.2em;
}

body {
	padding: 0;
	margin: 0;
	color: var(--colorPrimaryText);
	background-color: var(--colorPrimaryBackground);
	font-size: 12pt;
	position: relative;
	min-height: calc(100% - 6em);
	padding-bottom: 6em;
	overflow-wrap: break-word;
}

.error {
	background-color: var(--colorPrimaryError);
}

.success {
	background-color: var(--colorPrimarySuccess);
}

.topnav {
	z-index: 999;
	transition: top 0.3s;
	position: sticky;
	border-top: 1em solid var(--colorSecondaryBackground);
	font-weight: bold;
	color: var(--colorSecondaryText);
	top: 0em;
	list-style-type: none;
	margin: 0;
	padding: 0;
	font-size: 13pt;
	overflow: visible;
	background-color: var(--colorSecondaryBackground);
}

.topnav .links {
	width: 100%;
	display: flex;
}

.topnav .links a {
	width: 100%;
	text-align: center;
}

.topnav a {
	text-align: left;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 11pt;
	border-bottom: 0.5em solid var(--colorSecondaryBackground);
	text-transform: uppercase;
	display: inline;
	color: var(--colorSecondaryText);
	padding: 0.8em;
	text-decoration: none;
}

.topnav a.active {
	border-bottom: 0.5em solid var(--colorPrimaryBackground);
}

.topnav a:hover {
	box-shadow:inset 0 0 0 99999em rgba(0,0,0,0.2);
	border-bottom: 0.5em solid rgba(0,0,0,0.2);
}

.topnav a.active:hover {
	box-shadow:inset 0 0 0 99999em rgba(0,0,0,0.2);
	border-bottom: 0.5em solid var(--colorPrimaryBackground);
}

.topnav .header {
	line-height: 1.5em;
	display: inline;
	border-left: 1em solid var(--colorSecondaryBackground);
}

.dropbtn {
	font-size: 16pt;
	margin-right: 1em;
	background-color: var(--colorSecondaryBackground);
	color: var(--colorSecondaryText);
	padding: 0.5em;
	border: none;
	cursor: pointer;
}

.dropdown {
	position: relative;
	display: inline-block;
}

.dropdown-content {
	display: none;
	position: absolute;
	right: 0;
	background-color: var(--colorSecondaryBackground);
	color: var(--colorSecondaryText);
	box-shadow: 0em 0.4em 0.8em 0.4em rgba(0, 0, 0, 0.2);
	z-index: 1000;
}

.dropdown-content a {
	min-width: 25vw;
	text-transform: none;
	white-space: nowrap;
	text-decoration: none;
	display: block;
}

.dropdown-content a:hover {
	box-shadow:inset 0 0 0 99999em rgba(0,0,0,0.2);
}

.dropdown-content a:hover .dropdown-content {
	box-shadow:inset 0 0 0 99999em rgba(0,0,0,0.2);
}

.dropdown:hover .dropdown-content {
	display: block;
}

.dropdown:hover .dropbtn {
	box-shadow:inset 0 0 0 99999em rgba(0,0,0,0.2);
}

.profileimage {
	width: 256px;
	height: 256px;
	border: 1em solid rgba(0,0,0,0);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

table.userinfo {
	border: 0;
	word-break: break-word;
	white-space: pre-wrap; /* For \n */
}

table.userinfo tr {
	min-height: 2.5em;
}

table.userinfo td,th {
	text-align: center;
	min-width: 33%;;
}

table.userinfo tr.space {
	height: 2.5em;
}

table.userinfo a {
	text-decoration: none;
	color: var(--colorPrimaryLink);
}

footer {
	width: 100%;
	color: var(--colorSecondaryText);
	background-color: var(--colorSecondaryBackground);
	text-align: center;
	height: 5em;
	position: absolute;
	bottom: 0;
}

.post {
	box-shadow: 0em 0.4em 0.8em 0em rgba(0, 0, 0, 0.2);
	width: 90%;
	margin: auto;
	border: 0.5em solid var(--colorPostBackground);
	background-color: var(--colorPostBackground);
	margin-top: 1em;
	border-radius: 0.5em;
}

.post-content {
	white-space: pre-wrap; /* For \n */
}

.post-category {
	text-decoration: none;
	font-weight: bold;
	color: var(--colorPrimaryHeading);
}

.post-info {
	color: var(--colorTextAdditionalInfo);
}

.post-info a {
	text-decoration: none;
	color: var(--colorTextAdditionalInfo);
	font-weight: bold;
}

.post-control {
	font-size: 14pt;
	margin-left: 0.5em;
	display: inline;
}

.post-control a {
	text-decoration: none;
	color: inherit;
}

.post-like {
	color: green;
}

.post-dislike {
	color: red;
}

.post-comments {
	color: grey;
	margin-left: 2em;
}

.post-fav {
	color: grey;
}

.post-fav.active {
	color: gold;
}

.post-fav.active a {
	color: gold;
}

.post-delete {
	margin-left: 1.5em;
	color: red;
}

.about h1 {
	background-color: transparent;
	color: var(--colorPrimaryHeading);
	margin-left: 5%;
}

.about hr {
	width: 95%;
}

.about p {
	margin-left: 5%;
}

.about a {
	margin-left: 5%;
	line-height: 2.5em;
	text-decoration-line: none;
	color: var(--colorPrimaryHeading);
}

.onclick {
	cursor: pointer;
}

div.nextpage {
	margin: 0 auto;
	color: var(--colorSecondaryText);
	font-size: x-large;
	margin-top: 1em;
	display: table;
}

div.nextpage a {
	color: var(--colorSecondaryText);
	text-decoration: none;
	background-color: var(--colorSecondaryBackground);
	float: left;
	padding: 0.4em 0.8em;
	border: 0.05em solid rgba(0,0,0,0.2);
}

div.nextpage a.active {
	text-decoration: underline;
}

div.nextpage a:hover:not(.active) {
	box-shadow:inset 0 0 0 99999em rgba(0,0,0,0.2);
}

div.nextpage a:first-child {
	border-top-left-radius: 0.2em;
	border-bottom-left-radius: 0.2em;
}

div.nextpage a:last-child {
	border-top-right-radius: 0.2em;
	border-bottom-right-radius: 0.2em;
}

.categories div.border {
	margin: 0 auto;
	cursor: pointer;
	border-top: 1px solid var(--colorPrimarySeparator);
	border-bottom: 1px solid var(--colorPrimarySeparator);
	width: 100%;
}

.categories div.categories-wrapper {
	margin: 0 auto;
	border-top: 1px solid var(--colorPrimarySeparator);
	border-bottom: 1px solid var(--colorPrimarySeparator);
	width: 95%;
}

.categories div.super {
	color: var(--colorPrimaryHeading);
	text-transform: uppercase;
	margin-left: 5%;
}

.categories a {
	line-height: 32pt;
	text-decoration: none;
	color: var(--colorPrimaryText);
	margin-left: 7%;
}

input {
	font-size: inherit;
}

form.default-form {
	margin-top: 2em;
	margin-bottom: 6em;
}

.edit {
	font-size: 14pt;
	display: inline;
	text-decoration: none;
	color: var(--colorPrimaryLink);
}

.showMore {
	display: none;
}

.showMore + label {
	color: var(--colorPrimaryLink);
	cursor: pointer;
}

.showMore + label + div {
	display: none;
}

.showMore:checked + label + div {
	display: inline;
}

.showMore:checked + label {
	display: none;
}

.showMore:checked {
	display: none;
}

input.search {
	min-width: 25vw;
	background-color: var(--colorSecondaryBackground);
	color: var(--colorSecondaryText);
	border: 0.1em solid var(--colorPrimaryBackground);
	border-radius: 0.5em;
	padding: 0.5em;
	margin: 0.5em;
}

input.search::placeholder {
	color: var(--colorSecondaryText);
}

.rank {
	border-radius: 10rem;
	color: var(--colorSecondaryText);
	display: inline-block;
	padding: 0.5em;
	font-weight: bold;
	font-size: small;
	margin-bottom: 1em;
}

.moderator {
	background-color: green;
}

.administrator {
	background-color: red;
}

.report {
	text-decoration: none;
	color: grey;
}

.report:hover {
	color: red;
}

/** SweetAlert2 **/
.swal2-popup {
	background-color: var(--colorPrimaryBackground)!important;
}

.swal2-title {
	color: var(--colorPrimaryHeading)!important;
}

.swal2-content {
	white-space: pre-wrap!important; /* For \n */
	color: var(--colorPrimaryText)!important;
}

.swal2-confirm {
	background-color: var(--colorPrimarySuccess)!important;
	color: var(--colorPrimaryText)!important;
}

.swal2-cancel {
	background-color: var(--colorPrimaryError)!important;
	color: var(--colorPrimaryText)!important;
}
