/*nav-links*/
.nav-links {
  display: flex;
  justify-content: space-between;
}
.nav-links > div{
  box-sizing: border-box;
  padding: 1em;
  margin: 1em;
  border: 1px solid antiquewhite;
  -webkit-box-shadow: 2px 2px 5px rgba(0,0,0, .5);
  -moz-box-shadow: 2px 2px 5px rgba(0,0,0, .5);
  box-shadow: 2px 2px 5px rgba(0,0,0, .5);
}

#article{
  width: 80%;
  margin: 15px auto;
  color: black;
  font-family: sans-serif;
}
#article h1{
  font-size: 2em;
  margin: 1em;
}
#adoption-wrapper{
  margin: 1.5em auto;
}
#adoption-wrapper > div{  
  box-sizing: border-box;
  float:left;
  width: 50%;
  font-family: sans-serif;
  font-size: 1em;
}
#adoption-wrapper::after{
  content: "";
  clear: both;
  display: table;
}
#adoption-media img{
  display: block;
  max-width:100%;
  overflow: hidden;
  height: auto;
}
#adoption-info{
  padding: 0 1.5em 0 1.5em ;
  font-size: 1.1em;
}
#adoption-info ul{
  padding:0px;
  margin: 1em 0px;
}
#adoption-info ul li{
  padding-bottom:.5em; 
}
#adoption_modal_btn{
    color: #fff;
    background:#FF0066;
    padding: .5rem 1rem;
    display: inline-block;
    border-radius: 4px;
    transition-duration: .25s;
    border: none;
    font-size: 14px;
}

/* Qetmag grid */
#projects-wrapper {
  background: transparent url("../img/projects_main_bg.jpg") repeat-y center top;
  /*! padding: 20px; */
  min-height: 100vh;
}

#projects-list {
  margin: auto;
  left: 7px;
  height:auto;
}

#projects-list:after {
  content: "";
  display: table;
  clear: both;
}

.grid-item {
  width: 25%;
  margin-bottom: 15px;
  position: relative;
  float:left;
  -webkit-box-shadow: 2px 2px 5px rgba(0,0,0, .5);
  -moz-box-shadow: 2px 2px 5px rgba(0,0,0, .5);
  box-shadow: 2px 2px 5px rgba(0,0,0, .5);
}

.grid-item h2{
  font-size: 1.3em;
  padding: 0px;
  margin: .5em 1em .5em 1em;
}
.grid-item p{
  font-size: 1em;
  padding: 0px;
  margin-right: 1em;
  margin-left: 1em;
  margin-top: 0em;
  margin-bottom: 1em;
}
.grid-item .btn-more, .btn-more{
  background: #27ae60;
  display: block;
  text-align: center;
  padding: .5em;
  color:white;
}
.grid-item span{
  font-size: 1em;
  padding-left: 0px;
  margin: 0px 1em .5em 1em;
  display: block;
  color: #aaa;
}
.grid-item img {
  width: 100%;
  height: auto;
  vertical-align: top;
}

.filters-list {
  border: 1px solid rgba(197, 32, 56, 0.5);
  background-color: rgba(255, 255, 255, .5);
  padding: 5px;
  display: inline-block;
  text-align: center;
  /*! margin: 1em; */
}

.filters-list li {
  font-family: sans-serif;
  display: inline-block;
  background-color: rgba(255, 255, 255, .75);
  padding: 10px;
  border: 1px solid #ddd;
  cursor: pointer;

  -webkit-transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  -ms-transition: all .3s ease-in-out;
  -o-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}

.filters-list li:hover,
.filters-list li.active {
  background-color: rgba(255, 255, 255, 1);
  border-color: #000;
}

#adoption-form-container > section{
  display: flex;
  width: 100%;
}

.form-steps-nav{
  display: flex;
  justify-content: space-between;
}

.form-steps-nav button{
  padding: .3em .8em; 
}
.form-steps-nav .trx_mscf_prev{
  background: #34495e;
  border:none;
}
.form-steps-nav .trx_mscf_next , .form-steps-nav .wpcf7-submit{
  background: #27ae60;
  border:none;
}

#adoption_modal_btn{
  background:#eb4d4b;
}
.form-group{
  width: 100%;
  margin: 10px auto;
}

.form-group input{
  display: inline-block;
  width: 95%;
  border:1px solid #2c3e50;
}

.form-group label{
  padding: 0px 10px;
  color:#2c3e50;
}
/* Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {
  .modal{
    max-width: 100%;
    width: 100%;
  }
    /*adoption form */
  #adoption-form-container > section{
    flex-wrap: wrap;
  }
  .form-group, .form-group input{
    width: 100%;
  }
  /* isotope item */
  .grid-item {
    width: 100%;
  }
  #article{
    margin: 0px;
    width: 100%;
  }
  #adoption-wrapper > div{
    width: 100%;
  }
  .nav-links {
    flex-wrap: wrap;
  }
  .nav-links > div{
    width: 100%;
  }  
}

/* Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) and (max-width: 767.98px) {
  /*adoption form */
  #adoption-form-container > section{
    flex-wrap: wrap;
  }
  .form-group, .form-group input{
    width: 100%;
  }
  
  /* isotope item */
  .grid-item {
    width: 100%;
  }
  #article{
    margin: 0px;
    width: 100%;
  }
  #adoption-wrapper > div{
    width: 100%;
  }
  .nav-links {
    flex-wrap: wrap;
  }
  .nav-links > div{
    width: 100%;
  }  
}

/* Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 991.98px) { 
    /*adoption form */
  #adoption-form-container > section{
    flex-wrap: wrap;
  }
  .form-group, .form-group input{
    width: 100%;
  }
    /* isotope item */
  .grid-item {
    width: 50%;
  }
  #adoption-wrapper > div{
    width: 100%;
  }
  

}

/* Large devices (desktops, 992px and up)*/
@media (min-width: 992px) and (max-width: 1199.98px) { 
    /* isotope item */
  .grid-item {
    width: 33.3%;
  }
 }

/* Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {  }