@import url(./root.css);
@import url(./inputs.css);
@import url(./icons.css);
@import url(./dialogs.css);

h1, h2, h3, h4, h5, h6, p, i, b, q, textarea, span, li, label, option
{
	color: var(--text-color);
	text-shadow: 1px 1px 2px rgba(0,0,0,0.55);
}

span.invert img, img.invert
{
	filter: invert();
}

html
{
	scroll-behavior: smooth;
}


body
{
	/*background: 
		radial-gradient(circle at bottom left, #010101 5%, #000112 50%);
	*/
	background-color: #000;
	background-size: 100vw 100vh;
	background-attachment: fixed;
	animation: lightUp 3s ease 1s 1 normal forwards;
}

#burger-toggle {
	display: none;
}

.burger {
	display: none;
	cursor: pointer;
	flex-direction: column;
	gap: 5px;
	padding: 10px;
	z-index: 10001;
}

.burger span {
	display: block;
	width: 25px;
	height: 3px;
	background: var(--text-color);
	border-radius: 2px;
	transition: all 0.3s ease;
}

#burger-toggle:checked + .burger span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}
#burger-toggle:checked + .burger span:nth-child(2) {
	opacity: 0;
}
#burger-toggle:checked + .burger span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

.menu {
	display: flex;
	gap: 2rem;
	list-style: none;
}

.navbar {
	display: flex;
	justify-content: space-around;
	align-items: center;
	list-style: none;
	display: flex;
	gap: 2rem;
	position: relative;
	z-index: 10;
	margin-bottom: 1em;
}

a
{
	text-shadow: 1px 1px 3px rgba(0,0,0,0.25);
	text-decoration: none;
	color: var(--text-color);
	font-weight: bold;
	transition: color 300ms ease;
	align-items: center;
	align-content: center;
	font-weight: 600;
	transition: color 0.3s ease;
}

.navbar li
{
	position: relative; 
	list-style: none;
}

.navbar a
{
	text-shadow: 1px 1px 3px rgba(0,0,0,0.25);
	text-decoration: none;
	color: var(--text-color);
	font-size: 1.3em;
	font-weight: bold;
	transition: color 300ms ease;
	align-items: center;
	align-content: center;
	font-weight: 600;
	transition: color 0.3s ease;
}

.navbar a:hover, a:hover
{
	color: var(--primary-color);
	cursor: pointer;
}

.dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 300px;
	padding: 0.5rem 0;
	margin: 0;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 12px;
	box-shadow: 0 8px 16px rgba(0,0,0,0.2);
	z-index: 1000;
}


.dropdown-menu li {
	padding: 0.5rem 1rem;
}

.dropdown-menu li a {
	display: block;
	color: #f9fafb;
	text-decoration: none;
}

.dropdown-menu li a:hover {
	color: var(--primary-color);
}

/* Affichage au hover */
.dropdown:hover .dropdown-menu {
	display: block;
}

.aside
{
	width: 20vw;
	display: block;
	position: absolute;
	left: 0;
	bottom: 0;
	position: fixed;
	top: 6rem;
	border-radius: 0px;
	border-right: #fff solid 1px;
}

.aside:hover
{
	scale: 1;
}

.box
{
	padding: 1rem 2rem;
	border-radius: 16px;
	background: 
		none;
/* 		radial-gradient(ellipse at bottom left, #0009 10%, #3339 100%),
		radial-gradient(ellipse at top right, #0009 10%, #3339 100%); */
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: 300ms ease;
	transition-property: -webkit-transform, scale, border, filter, color;
}

.box:hover
{
	filter: drop-shadow( 0 0 .3em var(--primary-highlight-color));
}

.box-color:hover *
{
	color: var(--primary-color);
}

.box-zoom
{
	transition-property: -webkit-transform, scale, border, filter;
}

.box-zoom:not(.navbar, footer, main):hover, .box-zoom:not(.navbar, footer, main):has(:focus)
{
	scale: 1.05;
	border: 3px solid var(--primary-color);
	color: var(--primary-color);
	filter: drop-shadow( 0 0 10px var(--primary-color));
	z-index: 10000;
}

.box:not(.navbar, footer, main):hover:has(a)
{
	cursor: pointer;
}

.inline
{
	display: inline;
}

.title
{
	font-size: 1.5em;
}

.doublegrid
{
	display: grid;
	grid-template-columns: auto auto;
	gap: 10px;
}

.trigrid
{
	display: grid;
	grid-template-columns: 2fr 1fr 2fr;
	margin: 20px;
	align-items: stretch;
	justify-items: stretch;
	justify-content: stretch;
	grid-column-gap: 10px;
	grid-row-gap: 1em;
}

.trigrid *
{
	text-align: center;
	align-self: stretch;
	justify-self: stretch;
}

.dashboard
{
	margin: 20px;
	position: relative;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	align-content: stretch;
	gap: 10px;
}

.dashboard-portEntry
{
	display: inline-grid;
	grid-template-columns: 2fr 2fr 2fr 1fr;
	width: 50%;
	color: var(--text-color);
	padding: .5rem;
}

.dashboard-portEntry > span
{
	padding: 0.3rem;
	background-color: var(--light-background-color);
	box-sizing: fit-content;
}

footer
{
	position: fixed;
	bottom: 10px;
	left: 10px;
	right: 10px;
}

/* Responsive version */
@media (max-width: 768px) {
	.burger {
		display: flex;
	}

	.menu {
		position: absolute;
		top: 100%;
		left: 0;
		flex-direction: column;
		background: rgba(255, 255, 255, 0.08);
		backdrop-filter: blur(10px);
		border-radius: 12px;
		padding: 1rem;
		box-shadow: 0 8px 16px rgba(0,0,0,0.2);
		display: none;
		width: 100%;
	}

	#burger-toggle:checked ~ .menu {
		display: flex;
		z-index: 10000;
	}
}

.leftbox
{
	left: calc(-25%);
	position: fixed;
	bottom: 0;
	z-index: 9999;
	animation: footer-anim 5s ease 0 infinite forwards;
	transition: left 300ms ease;
}

.leftbox:hover, .leftbox:has(:focus)
{
	left: calc(-2%);
}

.fadeIn
{
	animation: lightUp 1s ease 0 1 normal forwards;
}

.separator
{
	height: 200px;
	display: inline-block;
}

.center-organizer
{
	display: flex;
	justify-content: space-around;
}

.wbx-outline
{
	border: solid 1px var(--primary-color);
	border-radius: 8px;
}

.logbox
{
	border: solid 1px var(--primary-color);
	border-radius: 8px;
	color: var(--primary-color);
	/*padding: 1.2em;*/
	overflow: scroll;
}

.logbox > p
{
	text-align: left;
	color: var(--primary-color);
	padding: 1.2em;
}

.wbx-special
{
	color: var(--primary-color);
	font-weight: bold;
}

/* --- Future decorations set --- */
.future-box
{
	border: solid 1px var(--primary-color);
	border-radius: 8px;
	padding: 2rem;
	margin: 2rem;
}

.future-title
{
	font-size: 5rem;
	font-weight: bold;
	color: #f9fafb;
}

.future
{
	color: var(--text-color);
	background-clip: text;
	-webkit-background-clip: text;
	transition: 300ms ease color;
	display: inline-block;
	cursor: default;
}

.future:hover, .future-persistent
{
	background-size: 50% 50%, 50% 50%, 100% 100%;
	background-repeat: no-repeat;
	background-image: 
			radial-gradient(circle at 30%, white, transparent 50%),
			radial-gradient(circle at 30%, white, transparent 50%),
			linear-gradient(var(--primary-color));
	animation: 3s linear 0s infinite alternate futureColor;
	text-shadow: 0 0 1em var(--primary-color);
	background-clip: text;
	-webkit-background-clip: text;	
	display: inline-block;
	color: transparent;
}

.future-bubble-left
{
	align-self: left;
	text-align: left;
	margin-right: 3rem;
	border-radius: 32px 32px 32px 0;
}

.future-bubble-right
{
	align-self: right;
	text-align: left;
	margin-left: 3rem;
	border-radius: 32px 32px 0 32px;
}

.future-bubble-right, 
.future-bubble-left
{
	display: box;
	border: solid 1px var(--primary-color);
	padding: 2rem;
	margin: 2rem;	
	transition: 150ms ease box-shadow;
}

.future-bubble-right:hover, 
.future-bubble-left:hover
{
	box-shadow: 8px 0 1rem var(--primary-color);
	transition: 150ms ease box-shadow;
}

@keyframes lightUp
{
	from { background-color: #000f; opacity: 1;} to { background-color: #111f; opacity: 1;}
}

@keyframes futureColor
{
	0%
	{
		background-position: 0% 0%, 100% 100%;
	}
	33%
	{
		background-position: 100% 0%, 0% 100%;
	}
	66%
	{
		background-position: 100% 100%, 0% 0%;
	}
	100%
	{
		background-position: 0% 100%, 100% 0%;
	}
}