body, html {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: sans-serif;
	font-size: 17px;
	background-color: #c1c1c1;
	color: black;
}

#buttons {
	user-select: none;
}

.button {
	font-size: 1rem;
	width: 3.5rem;
	height: 2.5rem;
	cursor: pointer;
	outline: none;
	white-space: nowrap;
	background-color: #bdbdbd;
	border-color: #c5c5c5;
	color: black;
}

.button:hover {
	font-weight: bold;
}

.wider {
	width: 7rem;
}

#main {
	display: flex;
	flex-direction: column;
	position: relative;
	height: calc(100vh - 2rem);
}

#controls {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#infobar {
	padding-top: 0.2rem;
	padding-bottom: 0.2rem;
	user-select: none;
	width: 42rem;
	text-align: center;
	cursor: pointer;
	background-color: #adadad;
	color: black;
}

#lines {
	position: relative;
	overflow-x: hidden;
	overflow-y: auto;
	flex-grow: 1;
	flex-shrink: 1;
	padding-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.line {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
}

.line_top {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	align-items: center;
	justify-content: center;
}

.comment {
	font-size: 1.2rem;
	width: 32.88rem;
	border: none;
	padding: 0.1rem;
	outline: none;
	letter-spacing: 0.1rem;
	word-spacing: 0.1rem;
}

.input {
	font-size: 1.2rem;
	width: 32.88rem;
	border: none;
	padding: 0.1rem;
	outline: none;
	letter-spacing: 0.1rem;
	word-spacing: 0.1rem;
	box-shadow: 0 0 0 2px #4E4E4E;
}

.input_focus {
	box-shadow: 0 0 0 6px #7c7c7c !important;
}

.result_container {
	font-size: 1.2rem;
	max-width: 100vw;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

#top_buttons {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 2rem;
	padding-top: 0.7rem;
	padding-bottom: 0.7rem;
	letter-spacing: 0.2rem;
	user-select: none;
}

.linky:hover {
	text-decoration: underline;
	cursor: pointer;
}

a:hover, a:visited, a:link {
	text-decoration: underline;
	color: #153c50;
}

b {
	letter-spacing: 0.1rem;
}

.b2 {
	letter-spacing: 0.1rem;
}

input[type="checkbox"] {
	width: 1.2rem;
	height: 1.2rem;
}

.decimal {
	font-size: 1.1rem;
}

.mwhole {
	padding-right: 0.4rem;
	vertical-align: middle;
}

.fraction {
	display: inline-flex;
	flex-direction: column;
	vertical-align: middle;
	align-items: center;
}

sup, sub {
	padding: 0 0.1rem;
	font-size: 1.2rem;
}

sup {
	border-bottom: 0.08em solid;
}

#options_container {
	width: 14rem;
	padding-top: 1.2rem;
	padding-bottom: 1.2rem;
}

.vseparator {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

.vseparator2 {
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
}

.ps__thumb-y {
	right: 0 !important;
	width: 8px !important;
	background-color: black !important;
}

.ps__rail-y {
	width: 8px !important;
}

.view_result {
	text-align: left;
}

#confirm_message {
	font-size: 1.1rem;
	margin-bottom: 1rem;
}

#confirm_buttons {
	display: flex;
	flex-direction: row;
	gap: 0.7rem;
	align-items: center;
	justify-content: center;
}

#confirm_ok {
	font-size: 1.1rem;
	cursor: pointer;
	background-color: #3ab87b;
	color: white;
}

#confirm_ok:hover {
	background-color: rgb(53 177 199);
}

#confirm_cancel {
	font-size: 1.1rem;
	border: none;
	cursor: pointer;
}

.hidden {
	display: none !important;
}

#title {
	color: black;
}