

body, html {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: auto;
    min-width:600px;
    max-width:2000px;
    
    

}

li {
    position: relative;
    bottom: 60px;
    left: 20px;
}

a:visited{
    color: white;
}

a:hover{
    color: white;
}

#logo {
   font-family: 'Josefin Sans', sans-serif;
    font-size: 300%;
    color: #88acb4;
    opacity: 0.85;
}

#logo:hover{
    opacity: 1;
    transition: 0.7s;
    
}
.header1 {
   font-family: 'Josefin Sans', sans-serif;
    padding-top: 4%;
    font-size: 400%;
    width: 50%;
    margin: auto;
    
}

#welcome {
    width: 65%;
    margin-left: %;
    margin-top: 15%;
     opacity: 1;
  position: absolute;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}

.homeimg {
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}

.text {
    width: 55%;
    margin: auto;
    text-align: center;
    padding: 4%;
    font-size: 130%;
    font-family: 'Quicksand', sans-serif;
}

.parallax-container {
  position: relative;
  overflow: hidden;
  height: 70%;
}

.parallax-container .parallax {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.parallax-container .parallax img {
  opacity: 1;
  position: absolute;
float: none;
    clear: both;
  left: 50%;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}


.parallax-container {
  position: relative;
  overflow: hidden;
  height: 70%;
}

.parallax-container .parallax {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;

}

.parallax-container .parallax img {
  opacity: 1;
  position: absolute;
float: none;
    clear: both;
  left: 50%;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}

.parallax-container2 {
  position: relative;
  overflow: hidden;
  height: 50%;
}

.parallax-container2 .parallax {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;

    
}

.parallax-container2 .parallax img {
  opacity: 1;
  position: absolute;
float: none;
    clear: both;
  left: 50%;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}
#ministry-p  {
    width: 100%;
    height: 400px;
    
}

.wrapper {
    margin-left: 20%;
    height: 100%;
}

#img-wrapper{
    width:20%;
    margin: 0% 3%;
    float: left;
    height: 100%;
    
}

#ministry {
    width: 100%;
    opacity:1;
    display:inline-block;
    transition: 0.5s ease;
    height: 100%;
}

#image-size {
    height: 100%;
    width: 100%;
    
}


.text_wrapper{
    opacity:0;
    transition: 0.5s ease;
    background-color: #9fc5ce;
    position: relative;
    top:30%;
    left:50%;
    bottom: 0;
    transform: translate(-50%, -50%);
    -ms-transform: translate (-50%, -50%);
    margin-top: -48%;
    width: 100%;
    height: 25vh;
}

#img-wrapper:hover .text_wrapper {
    opacity: 0.6;
}

#img-wrapper:hover #ministry{
    opacity:0.5;
}

h1 {
    text-align: center;
    width: 100%;
    font-family: 'Josefin Sans', sans-serif;
}

#title {
    font-size: 150%;
    padding-top: 6%;
}

#text {
    font-size: 100%;
    padding-bottom: 4%;
}
@media screen and (max-width:1700px) {
     #img-wrapper {
        width: 25%;
         margin-left: auto;
    }
    
    .text_wrapper {
        height: 22vh;
    }
    #welcome {
        width: 65%;
        margin-left: -10%;
        margin-top: 20%;
        opacity: 1;
        position: absolute;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

@media screen and (max-width:1500px) {
   

    #welcome {
        width: 70%;
        margin-left: %;
        margin-top: 15%;
        opacity: 1;
    position: absolute;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
    
    .text_wrapper {
        height: 25vh;
    }
 
}

@media screen and (max-width:1350px) {
     #img-wrapper {
        width: 33%;
         margin-left: auto
    }
    
    .text_wrapper {
        height: 22vh;
    }

    #welcome {
        width: 75%;
        margin-left: -15%;
        margin-top: 20%;
        opacity: 1;
        position: absolute;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}


@media screen and (max-width:1050px) {
     #img-wrapper {
        width: 50%;
         margin-left: 8%
    }
    
    .text_wrapper {
        height: 28vh;
    }

    #welcome {
        width: 80%;
        margin-left: -30%;
        margin-top: 25%;
        opacity: 1;
        position: absolute;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}
@media screen and (max-width:767px) {
     #welcome {
        width: 70%;
        margin-left: 45%;
        margin-top: 40%;
        opacity: 1;
    position: absolute;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
    
    .homeimg {
        width: 1050px;
        margin-left: 18%;
        overflow-x: hidden;
        overflow-y: hidden;
    }
}



@media screen and (max-width:700px) {
     #img-wrapper {
        width: 88%;
         margin-left: -15%;
    }
    
    .text_wrapper {
        height: 24vh;
    }

    #welcome {
        width: 70%;
        margin-left: 43%;
        margin-top: 45%;
        opacity: 1;
    position: absolute;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
    
    .homeimg {
        width: 1050px;
        margin-left: 25%;
        overflow-x: hidden;
        overflow-y: hidden;
    }
}

@media screen and (max-width:500px) {
     #img-wrapper {
        width: 88%;
         margin-left: -15%;
    }
    
    .text_wrapper {
        height: 24vh;
    }

    #welcome {
        width: 85%;
        margin-left: 50%;
        margin-top: 70%;
        opacity: 1;
        position: absolute;
        -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
        -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
}

    .homeimg {
        width: 1050px;
        margin-left: 55%;
        overflow-x: hidden;
        overflow-y: hidden;
    }
}
.grid.effect-2 li.animate {
	-webkit-transform: translateY(200px);
	transform: translateY(200px);
	-webkit-animation: moveUp 0.65s ease forwards;
	animation: moveUp 0.65s ease forwards;
}

@-webkit-keyframes moveUp {
	0% { }
	100% { -webkit-transform: translateY(0); opacity: 1; }
}

@keyframes moveUp {
	0% { }
	100% { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; }
}

.slideimg {
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 10%;
}


.nrow {
    margin-left: 20%;
}
.ncolumn {
    float: left;
    width: 36%;
    padding: 10px;
}

/* Clear floats after the columns */
.nrow:after {
    content: "";
    display: table;
    clear: both;
}

.notices {
    margin: 2% 10%;
    margin-bottom: 15%;
     font-family: 'Josefin Sans', sans-serif;
}

h2 {
      font-family: 'Josefin Sans', sans-serif;
    margin: 2% 20%;
    text-align: center
    
    
}

.dp {
    width:15%;
    margin-left: 25%;
    border-radius: 50%;
}

#dp2 {
    border-radius: 50%;
    width: 53%;
    height: 20%;
    margin-top: 10%;
    margin-bottom: 5%;
    

    

}

#img-wrapper2{
    width:20%;
    height:auto;
    float: left;
    display: inline-block;
    
}

#img-wrapper2 img {
    display: inline-block;
    margin: 0 auto;
    left: -1000px;
}

.wrapper2{
    margin-top: 8%;
    margin-left:20%;
    margin-bottom: 30%;
}

.contact {
    text-align: center;
    display: block;
    margin: 0 auto;
    margin-top: 10%;
    margin-bottom: 20%;
    margin-left: -40%;
    font-size: 120%;
    font-family: 'Quicksand', sans-serif;
    
}

.pastor {
    float: right;
    margin-right: 20%;
    font-size: 120%;
    width: 35%;
font-family: 'Quicksand', sans-serif;
    font-size: 100%
    

}


/* Sermon */

.sermon {
  
    background-color: #9fc5ce;
    position: relative;
    
}

.sermon:hover {
 outline:  4px solid #9fc5ce;
    color: rgba(0, 80, 110, .8);
      transition: 0.1s;
}

.sermonimg:hover {
    
    opacity: 0.8;
    transition: 0.1s;
    
}

.sermon {
    width: 20%;
    float: left;
    display: inline-block;
    margin-left: 10%;
    margin-top: %;
    margin-bottom: 6%;
    vertical-align: bottom;
   
   
}

.blanksermon {
    width: 20%;
    float: left;
    display: inline-block;
    margin-left: 10%;
    margin-top: 3%;
    margin-bottom: 6%;
    vertical-align: bottom;
   
   
}

.sermonimg {
  width: 100%;
  height: auto;
 display: inline-block;
    float: left;
    padding-bottom: 5%;
    
    
}

.desc {
  padding:5%;
  text-align: center;
  -webkit-user-select: none;  /* Chrome all / Safari all */
  -moz-user-select: none;     /* Firefox all */
  -ms-user-select: none;      /* IE 10+ */
  user-select: none; 
  font-family: 'Josefin Sans', sans-serif;
    font-size: 80%;
    
}

.blankdesc {
  padding:5%;
  text-align: center;
  -webkit-user-select: none;  /* Chrome all / Safari all */
  -moz-user-select: none;     /* Firefox all */
  -ms-user-select: none;      /* IE 10+ */
  user-select: none; 
  font-family: 'Josefin Sans', sans-serif;
    color: white;
}



* {
  box-sizing: border-box;
}

.sermongallery {
 float: left;
  width: 100%;
    display: inline-block;
   
}

@media only screen and (max-width: 700px) {
  .sermongallery {
    width: 49.99999%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .sermongallery {
    width: 100%;
  }
}

#churchkids {
    width: 50%;
    position: relative;
    clear: both;
    margin-left: auto;
}



.center {
  text-align: center;
}

.pagination {
  display: inline-block;
    padding:3%
}

.pagination a {
  color: #9fc5ce;
  float: left;
  padding: 8px 15px;
  text-decoration: none;
  transition: background-color .3s;
  border: 1px solid #9fc5ce;
  margin: 0 4px;
    font-family: 'Josefin Sans', sans-serif;
}

.pagination a.active {
  background-color: #9fc5ce;
  color: white;
  border: 1px solid #9fc5ce;
}

.pagination a:hover:not(.active) {background-color: rgba(0, 80, 110, .1);}





