@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400;600;800&display=swap');

* {
	box-sizing: border-box;
}

body {
	font-family: 'Montserrat', Helvetica, sans-serif;
	/* background-color: rgb(229, 238, 250); */
	background-image: url('../img/bg-1.jpg');
	transition: 0.4s;
	background-position-x: right;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.page {
	max-width: 1024px;
	margin: auto;
	width: 95%;
}

header {
	text-align: center;
	display: flex;
	flex-flow: column;
	justify-content: center;
	margin: 3em 0 5em 0;
	background-color: rgba(248, 248, 252, 0.94);
	padding: 15px;
	border-radius: 30px;
}

header h2 {
	font-size: 36px;
	text-transform: uppercase;
	font-weight: 800;
	color: #d1009f;
	letter-spacing: 2px;
	margin-bottom: 25px;
}
.search-alert {
    text-align: center;
	display: none;
}

.search-alert h2 {
    max-width: 100%;
    width: 500px;
    display: inline-block;
    background-color: orangered;
    padding: 18px 0;
    border-radius: 30px;
}
.student-search {
	display: flex;
}

.student-search input {
	width: 100%;
	/* border-radius: 4px 0 0 4px; */
	border-radius: 18px;
	border: 1px solid rgb(30, 144, 255);
	padding: 10px 16px;
	font-size: 14px;
}

.student-search input::placeholder {
	color: #929b9e;
}

.student-search button {
	cursor: pointer;
	width: 55px;
	border-radius: 0 4px 4px 0;
	border: 1px solid #1e90ff;
	border-left: none;
	padding: 0px 5px;
	font-size: 14px;
	background-color: #1e90ff;
	color: #fff;
}

.student-search button img {
	width: 25px;
}

.student-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	grid-gap: 2em;
}

.student-item {
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 2.5em;
	background-color: #f8f8fcf0;
	border-radius: 30px;
	-webkit-transition: box-shadow 0.3s ease;
	transition: box-shadow 0.3s ease;
}

.avatar {
	margin: 0 auto;
	border-radius: 50%;
	background-color: white;
	background-blend-mode: multiply, luminosity;
	width: 128px;
	height: 128px;
	margin: auto auto 15px;
}

.student-details::before {
	content: '';
	position: absolute;
	width: 128px;
	height: 128px;
	background: rgb(66 54 68 / 30%);
	border-radius: 50%;
}

.student-item h3 {
	font-weight: 600;
	font-size: 1.2rem;
	margin-bottom: 0.45em;
	color: #ba00d6;
}

.student-item .email {
	font-weight: 600;
	color: #00a7a9;
	font-size: 14px;
	letter-spacing: 0.5px;
}

.date {
	display: block;
	font-size: 14px;
	color: #00a7a9;
	font-weight: 400;
	width: 100%;
	padding-top: 1.1em;
	border-top: solid 1px #dcdcdc;
	margin-top: 1.1em;
}

.pagination {
	margin: 30px 0 60px;
	text-align: center;
}

.pagination li {
	display: inline;
	padding: 0 3px;
}

.pagination li button {
	font-size: 1em;
	cursor: pointer;
	outline: none;
	padding: 0.5em 0.85em;
	background-color: rgba(248, 248, 252, 0.94);
	border: none;
	border-radius: 50px;
	text-decoration: none;
	color: #1e90ff;
	box-shadow: 0 1px 8px 0 rgba(22, 42, 90, 0.05);
	transition: 0.4s;
}

.pagination li button.active,
.pagination li button:hover {
	background-color: #d1009f;
	color: #fff;
}

.student-search span {
	position: absolute;
	clip: rect(1px, 1px, 1px, 1px);
	padding: 0;
	border: 0;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.no-results {
	font-family: 'Nunito', sans-serif;
	display: block;
	font-size: 1.5rem;
	color: #6d778a;
	width: 500px;
	margin-top: 15px;
	margin-bottom: 15px;
}
.student-search input:focus {
	outline: solid 1px #d1009f;
}
.student-search input::placeholder {
	color: #00a7a9;
}
@media screen and (min-width: 700px) {
	.page {
		width: 70%;
	}

	header {
		flex-flow: row;
		align-items: center;
	}

	header h2 {
		margin-right: auto;
		margin-bottom: 0;
	}

	.student-item {
		border-radius: 50px;
		box-shadow: 0px 0px 15px 0px rgb(0 0 0 / 20%);
		transition: all .3s ease;
	}
	li.student-item:hover {
		/* transition: all .5s ease; */
		transform: translateY(-7px);
		box-shadow: 0px 4px 15px 3px rgb(0 0 0 / 45%);
  }
}
