<div class="container">
	<h1>The Order of Operations</h1>
	<ol>
		<li>Parentheses</li>
		<li>Exponents</li>
		<li>Multiplication</li>
		<li>Division</li>
		<li>Addition</li>
		<li>Subtraction</li>
	</ol>
</div>
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

$color-text: #fff;
$color-background: linear-gradient(to right bottom, #ffb88e, #ea5753);
$color-container: linear-gradient(
	to right bottom,
	rgb(255, 184, 142, 0.44),
	rgba(255, 255, 255, 0.5)
);
$color-list: rgba(234, 87, 83, 0.7);

html {
	font-size: 62.5%;
}

body {
	margin: 0;
	height: 100vh;
	display: grid;
	font-size: 1.6rem;
	place-items: center;
	background: $color-background;
	font-family: Rockwell, "Courier New", Courier, Georgia, Times,
		"Times New Roman", serif;
}

.container {
	width: 40vw;
	padding: 3rem;
	overflow-y: hidden;
	overflow-x: hidden;
	position: relative;
	border-radius: 3rem;
	background: $color-container;

	&::-webkit-scrollbar {
		width: 0;
	}

	&::before {
		content: "";
		top: -10rem;
		left: -10rem;
		width: 40rem;
		height: 40rem;
		position: absolute;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.35);
	}

	&::after {
		content: "";
		bottom: 0rem;
		right: -10rem;
		width: 40rem;
		height: 40rem;
		margin-bottom: -25rem;
		position: absolute;
		border-radius: 50%;
		background: rgba(255, 185, 142, 0.6);
	}

	// Heading
	h1 {
		top: 0;
		margin: 0;
		padding: 6rem 0;
		padding-top: 7rem;
		position: sticky;
		text-align: center;
		color: $color-text;
		margin-bottom: 3rem;
		box-shadow: 0 7px 2rem #ea5753;
		background: rgba(234, 87, 83, 0.7);
	}

	// 	List
	ol {
		margin: 0;
		gap: 1rem;
		padding: 0;
		display: flex;
		list-style: none;
		place-items: center;
		flex-direction: column;
		counter-reset: my-counter;

		li {
			width: 40rem;
			text-align: center;
			color: $color-text;
			border-radius: 3rem;
			background: $color-list;
			counter-increment: my-counter;
			padding: 1.1rem 1.5rem 1.1rem 1.5rem;

			&::before {
				content: counter(my-counter) ". ";
			}
		}
	}
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.