/*
Theme Name: MyBlog
Theme URI: http://myblog.kescsiwt.hu/myblog 
Author: Takács-Keserű Csilla
Author URI: https://myblog.kescsiwt.hu 
Description: MyBlog by Takács-Keserű Csilla
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
Tags: custom-colors, custom-header, custom-menu, custom-logo, editor-style
*/

html {
    font-size: 22px;
}

@media screen and (min-width: 1200px) {
    html {
        font-size: 1.4vw;
    }
}

@media screen and (max-width: 1199px) {
    html {
        font-size: 17px;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 16px;
    }
}

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

.center-box {
    width: 75%;
    margin: 0 auto;
    padding: 0.9rem;
}

#logo {
    display: block;
    width: 13.6rem;
    margin: 0 auto;
    padding: 1.2rem;

}

footer {
    background: #ccc;
    position: relative;
    padding: 0.5rem 0 1.4rem 0;
    text-align: center;
    clear: both;
}

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

#content {
    overflow: hidden;
    clear: both;
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}

#content img {
    width: 100%;
    height: auto;
}

.row {
    margin: 0 -1rem;
}

main {
    float: left;
    width: 75%;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

main img {
    width: 100%;
    height: auto;
    display: block;

}

.articles {
    display: flex;
    /*közvetlen gyermek ugyanolyan magas lesz*/
    -webkit-flex-flow: row wrap;
    margin: 0 -0.7rem;
    align-items: stretch;

}

.article-box {
    width: 33.33%;
    padding: 0 0.7rem;
    margin-bottom: 1.4rem;
}

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

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

aside {
    float: left;
    width: 25%;
    padding: 0 1rem;
}

header ul li {
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 1rem;
}

main ul {
    margin: 1rem 0;
}

main ul li {
    line-height: 1.3;
    margin-bottom: 0.25rem;
    padding-left: 0.75rem;
    position: relative;
}

main ul li:before {
    content: "";
    height: 0.25rem;
    width: 0.25rem;
    border-radius: 50%;
    display: block;
    position: absolute;
    top: 0.5rem;
    left: 0;
    background: #ffd207;

}

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

.featured-image h1,
.featured-image h3 {
    background: url(img/brush-white.gif) center center no-repeat;
    background-size: 100% 100%;
    padding: 1rem 2rem;
    margin: 0 0.7rem;
    display: block;
    max-width: 23rem;
}

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

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

.landscape {
    width: 100%;
    height: 50%;
    background-size: cover;
    margin-bottom: 1rem;
}

time {
    padding: 0.8rem 0;
    display: block;
    font-size: 0.7rem;
}

header {
    min-height: 11rem;
}

#go-to-top {

    background: #ffd207;
    width: 2rem;
    height: 2rem;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    border-radius: 0.01rem;
    cursor: pointer;
}

#go-to-top:before {
    content: "";
    width: 0;
    height: 0;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-bottom: 0.5rem solid black;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -0.3rem;
    margin-left: -0.5rem;
}

.sticky {
    /*menühöz kapcsolódó sticky osztály*/
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1010;
    background: #ffd207 !important;
}

#carousel {
    background-color: #fff;
    background-image: url(img/border-horizontal.png), url(img/border-vertical.png), url(img/border-horizontal.png), url(img/border-vertical.png);
    background-position: top center, left center, bottom center, right center;
    background-size: auto 0.2rem, 0.2rem auto, auto 0.2rem, 0.2rem auto;
    background-repeat: repeat-x, repeat-y, repeat-x, repeat-y;
    padding: 0.7rem;
    margin-bottom: 1.4rem;
    overflow: hidden;
    position: relative;

}

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

}

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

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

}

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

.carousel-content {
    max-width: 27.3rem;
    background: url(img/brush-white.gif) center center no-repeat;
    background-size: 100% 100%;
    padding: 2rem 3rem;
    margin: 0 0.7rem;
    display: block;
}

#right-arrow,
#left-arrow {

    background: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    z-index: 1003;
    cursor: pointer;
    display: block;
}

#right-arrow {
    right: -0.9rem;
}

#left-arrow {
    left: -0.9rem;
}

#right-arrow:before {
    position: absolute;
    display: block;
    content: "";
    width: 0;
    height: 0;
    border-top: 0.4rem solid transparent;
    border-bottom: 0.4rem solid transparent;
    border-left: 0.5rem solid black;
    left: 25%;
    top: 30%;

}

#left-arrow:before {
    position: absolute;
    display: block;
    content: "";
    width: 0;
    height: 0;
    border-top: 0.4rem solid transparent;
    border-bottom: 0.4rem solid transparent;
    border-right: 0.5rem solid black;
    right: 25%;
    top: 30%;

}

#navigation {
    width: 100%;
    position: absolute;
    display: block;
    height: auto;
    z-index: 1008;
    bottom: 10%;
    text-align: center;
    vertical-align: middle;
}

#navigation div {
    background: #eee;
    width: 1rem;
    height: 1rem;
    border: 1px solid #b4b9be;
    border-radius: 50%;
    display: inline-block;
    margin: 0 0.3rem;
    cursor: pointer;
}

#navigation .nav-active {
    background: #ffd207;
}

#searchform {
    background-color: #fff;
    background-image: url(img/border-horizontal.png), url(img/border-vertical.png), url(img/border-horizontal.png), url(img/border-vertical.png);
    background-position: top center, left center, bottom center, right center;
    background-size: auto 0.15rem, 0.15rem auto, auto 0.15rem, 0.15rem auto;
    background-repeat: repeat-x, repeat-y, repeat-x, repeat-y;
    position: relative;
    width: 100%;
    margin-bottom: 1.4rem;
    padding: 0.3rem 0.5rem;
}

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

#searchform input[type="submit"] {
    border: none;
    background: url(img/search-bg.gif) center center no-repeat;
    background-size: 1rem auto;
    height: 1.4rem;
    width: 1.4rem;
    position: absolute;
    right: 0.5rem;
    top: 0.3rem;
}

.accordion-list {
    display: block;
}

.accordion-list li {
    position: relative;
    background: url(img/border-horizontal.png);
    background-position: top center;
    background-repeat: repeat-x;
    background-size: auto 0.2rem;
    padding: 0.5rem 0;

}

.accordion-list li a {
    display: block;
    height: 1.6rem;
    line-height: 1;
    padding: 0 0.5rem;
}

.accordion-parent {
    position: relative;
}

.children {
    display: none;
    position: relative;
    overflow: hidden;
    text-align: left;
    opacity: 1;
    background: url(img/border-horizontal.png);
    background-position: top center;
    background-repeat: repeat-x;
    background-size: auto 0.2rem;
    padding: 0.5rem 0.7rem;
}

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


.open-parent {
    display: block;
    position: absolute;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    top: 0;
    right: 0;
    vertical-align: middle;
}

.open-parent:before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 0.4rem solid transparent;
    border-right: 0.4rem solid transparent;
    border-top: 0.4rem solid #000;
    top: 50%;
    left: 50%;
    margin-top: -0.2rem;
    margin-left: -0.4rem;
    position: absolute;
}

.down:before {
    transform: rotate(180deg);
}

.accordion {
    margin-top: 1rem;
}

.accordion-title {
    background-color: #fff;
    background-image: url(img/border-horizontal.png), url(img/border-vertical.png), url(img/border-horizontal.png), url(img/border-vertical.png);
    background-position: top center, left center, bottom center, right center;
    background-size: auto 0.15rem, 0.15rem auto, auto 0.15rem, 0.15rem auto;
    background-repeat: repeat-x, repeat-y, repeat-x, repeat-y;
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    position: relative;
    margin-bottom: 1rem;
    cursor: pointer;
}


.accordion-title:before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 0.4rem solid transparent;
    border-right: 0.4rem solid transparent;
    border-top: 0.4rem solid #000;
    top: 50%;
    margin-top: -0.2rem;
    left: 0.5rem;
    position: absolute;
}

.accordion-content {
    background-color: #fff;
    background-image: url(img/border-horizontal.png), url(img/border-vertical.png), url(img/border-horizontal.png), url(img/border-vertical.png);
    background-position: top center, left center, bottom center, right center;
    background-size: auto 0.15rem, 0.15rem auto, auto 0.15rem, 0.15rem auto;
    background-repeat: repeat-x, repeat-y, repeat-x, repeat-y;
    padding: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.4rem;
    display: none;
}

.accordion-image {
    float: left;
    width: 30% !important;
    margin-bottom: 0 !important;
}

.accordion h3 {
    margin-bottom: 0 !important;
}

.accordion-text {
    float: left;
    width: 70%;
    padding-left: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.accordion-text p {
    margin-bottom: 1.5rem;
}

.button {
    background: url(img/brush-yellow-mini.gif) center center no-repeat;
    background-size: 100% 100%;
    padding: 0.5rem 0.5rem 0.5rem 0;
    overflow: hidden;
    display: inline-block;
}

.button:hover {
    font-weight: bolder;
    cursor: pointer;
}

.reviews-slider {
    background-image: url(img/border-horizontal.png), url(img/border-vertical.png), url(img/border-horizontal.png), url(img/border-vertical.png);
    background-position: top center, left center, bottom center, right center;
    background-size: auto 0.15rem, 0.15rem auto, auto 0.15rem, 0.15rem auto;
    background-repeat: repeat-x, repeat-y, repeat-x, repeat-y;
    padding: 0.5rem 0.5rem 2.5rem 0.5rem;
    overflow: hidden;
    margin-bottom: 1.4rem;
    position: relative;
}

.reviews {
    display: block;
    white-space: nowrap;
    position: relative;
    font-size: 0;
    margin: 0;
    vertical-align: middle;
}

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

.reviews li:before {
    content: none;
}

.reviews-title {
    text-align: center;
    margin: 0.7rem 0 0.5rem 0;
}

.reviews-items {
    text-align: center;
    margin-bottom: 1rem;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.next-review {
    position: absolute;
    display: block;
    content: "";
    width: 0;
    height: 0;
    border-top: 0.4rem solid transparent;
    border-bottom: 0.4rem solid transparent;
    border-left: 0.5rem solid black;
    right: 45%;
    bottom: 1rem;
    cursor: pointer;
}

.prev-review {
    position: absolute;
    display: block;
    content: "";
    width: 0;
    height: 0;
    border-top: 0.4rem solid transparent;
    border-bottom: 0.4rem solid transparent;
    border-right: 0.5rem solid black;
    left: 45%;
    bottom: 1rem;
    cursor: pointer;
}

#contact-box {
    position: fixed;
    bottom: -17rem;
    right: 4rem;
    border: none;
    background: #ffd207;
    padding: 1rem;
    width: 13.5rem;
    z-index: 1020;
    height: 20rem;
    transition: all 0.6s ease-in-out;
    -webkit-transition: all 0.6s ease-in-out;
    -moz-transition: all 0.6s ease-in-out;
    -o-transition: all 0.6s ease-in-out;
}
.contact-open {
    bottom: 0!important;    
}

#contact-box input,
#contact-box textarea {
    width: 100%;
    z-index: 3;
    background: #fff;
    border: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0 0.5rem;
    margin-bottom: 0.5rem;
}
#contact-box h4{
    cursor: pointer;
}
#contact-box input {
    height: 1.4rem;
}

#contact-box textarea {
    height: 7.5rem;
}

#contact-box input[type="submit"] {

    background: #000;
    color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#contact-box input[type="submit"]:hover {

    background: #aaa;
    color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}


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

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

        main,
        aside {
            float: none;
            width: 100%;
        }

        .article-box {
            width: 50%;
        }
    }

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

        #carousel .slide img {
            height: 30rem;
        }

        .accordion-image,
        .accordion-text {
            float: none;
            width: 100% !important;
            height: auto;
            padding-left: 0;
        }

        .accordion-image {
            margin-bottom: 1rem;
        }

    }
