*{
	font-family: 'Electrolize';
}

/* Global scrollbar hiding for all elements */
* {
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
	display: none; /* Chrome, Safari and Opera */
}

html, body {
	width: 100%;
	height: 100%;
}

body {
	background: -webkit-radial-gradient(center, ellipse cover,  #444 0%,#000000 90%); /* Chrome10+,Safari5.1+ */
	vertical-align: top;
	overflow: auto;
	/* Hide scrollbars but allow scrolling */
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* Internet Explorer 10+ */
	/* Remove padding since we're changing the approach */
}

/* Hide scrollbars for Chrome, Safari and Opera */
body::-webkit-scrollbar {
	display: none;
}

/* Stars background canvas */
#starsCanvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
}

/* 2D Cube View */
.cube-2d-container {
	position: static;
	background: rgba(0, 0, 0, 0.8);
	border: 2px solid #ffffff;
	border-radius: 10px;
	padding: 10px;
	pointer-events: none;
	margin: 20px auto 20px 80px;
	width: 270px;
	max-width: 100vw;
	box-sizing: border-box;
}

#cube2dCanvas {
	display: block;
	border: 1px solid #333;
	background: #000;
}

.cube-2d-label {
	color: #ffffff;
	font-size: 12px;
	text-align: center;
	margin-top: 5px;
	font-family: 'Electrolize', monospace;
}

#container {
	width: 80%;
	height: 80%;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

/* ------------------- typewritting terminal ------------------- */

.type {
	width: 80%;
	height: 40px;
	border-radius: 10px;
	border: 2px solid #ffffff;
	margin: auto;
}

.type #terminal {
  padding: 0 10px;
  line-height: 40px;
	font-size: 20px; /* 16px */
	color: #ffffff;
	letter-spacing: 2px;
}

.type #terminal::before {
	content: ">";
	margin-right: 10px;
}

/* ------------------- solve buttons ------------------- */

.solve {
  position: static;
  left: 80px;
  top: auto;
  margin-top: 0;
  margin-left: 80px;
  display: flex;
  flex-direction: column;
}

.solve a {
  display: inline-block;
  text-decoration: none;
  width: fit-content;
  margin-bottom: 15px;
}

.solve a button {
  width: 200px;
  margin-bottom: 0;
}

.solve button {
	width: 200px;
	margin-bottom: 15px;
}

.custom-shuffle {
	margin-bottom: 15px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: fit-content;
}

.custom-shuffle input {
	width: 300px;
	height: 50px;
	padding: 0 20px;
	border-radius: 10px;
	border: 2px solid #ffffff;
	background: rgba(0, 0, 0, 0.5);
	color: #ffffff;
	font-family: 'Electrolize', monospace;
	font-size: 16px;
	outline: none;
	cursor: text;
	transition: all 0.3s ease;
	display: block;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

.custom-shuffle input::placeholder {
	color: rgba(255, 255, 255, 0.7);
	font-style: italic;
}

.custom-shuffle input:hover {
	border-color: #3D81F6;
	background: rgba(0, 0, 0, 0.6);
	transform: scale(1.02);
}

.custom-shuffle input:focus {
	border-color: #3D81F6;
	background: rgba(0, 0, 0, 0.7);
	transform: scale(1.05);
	box-shadow: 0 0 15px rgba(61, 129, 246, 0.3);
}

.custom-shuffle input.invalid {
	border-color: #ff6b6b;
	background: rgba(255, 107, 107, 0.1);
}

.custom-shuffle button {
	width: 200px;
	margin-bottom: 15px;
}

/* ------------------- twist buttons ------------------- */
.twist {
  position: absolute;
  top: 50%;
  right: 50px;
  margin-top: -240px;
	width: 190px;
}

.twist h1 {
	margin: 0 auto 15px;
  text-align: center;
	color: #ffffff;
	font-size: 24px; /* 20px */
}

.twist button {
  margin-bottom: 10px;
  margin-right: 10px;
}

/* ------------------- buttons ------------------- */

button {
	width:  80px;
	height: 40px;
  color: #fff;
	border-radius: 10px;
	border: 2px solid;
  border-color: #fff;
	font-size: 20px; /* 16px */
	background: none;
	outline: none;
	cursor: pointer;
	-webkit-transition: all .5s;
	transition: all .5s;
	overflow: hidden;
	position: relative;
}

button:before, button:after {
	content: "";
	position: absolute;
	z-index: -1;
	height: 100%;
	width: 0;
	top: 0;
	background-color: #ffffff;
	-webkit-transition: all .4s;
	transition: all .4s;
}

button:before {
	left: -15px;
	-webkit-transform: skew(-45deg, 0);
	transform: skew(-45deg, 0);
}

button:after {
	right: -15px;
	-webkit-transform: skew(-45deg, 0);
	transform: skew(-45deg, 0);
}

button:hover {
	color: #27323A;
}

button:hover:before, button:hover:after {
	width: 80%;
}

/* ------------------- terminal history ------------------- */

.terminal-history {
	position: relative;
	width: 80%;
	margin: 0 auto;
	background: rgba(0, 0, 0, 0.9);
	border-top: 2px solid #ffffff;
	padding: 20px;
	max-height: 300px;
	overflow-y: auto;
	/* Hide scrollbars but allow scrolling */
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* Internet Explorer 10+ */
	margin-top: 4vh; /* Push it below the viewport */
}

.terminal-history::-webkit-scrollbar {
	display: none;
}

.terminal-history h2 {
	color: #ffffff;
	font-size: 18px;
	margin: 0 0 15px 0;
	text-align: center;
}

.terminal-history .clear-btn {
	position: absolute;
	top: 15px;
	right: 20px;
	width: auto;
	height: 30px;
	font-size: 12px;
	padding: 0 10px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid #ffffff;
}

.terminal-history .clear-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

#terminal-log {
	font-family: 'Courier New', monospace;
	font-size: 14px;
	line-height: 1.4;
}

.log-entry {
	margin-bottom: 5px;
	padding: 2px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.log-entry .timestamp {
	color: #888;
	margin-right: 10px;
}

.log-entry .message {
	color: #ffffff;
}

.log-entry .deleted-tag {
	color: #ff6b6b;
	font-style: italic;
	margin-left: 10px;
}

.log-placeholder {
	color: #aaa;
	font-style: italic;
	text-align: center;
	margin: 30px 0 30px 0;
	font-size: 16px;
	letter-spacing: 1px;
}
