main {
	margin-top: -3.5em;
}

h1[data-content] {
	margin-top:1em;
	text-align: center;
	color: white;
}

.bestiary-content-filters {
	position: relative;
	width: 100%;
	height: 2em;
}

.bestiary-content-filters-header {
	width: 100%;
	height: 2em;
	color: var(--primary-color-alert);
	font-weight: bold;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
}

.bestiary-content-filters-header:has(span.hidden) {
	justify-content: flex-end;
}

.bestiary-content-filters-header span {
	height: 100%;
	display: flex;
	align-items: end;
	gap: 0.5em;
}

.bestiary-content-filters-body {
	z-index: 2;
	position: absolute;
	width: 100%;
	top: 2.5em;
	height: 0;
	border: 2px solid var(--primary-color-alert);
	background-color: black;
	overflow: hidden;
	display: flex;
	gap: 0.5em;
	padding: 0.5em;
	box-sizing: border-box;
	justify-content: space-between;
	color: var(--primary-color-alert);
	font-weight: bold;
	opacity: 0;
}

.expand_medium {
	animation: expand_medium 0.3s ease-out forwards;
}
.revese_expand_medium {
	animation: revese_expand_medium 0.3s ease-out forwards;
}

#tree {
	margin-top: 1em;
}
    
@keyframes expand_medium {
	from {
		height: 0;
		opacity: 1;
	}
	to {
		height: 7.5em;
		opacity: 1;
	}
}
@keyframes revese_expand_medium {
	from {
		height: 7.5em;
		opacity: 1;
	}
	to {
		height: 0;
		opacity: 1;
	}
}

.bestiary-content-filters-body-filterList span { 
	font-size: 1.2em;
}

.bestiary-content-filters-body-filterList ul {
	list-style-type: none;
}

.bestiarry-content-filters-body-action {
	position: absolute;
	top: 0.5em;
	right: 0.5em;
}

.bestiarry-content-filters-body-action i {
	margin-left: 0.5em;
	font-size: 1em;
	
}

.toggle {
	position: relative;
	display: inline-block;
	width: 2em;
	height: 1.1em;
}
    
.toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}
    
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #b32929;
	border-radius: 26px;
	transition: 0.4s;
}
    
.slider::before {
	content: "";
	position: absolute;
	height: 1em;
	width: 1em;
	left: 1px;
	bottom: 1px;
	background-color: white;
	border-radius: 50%;
	transition: 0.4s;
}
    
.toggle input:checked + .slider {
	background-color: var(--primary-color-alert);
}
    
.toggle input:checked + .slider::before {
	transform: translateX(1em);
}

#tree {
	display: none;
}

#tree.active {
	display: block;
}

/* ************** */
/*     Tablette   */
/* ************** */
@media (min-width: 1200px) { 
	main {
		margin-top:0;
	}

	.bestiary-content-filters-body  {
		justify-content: flex-start;
		gap: 2em;
	}
}