/*Свойства выделения и скроллбара*/
::selection {
	color: white;
	background: #00a47e;
}
::-webkit-scrollbar {
	width: 17px;
}
::-webkit-scrollbar-thumb {
	background: #00a47e;
	border: 4px solid white;
	border-radius: 9px;
}
::-webkit-scrollbar-thumb:hover {
	background: #00ce9e;
}
/*::-webkit-scrollbar-button:vertical:start {
	height: 10px;
	border-bottom: 10px solid #00a47e;
	border-right: 8.5px solid transparent;
	border-left: 8.5px solid transparent;
}
::-webkit-scrollbar-button:vertical:start:hover {
	border-bottom: 10px solid #00ce9e;
}
::-webkit-scrollbar-button:vertical:end {
	height: 10px;
	border-top: 10px solid #00a47e;
	border-right: 8.5px solid transparent;
	border-left: 8.5px solid transparent;
}
::-webkit-scrollbar-button:vertical:end:hover {
	border-top: 10px solid #00ce9e;
}*/
/*::-webkit-scrollbar-button {
	background: #00a47e;
	border: 2px solid white;
	border-radius: 50%;
}
::-webkit-scrollbar-button:hover {
	background: #00ce9e;
}*/
/*::-webkit-scrollbar-thumb:window-inactive {
	background: black;
}*/
/*Основные свойства---------------------------------------------------------------------------------------------*/
* {
	margin: 0;
	padding: 0;
	/* box-sizing: content-box; */
	font-size: 25px;
	font-family: serif;
	text-decoration: none;
	scrollbar-color: #00a47e white;
	transition: 0.25s;
	-webkit-tap-highlight-color: transparent;
}
a {
	color: blue;
	&:hover {
		color: #cd00cd;
	}
}
button {
	border: none;
	background: transparent;
	cursor: pointer;
}
svg {
	fill: none;
	stroke: black;
	stroke-linecap: round;
	stroke-linejoin: round;
}
p {
	margin: 25px;
	padding: 6px;
	background: white;
	border-radius: 15px;
	box-shadow: 0 0 10px black;
	white-space: pre-wrap;
}
i {
	color: green;
	font-style: normal;
}
#information {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	margin: auto;
	max-width: 850px;
	overflow: auto;
	scrollbar-width: none;
	> button:first-child {
		position: absolute;
		top: 0;
		width: 100%;
		height: 100%;
		cursor: default;
	}
	p {
		position: relative;
		z-index: 1;
		button {
			position: absolute;
			top: 10px;
			right: 10px;
			width: 31px;
			height: 31px;
			border: 1px solid black;
			box-shadow: none;
			&:before,
			&:after {
				width: 20px;
				height: 2px;
			}
			&:hover {
				box-shadow: 0 0 10px red;
				background: white;
				&:before,
				&:after {
					background: black;

				}
			}
		}
	}
}
#overlay {
	display: none;
	position: absolute;
	z-index: 1;
	width: 100%;
	height: 100vh;
	background: rgba(0, 0, 0, 0.5);
	cursor: auto;
}
main {
	display: flex;
	flex-direction: column;
	height: 100vh;
}
header {
	display: flex;
	button {
		width: 31px;
		height: 31px;
		margin: 22.5px 10px 0 22.5px;
		border: 1px solid black;
		border-radius: 50%;
		/* transition: 0.25s; */
		svg {
			width: 29px;
			height: 29px;
		}
		&:hover {
			box-shadow: 0 0 10px green;
			scale: 1.15;
		}
	}
	h1 {
		flex: 1 1 1%;
		margin: 20px 0 0;
		font-size: 30px;
		text-align: center;
		+ button {
			margin: 22.5px 22.5px 0 10px;
		}
	}
}
nav {
	flex: 1 1 1%;
	display: flex;
	flex-wrap: wrap;
	padding: 12.5px;
	button {
		flex: 1 0 25%;
		display: flex;
		margin: 12.5px;
		justify-content: center;
		align-items: center;
		padding: 6px;
		color: blue;
		box-shadow: 0 0 10px black;
		border-radius: 4vh;
		white-space: nowrap;
		/* transition: 0.25s; */
		&:hover {
			color: green;
			background: rgba(0, 255, 190, 0.25);
			box-shadow: 0 0 10px green;
			scale: 1.05;
		}
	}
}
.close {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 2;
	width: 40px;
	height: 40px;
	background: white;
	box-shadow: 0 0 10px black;
	border-radius: 50%;
	/* transition: 0.25s; */
	&:before, 
	&:after {
		content: "";
		width: 75%;
		height: 10%;
		background: black;
		border-radius: 5px;
		rotate: 45deg;
	}
	&:after {
		position: absolute;
		rotate: -45deg;
	}
	&:hover {
		background: #f9e3e2;
		box-shadow: 0 0 10px #8b0000;
		scale: 1.15;
		&:before, 
		&:after {
			background: red;
		}
	}
}
.button {
	display: block;
	position: fixed;
	right: 50px;
	bottom: 50px;
	z-index: 2;
	background: white;
	box-shadow: 0 0 10px black;
	border-radius: 50%;
	/* transition: 0.25s; */
	svg {
		width: 50px;
		height: 50px;
		stroke-width: 5;
	}
	&:hover {
		background: #9cdaff;
		box-shadow: 0 0 10px #00008b;
		scale: 1.15;
		svg {
			stroke: blue;
		}
	}
}
#cursor span {
	display: inline-block;
	width: 100%;
}
/*Все media-----------------------------------------------------------------------------------------------------*/
@media (min-width: 850px) and (min-height: 745px) {
	#information {
		height: 724px;
	}
}
@media (min-width: 943px) {
	#go-background,
	#go-position,
	#go-pseudoclasses,
	#go-pseudoelements {
		flex: 1 0 40%;
		&:hover {
			scale: 1.03;
		}
	}
}
@media (min-width: 745px) and (max-width: 942px) {
	nav button:hover {
		scale: 1.03;
	}
	#go-text,
	#go-background,
	#go-flex-elements,
	#go-pseudoelements,
	#go-transform {
		flex: 1 0 80%;
		&:hover {
			scale: 1.02;
		}
	}
}
@media (max-width: 744px) {
	nav button {
		flex: 1 0 80%;
		&:hover {
			scale: 1.05;
		}
	}
}
@media (max-width: 438px) {
	header h1 {
		font-size: 25px;
		margin: 22px 0 0;
	}
	* {
		font-size: 20px;
	}
}