body{
    /* padding-top: 30px; */
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.project-footer-section{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.projects{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vH;
    background-color: #F5F5F5;
    font-family: Roboto;
    padding-bottom: 5%;
}

.projects:after {
    content: "";
    display: table;
    clear: both;
  }

.projects-container{
    position: relative;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 80%
}

.projects-item{
    position: relative;
    float: left;
    overflow: hidden;
    margin: 10px 1%;
    min-width: 150px;
    max-width: 220px; /* decrease or increase it to dec/incr the no. of projects to be displayed in each row*/
    width: 100%;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.projects-item:hover{
    cursor:pointer;
}

.projects-item *{
    transition: all 0.35s ease-in-out;
}

.projects-image{
    max-width: 100%;
    vertical-align: top;
    height: 310px;
}

.projects-item:hover .projects-image{
    opacity: 0;
}

.projects-text{
    width: 80%;
    height: 90%;
    position: absolute;
    top: -100px;
    left: 10%;
    color: #ee5553;
}
.projects-text h3{
    color: black;
}

.projects-item:hover  .projects-text {
    top: 20% ;
}

.projects-item:hover .projects-button{
    bottom: 20%;
}

.projects-item .projects-button{
    position: absolute;
    bottom: -100px;
    left: 25%;
    width: 50%;
    border: 3px solid #ee5553;
    padding: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

.projects-button:hover{
    background-color: #ee5553;
    color: #F5F5F5;
}

.projects-modal{
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.projects-modal-content{
    background-color: #F5F5F5;
    margin: 5% auto;
    box-sizing: border-box;
    width: 700px;
    max-height: 714px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.scale{
    animation: scale 0.5s;
    animation-fill-mode: forwards;
}
  
@keyframes scale{
from{transform: scale(0);}
to{transform: scale(1);}
}

#img{
width: 100%;
height: 450px;
}

#projects-details{
padding: 25px;
text-align: left;
position: relative;
height: 264px;
box-sizing: border-box;
border-top: 1px solid #363638;
}

#projects-details *{
transition: all .3s;
}

#title{
padding-bottom: 15px;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#projects-details .projects-button{
    position: absolute;
    width: 30%;
    background-color: #ee5553;
    color: #F5F5F5;
    text-align: center;
    left: 25px;
    bottom: 35px;
    padding: 15px;
}

#projects-details i{
    position: absolute;
    bottom: 30px;
    right: 25px;
    font-size: 3rem;
    color: #ee5553;
}
#projects-details .projects-button:hover, i:hover{
    cursor: pointer;
    opacity: 0.8;
}

.projects-close{
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 10px;
}
.projects-close:hover, .projects-close:focus{
    color: #363638;
    text-decoration: none;
    cursor: pointer;
}