@import url('https://fonts.googleapis.com/css?family=Roboto');
:root {

    /**
     * colors
     */
  
    --sefety-orange_10: hsla(24, 100%, 50%, 0.1);
    --sefety-orange:#a3732d ;

}

.sectionclass{
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  background-color: #FFFFFF;
  margin-top: 100px;
 
}



.containerclass {
  margin-top: 0px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 90%;
}

.item {
  position: relative;
  display: inline-block;
  overflow: hidden;
  margin: 10px 1%;
  min-width: 320px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.item:hover{
  cursor: pointer;
}

.item *{
  transition: all 0.35s ease-in-out;
}

.classimg {
    max-width: 100%;
    vertical-align: top;
    height: 310px;
    margin: auto;
    display: block;
   
    
  }
  
  .item:hover img {
    opacity: 0;
  }

.text{
  width: 80%;
  height: 90%;
  position: absolute;
  top: -100px;
  left: 10%;
  color:var(--sefety-orange);
}

.text h3{
  color: black;
}

.item:hover .text{
  top: 20%;
}

.item:hover .button{
  bottom: 20%;
}

.item .button{
  position: absolute;
  bottom: -100px;
  left: 25%;
  width: 50%;
  border: 3px solid var(--sefety-orange);;
  padding: 15px;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
}

.button:hover{
  background-color: var(--sefety-orange);;
  color: #F5F5F5;
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #F5F5F5;
  margin: 5% auto;
  box-sizing: border-box;
  width: 80%;
  max-height: 1500px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);

  position: relative;
}

.scale{
  animation: scale 0.5s;
  animation-fill-mode: forwards;
}

@keyframes scale{
  from{transform: scale(0);}
  to{transform: scale(1);}
}

#img{
  max-width: 90%;
  max-height: 1000px;
  align-items: center;
  text-align: center;
 
  margin: auto;
  display: block;

  
}

#details{
  padding: 25px;
  text-align: left;
  position: relative;
  height: 264px;
  box-sizing: border-box;
  border-top: 1px solid #363638;
}

#details *{
  transition: all .3s;
}

#title{
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#details .button{
  position: absolute;
  width: 30%;
  background-color: #01A2AC;
  color: #F5F5F5;
  text-align: center;
  left: 25px;
  bottom: 35px;
  padding: 15px;
}

#details i{
  position: absolute;
  bottom: 30px;
  right: 25px;
  font-size: 3rem;
  color: #01A2AC;
}

#details .button:hover,
i:hover{
  cursor: pointer;
  opacity: 0.8;
}

/* Close Button */
.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 10px;
}

.close:hover,
.close:focus {
  color: #363638;
  text-decoration: none;
  cursor: pointer;
}