/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap');

/* GENERAL RULES */
* {
    font-family: 'Ubuntu', Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

/* BODY */
body {
	background: rgb(24, 24, 24);
}

/* TITLE */
h1 {
	color: white;
    text-align: center;
}

/* CONTAINER FOR CANVAS AND MENU PANEL */
#ui {
	position: relative;

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	left: 50%;
	transform: translateX(-50%);

}

/* THE CANVAS */
#simCanvas {
	background-color: rgb(48, 48, 48);
}

/* THE MENU PANEL */
#menuPanel {
	display: flex;
	width: 800px;
	height: 30px;
}

/* OPEN AND CLOSED MENUS */
.open {
	display: flex;
	flex-direction: column-reverse;
	opacity: 90%;
}
.closed {
	display: none;
}

/* THE LOOK OF OPENED MENUS */
#tools, #options {
	position: absolute;
	bottom: 30px;
	background-color: rgb(126, 126, 126);
	width: 150px;
	line-height: 1.6rem;
	border-radius: 5px 5px 0 0;
	border: 1px solid rgba(0, 0, 0, 0.336);
	border-bottom: none;

	padding: 10px;
}

/* CHANGE MOUSE STYLE ON BUTTON HOVER */
button {
	cursor: pointer;
}

/* THE BUTTON USED TO OPEN AND CLOSE MENUS */
.menuButton {
	width: 150px;
	line-height: 1.5rem;
	font-size: 1.2rem;
	text-align: center;
	border: 1px solid rgba(0, 0, 0, 0.336);
	background-color: rgb(66, 66, 66);
	border-radius: 0 0 5px 5px;
	color: white;
	transition: background-color .1s, color .1s;
}
.menuButton:hover {
	color: black;
	background-color: rgb(173, 173, 173);;
}

/* CONTAINER FOR MENUS AND MENU BUTTONS */
.menu {
	width: 150px;
	margin-right: 10px;
}

/* THE LOOK OF TOOL MENU ITEMS */
.menuToolButton {
	background-color: rgb(230, 230, 230);
	margin-top: 5px;
	margin-bottom: 5px;
	line-height: 1.2rem;
	padding: 5px;
	font-size: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.336);
	border-radius: 5px;
}
.menuToolButton:hover {
	color: white;
	background-color: rgb(134, 134, 134);
}
.menuToolButton.activeTool {
	color: white;
	background-color: rgb(90, 90, 90);
}


.open > hr {
	width: 100%;
	border: none;
	border-top: 1px solid rgba(0, 0, 0, 0.185);
}

/* THE LOOK OF OPTION MENU ITEMS */
label {
	font-size: 1rem;
	line-height: 1.2rem;
	padding: 5px;
	background-color: rgb(230, 230, 230);
	border-radius: 4px;
	margin-top: 5px;
	margin-bottom: 5px;
	text-align:center;
}
input[type = number] {
	width: 50px;
	border-radius:4px;
	border-width:1px;
}

/* STYLE FOR ACTIVE TOOL INDICATOR */
#activeTool {
	position: absolute;
	font-size: 24px;
	color: rgba(230, 230, 230, 0.9);
	margin: 10px;
	pointer-events: none;
}