/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: #5a5a5a;
}


/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  margin-bottom: 4rem;
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  bottom: 3rem;
  z-index: 10;
}

/* Declare heights because of positioning of img element */
.carousel-item {
  height: 32rem;
  background-color: #777;
}
.carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 32rem;
}


/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}
.marketing h2 {
  font-weight: 400;
}
.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem;
}


/* Featurettes
------------------------- */

.featurette-divider {
  margin: 5rem 0; /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
.featurette-heading {
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.05rem;
}

#bg {
			position:fixed; 
			background-position: center;
			top:-50%; 
			left:-50%; 
			width:200%; 
			height:200%;
			z-index: -10;
		}
		#bg img {
			position:absolute;
			background-position: center;
			top:0; 
			left:0; 
			right:0; 
			bottom:0; 
			margin:auto; 
			min-width:50%;
			min-height:50%;
		}
		
		#page-wrap { position: relative; z-index: 2; width: 400px; margin: 50px auto; padding: 20px; background: white; -moz-box-shadow: 0 0 20px black; -webkit-box-shadow: 0 0 20px black; box-shadow: 0 0 20px black; }
		p { font: 15px/2 Georgia, Serif; margin: 0 0 30px 0; text-indent: 40px; }



/* RESPONSIVE CSS
-------------------------------------------------- */
/*iPhone 6, 7, & 8 Plus*/
@media only screen 
and (min-device-width : 414px) 
and (max-device-width : 736px) 
and (orientation : portrait) {
  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }

#bg {
      left:-178% !Important; 
    }
}

#RFSMenu a {
    padding-left: 20px;
}

#RFSMenu > li > table > tbody > tr > td > img, #RFSMenu > li > ul > li > table > tbody > tr > td > img {
    padding-left: 20px;
}

/* @media screen and (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
  }
} */

@media only screen 
and (min-device-width : 414px) 
and (max-device-width : 736px) 
and (orientation : landscape) {

#bg {
      left:-79% !Important; 
    }  
}

/*iPhone 6, 7, & 8*/
@media only screen 
and (min-device-width : 375px) 
and (max-device-width : 667px) 
and (orientation : portrait) {

 #bg { 
      left:-203%; 
    } 

#RFSMenu a {
    padding-left: 20px;
}

#RFSMenu > li > table > tbody > tr > td > img, #RFSMenu > li > ul > li > table > tbody > tr > td > img {
    padding-left: 20px;
}  
}

@media only screen 
and (min-device-width : 375px) 
and (max-device-width : 667px) 
and (orientation : landscape) { 

 #bg {
      left:-92% !Important; 
    }  
}

/*iPhone X*/
@media only screen 
and (min-device-width : 375px) 
and (max-device-width : 812px) 
and (-webkit-device-pixel-ratio : 3)
and (orientation : portrait) {

   #bg {
      left:-220%; 
    } 

 #RFSMenu a {
    padding-left: 20px;
}

#RFSMenu > li > table > tbody > tr > td > img, #RFSMenu > li > ul > li > table > tbody > tr > td > img {
    padding-left: 20px;
}
}

@media only screen 
and (min-device-width : 375px) 
and (max-device-width : 812px) 
and (-webkit-device-pixel-ratio : 3)
and (orientation : landscape) {

     #bg {
      left:-67%;     
    }
}

/*iPad*/
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait)
and (-webkit-min-device-pixel-ratio: 1)  { 

     #bg {
      left:-116%;    
}
 }