/*
Theme Name: MyBlog Theme Theme
URI: https://cserhajni.hu/myblog-theme
Author: Cser Hajni Author
URI: http://cserhajni.hu
Description: MyBlog Theme by Cser Hajni
Version: 1.0 License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myblog-theme
*/

body {
  background: #fff url(img/body-bg.png);
}

.center-box {
  width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#logo {
  display: block;
  width: 300px;
  margin: 25px auto;
}

footer {
  background: #ccc;
  padding: 10px 0 30px 0;
  position: relative;
  margin-top: 40px;
}

footer::before {
  position: absolute;
  content: "";
  height: 50px;
  width: 100%;
  display: block;
  left: 0;
  top: -45px;
  background: url(img/footer.png);
  background-size: auto 100%;
}

#content {
  overflow: hidden;
  clear: both;
  padding-top: 20px;
}

.row {
  margin: 0 -15px;
}

main {
  float: left;
  width: 75%;
  padding: 0 15px;
}

aside {
  float: left;
  width: 25%;
  padding: 0 15px;
}



.articles {
  display: flex;  /* közvetlen gyermek egy magas lesz */
  margin: 0 -15px;
  -webkit-flex-flow: row wrap; /* oszlopok tördelése %-osan */
}

.article-box {
  padding: 0 15px;
  margin-bottom: 30px;
}

@media only screen and (min-width: 769px){
  .article-box {
    width: 33.33%;
  }
}

@media only screen (min-width: 480px) and (max-width: 768px){
  .article-box {
    width: 50%;
  }
}

@media only screen (max-width: 479px){
  .article-box {
    width: 100%;
  }
}

article {
  background-color: #fff;
  background-image: url(img/border-horizontal.png), url(img/border-horizontal.png), url(img/border-vertical.png), url(img/border-vertical.png);
  background-position: top center, bottom center, top left, top right;
  background-size: auto 3px, auto 3px, 3px auto, 3px auto;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  padding: 15px;
  height: 100%;
}

.article-box h2 {
  margin-top 15px;
}

.featured-image {
  color: inherit;
  position: relative;
  display: block;
  padding: 15px;
  background-color: #fff;
  background-image: url(img/border-horizontal.png), url(img/border-horizontal.png), url(img/border-vertical.png), url(img/border-vertical.png);
  background-position: top center, bottom center, top left, top bottom;
  background-size: auto 3px, auto 3px, 3px auto, 3px auto;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
}

.image {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
}

.featured-image h1 {
  background: url(img/brush-white.gif);
  background-size: 100% 100%;
  padding: 20px 40px;
  margin: 0 15px;
  display: block;
  max-width: 500px;
}

.featured-image h3 {
  background: url(img/brush-white.gif);
  background-size: 100% 100%;
  padding: 20px 40px;
  margin: 0 15px;
  display: block;
  max-width: 500px;
}

.square {
  width: 100%;
  height: auto;
  background-size: cover;
}

time {
  display: block;
  margin: 10px 0;
  font-size: 14px;
}

.article-box article a {
  color: inherit;
}

.article-box a.featured-image, .article-box a.featured-image img {
  height: 100%;
}

#go-to-top {
  background: #ffd207;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  cursor: pointer;
}

#go-to-top::before {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -6px;
  margin-left: -7px;
  content: "";
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 10px solid black;
}

/* Hamburger menühöz tartozik */
.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  background: #ffd207!important;
}

/* Carousel */
#carousel {
  background-color: #fff;
  background-image: url(img/border-horizontal.png), url(img/border-horizontal.png), url(img/border-vertical.png), url(img/border-vertical.png);
  background-position: top center, bottom center, top left, top bottom;
  background-size: auto 3px, auto 3px, 3px auto, 3px auto;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  padding: 15px;
  margin-bottom: 30px;
  overflow: hidden;
  position: relative;
}

#carousel-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

#carousel ul.slides {
  display: block;
  white-space: nowrap;
  font-size: 0;
  position: relative;
}

#carousel li.slide {
  display: inline-block;
  position: relative;
  width: 100%;
  white-space: initial;
  font-size: initial;
}

#carousel li.slide a {
  display: block;
  color: inherit;
}

.carousel-content {
  max-width: 600px;
  background: url(img/brush-white.gif);
  background-size: 100% 100%;
  padding: 40px 60px;
  margin: 0 15px;
  display: block;
}

#next-slide,
#prev-slide {
  display: block;
  position: absolute;
  width: 50px;
  height: 50px;
  top: 50%;
  margin-top: -25px;
  z-index: 5;
  cursor: pointer;
  border-radius: 50%;
  background: #fff;
}

#next-slide {
  right: -25px;
}

#prev-slide {
  left: -25px;
}

#next-slide::before {
  position: absolute;
  top: 50%;
  left: 15px;
  margin-top: -6px;
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid #000;
}

#prev-slide::before {
  position: absolute;
  top: 50%;
  right: 15px;
  margin-top: -6px;
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid #000;
}

#navigation {
  display: block;
  position: absolute;
  width: 100%;
  text-align: center;
  height: 30px;
  bottom: 0;
}

#navigation div {
  display: inline-block;
  width: 20px;
  height: 20px;
  cursor: pointer;
  border-radius: 50%;
  background: #fff;
  margin: 0 10px;
}

.nav-active {
  border: solid 3px #ffd207;
}

#searchform {
  background-color: #fff;
  background-image: url(img/border-horizontal.png), url(img/border-horizontal.png), url(img/border-vertical.png), url(img/border-vertical.png);
  background-position: top center, bottom center, top left, top bottom;
  background-size: auto 3px, auto 3px, 3px auto, 3px auto;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  padding: 5px 10px 5px 10px;
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

#searchform input[type="text"] {
  border: none;
  height: 30px;
}

#searchform input[type="submit"] {
  border: none;
  background: url(img/search-bg.gif) center center no-repeat;
  background-size: 20px auto;
  height: 30px;
  width: 30px;
  position: absolute;
  right: 10px;
}

.accordion-list {
  margin-top: 15px;
  background-image: url(img/border-horizontal.png);
  background-position: top center;
  background-size: auto 3px;
  background-repeat: repeat-x;
}

.accordion-list li {
  position: relative;
  background-image: url(img/border-horizontal.png);
  background-position: bottom center;
  background-size: auto 3px;
  background-repeat: repeat-x;
}

.accordion-list li a {
  display: block;
  color: inherit;
  height: 34px;
  line-height: 34px;
  padding: 0;
}

.accordion-list li a:hover {
  color: #ffd207;
}

.opener {
  position: absolute;
  right: 0;
  top: 0;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.opener::before {
  top: 50%;
  margin-top: -3px;
  right: 0;
  content: "";
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #000;
}

.children {
  position: relative;
  background-image: url(img/border-horizontal.png);
  background-position: top center;
  background-size: auto 3px;
  background-repeat: repeat-x;
  padding:5px 15px;
  display: none;
}

.children li {
  border: none;
  background: none;
}

.down::before {
  transform: rotate(180deg);
  border-top: 7px solid #ffd207!important;
}

.accordion {
  margin-top: 20px;
}

.accordion-title {
  background-color: #fff;
  background-image: url(img/border-horizontal.png), url(img/border-horizontal.png), url(img/border-vertical.png), url(img/border-vertical.png);
  background-position: top center, bottom center, top left, top bottom;
  background-size: auto 3px, auto 3px, 3px auto, 3px auto;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  padding: 10px 10px 10px 30px;
  position: relative;
  cursor: pointer;
}

.accordion-title::before {
  top: 50%;
  margin-top: -3px;
  left: 10px;
  content: "";
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #000;
}

.accordion-content {
  background-image: url(img/border-horizontal.png), url(img/border-horizontal.png), url(img/border-vertical.png), url(img/border-vertical.png);
  background-position: top center, bottom center, top left, top bottom;
  background-size: auto 3px, auto 3px, 3px auto, 3px auto;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  padding: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  display: none;
}

.accordion-image {
  float: left;
  width: 30%;
}

.accordion-text {
  float: left;
  width: 70%;
  padding-left: 20px;
}

.button {
  display: inline-block;
  padding: 14px;
  color: #000;
  background: #ffd207;
}

.reviews-slider {
  background-image: url(img/border-horizontal.png), url(img/border-horizontal.png), url(img/border-vertical.png), url(img/border-vertical.png);
  background-position: top center, bottom center, top left, top bottom;
  background-size: auto 3px, auto 3px, 3px auto, 3px auto;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  padding: 20px 20px 60px 20px;
  position: relative;
  width: 100%;
  text-align: center;
  margin: 20px 0;
}

.reviews-title {
  text-align: center;
  margin-bottom: 10px;
}

.reviews-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.reviews-slider ul {
  display: block;
  white-space: nowrap;
  font-size: 0;
  position: relative;
  padding: 0;
  margin: 0;
  vertical-align: top;
  left: -200%;
}

.reviews-slider li {
  display: inline-block;
  position: relative;
  width: 100%;
  white-space: initial;
  font-size: initial;
  padding: 0;
  margin: 0;
  vertical-align: top;
}

.review-slider li::before {
  content: none;
}

.next-review,
.prev-review {
  display: block;
  position: absolute;
  width: 50px;
  height: 50px;
  bottom: 15px;
  z-index: 5;
  cursor: pointer;
  border-radius: 50%;
}

.next-review {
  right: 50%;
  margin-right: -60px;
}

.prev-review {
  left: 50%;
  margin-left: -60px;
}

.next-review::before {
  position: absolute;
  top: 50%;
  right: 50%;
  margin-right: -3px;
  margin-top: -6px;
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid #000;
}

.prev-review::before {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -3px;
  margin-top: -6px;
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid #000;
}

#contact-box {
  position: fixed;
  bottom: -340px;
  right: 80px;
  background: #ffd207;
  padding: 0px 20px;
  width: 300px;
  z-index: 2;
  height: 400px;
  transition: all 0.6s ease-in-out;
}

#contact-box input {
  width: 100%;
  background: #fff;
  border: none;
  margin: 0 0 10px 0;
  height: 30px;
  padding: 0 10px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#contact-box textarea {
  width: 100%;
  background: #fff;
  border: none;
  margin: 0;
  height: 150px;
  padding: 0 10px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#contact-box input[type="submit"] {
  background: #000;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#contact-box h4 {
  cursor: pointer;
  padding: 15px 0px;
}

.box-open {
  bottom: 0!important;
}

@media only screen and (max-width: 480px) {
  .accordion-image,
  .accordion-text {
    float: none;
    width: 100%;
    padding-left: 0;
  }

  .accordion-image {
    margin-bottom: 20px;
  }
}

@media only screen and (max-width: 480px) {
  #carousel li.slide img {
    height: 350px;
  }
}

@media only screen and (max-width: 1200px) {
  .center-box {
    width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  main, aside {
    float: none;
    width: 100%;
  }
}
