@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;600&display=swap");

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Oswald", sans-serif;
}

body {
	background: #ee6e3f;
	color: #fff;
	text-align: center;
}

a {
	color: #fff;
	text-decoration: none;
}

a:hover,
a:visited {
	color: unset;
}

header {
	text-align: center;
	font-size: 1.2rem;
	margin-block: 2rem;
}

header i {
	color: #fff;
}

h1 a {
	color: #141414;
}

h1 a:visited {
	color: #141414;
}

.btn {
	display: inline-block;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	text-transform: capitalize;
	cursor: pointer;
	color: #fff;
	background-color: #db3b00;
	padding: 12px 30px;
	border-radius: 0px;
	transition: all 0.5s ease 0s;
}

.btn-primary {
	color: #fff;
	background: orangered;
}

.projects {
	background: #db3b00;
	display: grid;
	padding: 1rem;
	grid-template-columns: repeat(5, 1fr);
	grid-auto-rows: 250px;
	grid-auto-flow: dense;
	grid-gap: 5px 10px;
}

.projects img {
	width: 100%;
	height: 100%;
}
.projects h4 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.projects .day {
	background-color: orangered;
	border-bottom-right-radius: 5px;
	color: white;
	font-size: 1.2rem;
	padding: 0.5rem 1rem;
	position: absolute;
	top: 0;
	left: 0;
}

.projects > div {
	position: relative;
	cursor: pointer;
	height: 100%;
}
.projects div:hover .content {
	opacity: 0.98;
}
.projects .content {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: coral;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: opacity 0.3s ease-in;
}
.projects .content p {
	margin: 15px 5px;
}

@media (max-width: 48rem) {
	* {
		font-size: 1rem;
	}
	.btn {
		font-size: 0.7rem;
	}
	.projects {
		padding: 0.5rem;
		grid-template-columns: repeat(1, 1fr);
		grid-gap: 2px;
	}
	.projects .day {
		font-size: 1rem;
	}
	.projects h4 {
		font-size: 1rem;
	}
}
