*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  background-color: #eee;
  font-family: "Century Gothic";
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}


.title{
  margin-top: 8%;
  text-align: center;
  text-transform: capitalize;
  color: black;
  position: relative;
}

.title::after{
  content: "";
  position: absolute;
  width: 20%; height: 2px;
  background-image: linear-gradient(to left, transparent 5%, black);
  bottom: -10px; left: 50%;
  transform: translate(-50%);
}

.team-row{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 0;
}

.member{
  flex: 1 1 250px;
  margin: 20px;
  text-align: center;
  padding: 20px 10px;
  max-width: 300px;
  transition: all 0.3s;
}

.member:hover{
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transform: translateY(-20px);
}

.member img{
  display: block;
  width: 150px; height: 150px;
  object-fit: cover;
  border:4px solid rgb(227,1,15) ;
  border-radius: 50%;
  margin: 0 auto;
}

.member h2{
  text-transform: uppercase;
  font-size: 24px;
  color: rgb(51,51,51);
  margin: 15px 0;
}

.member p{
  font-size: 15px;
  color: #282626;
  line-height: 1.6;
}

/* NAV BAR */


nav {
	position: fixed;
	z-index: 10;
	left: 0;
	right: 0;
	top: 0;
	font-family: 'Montserrat', sans-serif;
	padding: 0 5%;
	height: 50px;
	background-color: #333;
}
nav .logo {
	float: left;
	width: 15%;
	height: 100%;
	display: flex;
	align-items: center;
	
}
nav .links {
	float: right;
	padding: 0;
	margin: 0;
	width: 10%;
	height: 100%;
	display: flex;
	justify-content: space-around;
	align-items: center;
}
nav .links li {
	list-style: none;
}
nav .links li:hover{

    background-color: #DA0037;
	max-height: 50px;
}
nav .links a {
	display: block;
	padding: 1em;
	font-size: 16px;
	font-weight: bold;
	color: #fff;
	text-decoration: none;
}
#nav-toggle {
	position: absolute;
	top: -100px;
}
nav .icon-burger {
	display: none;
	position: absolute;
	right: 5%;
	top: 50%;
	transform: translateY(-50%);
}
nav .icon-burger .line {
	width: 30px;
	height: 5px;
	background-color: #fff;
	margin: 5px;
	border-radius: 3px;
	transition: all .3s ease-in-out;
}
@media screen and (max-width: 768px) {
nav .logo {
	float: none;
	width: 25%;
	justify-content: center;
	margin-left: 35%;
}
nav .links {
	float: none;
	position: fixed;
	z-index: 9;
	left: 0;
	right: 0;
	top: 50px;
	bottom: 100%;
	width: auto;
	height: auto;
	flex-direction: column;
	justify-content: space-evenly;
	background-color: rgba(0,0,0,.8);
	overflow: hidden;
	box-sizing: border-box;
	transition: all .5s ease-in-out;
}
nav .links a {
	font-size: 20px;
}
nav :checked ~ .links {
	bottom: 0;
}
nav .icon-burger {
	display: block;
}
nav :checked ~ .icon-burger .line:nth-child(1) {
	transform: translateY(10px) rotate(225deg);
}
nav :checked ~ .icon-burger .line:nth-child(3) {
	transform: translateY(-10px) rotate(-225deg);
}
nav :checked ~ .icon-burger .line:nth-child(2) {
	opacity: 0;
}

}

img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 768px) {
	.title{
		margin-top: 15%;
		text-align: center;
		text-transform: capitalize;
		color: black;
		position: relative;
	  }
}