*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
}

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

.wrap {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	background-color: whitesmoke;
	transition: .2s ease;
}

.wrap .container {
	width: 430px;
	height: auto;
	background-color: white;
	display: grid;
	grid-template-rows: auto auto 1fr;
	gap: 20px;
	padding: 20px 30px 70px;
	border-radius: 30px;
	box-shadow: -3px -3px 7px rgba(0,0,0,0.4) inset,
				3px 3px 3px rgba(255,255,255,0.2) inset,
				2px 2px 5px rgba(0,0,0,0.3);
}

.wrap .container .theme-toggle {
	width: 100%;
	min-height: -moz-fit-content;
	min-height: fit-content;
	padding: 0;
	display: flex;
	justify-content: right;
}

.wrap .container .theme-toggle .toggle {
	width: 70px;
	height:  30px;
	background: tomato;
	border-radius: 30px;
	position: relative;
	box-shadow: 1px 1px 1px rgba(0,0,0,0.6) inset,
				1px 1px 1px rgba(255,255,255,0.5),
				-1px -1px 1px rgba(0,0,0,0.4);
	cursor: pointer;
	transition: .2s ease;
}

.wrap .container .theme-toggle .toggle.isDarkToggle::before {
	left: calc(100% - (24px + 3px))!important;
}

.wrap .container .theme-toggle .toggle.isDarkToggle {
	background: #3ACDB5;
}

.wrap .container .theme-toggle .toggle::before {
	position: absolute;
	content: '';
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: whitesmoke;
	top: 50%;
	-webkit-transform: translate(0, -50%);
	transform: translate(0, -50%);
	left: 3px;
	box-shadow: 1px 1px 2px rgba(255,255,255,0.5) inset,
				-1px -1px 2px black inset;
	transition: .2s ease;
	/*box-shadow: 0 0 0 3px white inset,
				1px 1px 2px rgba(0,0,0,0.3);*/
}

.wrap .container .screen {
	width: 100%;
	min-height: 100px;
	border-radius: 10px;
	background-color: lightgray;
	padding: 10px;
	display: grid;
	grid-template-rows: auto 1fr;
	box-shadow: 3px 3px 5px rgba(0,0,0,0.4) inset,
				-2px -2px 3px rgba(255,255,255,0.6) inset,
				-2px -2px 2px rgba(0,0,0,0.3);
	transition: .2s ease;
}

.wrap .container .screen input {
	width: 100%;
	outline: none;
	border: 0;
	font-size: 55px;
	border-radius: 10px;
	background-color: inherit;
	font-family: 'Digital-7', monospace;
	font-weight: 600;
	text-align: right;	
	letter-spacing: 2px;
}

.wrap .container .screen input::placeholder {
	color: black;
}

.wrap .container .screen .mini-screen {
	width: 100%;
	height: 30px;
	font-size: 20px;
	text-align: right;
	font-family: 'Digital-7', monospace;
	font-weight: 600;
	letter-spacing: 1px;
	padding: 2px 10px;
	border-radius: 7px;
	width: -moz-fit-content;
	width: fit-content;
	justify-self: self-end;
	color: #343434;
	-webkit-user-select: none;
	user-select: none;
	overflow-y: auto;
	display: flex;
	line-height: 1.2;
}

.wrap .container .button-container	{
	width: 100%;
	max-height: 400px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 10px;
	--bgColor: #fff;
	--color: #333;
}

.wrap .container .button-container button {
	border: 0;
	outline: none;
	font-size: 35px;
	border-radius: 13px;
	position: relative;
	isolation: isolate;
	background-color: #c9c9c9;
	box-shadow: -1px -1px 1px rgba(0,0,0,0.4),
				1px 1px 1px rgba(0,0,0,0.4) inset,
				1px 1px 1px rgba(255,255,255,0.3);
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	font-weight: 600;
}

.wrap .container .button-container button.pos-neg {
	font-size: 23px;
}

.wrap .container .button-container button:first-child ,
.wrap .container .button-container button:nth-child(2) {
	font-size: 28px;
}

.wrap .container .button-container button::before {
	position: absolute;
	content: "";
	width: calc(100% - 6px);
	height: calc(100% - 6px);
	border-radius: 10px;
	z-index: -1;
	background-color: var(--bgColor);
	top: 3px;
	left: 3px;
	box-shadow: 2px 2px 3px rgba(255,255,255,0.3) inset,
				-2px -2px 4px rgba(0,0,0,0.5) inset;
    transition: .2s ease;
}

.wrap .container .button-container button:nth-child(16) {
	grid-row: 4/7;
	grid-column: 4/5;
}

.wrap .container .button-container button:nth-child(17) {
	grid-column: 1/2;
	grid-row: 5/6;
}

.wrap .container .button-container button:last-child {
	grid-column: 1/5;
	grid-row: 7/8;
	/*--equalColor: #3ACDB5;*/
}

.wrap .container .button-container button:last-child::before {
	background-color: tomato;
}

.wrap .container .button-container button:active::before,
.wrap .container .button-container button:active > p {
	transform: scale(0.95);
	color: #3ACDB5;
}

.wrap .container .button-container button p {
	transition: .2s ease;
	color: var(--color);
}

.wrap .container .button-container button.ratio p,
.wrap .container .button-container button.squared p,
.wrap .container .button-container button.square-root p {
	font-size: 22px;
}

.isDarkEqual {
	--equalColor: tomato!important;
}

.isDarkContainer {
	background-color: #303841!important;
}

.isDarkButton {
	--color: #eee!important;
	--bgColor: #34393E!important;
	background-color: #555!important;
}

.isDarkScreen {
	background-color: #BDEEE6!important;
}

.isDarkWrap {
	background-color: #4F565E!important;
}