
:root{
	/* CSS HSL */
	--bistre: hsla(29, 58%, 14%, 1);
	--dark-goldenrod: hsla(40, 80%, 38%, 1);
	--plum-web: hsla(316, 49%, 73%, 1);
	--english-violet: hsla(293, 24%, 33%, 1);
	--licorice: hsla(285, 47%, 7%, 1);
}

* {
	margin: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-size: 2vw;
}

body {
	background-color: var(--licorice);
	padding-block-end: 30vh;
}

.title {
	width: max-content;
	height: max-content;
	margin: 15vh auto 15vh auto;
	
	text-align: center;
	font-size: 400%;
	color: var(--plum-web);
	
}

.debug_mode-chechbox{
	width: 10%;
	max-width: 100px;
	height: 5vh;
	max-height: fit-content;

	position: fixed;
	top : 10px;
	left : 10px;

	color: var(--plum-web);
}

.checkbox-slider{
	width: 60%;
	height: 60%;
	border-radius: 1em;
	position: relative;
	
	margin-inline: auto;
	
	background-color: var(--english-violet);
}

.checkbox-slider--ball{
	height: 100%;
	aspect-ratio: 1;
	border-radius: 50%;
	position: absolute;

	background-color: var(--plum-web);
	border: 3px solid var(--english-violet);
	cursor: pointer;

	transform: translateX(0);
	transition: transform ease-in-out 300ms;
}

#debug-mode__label{
	width: 100%;
	height: max-content;
	text-align: center;
	font-size: 0.4em;

}

.checkbox-slider--ball-active{
	transform: translateX(100%);
}

.debug-line{
	display: none;
	height: 1px;
	width: 100vw;
	border: 1px dotted;
	border-color: green;
	
	position: fixed;
	top: 0;
}
.debug-line-active{
	display: block;
}

.elem-animation {
	display: flex;
	width: 60vw;
	height: 25vh;
	border: 5px;
	border-radius: 2em;
	margin: 6% auto;
	border: 3px solid var(--plum-web);
	color: var(--plum-web);
	
	align-items: center;
	justify-content: center;
	
	transition-duration: 300ms;
	scroll-snap-align: center;
}

.elem-animation__in{
	opacity: 0.3;
	transform: scale(60%);
	border: 1px solid var(--plum-web);

	color: var(--plum-web);
	
	animation-name: show-off;
	animation-duration: 300ms;
	animation-timing-function: ease-in;
	animation-range: forwards;
	transition-duration: 300ms;
}
.elem-animation__out{
	opacity: 0.5;
	transform: scale(60%);
	border: 1px solid var(--plum-web);
	
	color: var(--plum-web);
	
	animation-name: show-off;
	animation-duration: 300ms;
	animation-timing-function: ease-out;
	animation-range: backwards;
	transition-duration: 300ms;
}

.elem-animation:hover{
	border-color: var(--dark-goldenrod);
	background-color: var(--bistre);
	box-shadow: 0 0 40px var(--dark-goldenrod);
	color: var(--dark-goldenrod);
}

.elem-animation__in:hover, .elem-animation__out:hover{	
	border: 1px solid var(--plum-web);
	background-color: var(--licorice);
	box-shadow: 0 0 20px var(--plum-web);
	color: var(--plum-web);
}

.content {
	display: block;
	width: max-content;
	margin-block: 30%;
	text-align: center;

	font-size: 300%;
	color: inherit;
}

@keyframes show-off{
	0%{
		opacity: 1;
		transform: scale(100%);
	}
	100%{
		opacity: 0;
		transform: scale(60%);
	} 
}