/*
Theme Name: family-house-site
Theme URI: 
Description: Family House Site theme, based on 320press wp-bootstrap
Version: 1.0
Author: Boyan Yordanov
Author URI: 

// LIcenses of the starting theme
License: GNU General Public License v2.0 & Apache License 2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html http://www.apache.org/licenses/LICENSE-2.0
*/

/* micro clearfix: http://nicolasgallagher.com/micro-clearfix-hack/ */
/* For modern browsers */
.clearfix:before,
.clearfix:after {
    content:"";
    display:table;
}

.clearfix:after {
    clear:both;
}

/* For IE 6/7 (trigger hasLayout) */
.clearfix {
    zoom:1;
}

/* wp-specific classes */
.wp-caption{
	
}

.wp-caption-text{
	
}

.sticky{
	
}

.gallery-caption{
	
}

/* Modern Button Styles */
.btn,
button,
input[type="submit"],
input[type="button"] {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-color: #0066cc;
  color: white;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background-color: #0052a3;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:focus,
button:focus,
input[type="submit"]:focus,
input[type="button"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,102,204,0.3);
}

/* Secondary Button Style */
.btn-secondary {
  background-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* for fun */
* {
  -webkit-transition: all 0.2s ease;
  -moz-transition:    all 0.2s ease;
  -ms-transition:     all 0.2s ease;
  -o-transition:      all 0.2s ease;
}

/* layout */

body{
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    padding-top: 0;
}

/* Admin Top Navigation fixes */

body.admin-bar .navbar-fixed-top{ 
    top: 28px; 
}

.navbar .brand{
    color: #000 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 30px rgba(255, 255, 255, 0.125);
    font-weight: bold !important;
}

.nav-container{
    padding-left: 0;
    padding-right: 0;
}

#inner-header{
    width: 100%;
}

input, textarea, select, .uneditable-input {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

input:focus, textarea:focus, select:focus {
    border-color: #0066cc;
    box-shadow: 0 0 4px rgba(0, 102, 204, 0.3);
    outline: none;
}

input:hover, textarea:hover, select:hover {
    border-color: #888;
}

.error {
    border-color: #cc0000;
    background-color: #ffe6e6;
}

.success {
    border-color: #28a745;
    background-color: #e6ffe6;
}

.navbar-form, .navbar-search {
    margin: 0 0 9px;
}

.navbar-search{
    padding-left: 0;
}

#s{
    width: 100px;
}

#content{
    padding: 10px 0 0;
}

.more-link{
    white-space: nowrap;
}

.footer-links{
    float: right;
    margin-bottom: 18px;
}

.footer-links .menu{
    list-style-type: none;
    margin-left: 0;
}

.footer-links .menu li{
    float: left;
    margin-left: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* post styling */

#main p.meta{
    font-style: italic;
    color: #808080;
}

#main article{
    margin-bottom: 18px;
    border-bottom: 1px solid #eeeeee;
    padding: 0 0 9px;
}

.sidebar{
    margin-top: 18px !important;
}

#main article footer{
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    position: relative;
    min-height: 20px;
}

#main article footer a.edit-post{
    position: absolute;
    right: 0;
    top: 0;
    display: none;
}

.post:hover a.edit-post{
    display: inline;
}

p.tags{
    line-height: 20px;
}

div[id*='attachment_']{
    max-width: 100%;
    height: 100%;
}

#credit320{
    background: url('images/320press_mini.png') no-repeat left top transparent;
    padding-left: 20px;
}

#main .hero-unit img{
    margin-bottom: 1em;
}

#main article img{
    max-width: 100%;
}

img.alignleft{
    margin-right: 10px;
    float: left;
}

img.alignright{
    margin-left: 10px;
    float: right;
}

img.aligncenter{
    display: block;
    margin: 0 auto;
}

.post header img{
    margin-bottom: 18px;
}

.archive #main .post h3{
    line-height: 24px;
    margin-bottom: 10px;
}

video {
    max-width: 100%;
    height: auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.video-container iframe,  
.video-container object,  
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-wrapper {
    width: 630px;
    max-width: 100%;
    margin-bottom: 18px;
}

/* page styling */

#featured-carousel .item{
    width: 970px;
    height: 600px;
}

.carousel-caption p{
    display: none;
}

.page-template-page-homepage-php #main article{
    border-bottom: none;
}

.page-template-page-homepage-php .hero-unit,
.blog .hero-unit{
    padding: 1em;
}

.hero-unit h1 {
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5em;
    letter-spacing: 0.02em;
    font-size: 3em;
}

/* comments */

#comments{
    line-height: 24px;
    margin-bottom: 18px;
}

ol.commentlist,
ol.commentlist ul.children{
    list-style-type: none;
    margin-left: 0;
}

.comment .vcard div{
    margin-top: 8px;
    padding: 0 10px;
}

ol.commentlist time{
    font-size: .8em;
    color: #eeeeee;
}

ol.commentlist div.comment-author{
    position: relative;
}

ol.commentlist a.comment-edit-link{
    color: #ffffff;
    text-decoration: none;
    padding-left: 5px;
}

ol.commentlist span.edit-comment{
    position: absolute;
    right: 0;
    top: 8px;
}

ol.commentlist li.bypostauthor{
    /*background-color: #dddddd;*/
}

ol.commentlist article{
    border-bottom: none !important;
}

a.comment-reply-link{
    position: absolute;
    right: 0;
    bottom: 0;
}

#comment-nav ul{
    list-style-type: none;
    margin: 0;
}

#comment-form-elements{
    list-style-type: none;
    margin: 0;
}

.comment .vcard .avatar{
    padding-right: 0;
}

.comment .vcard .comment-text{
    margin-left: 0;
}

img.avatar{
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #dedede;
    border-right: 1px solid #dedede;
    border-left: 1px solid #ddd;
}

ol.commentlist li{
    padding-right: 10px;
    /*background-color: #F0F0F0;*/
}

#pings{
    margin-bottom: 9px;
}

ol.pinglist{
    list-style-type: none;
    margin: 0 0 9px 0;
}

#comment{
    width: 100%;
    height: 200px;
}

ol.commentlist #respond{
    padding: 5px 10px;
}

/* specific post-type styles */

/* image attachment */

.attachment #main .post_content img{
    max-width: 100%;
}

.ie8 #main .media-grid img{
    max-height: none !important;
    max-width: none !important;
}

.attachment-img{
    margin-bottom: 18px;
}

.metadata p.alert-message{
    margin-right: 0;
    margin-bottom: 18px;
}

#gallery-nav{
    list-style-type: none;
    margin-left: 0;
}

li.next a, li.previous a{
    position: relative;
}

li.next a:hover:before{
    content: "\2190";
    position: absolute;
    display: block;
    top: 42%;
    left: 0;
    background-color: #BFBFBF;
    color: #444;
    width: 20px;
    height: 20px;
    padding-left: 5px;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
}

li.previous a:hover:before{
    content: "\2192";
    position: absolute;
    display: block;
    top: 42%;
    right: 0;
    background-color: #BFBFBF;
    color: #444;
    width: 20px;
    height: 20px;
    padding-left: 5px;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
}

/* widget styles */

.widget{
    margin-bottom: 18px;
}

.widgettitle{
    margin-bottom: 9px;
}

#tag-cloud{
    margin-bottom: 18px;
    line-height: 160%;
}

/* for some reason the bs version currently available for download doesn't have this style */
.label{
    text-transform: uppercase;
}

/* override standard link hover for the tag cloud widget */
#tag-cloud a:hover,
.tags a:hover{
    color: #ffffff;
    text-decoration: none;
}

#tag-cloud a{
    white-space: pre;
    text-transform: uppercase;
}

/* change default form padding for search */

.widget_search form{
    padding-left: 0;
}

.widget_search input{
    width: 121px;
}

/* calendar widget */

#calendar_wrap{
    border: 1px solid #ddd;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 5px;
}

#wp-calendar{
    width: 100%;
}

#wp-calendar caption{
    font-weight: bold;
    padding: 8px;
}

#wp-calendar tr{
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

#wp-calendar tr:last-child{
    border-bottom: none;
}

#wp-calendar td{
    text-align: center;
    padding: 8px 0;
}

blockquote.pull-left{
    font-style: italic;
    color: #555;
    border-left: 4px solid #ccc;
    padding-left: 15px;
}

@media only screen and (min-width: 768px) {
    .carousel-caption p{
        display: block;
    }
    #comment{
        max-width: 100%;
    }
}

@media only screen and (min-width: 980px) {
    body{
        padding-top: 60px;
    }
    
    #comment{
        max-width: 100%;
    }

    .container-fluid{
        max-width: 970px;
        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    #inner-footer{
        padding: 0;
    }
    
    #content{
        padding-left: 0;
        padding-right: 0;
    }
    
    .topbar-inner{
        padding: 0;
    }
    
    .topbar form.pull-right {
        float: right;
    }
    
    .navbar-form, .navbar-search {
        margin-top: 6px;
        margin-bottom: 0;
    }
    
    .navbar-search{
        padding-left: 0;
    }
    
    .sidebar{
        margin-top: 0 !important;
    }
    
    .widget_search input{
        width: 230px;
    }
    
    .blog .hero-unit{
        margin-top: 10px;
    }
    
    .page-template-page-homepage-php .hero-unit,
    .blog .hero-unit{
        padding: 60px;
    }
    
    .hero-unit h1 {
        font-size: 60px;
    }
    
    /* hide edit comment button and show on hover on desktop version */
    .edit-comment{
        display: none;
    }
    
    .vcard:hover .edit-comment{
        display: inline-block;
    }
    
    #s{
        width: 210px;
        margin-bottom: 6px;
    }
    
    .widget_search input{
        width: 209px;
    }
    
    .comment .vcard .comment-text{
        padding-left: 0;
        padding-right: 0;
    }
}

/* Discussions fix */
.comment-textarea{
    background: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-collapse {
        display: block !important; /* Force the menu to stay open */
        visibility: visible !important; /* Ensure it's visible */
        height: auto !important; /* Allow full height */
    }
}

