
.container {
	position: relative;
	width: 100%;
	min-height: 4500px;
	margin: 0 auto;
	box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.canvas-container {
	width: 100%;
	height: 100vh;
	overflow-x: hidden;
	overflow-y: auto;
	position: relative;
	-webkit-overflow-scrolling: touch;
}

canvas {
	display: block;
	width: 100%;
	height: auto;
	min-width: 100%;
	background: #ffffff;
	border: none;
	cursor: crosshair;
	touch-action: none;
	position: relative;
	z-index: 1;
}

/* Кастомный скроллбар */
.custom-scrollbar {
	width: 40px;
	height: 100vh;
	background: #f0f0f0;
	position: fixed;
	right: 0;
	top: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px 0;
	box-shadow: -2px 0 5px rgba(0,0,0,0.1);
	z-index: 1000;
	-webkit-tap-highlight-color: transparent;
}

.scroll-thumb {
	width: 30px;
	height: 60px;
	background: #667eea;
	border-radius: 15px;
	position: absolute;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	transition: background 0.2s;
	touch-action: none;
}

.scroll-thumb:hover {
	background: #764ba2;
}

.scroll-thumb:active {
	background: #553c9a;
}

/* Кнопка очистки */
.eClearButton {
	position: fixed;
	bottom: 20px;
	right: 60px;
	z-index: 1001;
	width: 50px;
	height: 50px;
	background: #ff4444;
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 24px;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.eClearButton:hover {
	background: #ff6666;
	transform: scale(1.05);
}

.eClearButton:active {
	transform: scale(0.95);
	background: #cc3333;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
	.custom-scrollbar {
		width: 35px;
	}
	
	.scroll-thumb {
		width: 25px;
		height: 50px;
	}
	
	.eClearButton {
		width: 45px;
		height: 45px;
		font-size: 20px;
		bottom: 15px;
		right: 50px;
	}
}

@media (max-width: 480px) {
	.custom-scrollbar {
		width: 30px;
	}
	
	.scroll-thumb {
		width: 20px;
		height: 45px;
	}
	
	.eClearButton {
		width: 40px;
		height: 40px;
		font-size: 18px;
		bottom: 10px;
		right: 45px;
	}
}

html, body {
	max-width: 100%;
	overflow-x: hidden;
}

.canvas-container::-webkit-scrollbar {
	width: 0px;
	background: transparent;
}