body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.bar {
  background: grey;
  width: 100%;
  padding: 2px;
}

#nav {
  position: fixed;
  top: 0px;
  display: none;
  z-index:10;
}

#nav a {
  color: white;
  padding: 10px;
  text-decoration: none;
}

.navbar a:hover {
  color: #ffffff;
}

.sentence {
  text-align: left;
}

.sliding-vertical {
  display: inline;
  text-indent: 8px;
}

.sliding-vertical span {
  animation: topToBottom 16s linear infinite 0s;
  -ms-animation: topToBottom 16s linear infinite 0s;
  -webkit-animation: topToBottom 16s linear infinite 0s;
  opacity: 0;
  overflow: hidden;
  position: absolute;
}

.sliding-vertical span:nth-child(2) {
  animation-delay: 4s;
  -ms-animation-delay: 4s;
  -webkit-animation-delay: 4s;
}

.sliding-vertical span:nth-child(3) {
  animation-delay: 8s;
  -ms-animation-delay: 8s;
  -webkit-animation-delay: 8s;
}

.sliding-vertical span:nth-child(4) {
  animation-delay: 12s;
  -ms-animation-delay: 12s;
  -webkit-animation-delay: 12s;
}

/* topToBottom aniation */
@-moz-keyframes topToBottom{
	0% { opacity: 0; }
	5% { opacity: 0; -moz-transform: translateY(-20px); }
	10% { opacity: 1; -moz-transform: translateY(0px); }
	25% { opacity: 1; -moz-transform: translateY(0px); }
	30% { opacity: 0; -moz-transform: translateY(20px); }
	80% { opacity: 0; }
	100% { opacity: 0; }
}
@-webkit-keyframes topToBottom{
	0% { opacity: 0; }
	5% { opacity: 0; -webkit-transform: translateY(-20px); }
	10% { opacity: 1; -webkit-transform: translateY(0px); }
	25% { opacity: 1; -webkit-transform: translateY(0px); }
	30% { opacity: 0; -webkit-transform: translateY(20px); }
	80% { opacity: 0; }
	100% { opacity: 0; }
}
@-ms-keyframes topToBottom{
	0% { opacity: 0; }
	5% { opacity: 0; -ms-transform: translateY(-20px); }
	10% { opacity: 1; -ms-transform: translateY(0px); }
	25% { opacity: 1; -ms-transform: translateY(0px); }
	30% { opacity: 0; -ms-transform: translateY(20px); }
	80% { opacity: 0; }
	100% { opacity: 0; }
}
@keyframes topToBottom{
	0% { opacity: 0; }
	5% { opacity: 0; transform: translateY(-20px); }
	10% { opacity: 1; transform: translateY(0px); }
	25% { opacity: 1; transform: translateY(0px); }
	30% { opacity: 0; transform: translateY(20px); }
	80% { opacity: 0; }
	100% { opacity: 0; }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.project-image {
  display: block;
  opacity: 1;
  transition: 0.5s ease;
}

.card-content {
  position: absolute;
  transition: 0.5s ease;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
}

.card:hover .project-image {
  opacity: 0.2;
}

.card:hover .card-content {
  opacity: 1;
}

/* Keep above this line */

#projects {
  padding-top: 5vh
}

#contact input, textarea {
  width: 100%;
  margin-bottom: 2px;
  background-color: lightgrey;
  border: none;
  padding: 10px;
}

#contact textarea {
  height: 10vh;
} */

#contact button {
  float: right;
  background-color: #000000;
  color: #ffffff;
  border: 2px solid white;
  padding: 5px;
  margin: 0;
}