.teachers {
	padding: 2rem;
}
.card-container {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: center;

}
.card-containers {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-content: stretch;
}
.names {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;

}
.subjects, .class {
	padding: 5px;
}
.names img {
	width: 60px;
	object-fit: cover;
	border-radius: 50%;
	padding: 5px;

}

.h1 {
	font-family: cursive;
	text-align: center;
	font-size: 2.5rem;
	padding: 2rem;
	background: #f1f1f2;
	border-top: 1px solid #a95f5f;
	border-radius: 20%;
	margin-bottom: 3rem;
}
.card-prof-dir {
/*	position: absolute;*/
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  	width: 300px;
  	text-align: center;
  	margin: 10px;
  	font-family: arial;
  	padding: 1rem;
  	background: #4e666a;
  	color: white;
/*  	flex: 0 0 100%;*/
}
.card-prof {
/*	top: 20px;*/
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  	width: 300px;
  	text-align: center;
  	font-family: arial;
  	padding: 1rem;
  	margin: 10px;
  	background: #4e666a;
  	color: white;
/*  	flex-grow: 1;*/
}
.card-prof img, .card-prof-dir img {
	width: 50%;
	object-fit: cover;
	border-radius: 50%;
	-webkit-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
	box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
}
.card-prof h1 {
	padding: 1.5rem;
	font-size: 1.5rem;
	color: white;
}
.card-prof-dir h1 {
	padding: 1rem 1.5rem;
	color: white;
}
.card-prof p {
	padding: 5px;
}
.avatar {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	margin: auto;
	font-size: 4rem;
	font-weight: bold;
	text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.red {
	background: #477d7f;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	margin: auto;
	font-size: 4rem;
	font-weight: bold;
	text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
    -webkit-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
	box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
}
.black {
	background: #5c4b77;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	margin: auto;
	font-size: 4rem;
	font-weight: bold;
	text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
    -webkit-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
	box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
}
.blue {
	background: #7db9b3;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	margin: auto;
	font-size: 4rem;
	font-weight: bold;
	text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
    -webkit-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
	box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
}
.green {
	background: #3a4042;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	margin: auto;
	font-size: 4rem;
	font-weight: bold;
	text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
   	-webkit-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
	box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
}
.title {
	font-size: 18px;
	color: gray;
	padding: .5rem;
	color: white;
}
.card-prof .fa,
.card-prof-dir .fa {
	color: white;
}
.social-media {
	margin: .5rem 0;
	font-size: 1.5rem;
}
.tel {
	font-size: 0.9rem;
	padding-top: 0.4rem;
	color: #f4f3e3;
}
@media only screen and (min-width: 320px) {
	.title {
		font-size: 14px;
	}	
	.teachers {
		padding: 0;
	}
	.card-prof {
		margin: 10px 0;
	}
}
@media only screen and (min-width: 384px) {
	.title {
		font-size: 15px;
	}
}
@media only screen and (min-width: 767px) {
	.h1 {
		font-size: 2rem;
	}
	.title {
		font-size: 16px;
	}
	.profesori {
		margin:  0;
	}
	.card-prof {
		margin:10px 0;
	}
	.card-prof-dir {
		margin: 5px 0;
	}
	.teachers {
		margin-top: 0;
/*		padding: 0 2rem;*/
	}

}

@media only screen and (min-width: 767px) {
	.teachers {
		margin-top: 0;
/*		padding: 0 2rem;*/
	}
	.card-prof {
		margin: 10px 20px 10px -10px;
	}
}

