/* General Styling */
/* =============== */
* {
	font-family: 'Poppins', sans-serif;
	scroll-behavior: smooth;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	transition: 0.4s ease-out;
}

body {
	font-size: 18px;
}

section {
	position: relative;
	width: 100%;
}

a {
	text-decoration: none;
	color: inherit;
}

button {
	outline: none;
	border: none;
}

.container {
	height: 100%;
	width: 100%;
}

.dark {
	background: rgba(0, 0, 0, 0.5);
	height: 100%;
	width: 100%;
}

.center {
	transform: translateX(-50%);
	left: 50%;
}

.title {
	display: inline-block;
	position: relative;
	margin: 50px 0;
}
.title > h2 {
	border: 1px solid #313131;
	text-transform: uppercase;
	display: inline-block;
	letter-spacing: 2px;
	position: relative;
	padding: 10px 45px;
	word-spacing: 6px;
	color: #819757;
	font-weight: 500;
	font-size: 32px;
}
.title.dark > h2 {
	border-color: #f7f7f7;
}
.title > p {
	transform: translate(-50%, 50%);
	background: #f7f7f7;
	position: absolute;
	font-weight: 400;
	font-size: 17px;
	padding: 0 10px;
	bottom: 0;
	left: 50%;
}
.title.dark > p {
	background: #313131;
	color: #f7f7f7;
}

.highlight {
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	color: #819757;
	font-size: 1.1em;
}

/* Home-page Styling */
/* ================= */
#home {
	background: url(../images/desk1.jpg) no-repeat center center;
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
	background-size: cover;
	text-align: center;
	color: #f7f7f7;
}

header {
	position: relative;
	height: 100vh;
	width: 100%;
}

.home-container {
	transform: translateY(-50%);
	position: relative;
	top: 50%;
}

#typer-1 {
	animation: flicker 0.65s 6 forwards;
	color: #819757;
}
#typer-2 {
	animation: flicker 0.6s 3.7s infinite;
	color: #819757;
	opacity: 0;
}

.btn-bounce {
	box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
	border: 2px solid #f7f7f7;
	display: inline-block;
	padding: 8px 20px;
	font-size: 25px;
	margin: 15px 0;
}
.btn-bounce:hover {
	border-color: #819757;
	color: #819757;
}
.btn-bounce:hover i {
	animation: bounce 2s;
}

h1 {
	font-weight: 400;
	font-size: 40px;
}

/* About-page Styling */
/* ================== */
#about {
	background: #f7f7f7;
	color: #313131;
}

/* Personal */
#personal {
	transform: translateX(-50%);
	position: relative;
	padding: 70px 75px;
	height: 400px;
	left: 50%;
}

#who {
	padding-top: 10px;
	position: relative;
	font-size: 20px;
	height: 100%;
	width: 50%;
}
#who > p {
	letter-spacing: 0.5px;
	position: relative;
}
#who .highlight {
	padding: 15px 0;
	display: block;
}

#picture {
	background: url(../images/picture.jpg) no-repeat center center;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
	border: 2px solid #819757;
	background-size: cover;
	position: absolute;
	border-radius: 4px;
	height: 80%;
	right: 75px;
	width: 35%;
	top: 20px;
}

/* Skills */
#skills {
	justify-content: space-evenly;
	background: #dddddd;
	padding: 20px 75px;
	text-align: center;
	flex-wrap: wrap;
	display: flex;
	width: 100%;
}

.tile {
	text-align: center;
	color: #313131;
	min-width: 60px;
	margin: 0 10px;
}
.tile-i {
	color: #819757;
	font-size: 45px;
}
.tile-title {
	color: #313131;
	font-weight: 500;
	font-size: 18px;
	padding: 1px 0;
}

/* Principles */
#principles {
	justify-content: space-around;
	background: #313131;
	padding: 0 75px;
	flex-wrap: wrap;
	display: flex;
}

.card {
	text-align: center;
	color: #ffffff;
	margin: 50px 0;
	width: 250px;
}
.card-i {
	color: #819757;
	font-size: 70px;
}
.card-title {
	padding: 25px 0 10px;
	letter-spacing: 2px;
	font-weight: 500;
	font-size: 25px;
}
.card-info {
	padding: 0 10px;
	font-size: 16px;
}

/* Projects-page Styling */
/* ===================== */
#projects {
	background: url(../images/desk2.jpg) no-repeat center center;
	background-size: cover;
	color: #f7f7f7;
}

#projects .title h2 {
	border-color: #f7f7f7;
}

.projects {
	transform: translateX(-50%);
	justify-content: center;
	padding: 75px 0 125px;
	align-items: center;
	position: relative;
	flex-wrap: wrap;
	display: flex;
	height: 100%;
	width: 90%;
	left: 50%;
}

.project {
	position: relative;
	min-width: 270px;
	overflow: hidden;
	height: 250px;
	margin: 4px;
	width: 32%;
}

.info-p {
	transform: translateY(-100%);
	background: #819757;
	position: relative;
	text-align: center;
	height: 100%;
	width: 100%;
	opacity: 0;
}
.project:hover .info-p {
	opacity: initial;
}
.info-p h4 {
	padding-top: 40px;
	font-weight: 400;
	font-size: 25px;
}
.info-p h5 {
	font-weight: 400;
	font-size: 18px;
	margin: 4px;
}

.project-link {
	border: 1px solid #f7f7f7;
	text-transform: uppercase;
	display: inline-block;
	background: #819757;
	padding: 5px 20px;
	color: #f7f7f7;
	font-size: 18px;
	cursor: pointer;
	margin: 10px;
}

.project-link:hover {
	background: #f7f7f7;
	color: #819757;
}

.image-p {
	position: relative;
	height: 100%;
	width: 100%;
}
.image-p > img {
	height: 100%;
	width: 100%;
}

#yelpcamp {
	background: url(../images/yelpcamp1.jpg) no-repeat left center;
	background-size: cover;
	height: 100%;
	width: 100%;
}
#emaily {
	background: url(../images/emaily1.jpg) no-repeat left center;
	background-size: cover;
	height: 100%;
	width: 100%;
}
#marioplan {
	background: url(../images/marioplan1.jpg) no-repeat left center;
	background-size: cover;
	height: 100%;
	width: 100%;
}
#ninjapizza {
	background: url(../images/ninjapizza1.JPG) no-repeat left center;
	background-size: cover;
	height: 100%;
	width: 100%;
}

/* Contact-page Styling */
/* ==================== */
#contact {
	background: #f7f7f7;
}

#contact .container {
	display: flex;
	flex: wrap;
}

.fragment-4 {
	background: #819757;
	text-align: center;
	padding-top: 50px;
	color: #f7f7f7;
	width: 40%;
}

.fragment-6 {
	padding: 25px 75px 25px 25px;
	width: 60%;
}

#contact .title h2 {
	border-color: #f7f7f7;
	color: #f7f7f7;
}

#contact .title p {
	background: #819757;
	color: #f7f7f7;
}

.c-text {
	font-size: 22px;
	padding: 25px 55px;
}

#success {
	width: 100%;
	margin: 5px 0;
	color: #fff;
	background: #819757;
	padding: 10px;
	text-align: center;
}

/* Form */
#contact-form {
	margin: 30px auto;
	width: 100%;
}

.inputs {
	justify-content: space-between;
	flex-wrap: wrap;
	display: flex;
}
#contact-form > .inputs > input {
	width: 48%;
}
#contact-form > textarea {
	margin: 10px 0;
	width: 100%;
}

#contact-form > .inputs > input,
#contact-form > textarea {
	border: none;
	border-bottom: 2px solid #313131;
	background: #f1f1f1;
	padding: 5px 10px;
	color: #313131;
	font-size: 18px;
	outline: none;
}
#contact-form > .inputs > input:valid,
#contact-form > textarea:valid {
	border-bottom: 2px solid #819757;
}

.btn {
	border: 2px solid #313131;
	text-transform: capitalize;
	background: transparent;
	position: relative;
	padding: 5px 20px;
	color: #313131;
	font-weight: 500;
	cursor: pointer;
	font-size: 18px;
	right: 0;
}

.btn:hover {
	border-color: #819757;
	background: #f7f7f7;
	color: #819757;
}

/* Footer Styling */
/* ============== */
footer {
	background: #313131;
	position: relative;
	text-align: center;
	min-height: 25vh;
}

footer .btn-bounce {
	transform: translateY(-50%);
	border-color: #313131;
	background: #f7f7f7;
	box-shadow: none;
}

.top {
	position: relative;
	height: 50px;
}

.social-links {
	margin: 40px 0;
}

.social-link {
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
	border: 2px solid #f7f7f7;
	display: inline-block;
	padding: 2px 12px;
	color: #f7f7f7;
	font-weight: 500;
	font-size: 35px;
	margin: 0 25px;
}

.social-link:hover {
	box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
	border-color: #819757;
	background: #f7f7f7;
	text-shadow: none;
	color: #819757;
}

.footer-p {
	text-transform: uppercase;
	position: relative;
	color: #f7f7f7;
	font-weight: 500;
	min-height: 50px;
	bottom: 0;
}

/* Modal Styling */
/* ============= */
.full {
	background: rgba(0, 0, 0, 0.8);
	transform: translate(-50%, -50%);
	position: fixed;
	position: fixed;
	height: 100vh;
	width: 100%;
	z-index: 3;
	left: 50%;
	top: 50%;
}

.modal {
	transform: translate(-50%, -50%);
	background: #f7f7f7;
	position: relative;
	max-height: 625px;
	color: #313131;
	max-width: 700px;
	min-width: 280px;
	height: 99vh;
	width: 90%;
	left: 50%;
	top: 50%;
}

.close {
	position: absolute;
	padding: 5px 15px;
	color: #8b0000;
	font-weight: 500;
	cursor: pointer;
	font-size: 16px;
	z-index: 101;
	bottom: 2px;
	right: 2px;
}
.close:hover {
	background: #8b0000;
	color: #f7f7f7;
}

.slides {
	background: #819757;
	position: relative;
	height: 60%;
	width: 100%;
}

img.slide {
	position: absolute;
	object-fit: cover;
	height: 100%;
	width: 100%;
	opacity: 0;
	left: 0;
	top: 0;
}
img.slide.show {
	opacity: 1;
}

.slides i {
	font-size: 37px;
}
.btn-left {
	background: rgba(0, 0, 0, 0.7);
	border: 2px solid #f7f7f7;
	position: absolute;
	padding: 5px 15px;
	color: #f7f7f7;
	cursor: pointer;
	bottom: 0;
	left: 0;
}
.btn-right {
	background: rgba(0, 0, 0, 0.7);
	border: 2px solid #f7f7f7;
	position: absolute;
	padding: 5px 15px;
	color: #f7f7f7;
	cursor: pointer;
	bottom: 0;
	right: 0;
}
.btn-right:hover,
.btn-left:hover {
	background: #819757;
}

.information {
	border-top: 2px solid #313131;
	padding: 10px 20px 0;
	height: 100%;
	width: 100%;
}
.information > h2 {
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
	display: inline-block;
	font-weight: 500;
	font-size: 25px;
}

.right {
	padding-top: 5px;
	float: right;
}

.information > hr {
	margin: 5px 0;
}
.information p {
	font-size: 16px;
}

.links {
	position: absolute;
	bottom: 2px;
	left: 20px;
}
.links > a {
	border: 1px solid #819757;
	text-transform: uppercase;
	background: #819757;
	display: inline-block;
	margin: 2px 15px 0 0;
	padding: 4px 10px;
	color: #f7f7f7;
	font-weight: 500;
	font-size: 15px;
	cursor: pointer;
}
.links > a:hover {
	border-color: #819757;
	background: #f7f7f7;
	color: #819757;
}

/* Animations */
/* ========== */
@keyframes flicker {
	0% {
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes bounce {
	0% {
		transform: translateY(0);
	}
	10% {
		transform: translateY(10px);
	}
	20% {
		transform: translateY(-9px);
	}
	30% {
		transform: translateY(6px);
	}
	40% {
		transform: translateY(-5px);
	}
	50% {
		transform: translateY(4px);
	}
	60% {
		transform: translateY(-3px);
	}
	70% {
		transform: translateY(2px);
	}
	80% {
		transform: translateY(-1px);
	}
	90% {
		transform: translateY(1px);
	}
	100% {
		transform: translateY(0px);
	}
}

/* Screen width 1200px and up */
/* ========================== */
@media screen and (min-width: 1200px) {
	/* Project-page Styling */
	/* ==================== */
	.project {
		height: 300px;
	}
}

/* Screen width 992px and down */
/* =========================== */
@media screen and (max-width: 992px) {
	/* Contact-page Styling */
	/* ==================== */
	.c-text {
		padding: 25px 20px;
		font-size: 20px;
	}
	#contact-form > .inputs > input,
	#contact-form > textarea {
		padding: 3px 7px;
		font-size: 17px;
		width: 100%;
	}
}

/* Screen width 768px and down */
/* =========================== */
@media screen and (max-width: 768px) {
	/* Home-page Styling */
	/* ================= */
	h1 {
		font-weight: 400;
		font-size: 30px;
	}

	.btn-bounce {
		padding: 6px 16px;
		font-size: 22px;
	}

	/* About-page Styling */
	/* ================== */
	#personal {
		transform: translateX(-50%);
		padding: 70px 25px;
		padding: 10px 25px;
		position: relative;
		height: auto;
		left: 50%;
	}
	#who {
		margin: 40px auto 25px;
		text-align: center;
		font-size: 18px;
		height: auto;
		width: 80%;
	}
	#picture {
		transform: translateX(-50%);
		position: relative;
		height: 300px;
		width: 60%;
		left: 50%;
	}
	.card {
		margin: 30px 0;
	}
	.card-title {
		font-size: 20px;
	}

	#skills {
		padding: 20px 25px;
	}
	.tile {
		margin: 8px 10px;
	}

	/* Project-page Styling */
	/* ==================== */
	.project {
		height: 180px;
	}

	.info-p h4 {
		padding-top: 20px;
	}

	.projects {
		padding: 50px 0 75px;
	}

	/* Contact-page Styling */
	/* ==================== */
	#contact-form > .inputs > input,
	#contact-form > textarea {
		padding: 3px 7px;
		font-size: 17px;
	}

	#contact .container {
		display: initial;
	}

	.fragment-4 {
		background: #819757;
		text-align: center;
		padding: 10px 20px;
		color: #f7f7f7;
		width: 100%;
	}

	.fragment-6 {
		padding: 25px 75px;
		width: 100%;
	}

	.c-text {
		padding: 10px 15px 15px;
		font-size: 18px;
	}

	/* Modal Styling */
	/* ============= */
	.information p {
		font-size: 15px;
	}

	.slides {
		height: 55%;
	}
}

/* Screen width 600px and down */
/* =========================== */
@media screen and (max-width: 600px) {
	/* Modal Styling */
	/* ============= */
	.information p {
		font-size: 14px;
	}

	.slides {
		height: 40%;
	}

	.information > h2 {
		font-size: 20px;
	}
}

/* Screen width 500px and down */
/* =========================== */
@media screen and (max-width: 500px) {
	/* General Styling */
	/* =============== */
	.title > h2 {
		font-size: 25px;
	}
	.title > p {
		padding: 0 5px;
	}

	/* Home-page Styling */
	/* ================= */
	h1 {
		font-size: 25px;
	}

	/* About-page Styling */
	/* ================== */
	#who {
		width: 95%;
	}
	#picture {
		height: 180px;
	}

	/* Contact-page Styling */
	/* ==================== */
	.fragment-6 {
		padding: 25px;
	}
}

/* Screen width 400px and down */
/* =========================== */
@media screen and (max-width: 400px) {
	/* Modal Styling */
	/* ============= */
	.slides {
		height: 35%;
	}

	.links {
		left: 2px;
	}
	.links > a {
		font-size: 14px;
		padding: 4px 7px;
		margin-right: 5px;
	}
	.close {
		font-size: 15px;
		padding: 4px 10px;
		background: #8b0000;
		color: #f7f7f7;
	}
}
