@import url('https://fonts.googleapis.com/css2?family=Advent+Pro:ital,wght@1,200;1,500&display=swap');

.logo svg {
	display: inline-block;
	width: 25px;
	height: 25px;
}

nav {
	height: 150px;
	transition: height 0.3s cubic-bezier(0.68, -0.5, 0.265, 1.15);
}

nav.collapsed {
	height: 0;
	/* Collapsed height */
}

nav a {
	text-decoration: none;
	transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	color: #fff;
	display: inline-block;
	width: auto;
	font-family: 'Advent Pro', sans-serif;
	position: relative;
}

nav a:hover {
	transform: translateX(15px);
}

a {
  text-decoration: none;
  color: white;
  width: auto;
  font-family: 'Advent Pro', sans-serif;
  font-size: 19px;
}

a:hover {
  color: #4fb743;
}

.container2 {
	max-width: 1400px;
	margin: 0 auto;
	width: 100%;
}

.header {
	text-align: justify;
	padding: 1em 15px 0 15px;
	background: #2c3e50;
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	/* когда меню nav схлопывается, содержимое плавно скрывается вместе со схлопыванием меню. */
}

header::after {
	content: '';
	display: inline-block;
	width: 100%;
	max-width: 10000px;
}



.menubutton {
	border: none;
	background: inherit;
	color: inherit;
	/* appearance: none; */
	width: 100%;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

.menubutton svg {
	transform: scaleY(-1);
	transition: transform 0.3s cubic-bezier(0.68, -0.15, 0.265, 1.15);
}

.menubutton.collapsed svg {
	transform: scaleY(1);
}


body {
	margin: 0;
	font-family: 'Advent Pro', sans-serif;
}

label {
	height: 50px;
	margin-right: 11px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.input {
	margin-bottom: 10px;
	padding: 2px;
}

.buttondiv button {
	appearance: none;
	color: #fff;
	padding: 10px 20px;
	width: 100px;
	border: none;
	border-radius: 29px;
}

.calculate {
	background: #4fb743;
}

button.calculate:focus-visible {
	outline: none;
}

.clear {
	background: #5593df;
}

.buttondiv button:hover {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.4);
}

.section {
	text-align: left;
	--formulas-margin: 13px;
}


/*  */

.buttondiv {
	text-align: center;
}

#work {
	padding: 10px 8px 100px 8px;
	width: auto;
	max-width: 585px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

#work {
	max-width: 495px;
}

h1 {
	display: inline-block;
	margin: 0;
	font-size: 25px;
	padding-bottom: 8px;
}

.present {
	color: #4fb743;
}

.formula {
	padding-left: 10px;
}

.formulas-h {
	display: block;
	color: #4fb743;
	size: 30px;
	font-weight: 500;
	font-size: 19px;
	margin: 8px 0;
}

.input-container {
	min-height: 50px;
	display: flex;
	flex-wrap: wrap;
}

input {
	width: 95px;
}

.input-container-wrapper {
	display: inline-block;
}

.formulas_table {
	display: inline-block;
	border: none;
	border-spacing: 0;
	text-align: center;
	margin: 0px 0 -13px 0;
}

.formulas_table .denominator {
	border-top: black 1px solid;
}

.paddingbottom {
	padding-bottom: 10px;
}

.calculation.hidden {
	display: none;
}

ol li {
	padding-bottom: 10px;
}

h2 {
	color: #4fb743;
	font-size: 22px;
	text-align: center;
	font-weight: 500;
	margin-bottom: 0;
}

.section ol {
	padding-inline-start: 19px;
}

form {
	margin-bottom: 18px;
}

.arrow {
	width: 46px;
	position: absolute;
	left: 174px;
	transform: scaleX(1);
	transition: transform 0.3s cubic-bezier(0.68, -0.15, 0.265, 1.15);
}

.left {
	transform: scaleX(-1);
}

#shema-wrapper {
	position: relative;
	margin-left: auto;
	margin-right: auto;
	max-width: 333px;
}

#shema {
	margin-right: auto;
	margin-left: auto;
}

#arrow1 {
	top: 25px;
}

#arrow2 {
	top: 100px;
}

.R_shema {
	position: absolute;
	left: 69px;
}

#R1_shema {
	top: 2px;
}

#R2_shema {
	top: 76px;
}

.r_shema {
	position: absolute;
	left: 232px;
}

#r1_shema {
	top: 37px;
}

#r2_shema {
	top: 110px;
}

.E_shema {
	position: absolute;
	left: 236px;
}

#E1_shema {
	top: 14px;
}

#E2_shema {
	top: 87px;
}

#work {
	max-width: 495px;
}

#shema {
	height: 144px;
}

.MathJax span.math {
	margin: 0 0 var(--formulas-margin) 0;
}

.formulas_table {
	font-size: 13px;
}

.formula.ek {
	margin-top: var(--formulas-margin);
}


footer {
	background-color: #2c3e50;
	padding: 20px 6px;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	font-size: 14px;
	color: #959fa8;
	border-top: 1px solid #4b5055;
}

footer span.top {
	width: 100%;
	margin-bottom: 14px;
	display: inline-flex;
	justify-content: space-between;
	align-items: center;
}

footer p {
	max-width: 495px;
	margin: 0 auto;
	text-align: justify;
}

footer a {
	color: #959fa8;
	width: 58px;
	display: inline-flex;
	justify-content: space-between;
	align-items: center;
	text-decoration: none;
}

 footer img {
	height: 20px;
 }