@import url('/include/bulma-modifications.css');
@import url('/include/custom.css');

html,
body {
	min-height: 100vh;
}

body,
html {
	font-family: "Maven Pro", sans-serif;
	background-color: var(--bulma-primary-95);
	scroll-behavior: smooth;
}

input[type=file] {
	border: 2px dashed var(--bulma-primary);
	border-radius: 6px;
	padding: 3rem;
	width: 100%;
}

/* Loading Screen */
.overlayLoader {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 40;
	cursor: wait;
	text-align: center;
	color: #fff;
	-webkit-animation: fade 0.3s ease-in-out;
	animation: fade 0.3s ease-in-out;
}

.overlayLoader .imgProcessing {
	width: 60%;
	margin: auto;
}

.overlayLoader .loaderBox {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Modal */
.trvModal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(25, 25, 26, 0.3);
	z-index: 40;
}

.trvModal-content {
	position: relative;
	color: var(--bulma-on-scheme);
	background-color: var(--bulma-primary-95);
	border: 2px solid var(--bulma-primary-95-invert);
	margin: 5% auto;
	width: 60%;
	border-radius: 6px;
	-webkit-animation: enter-top 0.5s ease-out;
	animation: enter-top 0.5s ease-out;
}

.trvModal-content-small {
	width: 40%;
}

.trvModal-content .delete:first-child {
	position: absolute;
	top: 7px;
	right: 7px;
}

.trvModal-header {
	width: 100%;
	text-align: center;
	background-color: var(--bulma-primary-85);
	border-bottom: 2px solid var(--bulma-primary-85-invert);
	border-radius: 6px 6px 0 0;
}

/* Color avatar */
.categoryColorImage {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	text-align: center;
	vertical-align: middle;
	font-size: 24px;
	position: relative;
	background-color: var(--bulma-primary-dark);
	color: var(--bulma-white);
}

.categoryColorImage span {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-weight: bold;
}

/* Filters and pagination */
.filtersBox {
	background-color: var(--bulma-primary-soft);
	position: absolute;
	margin-top: 0.25rem;
	z-index: 10;
}

.paginationBox {
	width: 50%;
	margin: auto;
}

/* Others */
#headerLogoDesktop {
	display: none;
}

#headerLogoMobile {
	display: flex;
}

@media screen and (min-width: 1024px) {
	#headerLogoDesktop {
		display: flex;
	}

	#headerLogoMobile {
		display: none;
	}
}

@media screen and (max-width: 768px) {
	.trvModal-content {
		width: 95%;
	}

	.trvModalButtons {
		flex-direction: column-reverse;
		display: flex;
	}

	.paginationBox {
		width: 100%;
	}

	.list-item-controls {
		flex-shrink: initial !important;
	}
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {

	body,
	html {
		background-color: var(--bulma-primary-05);
	}

	.trvModal-content {
		background-color: var(--bulma-primary-10);
		border: 2px solid var(--bulma-primary-10-invert);
	}

	.trvModal-header {
		background-color: var(--bulma-primary-15);
		border-bottom: 2px solid var(--bulma-primary-15-invert);
	}
}