@import url(https://fonts.googleapis.com/css?family=Raleway);

*, *:before, *:after{
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing:border-box;
  box-sizing: border-box;
}

/*body{
  background: #f9f9f9;
  font-size: 16px;
  font-family: 'Raleway', sans-serif;
}
*/

.container .content-item a {
  text-decoration: none;
  color: #252525;
  padding: 0.5rem;
  padding-inline: 1rem;
  background-color: white;
  text-transform: uppercase;
  font-size: 1.0rem;
  border-radius: 100vmax;
  font-weight: bold;
  transition-duration: 300ms;
}
.container .content-item a:hover {
  background-color: #252525;
  color: white;
}

.main-title{
  color: #2d2d2d;
  text-align: center;
  text-transform: capitalize;
  padding: 0.7em 0;
}

.container{
  padding: 1em 0;
  float: left;
  width: 40%;
    
}
@media screen and (max-width: 640px){
  .container{
    display: block;
    width: 100%;
  }
}

@media screen and (min-width: 900px){
  .container{
    width: 33.33333%;
  }
}

.container .title{
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 10px;
}

.content-item {
  position: relative;
  width: 90%;
  max-width: 400px;
  margin: auto;
  overflow: hidden;
  
  border-radius: 10px;  
  border: 2px #868686;
  box-shadow: -3px 5px 15px #000;  
  transition: 1s;
}

.content-item:hover {
  transform: scale(1.2);
  box-shadow: 20px 20px 20px 0 #0009;
  transition: 1s;
  z-index:99;
}

.content-item .content-overlay {
  background: rgba(0,0,0,0.7);
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  -webkit-transition: all 0.4s ease-in-out 0s;
  -moz-transition: all 0.4s ease-in-out 0s;
  transition: all 0.4s ease-in-out 0s;
}

.content-item:hover .content-overlay{
  opacity: 0.5;
}

.content-image{
  width: 100%;
}

.content-details {
  position: absolute;
  text-align: center;
  padding-left: 1em;
  padding-right: 1em;
  width: 100%;
  top: 50%;
  left: 50%;
  opacity: 0;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.content-item:hover .content-details{
  top: 50%;
  left: 50%;
  opacity: 1;
}

.content-details h3{
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

.content-details p{
  color: #fff;
  font-size: 0.8em;
}

.fadeIn-bottom{
  top: 80%;
}

 .container .cards .text a {
  text-decoration: none;
  color: #252525;
  padding: 0.5rem;
  padding-inline: 1rem;
  background-color: white;
  text-transform: uppercase;
  font-size: 0.75rem;
  border-radius: 100vmax;
  font-weight: bold;
  transition-duration: 300ms;
}
.container .cards .text a:hover {
  background-color: #252525;
  color: white;
}