@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");
* {
  box-sizing: border-box;
}
body {
  background: #02aab0;
  font-family: "Montserrat", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  position: relative;
}
h1 {
  color: white;
  font-size: 40px;
  margin: 10vh 0;
}
.projects {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 90vw;
}
.project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.projectType {
  text-align: center;
  color: #fff;
  text-transform: capitalize;
}
.card {
  display: block;
  position: relative;
  height: 200px;
  width: 250px;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease-out;
}
.card:hover {
  transform: scale(1.1);
}
.card-img {
  height: 100%;
  width: 100%;
}
.btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  border: 2px solid #fff;
  color: #fff;
  padding: 8px 15px;
  background-color: transparent;
  font-size: 1em;
  opacity: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 1;
}
.btn:focus {
  outline: 0;
}
.btn:active {
  font-size: 18px;
}
.btn:hover {
  color: #fff;
  border: 2px solid #39d6b4;
  background-color: #02aab0;
}
.card::after {
  content: "";
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: default;
}
.card:hover {
  cursor: pointer;
}
.card:hover .btn,
.card:hover.card::after {
  opacity: 1;
}
