/* style RHI AD */



.ocean-rhi-hbs{
  display: none;
}

.ocean-rhi-hss{
  display: block;
  background-color: #fff;
}

.pub-content{
  width: 100vw;
  max-width: 1170px;
  background-color: #eee;
  margin: 0 auto;
  padding: 5px 0;
}

.pub-oc-left-content{
  margin: 0;
}

.pub-oc-container{
  width: 800px;
  max-width: 800px;
  margin: 0 auto;
  height: 200px;
  overflow: hidden;
}

#PubOcSlideShow{
  display: flex;
  flex-flow: row nowrap;
  height: 100%;
}

.pub-oc-logo-container{
  background-color: #1A355D;
  color: white;
  flex: 0 0 50%;
  max-width: 50%;
  height: 0;
  position: relative;
  animation: topdown 1s ease-in-out forwards;

}



.pub-oc-left-content{
  position: absolute;
  display: block;
 
}

.oc-logo{
  width: 155px;
  display: block;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 18%;
  opacity: 0;
  animation: showlogo 0.8s 0.2s ease-in-out forwards;
}

.fish-left{
  font-size: 15px;
  top: 40%;
}

.oc-left-snapper{
 left: 4%;
 transform: translateX(-103px);
 animation: leftoright 0.8s 1s ease-in-out forwards;
}

.oc-left-lobster{
  left: 41%;
  opacity: 0;
  animation: showlobstext 0.8s 1.8s linear forwards;
}

.oc-left-conch{
  right: 5%;
  transform: translateX(86px);
  opacity: 0;
  animation: rightoleft 0.2s 2.6s ease-in-out forwards ;
}

.oc-left-p4{
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  font-size: 20px;
  top: 60%;
  opacity: 0;
  animation: topopa 0.8s 2.8s ease-in-out forwards;
  margin-top: 21px;
}

.oc-left-p5{
  bottom: -5%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  font-size: 22px;
  opacity: 0;
  animation: zoomp5 1s 3.6s ease-in-out forwards;
  margin-bottom: 8px;
  -webkit-text-fill-color: #fff;
  color: #fff;

}


.pub-slider-wrapper{
  flex: 0 0 50%;
  max-width: 50%;
  background-image: url('https://www.rhinews.com/wp-content/uploads/2021/01/under_sea_2.jpg');
  background-position: center;
  background-size: 100%;
  position: relative;
  opacity: 0;
  animation: showrapper 1s 4.6s ease-in-out forwards;
  margin-left: 5px;
  transform: translateX(-410px);
}

.pub-oc-slide{
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  background-size: cover;
  transition: transform 2s ease-in-out;
  transform: scale(1);
}


.oc-img-bs-snapper{
  background-image: url('https://www.rhinews.com/wp-content/uploads/2021/01/new_snapper.jpg');
 z-index: 10;
 background-position-y: 42%;
}

.oc-img-bs-conch{
  background-image: url('https://www.rhinews.com/wp-content/uploads/2021/01/new_conch.jpg');
  z-index: 9;
}

.oc-img-bs-lobster{
  background-image: url('https://www.rhinews.com/wp-content/uploads/2021/01/new_losbter.jpg');
  z-index: 8;
  background-position-y: 52%;
}


/* Animation keyframes */

@keyframes topdown{
  from{
    height: 0;
  }

  to{
    height: 100%;
  }

}


@keyframes showlogo{
  from{
    opacity: 0;
  }

  to{
    opacity: 1;
  }
}

@keyframes leftoright {
  from{
    transform: translateX(-103px);
  }

  to{
    transform: translateX(0);
  }
}

@keyframes showlobstext{
  from{
    opacity: 0;  
  }

  to{
    opacity: 1;
  }
}

@keyframes rightoleft{
  from{
    transform: translateX(86px);
    opacity: 0;
  }

  to{
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes topopa{
  from{
    top: 60%;
    opacity: 0;
  }

  to{
    top: 55%;
    opacity: 1;
  }
}

@keyframes zoomp5{
  from{
    bottom: -5%;
    opacity: 0;
  }

  to{
    bottom: -9%;
    opacity: 1;
  }
}

@keyframes showrapper{
  from{
    opacity: 0;
    transform: translateX(-410px);
  }

  to{
    
    transform: translateX(0);
    opacity: 1;
  }
}




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

  .pub-oc-container {
    width: 95%;
    max-width: 95%;
    height: 150px;
  }

  #PubOcSlideShow{
    justify-content: center;
  }

  .pub-oc-logo-container{
    overflow-x:hidden;
  }

  .oc-logo{
    width: 120px;
    top: 23%;
  }

  .pub-oc-logo-container,
  .pub-slider-wrapper{
    flex: 0 0 40%;
    max-width: 40%;
  }

  .pub-slider-wrapper{
    margin-left: 20px;
  }

  .fish-left{
    font-size: 12px;
    top: 44%;
  }

  .oc-left-p4{
    font-size: 16px;
    margin-top: 20px;
  }

  .oc-left-p5{
    font-size: 16px;
    margin-bottom: 5px;
  }

}



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

    .ocean-rhi-hss{
      display: none;    
    }

    .ocean-rhi-hbs{
      display: block;
    }

    .oc-left-p4,
    .oc-left-p5{
      text-align: center;
    }


}



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

  .oc-left-p4 {
    font-size: 14px;
  }

  .oc-left-p5 {
    font-size: 14px;
    margin-bottom: 10px;
  }

}

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


  .pub-oc-container{
    width: 100%;
    max-width: 100%;
    height: 300px;
    max-height: 300px;
  }

 #PubOcSlideShow{
  flex-flow: column nowrap;
 }

 .pub-oc-logo-container, .pub-slider-wrapper{
    flex: 0 0 100%;
    max-width: 100%;
 }

 .pub-oc-logo-container{
    transform: translateY(-100%);
    animation: none;
    animation:stopdown 1s ease-in-out forwards;
 }



 .oc-logo{
    top: 61%;
 }

 .fish-left{
  top: 72%;
 }

 .oc-left-p4 {
    margin-top: 90px;
}

.oc-left-p5{
  margin-bottom: 22px;
}

 .pub-slider-wrapper{
  margin-left: 0;
  margin-top: 3px;
 }

 .pub-oc-slide{
  background-size: contain;
 }

 .oc-img-bs-snapper {
    background-position-y: -40px;
  }

  .oc-img-bs-lobster {
    background-position-y: -31px;
  }


  @keyframes stopdown{
      
    from{
      transform: translateY(-100%);
    }

        to{
        transform: translateY(0);
        }
    }



}

















/* Google Ad */

.google-ad-container{
  background-color: #d8d8d8;
  margin: 0 auto;
  padding: 10px;
  text-align: center;
  width:1170px; 
  max-width:1170px;
  height: auto;
}

/* End google Ad*/



/*
=============== RESPONSIVE ===================
*/

/*

@media only screen and (min-width: 768px) and (max-width: 1024px){
  .ocean-rhi-hss{
    justify-content: center;
  }

  .ocean-logo h2{
    font-size: 19px;
    margin-top: 1rem;
  }

  .slideshow-ocean{
    border: 1px solid red;
    
  }

    .slide-ocean:nth-child(1),
    .slide-ocean:nth-child(2),
    .slide-ocean:nth-child(3) {
        background-size: 100%;
      } 

    .slide-ocean:nth-child(1) h1,
    .slide-ocean:nth-child(2) h1,
    .slide-ocean:nth-child(3) h1{
      bottom: -20%;
    }

    .slide-ocean:nth-child(1) h1{
        right: 7em;
      }


    .slide-ocean:nth-child(2) h1m
    .slide-ocean:nth-child(3) h1 {
      right: 10em;
    } 
}

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

  .google-ad-container{
      width: 100vh;
      max-width: 100%;
      margin-bottom: 20px;
      max-height: 470px;
    }

  }


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

  .ocean-rhi-hbs,
  .ocean-rhi-hss{
    display: none;
  }

  .ocean-rhi-hbs{
    display: flex;
    flex-direction: column;
    height: 300px;
  }

.top-header{
  margin-top: 2px;
}

.ocean-ad-hide-big-screen{
  display: block;
}
.ocean-ad-hide-small-screen{
  display: none;
}

.ocean-logo img{
  height: 92px;
  margin: 0 auto;
  display: block;
}

.ocean-logo{
  padding-bottom: 1.2rem;
}

.ocean-logo h2{
  font-size: 0.9rem;
}

.ocean-logo h2,
.ocean-logo h3{
  text-align: center;
}

  .ocean-logo h3{
    font-size: 1rem;
    margin-top:-0.5rem;
  }

  #slideshow{
    margin-top:-1.6rem;
  }

  .slide-ocean{
    height: 170px;
    background-position: left !important;
  }



   .slide-ocean:nth-child(1) h1 {
    right:38%;
    bottom:-17%;
    font-size: .985rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
    text-align: left;
  }


 .slide-ocean:nth-child(2) h1 {
    bottom: 16%;
    right: 24em;
    width: 11em;
    font-size: 13px;
    text-align: center;
 } 

  .slide-ocean:nth-child(3) h1 {
    bottom: 16%;
    right: 24em;
    width: 11em;
    font-size: 13px;
    text-align: center;
 } 

  .slide-wrapper:hover{
    animation-play-state: paused;
  }


}

*/