/*IPHONE PORTRAIT VERSION*/
@media (min-width: 320px) and  (max-width: 568px){
    
    header {
        min-height: 240px;
    }
    .slider-content p {
        font-size: 20px;
    }
    .flex-direction-nav a {
        top: 22%;
    }
    a.button-slider {
        padding: 10px;
        margin: 10px 0;
        font-size: 16px;
        display: block;
    }
    .flexslider-inspiration .flex-prev {
        -webkit-background-size: 50%;
        background-size: 50%;
        left: 0;
        top: 38%;
		height: 190px;
    }
    
    
    
    
    
    
    
    .flexslider-inspiration .flex-next {
        -webkit-background-size: 50%;
		background-position: center right;
        background-size: 50%;
        top: 38%;
        right: -30px;
		height: 190px;
    }
	.flexslider-inspiration .flex-next:hover {
		-webkit-background-size: 50%!important;
        background-size: 50%!important;		
		background-position: center right;		
	}
	.flexslider-inspiration .flex-prev:hover {
		-webkit-background-size: 50%!important;
        background-size: 50%!important;		
	}
/*    .col-xs-12s {
        width: 90%;
    }*/
	#frame {
		height: auto;
	}
	.ytv-video {
		position: relative;
		height: 300px;
	}		
	.ytv-video iframe {
		height: 300px;
	}
    .ytv-list {
        position: relative;
		width: 100%;
		height: 300px;
    }
    .aboutfounder img {
        display: table;
        margin: 0 auto;
    }
    .pin .panel-title > a {
        width: 95%;
    }
    .letterbg {
        background: none;
        height: auto;
        padding-top: 20px;
    }
    .letters .tab-content p {
        padding: 0;
    }
    .letters .nav > li > a {
        min-width: 100%;
        text-align: center;
        -webkit-background-size: 85%;
        background-size: 85%;
        padding-top: 0;
        background: none;
        margin: 0;
    }
    .letters .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
        background: none;
    }
    .nav-tabs > li {
        float: none;
    }
}
@media (min-width: 10px) and  (max-width: 767px) {
    .navbar-default {
        height: auto;
    }
    .logo img {
        padding: 0;
    }
    .navbar-nav {
        margin: 0;
    }
    .navbar-default .navbar-collapse, .navbar-default .navbar-form {
        border: none;
    }
    .navbar-collapse {
        max-height: 450px;
    }
    .navbar-default .navbar-nav .open .dropdown-menu > li > a {
        color: #fff;
    }
    .navbar-default .navbar-toggle {
        border-color: #caa03b;
    }
    .navbar-default .navbar-toggle .icon-bar {
        background: #caa03b;
    }
    .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
        background: #caa03b;
    }
    .navbar-default .navbar-toggle:hover .icon-bar, .navbar-default .navbar-toggle:focus .icon-bar {
        background: #fff;
    }
    .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
        background: #caa03b;
        color: #fff;
    }
    .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
        text-decoration: underline;
        color: #caa03b;
    }
    .navbar-default .navbar-collapse, .navbar-default .navbar-form {
        background: #2888c9;
    }
    .menunavbefore, 
    .menunavafter {
        display: none;
    }
    .menucontainer {
        width: 100%;
    }
    .menunav {
        margin: 0;
        background: none;
        width: 100%;
        height: auto;
    }
    .navbar-default .navbar-nav > li > a {
        color: #caa03b;
    }
    li#menu-item-54 a {
        width: 100%;
    }
    footer p,
    .footer2 p{
        text-align: center;
    }
    .sub-footer img {
        display: table;
        margin: 0 auto;
    }
    header,
    .home header {
        background: url(../images/slide.jpg) top center;
        -webkit-background-size: cover;
        background-size: cover;
        margin-bottom: 0;
    }
    .img-responsive {
        padding-bottom: 10px;
    }
	.ribbon {
		height: auto;
		background: none;
		margin-top: 20px;
	}
	.navbar-nav > li > a {
		line-height: 20px;
	}
	a.button-header {
		width: auto !important;
	}
    .home-slider {
		display: none;
        margin-top: 0;
        background: #fff;
        border-top: 8px solid #1e82c5;
    }
    .slider-content {
        position: relative;
    }
    .slider-content p {
        width: 100%;
        color: #000;
        padding: 0 10px;
    }
    .slider-button {
        margin: 0;
        width: 100%;
    }
    .flexslider .flex-next,
    .flexslider .flex-prev {
        opacity: 1;
    }
    .flex-control-nav {
        display: none;
    }
    a.button {
        display: block !important;
        width: 100%;
        text-align: center;
    }
    .pins,
    .survivor,
    .feed {
        height: auto;
        padding-bottom: 20px;
    }
    .pins img,
    .survivor img {
        padding: 0;
        margin: 0 auto;
        display: table;
    }
    .survivor {
        background: url(../images/survivor2.png);
        margin: 0;
    }
/*    .fact {
        width: 50%;
    }*/
/*    .dot, .arrow {
        display: none!important;
    }*/
    .fact:nth-child(odd) {
        margin: 0;
    }
    .inspiration-slide {
        background: none;
    }
    .timeline {
        padding-bottom: 20px;
    }
    a.keynote {
        margin: 0;
    }
    .join {
        background: url(../images/join.jpg) no-repeat center center;
        background-size: cover;
        height: auto;
        padding-bottom: 80px;
    }
    .pagee p {
        text-align: left;
    }
    .zach a {
        margin: 10px;
    }
	.servicess {
		height: auto;
		/*margin-top: -100px;*/
	}
    .ben .fact {
        width: 100%;
		margin-left: 20px;
    }
    .servicess .inspiration-slide {
        background: none;
    }
    .ben p {
        font-size: 13px;
        padding: 0;
    }
	.ben .fact:nth-child(even) p {
		min-height: 100%;
	}
    .ben .fact:nth-child(odd) {
        margin-top: 145px;
    }
    .ben .fact:nth-child(even) {
        margin-top: 10px;
    }
    .writing {
        margin-bottom: 20px;
    }
    .section-centered {
        width: 100%;
    }
    .affliat {
        min-height: 100%;
    }
    a.affliats {
        position: relative;
        left: 0;
        bottom: 0;
    }
    .affliat p.link {
        text-align: center;
    }
    .section-centered-gallery,
    #gallery-2 .gallery-item {
        width: 100%!important;
    }
    div#fancy_title table td {
        display: none;
    }
    .article img,
    .book img {
        display: table;
        margin: 0 auto;
    }
    .book h3, .book h2 {
        float: none;
        text-align: center;
    }
    .affliat p {
        margin-bottom: 10px;
    }
    .logo img {
        margin: 0 auto;
        display: table;
    }
	.fb-like {
		position: relative!important;
		top: 0;
		right: 0;
	}
    .join img.chai-butterfly {
        display: none;
    }
}
/*IPHONE LANDSCAPE VERSION*/
@media (min-width: 569px) and  (max-width: 767px){
    
    .flex-direction-nav a {
        top: 28%;
    }
    .welcome img {
        display: table;
        margin: 0 auto;
    }
/*    .fact {
        width: 50%;
    }*/
    .col-xs-12s {
        width: 95%;
    }
    .flexslider-inspiration .flex-prev {
        -webkit-background-size: 50%;
        background-size: 50%;
        left: 0;
        top: 38%;
		height: 190px;
    }
    .flexslider-inspiration .flex-next {
        -webkit-background-size: 50%;
		background-position: center right;
        background-size: 50%;
        top: 38%;
        right: -30px;
		height: 190px;
    }
	.flexslider-inspiration .flex-next:hover {
		-webkit-background-size: 50%!important;
        background-size: 50%!important;		
		background-position: center right;		
	}
	.flexslider-inspiration .flex-prev:hover {
		-webkit-background-size: 50%!important;
        background-size: 50%!important;		
	}
    .ytv-video {
        width: 70%;
    }
    .ytv-list {
        width: 30%;
    }
        .letterbg {
        background: none;
        height: auto;
        padding-top: 20px;
    }
    .letters .tab-content p {
        padding: 0;
    }
    .letters .nav > li > a {
        min-width: 100%;
        text-align: center;
        -webkit-background-size: 85%;
        background-size: 85%;
        padding-top: 0;
        background: none;
        margin: 0;
    }
    .letters .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
        background: none;
    }
    .nav-tabs > li {
        float: none;
    }
    .letters {
        min-height: 100%;
        padding-bottom: 20px;
    }
	.fb-like {
		position: relative!important;
		top: 0;
		right: 0;
	}
}


@media (min-width: 1000px) and  (max-width: 1200px) {
/*    .flexslider-inspiration {
        padding: 0 56px;
    }*/
    
}

@media (max-width: 767px) {
    .flexslider-inspiration .owl-item:nth-child(odd) {
        margin-top: 0;
    }
    
    .ben {
        padding-top: 20px;
    }
    
    .col-xs-12s .flex-prev,
    .col-xs-12s .flex-next {
        height: auto;
top: 25px;
bottom: 0;
background-position: 50% 50% !important;
    }
    
    .page-template-templatesabout-founder-php .flexslider-inspiration  .dot {
        display: none !important;
    }
    
    .page-template-templatesabout-founder-php .owl-wrapper {
        background-image: none;
    }
    
    .page-template-templatesabout-founder-php .flexslider-inspiration .owl-item:nth-child(even) p {
        min-height: 0;
    }
    
    .page-template-templatesabout-founder-php .flexslider-inspiration .owl-item:nth-child(even) {
        margin-top: 0;
    }
}


@media (min-width: 768px) and  (max-width: 991px) {
    .page-template-templatesabout-founder-php .flexslider-inspiration .owl-item:nth-child(odd) .dot {
    top: -62px;
}


.page-template-templatesabout-founder-php .flexslider-inspiration .owl-item:nth-child(even) {
margin-top: 36px;
}
    
}




/*IPAD PORTRAIT VERSION*/
@media (min-width: 768px) and  (max-width: 1199px) {
    .menunavbefore, 
    .menunavafter {
        display: none;
    }
    
    
    
    
    
    
    .menucontainer {
        width: 100%;
    }
    .menunav {
        margin: 0;
        background: none;
        width: 100%;
        height: auto;
    }
    .navbar-default .navbar-nav > li > a {
        font-size: 11px;
    }
    .nav > li > a {
        padding: 5px;
    }
    li#menu-item-54 a {
        width: 120px;
        background: url(../images/iso.png) center center no-repeat;
    }
    header,
    .home header {
        background: url(../images/slide.jpg) top center;
        -webkit-background-size: cover;
        background-size: cover;
        margin-bottom: 0;
     }
     a.bookb {
         width: 100%;
         text-align: center;
     }
     #gallery-2 .gallery-caption {
         max-height: 80px;
     }
     .donate .nav-tabs > li {
         padding-left: 10px;
     }        
     .letterbg {
        background: none;
        height: auto;
        padding-top: 20px;
    }
    .letters .tab-content p {
        padding: 0;
    }
    .letters .nav > li > a {
        min-width: 100%;
        text-align: center;
        -webkit-background-size: 85%;
        background-size: 85%;
        padding-top: 0;
        background: none;
        margin: 0;
    }
    .letters .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
        background: none;
    }
    .nav-tabs > li {
        float: none;
    }
    .letters {
        min-height: 100%;
        padding-bottom: 20px;
    }
    .ben p {
        font-size: 14px;
    }
    .col-sm-12s {
        /*width: 94%;*/
        padding: 0;
    }
    .container-s {
        width: 100%;
    }
    .ben .dot {
        /*        left: 60px;*/
        display: none;
    }
    .flexslider-inspiration .flex-prev, .flexslider-inspiration .flex-next {
        height: 55px;
        width: 55px;
        background-position: center center;
        top: 190px;
        opacity: .5;
    }
    .flexslider-inspiration .flex-prev:hover, .flexslider-inspiration .flex-next:hover {
        opacity: 1;
    }
    .flexslider-inspiration .flex-prev {
        left: 0;
    }
    .servicess .inspiration-slide {
        background: none;
    }
    .slider-content {
        top: 50%;
    }
    .slider-content p {
        font-size: 20px;
        width: 80%;
    }
    a.button-slider {
        padding: 5px;
    }
    .flex-control-nav {
        display: none;
    }
    .flex-direction-nav .flex-prev, .flex-direction-nav .flex-next {
        opacity: 1;
    }
    .pins {
        height: auto;
        padding-bottom: 40px;
    }
    .survivor {
        background: url(../images/survivor2.png);
        height: auto;
        padding-bottom: 40px;
    }
    .feed {
        height: auto;
        padding-bottom: 40px;
    }
    .fact:nth-child(even) .dot, .fact:nth-child(odd) .dot {
        display: none;
    }
    .timeline {
        padding-bottom: 60px;
    }
    .flexslider-inspiration .flex-prev, .flexslider-inspiration .flex-next {
        top: 50%;
    }
	
    .join {
        background: url(../images/join.jpg) no-repeat center center;
        background-size: cover;
        height: auto;
        padding-bottom: 80px;
    }
	.fb-like {
		position: relative!important;
		top: 0;
		right: 0;
	}
	.home-slider {
		margin-top: -47px;
	}
}



@media (min-width: 992px) and  (max-width: 1199px) {
    
    .page-template-templatesabout-founder-php .flexslider-inspiration .owl-item:nth-child(odd) .dot {
    top: -46px;
}


.page-template-templatesabout-founder-php .flexslider-inspiration .owl-item:nth-child(even) {
margin-top: 51px;
}
    
}


/*IPAD LANDSCAPE VERSION + DESKTOP*/
@media (min-width: 993px) and  (max-width: 1436px) {

    header,
    .home header {
        background: url(../images/slide.jpg) top center;
        -webkit-background-size: cover;
        background-size: cover;
        margin-bottom: 0;
     }
	 
    .menunavbefore, 
    .menunavafter {
        display: none;
    }
    .menucontainer {
        width: 100%;
    }
    .menunav {
        margin: 0;
        background: none;
        width: 100%;
        height: auto;
    }
    .donate .mt {
        margin-top: 30px;
    }
    .navbar-default .navbar-nav > li > a {
        font-size: 14px;
    }
    .nav > li > a {
        padding: 15px 10px;
        margin-right: 5px;
    }
	
    .join {
        background: url(../images/join.jpg) no-repeat center center;
        background-size: cover;
        height: auto;
        padding-bottom: 80px;
    }
	.fb-like {
		position: relative!important;
		top: 0;
		right: 0;
	}
}
@media (min-width: 1024px) and  (max-width: 1199px) {
	.navbar-nav > li > a {
		/*line-height: 90px;*/
	}
}
@media (min-width: 768px) and  (max-width: 991px) {
	.navbar-nav > li > a {
		line-height: 100px;
	}
}

@media only screen 
and (min-width : 768px) 
and (max-width : 1024px) {
    
    .ribbon {
    -webkit-background-size: cover;
    background-size: cover;
    }
}
