/* base reset */
* {
	margin: 0;
	padding: 0;
}

/* variables */
:root {
	--main-gray: #3b3b3b;
	--main-light: #f9f9f9;
	--main-black: #101010;
	--main-red: #FF595E;
}

/* smaller screens */
@media (max-width: 768px) {
	html { font-size: 16px; }

	#socials {
		text-align: center;
		font-size: 30px;
		margin: 5%;
	}

	#socials a {
		margin: 0 20px;
	}
}

/* larger screens */
@media (min-width: 768px) {

	html { font-size: 20px; }

	/* socials stuff */
	#socials {
		font-size: 20px;
		margin: 10px;
		position: fixed;
		display: grid;
		align-items: end;
		grid-gap: 20px;
		left: 30px;
		bottom: 100px;
	}

	#socials a {
		transition: .5s;
		color: var(--main-gray);
	}

	#socials a:hover {
		padding-left: 10px;
		color: var(--main-red);
		transition: .5s;
	}
}

body {
	background-color: var(--main-light);
	font-family: 'Raleway', sans-serif;
	text-align: left;
	color: var(--main-black);
}

html {
	scroll-behavior: smooth;
}

a { color: inherit; }
a:visited { color: inherit; }
a:focus { outline: none; }

h1 {
	font-size: 2.5rem;
	margin: 10px 0 0 0;
}

h2, h3, h4 {
	margin-bottom: 20px;
}

p {
	margin: 0 0 20px 0;
	font-size: 16px;
	line-height: 30px;
}

#main {
	width: 75%;
	display: block;
	margin: auto;
}

/* navbar stuff */
#navbar {
	display: flex;
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	animation-duration: 1s;
	background-color: var(--main-red);
	transition: .5s;
	z-index: 5;
}

#navbar ul {
	list-style-type: none;
	display: flex;
}

#navbar ul li:first-child {
	float: left;
}

#navbar ul li {
	float: right;
}

#navbar ul li a {
	color: var(--main-light);
	display: block;
	text-align: center;
	text-decoration: none;
	padding: 1rem 1.5rem;
	font-weight: 800;
	transition: .25s;
}

#navbar ul li a:hover {
	background-color: #e04f53;
	transition: .25s;
}

/* landing screen section */
#welcome {
	color: var(--main-light);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: var(--main-gray);
	width: 100%;
	height: 100vh;
}

#welcome p {
	color: var(--main-red);
	font-weight: 300;
	font-size: 1.4rem;
}

#profile {
	width: auto;
	height: 35%;
	min-height: 200px;
	border-radius: 50%;
	display: block;
	border-color: var(--main-light);
	border-style: solid;
	border-width: thick;
}

/* about section */
#about {
	padding: 10vh 0 0 0;
	min-height: 100vh;
	display: flex;
	align-items: center;
}

#about-buttons {
	padding: 20px 0;
}

.button {
	display: inline-block;
	margin: 0 30px 10px 0;
	width: 300px;
	height: 40px;
	line-height: 40px;
	font-weight: 800;
	text-decoration: none;
	border: 2px solid var(--main-black);
	text-align: center;
	position: relative;
	transition: all .2s;
	font-size: 16px;
}

.button span {
	position: relative;
	margin: auto;
	z-index: 2;
}

.button:after {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	background: var(--main-gray);
	transition: all .2s;
}

.button:hover {
	color: var(--main-light);
}

.button:hover:after{
	width: 100%;
  }

/* project section */
#projects {
	padding: 10vh 0 0 0;
}

.project {
	border-radius: 10px;
	background-color: white;
	padding: 20px;
	margin: 0 0 40px 0;
}

.project .pictures img {
	width: 100%;
	max-width: 600px;
	margin-bottom: 20px;
	border: 1px solid black;
}

.project a {
	margin: 0 20px;
}

/* footer section */
footer {
	text-align: center;
	padding: 2vh 0 10vh 0;
}

footer a {
	text-decoration: none;
}

footer a:hover {
	opacity: 0.7;
}