@import 'utilities.css';
@import 'buttons.css';
@import 'forms.css';

body {
	font-family: var(--main-font);
	background-color: #bcc6cf;
	background-image: url('/assets/img/bg.jpg');
	background-attachment: fixed;
	background-position: center top;
	background-repeat: no-repeat;
	width: 100vw;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

header#basic-header {
	display: flex;
	justify-content: center;
	margin: 1rem 0;
}

footer {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 1rem 0;
	padding: 1rem;
	text-align: center;
	color: #666;

	& > p:not(:last-child) {
		margin-right: 2rem;
	}
}

span.badge {
	font-size: 10px;
	background-color: #f7f8fa;
	color: #111111;
	border-radius: 0.25rem;
	padding: 0.1rem 0.25rem;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;

	&.dark {
		background-color: #444c55;
		color: white;
	}

	&.green {
		background-color: #a6e3a1;
	}
}

.tooltip {
	position: absolute;
	background-color: black;
	color: white;
	border: 1px solid #666;
	font-size: 14px;
	padding: 0.5rem;
	box-shadow: 0 0 0.5rem 0.1rem rgba(0, 0, 0, 0.2);
	border-radius: 0.1rem;
	text-align: center;
}

.tooltip-trigger {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

h1:has(.badge), h2:has(.badge), h3:has(.badge), h4:has(.badge), h5:has(.badge), h6:has(.badge) {
	display: flex;
	align-items: center;

	& > .badge {
		margin-left: 0.5rem;
	}
}

.alert {
	position: relative;
    min-height: 1rem;
    margin: 1rem 0;
    background: #f8f8f9;
    padding: 0.5rem 1rem;
    line-height: 1.4285rem;
    color: rgba(0, 0, 0, .87);
    transition: opacity .1s ease, color .1s ease, background .1s ease, box-shadow .1s ease;
    border-radius: .28571429rem;
    box-shadow: 0 0 0 1px rgba(34, 36, 38, .22) inset, 0 0 0 0 transparent;
	display: flex;
	align-items: center;
	justify-content: space-between;

	&.success {
		background-color: #f0f9eb;
		color: #2c662d;
		border-color: #b3dc9d;
	}

	&.danger {
		background-color: #f9e9eb;
		color: #9f3a38;
		border-color: #e0b4b4;
	}

	&.warning {
		background-color: #fff8e1;
		color: #573a08;
		border-color: #f9e79f;
	}

	&.info {
		background-color: #f0f9fb;
		color: #2c7fba;
		border-color: #b3d7f9;
	}

	&.dark {
		background-color: #f0f0f0;
		color: #2c2c2c;
		border-color: #b3b3b3;
	}

	a[alert-close] {
		text-decoration: none;
		cursor: pointer;
		font-size: 2rem;
		color: inherit;
	}
}

a {
	color: #4C0515;
	text-decoration: none;
	transition: color 0.2s ease;

	&:hover {
		color: #6C0515;
		text-decoration: underline;
	}
}

body::-webkit-scrollbar {
	width: 0.5rem;
}

body::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.1);
}

body::-webkit-scrollbar-thumb {
	background-color: #444c55;
	background-image: linear-gradient(rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.1));
	border: 1px solid;
	border-color: #3D444C #2F353B #2C3137;
	box-shadow: 0px 1px 0px 0px rgba(255, 255, 255, 0.2) inset;
}

.char-icon {
	width: 32px;
	height: 32px;
	background-image: url('/assets/img/world/rogues.png');

	&.index-0 {
		background-position: 0 0;
	}

	&.index-1 {
		background-position: -32px 0;
	}

	&.index-2 {
		background-position: -64px 0;
	}

	&.index-3 {
		background-position: -96px 0;
	}

	&.index-4 {
		background-position: -128px 0;
	}
}
