@font-face {
    font-family: "digital-7";
    src: url("../fonts/digital-7.ttf") format("truetype");
}

/* @media evaluates if hover exist before applying because otherwise
it can collide in mobile by leaving the hightlight on */
@media (hover: hover) {
	button.operator:hover {
		background-color: rgb(249, 173, 66);
	}
	button.number:hover {
		background-color: rgb(61, 61, 70);
	}
	div #equal:hover {
		background-color: rgb(127, 172, 231);
	}
	div #allClear:hover, 
	div #clear:hover {
		background-color: rgb(182, 85, 85);
	}
}

body {
	height: 100svh;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	background-color: rgb(45, 45, 62);
}

.calculator {
	width: 330px;
	height: 530px;
	background-color: rgb(90, 89, 89);
	border: 1px solid rgb(90, 89, 89);
	border-radius: 25px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1rem;
}

.display {
	height: 90px;
	background-color: rgb(54, 184, 141);
	border: 1px solid rgb(54, 184, 141);
	border-radius: 10px;
	justify-content: center;
	text-align: right;
}

#display {
	font-family: "digital-7";
	font-size: 5rem;
}

#inlineDisplay {
	font-size: 1rem;
	font-family: "digital-7";
	margin-right: 0.6rem;
}

.buttonsMainDiv {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.buttonsColums {
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

.buttonsTop {
	display :flex;
	width: 100%;
	justify-content: space-between;
	gap: 1rem;
}

.buttonsTopLeft,
.buttonsTopRight {
	width: 100%;
}

.buttonsTopRight {
	display: flex;
	gap: 1rem;
}

button {
	width: 70px;
	height: 70px;
	border: 0;
	border-radius: 20px;
	font-size: 3rem;
	cursor: pointer;
}

.operator {
	background-color: rgb(226, 142, 26);
	color: black;
}
 
button.operator:active {
	background-color: rgb(249, 173, 66);
}

.number {
	background-color: rgb(45, 45, 62);
	color: white;
}

button.number:active {
	background-color: rgb(61, 61, 70);
	color: white;
}

#equal {
	background-color: rgb(89, 154, 239);
	color: white;
	height: 100%;
}

div #equal:active {
	background-color: rgb(127, 172, 231);
}

.column1,
.column2,
.column3,
.column4 {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.column4a {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.column4b {
	height: 100%;
}

#allClear,
#clear {
	background-color: rgb(172, 4, 4);
	color: white;
}

div #allClear:active,
div #clear:active {
	background-color: rgb(182, 85, 85);
}

#allClear {
	width: 100%;
}