:root {
	--primary-color: #3498db;
	--secondary-color: #2ecc71;
	--accent-color: #e74c3c;
	--text-color: #333;
	--bg-color: #f5f5f5;
	--tower-color: #8B4513;
	--disk-color-start: #FF6B6B;
	--disk-color-end: #4ECDC4;
	--shadow-color: rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] {
	--text-color: #f5f5f5;
	--bg-color: #1a1a1a;
	--tower-color: #5D4037;
	--shadow-color: rgba(255, 255, 255, 0.1);
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	transition: background-color 0.3s, color 0.3s;
}
body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px;
}
header {
	text-align: center;
	margin-bottom: 20px;
	width: 100%;
}
h1 {
	font-size: 2.5rem;
	margin-bottom: 10px;
	color: var(--primary-color);
}
.game-info {
	display: flex;
	justify-content: space-between;
	width: 100%;
	max-width: 900px;
	margin-bottom: 20px;
	#flex-wrap: wrap;
	gap: 5px;
}
.info-card {
	background: var(--bg-color);
	border-radius: 10px;
	padding: 10px;
	box-shadow: 0 4px 6px var(--shadow-color);
	flex: 1;
	min-width: 90px;
	text-align: center;
}
.info-card h3 {
	margin-bottom: 8px;
	font-size: 0.8rem;
	color: var(--primary-color);
}
.info-card p {
	font-size: 1.2rem;
	font-weight: bold;
}
.controls {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
	justify-content: center;
}
button {
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	background-color: var(--primary-color);
	color: white;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s;
}
button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px var(--shadow-color);
}
button:active {
	transform: translateY(0);
}
button.secondary {
	background-color: var(--secondary-color);
}
button.accent {
	background-color: var(--accent-color);
}
.disk-count-control {
	display: flex;
	align-items: center;
	gap: 10px;
}
input[type="range"] {
	width: 150px;
}
.game-container {
	display: flex;
	justify-content: space-between;
	width: 100%;
	max-width: 900px;
	height: 400px;
	margin-bottom: 20px;
	position: relative;
}
.tower {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 10px;
	position: relative;
}
.tower-base {
	width: 100%;
	height: 20px;
	background-color: var(--tower-color);
	border-radius: 10px;
	position: absolute;
	bottom: 0;
	box-shadow: 0 4px 8px var(--shadow-color);
}
.tower-rod {
	width: 20px;
	height: 100%;
	background: linear-gradient(to right, #A1887F, #8D6E63, #5D4037);
	border-radius: 10px;
	position: absolute;
	bottom: 20px;
	#z-index: 0;
	box-shadow: 0 0 10px var(--shadow-color);
}
.tower-label {
	position: absolute;
	bottom: -30px;
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--primary-color);
}
.disks-container {
	position: absolute;
	bottom: 20px;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	width: 100%;
	height: calc(100% - 50px);
	z-index: 2;
}
.disk {
	height: 20px;
	margin-bottom: 2px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: 0.8rem;
	box-shadow: 0 2px 4px var(--shadow-color);
	transition: all 0.3s;
	position: relative;
	z-index: 3;
}
.disk::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 10px;
	background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(0,0,0,0.2));
	pointer-events: none;
}
.history {
	width: 100%;
	max-width: 900px;
	margin-top: 20px;
}
.gamesmdd {
	width: 100%;
	max-width: 900px;
	margin-top: 20px;
}
.history h2 {
	margin-bottom: 10px;
	text-align: center;
	color: var(--primary-color);
}
table {
	width: 100%;
	border-collapse: collapse;
	background-color: var(--bg-color);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 6px var(--shadow-color);
}
th, td {
	padding: 12px 15px;
	text-align: center;
	border-bottom: 1px solid var(--shadow-color);
}
th {
	background-color: var(--primary-color);
	color: white;
}
tr:hover {
	background-color: var(--shadow-color);
}
.message {
	position: fixed;
	top: 80px;
	left: 50%;
	transform: translateX(-50%);
	padding: 15px 30px;
	background-color: var(--secondary-color);
	color: white;
	border-radius: 5px;
	box-shadow: 0 4px 8px var(--shadow-color);
	z-index: 100;
	opacity: 0;
	transition: opacity 0.3s;
}
.message.show {
	opacity: 1;
}
@media (max-width: 768px) {
	.game-container {
		height: 300px;
	}
	.controls {
		#flex-direction: column;
		align-items: center;
	}
	h1 {
		font-size: 2rem;
	}
}
@media (max-width: 480px) {
	.tower-label {
		font-size: 1.2rem;
	}
	.disk {
		font-size: 0.7rem;
	}
}
