/*

OPW - Flood Risk Management
Styles for Home page
By HumanIXD - http://wearehuman.ie/

*/

/* Home main */
#home-main {
padding-top: 10px;
padding-bottom: 100px;
color: #ffffff;
}
#home-main #gallery {
position: absolute;
/*top: 0;*/
bottom: 0; /*edit*/
left: 0;
width: 100%;
height: 62.5%; /* 62.5% = 25% non-gradient plus half of gradient (75% * 0.5) */
z-index: -1;
}
#home-main #gallery img {
display: none;
}
#home-main #gallery .slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
overflow: hidden;
opacity: 0;
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-ms-transition: all 1s ease;
transition: all 1s ease;
}
#home-main #gallery .slide.active {
opacity: 1;
}
#home-main:before {
content: "";
position: absolute;
/*bottom: 0;*/
top:0; /*edit*/
left: 0;
width: 100%;
height: 75%;
background: -moz-linear-gradient(top, rgba(0,113,138,1) 0%, rgba(0,113,138,1) 50%, rgba(255,255,255,0) 100%);
background: -webkit-linear-gradient(top, rgba(0,113,138,1) 0%,rgba(0,113,138,1) 50%,rgba(255,255,255,0) 100%);
background: linear-gradient(to bottom, rgba(0,113,138,1) 0%,rgba(0,113,138,1) 50%,rgba(255,255,255,0) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00718a', endColorstr='#00ffffff',GradientType=0 );
/*background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(0,113,138,1) 50%, rgba(0,113,138,1) 100%);
background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(0,113,138,1) 50%,rgba(0,113,138,1) 100%);
background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(0,113,138,1) 50%,rgba(0,113,138,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#00718a',GradientType=0 );*/
}

.opw-logo {
width: 310px;
}

/* Home banner */
#home-banner {
color: #ffffff;
margin-bottom: 50px;
}
#home-banner-top h2 {
margin-bottom: 0px;
}
#home-banner-top h1 {
margin-bottom: 0px;
margin-top: 55px;
}
.main-card svg {
    position: absolute;
    bottom: -50%;
    left: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    fill: rgba(0,0,0,0.03);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.main-card:hover svg{
    bottom: 0;
}
.main-card {
    webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    transition: all 0.2s ease;
    position: relative;
    vertical-align: top;
    display: inline-block;
    /* margin-left: 15px; */
    text-align: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 20px 10px;
    overflow: hidden;
    -webkit-transition: none;
    -moz-transition: none;
    -ms-transition: none;
    transition: none;
}
.main-card:hover {
    box-shadow: 0px 5px 20px rgba(0,0,0,0.5);    
}

.main-card img {
    display: block;
    margin: 0 auto;
    margin-bottom: 15px;
    height: 110px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.main-card:hover img{
    -moz-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}
.main-card h3 {
    font-size: 34px;
    line-height: 1.1;
    color: #165d4a;
}
a:hover .main-card h3 {
    text-decoration: none;
}

.main-card .card-text {
    display: block;
    margin: 0 auto;
    width: 80%;
    color: #11505f;
    font-size: 24px;
    font-style: none;
    line-height: 1.3;
    margin-bottom: 6px;
}

.main-card a:hover {
    text-decoration: none;
}

a.card-info {
    text-decoration: underline;
}
a.card-info:hover {
    text-decoration: underline;
}

/* Home about */
#home-about {

}
#home-about > div .card {
position: relative;
width: 100%;
padding-bottom: 65px; /* bottom button */
background: #ffffff;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
overflow: hidden;
}
#home-about > div .card .top-image {
width: 100%;
height: 150px;
}
#home-about > div .card .inner {
color: #010101;
padding: 20px 30px;
}
#home-about > div .card .inner h2 {
font-size: 28px;
margin-bottom: 20px;
}
#home-about > div .card .inner p:last-of-type {
margin-bottom: 0px;
}
#home-about > div .card a.btn-primary {
position: absolute;
display: inline-block;
bottom: 0;
left: 0;
width: 100%;
}





@media screen and (max-width: 1500px) {

} /* end max-width 1500px */







@media screen and (max-width: 1199px) {

  /* Home main */
  #home-main {
  padding-top: 40px;
  padding-bottom: 100px;
  color: #ffffff;
  }
  #home-main:before {
  content: "";
  position: absolute;
  /*bottom: 0;*/
  top:0; /*edit*/
  left: 0;
  width: 100%;
  height: 75%;
  background: -moz-linear-gradient(top, rgba(0,113,138,1) 0%, rgba(0,113,138,1) 50%, rgba(255,255,255,0) 100%);
  background: -webkit-linear-gradient(top, rgba(0,113,138,1) 0%,rgba(0,113,138,1) 50%,rgba(255,255,255,0) 100%);
  background: linear-gradient(to bottom, rgba(0,113,138,1) 0%,rgba(0,113,138,1) 50%,rgba(255,255,255,0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00718a', endColorstr='#00ffffff',GradientType=0 );
  /*background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(0,113,138,1) 50%, rgba(0,113,138,1) 100%);
  background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(0,113,138,1) 50%,rgba(0,113,138,1) 100%);
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(0,113,138,1) 50%,rgba(0,113,138,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#00718a',GradientType=0 );*/
  }

  /* Home banner */
  #home-banner {
  color: #ffffff;
  margin-bottom: 50px;
  }

  /* Home about */
  #home-about > div .card .inner {
  color: #010101;
  padding: 25px;
  }

} /* end max-width 1199px */






@media screen and (max-width: 991px) {
  .opw-logo {
  width: 310px;
  }

  /* Home main */
  #home-main {
  padding-top: 30px;
  padding-bottom: 70px;
  color: #ffffff;
  }
  #home-main #gallery {
  position: absolute;
  /*top: 0;*/
  bottom: 0; /*edit*/
  left: 0;
  width: 100%;
  /* height: 36%; */ /* 36% = 20% non-gradient plus half of gradient (80% * 0.2) */
  height: 80%;
  z-index: -1;
  }
  #home-main:before {
  content: "";
  position: absolute;
  /*bottom: 0;*/
  top:0; /*edit*/
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: -moz-linear-gradient(top, rgba(0,113,138,1) 0%, rgba(0,113,138,1) 30%, rgba(255,255,255,0) 100%);
  background: -webkit-linear-gradient(top, rgba(0,113,138,1) 0%,rgba(0,113,138,1) 30%,rgba(255,255,255,0) 100%);
  background: linear-gradient(to bottom, rgba(0,113,138,1) 0%,rgba(0,113,138,1) 30%,rgba(255,255,255,0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00718a', endColorstr='#00ffffff',GradientType=0 );
  /*background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(0,113,138,1) 20%, rgba(0,113,138,1) 100%);
  background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(0,113,138,1) 20%,rgba(0,113,138,1) 100%);
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(0,113,138,1) 20%,rgba(0,113,138,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#00718a',GradientType=0 );*/
  }

  /* Home banner */
  #home-banner {
  color: #ffffff;
  margin-bottom: 0px;
  }

  #home-banner-top h1 {
  margin-top: 0px;
  }

  #home-banner > div:nth-child(1){
    padding-bottom: 15px;
  }
  #home-banner > div:nth-child(2){
    padding-bottom: 15px;
  }
  #home-about > div .card {
  position: relative;
  width: 100%;
  padding-bottom: 65px; /* bottom button */
  background: #ffffff;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
  }
  #home-about > div .card .top-image {
  width: 100%;
  height: 200px;
  }
  #home-about > div .card .inner h2 {
  font-size: 24px;
  margin-bottom: 20px;
  }
  #home-about > div .card a.btn-primary {
  position: absolute;
  display: inline-block;
  bottom: 0;
  left: 0;
  width: 100%;
  }

} /* end max-width 991px */






@media screen and (max-width: 768px) {

  /* Home main */
  #home-main {
  padding-top: 30px;
  padding-bottom: 70px;
  color: #ffffff;
  }
  #home-main:before {
  content: "";
  position: absolute;
  /*bottom: 0;*/
  top:0; /*edit*/
  left: 0;
  width: 100%;
  height: 80%;
  background: -moz-linear-gradient(top, rgba(0,113,138,1) 0%, rgba(0,113,138,1) 40%, rgba(255,255,255,0) 100%);
  background: -webkit-linear-gradient(top, rgba(0,113,138,1) 0%,rgba(0,113,138,1) 40%,rgba(255,255,255,0) 100%);
  background: linear-gradient(to bottom, rgba(0,113,138,1) 0%,rgba(0,113,138,1) 40%,rgba(255,255,255,0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00718a', endColorstr='#00ffffff',GradientType=0 );
  /*background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(0,113,138,1) 20%, rgba(0,113,138,1) 100%);
  background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(0,113,138,1) 20%,rgba(0,113,138,1) 100%);
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(0,113,138,1) 20%,rgba(0,113,138,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#00718a',GradientType=0 );*/
  }

  /* Home banner */
  #home-banner {
  color: #ffffff;
  margin-bottom: 3px;
  }
  #home-banner > div:nth-child(3){
    padding-bottom: 15px;
  }
  #home-about > div .card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding-bottom: 65px; /* bottom button */
  background: #ffffff;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
  margin-bottom: 40px;
  }
  #home-about > div .card .top-image {
  width: 100%;
  height: 200px;
  }

} /* end max-width 768px */






@media screen and (max-width: 450px) {
  .opw-logo {
  width 260px;
  }

  /* Home main */
  #home-main {
  padding-top: 30px;
  padding-bottom: 70px;
  color: #ffffff;
  }
  #home-main #gallery {
  position: absolute;
  /*top: 0;*/
  bottom: 0; /*edit*/
  left: 0;
  width: 100%;
  height: 80%;
  /*height: 26%; *//* 36% = 15% non-gradient plus half of gradient (80% * 0.1) */
  z-index: -1;
  }
  #home-main:before {
  content: "";
  position: absolute;
  /*bottom: 0;*/
  top:0; /*edit*/
  bottom: 0;
  left: 0;
  width: 100%;
  height: 85%;
  background: -moz-linear-gradient(top, rgba(0,113,138,1) 0%, rgba(0,113,138,1) 25%, rgba(255,255,255,0) 100%);
  background: -webkit-linear-gradient(top, rgba(0,113,138,1) 0%,rgba(0,113,138,1) 25%,rgba(255,255,255,0) 100%);
  background: linear-gradient(to bottom, rgba(0,113,138,1) 0%,rgba(0,113,138,1) 25%,rgba(255,255,255,0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00718a', endColorstr='#00ffffff',GradientType=0 );
  /*background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(0,113,138,1) 10%, rgba(0,113,138,1) 100%);
  background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(0,113,138,1) 10%,rgba(0,113,138,1) 100%);
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(0,113,138,1) 10%,rgba(0,113,138,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#00718a',GradientType=0 );*/
  }

  /* Home banner */
  #home-banner {
  color: #ffffff;
  margin-bottom: 3px;
  }
  #home-about > div .card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding-bottom: 65px; /* bottom button */
  background: #ffffff;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
  margin-bottom: 40px;
  }
  #home-about > div .card .top-image {
  width: 100%;
  height: 200px;
  }

} /* end max-width 450px */

/* Edits by Rob McGivern */      
.image-cover {            
  background-attachment: inherit;        
}

/* Box that links to key messages page */
.info-box {
 background-color: #ffffff;
 color: #004d5e;
 text-align: left;
 border-radius: 0;
 padding: 0px 0px;
 margin-bottom: 1rem;
}
    
.info-box .btn {        
 display: inline-block;
 bottom: 0;
 left: 0;
 width: 100%;
}
.info-box p {
 font-size: 23px;
 font-weight: 600;
 line-height: 1.3;
 margin-top: 0;
 margin-bottom: 10px;
 color: #006c85;
 padding: 10px 10px;
}
