/* -------------------------------------------------------------------------- *\
	Base layout
\* -------------------------------------------------------------------------- */

html,
body {
	height: 100%;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
	width: 100%;
	max-width: 800px;
	margin: 2em auto;
}

footer {
	padding: 1em;
	text-align: center;
}

footer a {
	color: inherit;
	text-decoration: none;
}

#title-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2.5em;
}

#title-bar i {
	font-size: 1.5rem;
	vertical-align: middle;
}

#title-bar h1 {
	text-align: center;
	flex-grow: 1;
}

/* -------------------------------------------------------------------------- *\
	Branding
\* -------------------------------------------------------------------------- */

:root {
	--dark-blue: #0a2463;
	--colour-light: #4d6ebf;
	--colour-cta: #d8315b;
	--colour-grey: #f7f9fc;
}

body {
	font-family: "Poppins", var(--bs-body-font-family);
	-webkit-font-smoothing: antialiased;
	color: #5d6778;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: #252930;
	font-weight: bold;
}

h1 {
	font-size: 2rem;
}

h2 {
	font-size: 1.7rem;
}

h3 {
	font-size: 1.5rem;
}

h4 {
	font-size: 1.1rem;
}

h1 span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span {
	position: relative;
	display: inline-block;
	text-decoration: none;
}

h1 span::after,
h2 span::after,
h3 span::after,
h4 span::after,
h5 span::after,
h6 span::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.5em;
	width: 90%;
	height: 0.4em;
	background: linear-gradient(to right,
			rgba(29, 78, 216, 0.9) 0%,
			rgba(29, 78, 216, 0.7) 40%,
			rgba(29, 78, 216, 1) 80%);
	border-radius: 95% 5% 80% 0%;
	transform: skewY(1deg) skewX(-0deg) translateX(5%);
	opacity: 1;
}

/* p.subtitle {
	font-size: 1.125rem;
	color: #828d9f;
} */

p {
	font-size: 1rem;
	line-height: 1.5;
}

.card {
	border: none;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------------------------- *\
	Home page
\* -------------------------------------------------------------------------- */

/* Banner (header & footer) */

.banner {
	background: var(--dark-blue);
	padding: 3em;
	text-align: center;
	position: relative;
}

.banner .shapes {
	position: absolute;
	height: 100%;
	width: 100%;
	right: 0;
	top: 0;
	overflow: hidden;
}

.banner .shapes::before,
.banner .shapes::after {
	content: "";
	position: absolute;
	transform-origin: top left;
}

.banner .shapes.right:before,
.banner .shapes.left:before {
	width: 300px;
	height: 150px;
	background: rgba(255, 255, 255, .1);
}

.banner .shapes.right:after,
.banner .shapes.left:after {
	width: 150px;
	height: 600px;
	background: rgba(255, 255, 255, .15);
}

.banner .shapes.right:before {
	right: -60px;
	top: 0;
	border-radius: 4px;
	transform: skew(25deg, -10deg);
}

.banner .shapes.right:after {
	right: 0px;
	top: 30px;
	border-radius: 6px;
	transform: skew(25deg, 10deg);
}

.banner .shapes.left:before {
	left: -90px;
	top: 0;
	border-radius: 6px;
	transform: skew(25deg, -12deg);
}

.banner .shapes.left:after {
	left: 0px;
	top: 30px;
	border-radius: 4px;
	transform: skew(-25deg, 10deg);
}

.banner .container {
	max-width: 800px;
}

.banner p {
	color: #ffffff;
	font-size: 1.2em;
	-webkit-opacity: .8;
	-moz-opacity: .8;
	opacity: .8;
}

.banner a {
	position: relative;
	z-index: 100;
}

header.banner h1 {
	font-size: 2.5em;
	color: #ffffff;
	-webkit-opacity: .9;
	-moz-opacity: .9;
	opacity: .9;
}

section.banner p {
	font-size: 2em;
}

/* Sections */

#home section {
	padding: 3em 0 3em 0;
}

#home section:nth-of-type(1),
#home section:nth-of-type(3) {
	background-color: var(--colour-grey);
}

#home section .col {
	margin-bottom: 1.2em;
}


/* Section "Get started" */

#home #get-started {
	margin: 0;
	padding: 0 0 0 40px;
}

#home #get-started li {
	display: inline-block;
	width: 100%;
	vertical-align: top;
	position: relative;
	padding: 20px 15px 20px 35px;
	box-shadow: 0px 1px 27px -3px rgba(0, 0, 0, 0.2);
	border-radius: 5px;
	margin-bottom: 1.1em;
}

#home #get-started i {
	position: absolute;
	left: -25px;
	top: 15px;
	width: 45px;
	height: 45px;
	line-height: 45px;
	text-align: center;
	border-radius: 50%;
	box-shadow: 0px 1px 27px -3px rgba(0, 0, 0, 0.2);
	color: #fff;
	-webkit-transition: easeall 0.3s;
	-moz-transition: ease all 0.3s;
	-o-transition: ease all 0.3s;
	transition: easeall 0.3s;
	background: #18cff5;
	background: -webkit-linear-gradient(to right, #4745e4, #18cff5);
	background: linear-gradient(to right, #4745e4, #18cff5);
}

#home #get-started p {
	margin: 0;
}

/* Sections: features */

#home section.features h2 {
	text-align: center;
	margin-bottom: 2em;
}

#home section.features .icon {
	--bs-bg-opacity: 1;
	background-color: rgba(var(--bs-secondary-bg-rgb), var(--bs-bg-opacity)) !important;
	--bs-text-opacity: 1;
	color: var(--bs-emphasis-color) !important;
	font-size: 1rem;
	padding: 1em;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
}

#home section#all-in-one .icon {
	width: 20%;
	margin: 0 auto 1em auto;
	border-radius: 50%;
}

#home section#all-in-one h4 {
	text-align: center;
}

#home section#ux .icon {
	border-radius: 25%;
}

/* -------------------------------------------------------------------------- *\
	List pages
\* -------------------------------------------------------------------------- */

.card .stacked {
	position: relative;
}

.card .stacked::before,
.card .stacked::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--bs-card-bg);
	border: none;
	border-radius: var(--bs-card-border-radius);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card .stacked .card-body {
	z-index: 3;
}

.card .stacked::before {
	transform: translate(7px, calc(-1 * 7px));
	z-index: -1;
}

.card .stacked::after {
	transform: translate(14px, calc(-1 * 14px));
	z-index: -2;
}

.card-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1em;
}

.card-title i {
	font-size: 1.1em;
	vertical-align: middle;
}

.card-title h4 {
	flex-grow: 1;
	margin: 0;
	padding: 0 0.5em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.grid {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(7, minmax(30px, 1fr));
	text-align: center;
}

.grid div {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
}

.grid div i {
	font-size: 2em;
}

/* -------------------------------------------------------------------------- *\
	Form pages
\* -------------------------------------------------------------------------- */

form {
	padding: 1em;
}

form #icon-select {
	border-color: var(--bs-border-color);
	font-family: 'Font Awesome 5 Free', 'FontAwesome', sans-serif;
}

form #iconsModal .modal-body {
	background-color: var(--colour-grey) !important;
}

form #iconsModal #icon {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
	gap: 5px;
	font-family: 'Font Awesome 5 Free', 'FontAwesome', sans-serif;
}

form #iconsModal #icon .form-check {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0;
	width: 50px;
	height: 50px;
	background-color: #ffffff;
	border-radius: 5px;
	cursor: pointer;
}

form #iconsModal #icon label {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	font-size: 1.2em;
}

form #iconsModal input[type="radio"] {
	display: none;
}

form #iconsModal input[type="radio"]:checked+label {
	background-color: #007bff;
	border-color: #0056b3;
	color: white;
}

form .icon-choice {
	font-size: 2rem;
	text-align: center;
	cursor: pointer;
}

form .icon-choice input {
	display: none;
}

form .icon-choice input:checked+i {
	background-color: #f0f0f0;
}

/* -------------------------------------------------------------------------- *\
	Stats pages
\* -------------------------------------------------------------------------- */

ul.timeline {
	list-style: none;
	padding-left: 1em;
	position: relative;
}

/* Vertical line */
ul.timeline::before {
	content: "";
	position: absolute;
	left: 1.35em;
	top: 0.5em;
	bottom: 1em;
	width: 2px;
	background-color: grey;
}

ul.timeline li {
	position: relative;
	padding: 0 0 0.5em 2em;
}

/* Bullet */
ul.timeline li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.4em;
	width: 0.8em;
	height: 0.8em;
	background-color: lightgray;
	border-radius: 50%;
	border: 2px solid grey;
}