/*
 Theme Name:   HaziMozi
 Theme URI:    http://hazi-mozi.hu/
 Description:  HaziMozi custom theme
 Author:       Annesley Newholm
 Author URI:   http://hazi-mozi.hu/
 Template:     twentyseventeen
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  hazimozi
*/ 

/* -------------------------- fonts */
@import url('https://fonts.googleapis.com/css?family=Open+Sans&subset=latin-ext');

body,
body button,
body input,
body select,
body textarea, 
body h1, 
body h2, 
body h3, 
body h4, 
body h5, 
body h6 {
  font-family: 'Open Sans',sans-serif;
  line-height: normal;
  letter-spacing: normal;
}

/* -------------------------- header image */
body.has-header-image header .custom-header,
.site-branding > .wrap > .site-branding-text,
.site-branding > .wrap > .site-branding-text > .site-title > a,
body #page #wp-custom-header img {
  height:118px !important;
  min-height:118px !important;
  object-fit: initial;
  width: auto;
  min-width:0px;
}
body #page .custom-header-media:before {
  background:none; /* remove the black gradient because it makes the smaller header look low-res */
}
.has-header-image .custom-header-media img {
  /* force standard absolute position header across whole site */  
  bottom: 0;
  position: absolute;
  top: auto;
}

@media screen and (min-width: 768px) {
  /* menu switch */
  body.has-header-image #page header .custom-header {
    margin-bottom:70px; /* avoid the menu: added by JS on the post page somehow */
  }
}

/* clickable header */
.site-branding > .wrap > .site-branding-text,
.site-branding > .wrap > .site-branding-text > .site-title > a {
  display:block;
  width:100%;
  color:Transparent;
}
.site-branding,
.site-branding > .wrap,
.site-branding > .wrap > .site-branding-text,
.site-branding > .wrap > .site-branding-text > .site-title,
.site-branding > .wrap > .site-branding-text > .site-title > a {
  padding:0px;
  padding-left: 0px;
  padding-right: 0px;
  margin-left: 0px;
  margin-right: 0px;
}
.site-branding > .wrap {
  max-width:none;
}

body #sidebar-header {
  display: block;
  margin:0px auto;
}

/* navigation */
@media screen and (max-width: 768px) {
  .navigation-top #sidebar-navigation {
    display:none;
  }
  body #page .navigation-top > .wrap {
    float:none;
  }
}
.navigation-top > .wrap {
  float:left;
}
body #sidebar-navigation {
  float:right;
  width: 300px;
}
body #sidebar-navigation > li {
  display: inline;
}

/* -------------------------- footer */
body #page footer section .widget-title {
  display:none;
}
body #page footer section.widget ul {
  background-color:transparent;
  margin:0px;
}
body #page footer section.widget ul > li {
  margin:10px;
  padding:0px;
  float:left;
  width: 150px;
}
body #page footer section.widget ul li + li {
  margin-top:10px;
}
body #page footer section.widget ul > li:before {
  content:none;
}
/*
footer section {
  float: left;
  margin: 30px;
}
*/
body #page footer .widget-column {
  width:100%;
  float:none;
}

/* -------------------------- wider size */
@media screen and (min-width: 768px) {
  body #page .panel-content > .wrap,
  body #page .site-content  > .wrap {
    max-width:1240px;
    padding-left:30px;
    padding-right:30px;
  }
  .page.page-one-column:not(.twentyseventeen-front-page) #primary {
    max-width:1240px;
  }
  /* .has-sidebar class is also placed on the .page .wrap 
   * because the page.php now has get_sidebar() in it
   */
  .has-sidebar:not(.error404) #primary {
    width: 66.6%;
    padding-right:8px;
  }  
  .has-sidebar #secondary {
    width:33.3%;
    padding-left:8px;
  }
  body.page .has-sidebar #secondary,
  body.single.has-sidebar #secondary {
    margin-top:-13px;
  }
}

/* -------------------------- mobile */
@media screen and (max-width: 768px) {
  body #page .panel-content > .wrap,
  body #page .site-content  > .wrap {
    padding-left:0px;
    padding-right:0px;
  }
  
  /* remove recent widgets, but not ads */
  body:not(.twentyseventeen-front-page) #page .widget_recent-posts,
  body:not(.twentyseventeen-front-page) #page .widget_recent_entries,
  body:not(.twentyseventeen-front-page) #page .widget_recent-comments,
  body:not(.twentyseventeen-front-page) #page .widget_recent_comments {
    display:none;
  }
}

/* -------------------------- tight */
.blog .site-main > article, 
.archive .site-main > article, 
.search .site-main > article {
  padding:0px;
}
body #pgc-20501-0-0, /* hm.dev */
body #pgc-20501-0-1, 
body #pgc-20501-0-2,
body #pgc-20625-0-0, /* new.hazi-mozi.dev */
body #pgc-20625-0-1, 
body #pgc-20625-0-2 {
  width: calc(33.3333% - ( 0.66666666666667 * 16px ) );
}
body #page .widget,
body #page .side-panel .so-panel {
  padding-bottom: 0px;
  margin-bottom:1.2em;
}
body #page .panel-grid-cell {
  margin-bottom:10px;
}
article > .panel-content > .wrap > header {
  display:none;
}
.has-sidebar #secondary {
  padding-top:0px;
  padding-bottom:0px;
}
body #page .nav-links {
  padding-top:20px;
  padding-bottom:10px;
}
body #page .post-navigation {
  margin-top:2px;
  margin-bottom:2px;
}
body .panel-content > .wrap {
  padding:0px 30px;
}
body #page .entry-header, 
body.twentyseventeen-front-page.page-one-column .entry-header, 
body.archive.page-one-column:not(.has-sidebar) .page-header {
  margin-bottom: 0px;
  padding-bottom:0px;
}
body .post-thumbnail {
  margin-bottom: 0px;
}
.so-widget-sow-post-carousel {
  margin-bottom: 20px;
}
/* font-awesome footer icons */
body #page footer section.widget ul > li.menu-item-object-custom > a > i {
  display:block;
  font-style:normal;
  padding-top:0px;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin: 0 20px 20px 0;
}
body #page footer section.widget ul > li.menu-item-object-custom > a > i:before {
  font-family: FontAwesome;
  display:block;
  color:#fff;
  text-align: center;
  font-size: 28px;
  line-height:44px;
  text-shadow: 0px -1px 0px rgba(0,0,0,0.2);
}
/* RSS */
body #page footer section.widget ul > li > a > i.rss {
  background-color: #ef922f;
  background-image: linear-gradient(to top,#ef922f,#f3ab5e);
}
body #page footer section.widget ul > li > a > i.rss:before {content: "\f09e";}
/* Facebook */
body #page footer section.widget ul > li > a > i.facebook {
  background-color: #3b5998;
  background-image: linear-gradient(to top,#3b5998,#4c70ba);
}
body #page footer section.widget ul > li > a > i.facebook:before {content: "\f09a";}
/* Twitter */
body #page footer section.widget ul > li > a > i.twitter {
  background-color: #00aced;
  background-image: linear-gradient(to top,#00aced,#21c2ff);
}
body #page footer section.widget ul > li > a > i.twitter:before {content: "\f099";}

/* -------------------------- hazi-mozi legacy */
.hm-oldal-1,
.legacy-markup {
  display:none;
}

/* -------------------------- styles */
footer .site-info {
  display:none;
}
.single .single-featured-image-header {
  display:none;
}
body #page a, 
body #page a:hover {
  -webkit-box-shadow:none;
  box-shadow:none;
}
.single #page .entry-content a {
  color:#0000ff;
}
.single #page .entry-content a:hover {
  color:#555555;
  text-decoration:none;
}
.post-thumbnail img {
  width:auto !important;
  height:auto !important;
}
body #page .entry-footer {
  padding:2em 1em;
}
.link-more {
  display:none;
}
body.twentyseventeen-front-page #page article {
  border: none;
}

body .widget ul#recentcomments, #recent-posts-2 > nav > ul {
	float: left;
} 

body .widget ul li, 
body .widget ol li {
  border: none;
  padding: 0px;
}
body #page .entry-content { /* summary */
  font-size:13px;
  line-height:1.3em;
}
body.single #page .entry-content, /* full */
body.page #page #primary > #main > article > .entry-content { /* full */
  font-size:15px;
  line-height:24px;
}
.entry-meta {
  font-size: 0.8em;
  font-weight: normal;
  letter-spacing: normal;
}
body .byline {
  display:inline;
}
body.page .panel-content .entry-title, 
.page-title, 
body.page:not(.twentyseventeen-front-page) .entry-title,
body .entry-meta {
  text-transform: none;
  letter-spacing: normal;
}
body.page #primary #main > article:not(.twentyseventeen-panel) .entry-title,
body.page #primary #main > article:not(.twentyseventeen-panel) .entry-title a,
body.single #primary #main > article .entry-title,
body.single #primary #main > article .entry-title a {
  font-size:1.7em;
  font-weight:600;
}
body.page #primary #main > article:not(.twentyseventeen-panel) .entry-header,
body.single #primary #main > article .entry-header {
  padding-top:20px;
}

/* comments */
body #page .comments-area {
  padding:10px;
}
body #page .comment-author .avatar {
  position:static;
  float:right;
}
body #page .comments-title {
  margin-bottom:1em;
}
body #page .comment-meta {
  padding:2em 1em; /* same as entry-footer */
  margin-bottom:0px;
}
body #page .comment-meta .comment-metadata {
  float:left;
}
body #page .comment-author:after {
  clear:none;
}
body #page .comment-reply-title {
  padding-left:0px;
}
body #page .comment-reply-link svg {
  position:static;
  margin-right:6px;
}
body #page .comment-content {
  padding:10px;
}
body #page .comment-body {
  margin: 10px 0px;
}

/* category markers */
body .widget a img {
  /* shadow overlaps category marker below */
  -webkit-box-shadow:none;
  box-shadow:none;
}
article {
  margin-bottom:20px;
}
body article > header > .post-categories,
body #page .widget .widget-title {
  float:left;
  text-transform: uppercase;
  padding:0px 23px 0px 6px;
  margin:0px;
  font-size:10px;
  line-height:1.3em;
  font-weight:normal;
  letter-spacing:normal;
  list-style: none;
}
body .post-thumbnail,
.widget > ul,
.widget > div,
.widget > div > ul { /* avoid header */
  width: 100%;
  clear: both;
  margin:0px;
}
body .post-thumbnail img {
  margin: 0 auto;
  display: block;
}
article > .entry-header > .entry-title {
  padding:8px 20px 0px 20px;
  margin:0px;
}
body.single article > .entry-header > .entry-title {
  padding-bottom:10px;
}
article > .entry-header > .entry-meta,
article > .entry-content,
body #page .entry-summary { /* search results */
  padding:5px 20px 3px 20px;
  margin:0px;
}

body .side-panel .widget > ul,
body aside .widget > ul,
body aside .widget > div > ul {
  padding:10px 0px;
}
body .side-panel .widget > ul > li,
body aside .widget > ul > li,
body .side-panel .widget > div > ul > li,
body aside .widget > div > ul > li,
body .side-panel .widget > div > ul > li > h3,
body aside .widget > div > ul > li > h3 {
  margin: 3px 10px;
  font-size:14px !important;
  padding:1px;
}
body .side-panel .widget > div > ul > li > h3,
body aside .widget > div > ul > li > h3 {
  /* recent posts extended */
  display:inline !important;
  margin: 0px;
  padding:0px;
}
body .side-panel .widget > ul > li:before,
body aside .widget > ul > li:before,
body .side-panel .widget > div > ul > li:before,
body aside .widget > div > ul > li:before {
  content: " › ";
  display:inline !important;
}
.navigation-top > .sidebar {
  margin:5px;
}
.navigation-top > .sidebar > li:before {
  content:none;
}
.navigation-top .menu-scroll-down {
  display:none;
}
.edit-link {
  /* float:right; */ /* overlap issues causing the edit link to not be available */
}

/* -------------------------- carousel 
 * TODO: shows only 1 post under screen 1000px width
 * and multiple over 1000px
 */
body #page .sow-carousel-container .sow-carousel-items .sow-carousel-item {
  min-height:270px;
}
/*
#page .sow-carousel-container .sow-carousel-items .sow-carousel-item {
  width:auto;
}
@media screen and (max-width: 1000px) {
  #page .sow-carousel-container .sow-carousel-wrapper .sow-carousel-items .sow-carousel-item {
    width:auto;
  }
}
#page .sow-carousel-container .sow-carousel-wrapper .sow-carousel-items .sow-carousel-item .sow-carousel-thumbnail a {
  margin:0px auto;
  width:auto;
  background-size:cover;
  background-position:top center;
}
#page .sow-carousel-container .sow-carousel-wrapper .sow-carousel-items .sow-carousel-item > h3 {
  background-color:#000;      
  margin:0px;
  color:#fff;
  font-weight:bold;
  font-size:25px;
}
#page .so-widget-sow-post-carousel .sow-carousel-title {
  position: absolute;
  top:10px;
  left:50%;
  z-index: 1000;
}
*/

/* -------------------------- headings */
body h3 {
  padding-left: 15px;
  padding-right: 15px;
}
body h1, 
body h2, 
body h3, 
body h4, 
body h5, 
body h6 {
  line-height: 140%;
  margin: 0px;
}
body h2 a {font-size:22.5px;}

/* -------------------------- colours */
body,
body #page > .site-content-contain {
  background-color: #f5f5f5;
}
body h1 a, 
body h2 a, 
body h3 a, 
body h4 a, 
body h5 a, 
body h6 a,
body #page .entry-title,
body #page .entry-title a {
  color: #474747;
}
.entry-content,
.widget > ul > li,
.widget > ul > li > a,
.widget > div > ul > li,
.widget > div > ul > li > a,
.widget > div > ul > li > h3 > a {
  color: #666;
}
.entry-meta {
  color: #909090;
}
/* white background for articles
 * article components allows Transparent padding
 * use .post to restrict it to only posts
 */
.single article > .entry-header,
article > .entry-header .entry-meta,
article > .entry-header .entry-title,
article > .entry-content,
body #page .entry-summary,
body .post-thumbnail,
body .sow-carousel-container .sow-carousel-items .sow-carousel-item,
.widget > ul,
.widget > div > ul,
body #page .comment-content,
body #page .comments-area {
  background-color: #fff;
}
body.page #primary #main > article:not(.twentyseventeen-panel) {
  border: 1px solid rgb(219, 219, 219); /* pages have a gray border only */
  background-color:#fff;
}
body article > header > .post-categories {
  background-color: #f5f5f5; /* match the page gray */
}
body article > header > .post-categories a,
.widget .widget-title {
  color:#fff;
}
article.category-hirek > header > .post-categories,
article.category-news > header > .post-categories {
  background-color: #993400;
}
article.category-termekek > header > .post-categories,
article.category-reviews > header > .post-categories {
  background-color: #006699;
}
article.category-cikkek > header > .post-categories,
article.category-articles > header > .post-categories {
  background-color: #007713;
}
.widget_recent-posts .widget-title,
.recent-posts-extended .widget-title,
.widget_recent_entries .widget-title {
  background-color: #019a98;
}
.widget_recent-comments .widget-title,
.widget_recent_comments .widget-title {
  background-color: #9a9901;
}
.widget_google-adsense .widget-title,
.widget_google_adsense .widget-title,
.widget_custom_html .widget-title { /* used for Ads */
  background-color: #3a2901;
}
footer {
  background-color: #e0e0e0;
}
body #page footer.site-footer a {
  color: #337ab7;
}
header .custom-header-media {
  background-color:#000;
}
header .custom-header-mediaNO {
    background-color:#2f2f2f; /* For browsers that do not support gradients */
    background: -webkit-linear-gradient(#5d5d5d, #000); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(#5d5d5d, #000); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(#5d5d5d, #000); /* For Firefox 3.6 to 15 */
    background: linear-gradient(#5d5d5d, #000); /* Standard syntax */
}

