:root {
    --body-text: #212121;
    --primary-button-color: #40CDDB;
    --button-color: #212121; 
    --background-color: #F7D046;
}


html, 
body {
    height: 100%;
}

tbody {
    font-size: 0.875rem;
}

th, td {
  padding: 0.25rem 0.5rem;
}

tr {
    border: 1px solid #606060;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 1.25rem;
}

.image, .image-funny {
    position: relative;
}

.container {
    margin: 0 auto;
    width: 90%;
    /* max-width: 1440px; */
}

section {
    padding: 3vw 0
}

.widget {
    margin-bottom: 2rem
}


div.my_carousel .next, div.my_carousel .prev {
    background: var(--primary-button-color)!important;
    border-color: var(--body-text)!important;
    border: solid 2px!important;
}

div.my_carousel .item-list .item > div {
    box-shadow: none!important;
}

/* Navigation */

#menu-top-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
}

#menu-top-menu li a {
    text-decoration: none;
    color: inherit
}

#menu-top-menu li.gyik a::before {
    content: "";
    height: 24px;
    width: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

#menu-top-menu li.gyik a {
    background: url(img/gyik.svg);
    background-size: 12% auto;
    background-repeat: no-repeat;
}

#menu-top-menu li.top-cart a::before {
    content: "";
    height: 24px;
    width: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

#menu-top-menu li.top-cart a {
    background: url(img/cart.svg);
    background-size: 21% auto;
    background-repeat: no-repeat;
}

.woocommerce-product-search {
    position: relative
}

#woocommerce-product-search-field-0 form input[type="text"] {
    border: none;
    width: 100%!important;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    box-shadow: none;
}

form .woocommerce-product-search input[type="search"] {
    border-radius: 100px;
}

.woocommerce-product-search button {
    background: 0 0;
    border: none;
    padding: 0;
    margin: 0;
    position: absolute;
    text-indent: -40000px;
}

.contents-count {
    padding: 2px 6px;
    background: var(--primary-button-color);
    text-align: center;
    font-size: 12px;
    border-radius: 50%;
    margin-left: -15px;
}

.contents-total {
    margin-left: 10px
}

#main-menu {
    padding: 1em 2.5em 2.5em;
}

nav {
    margin-top: 40px;
}

nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: space-evenly;
}

nav ul li {
    display: block;
    margin: 0 1rem;
}

nav ul li:nth-of-type(2) {
    flex-grow: 0.3;
}

nav ul li a {
    text-decoration: none;
    color: inherit;
    background-color: var(--body-text);
    padding: 10px 30px;
    border-radius: 100px;
    color: white;
    border: 2px solid var(--body-text);
}

.primary-button a {
    background-color: var(--primary-button-color);
    color: var(--body-text);
}


#logo {
    position: absolute;
    z-index: 1;
    width: 180px;
    height: 120px;
    left: 50%;
    top: auto;
    margin-left: -60px;
    display: inline-block;
}

#logo a {
    width: 180px;
    height: 120px;
    display: inline-block;
    background-image: url(img/babett-rajzol-logo-01.svg);
    background-position: center left;
    background-repeat: no-repeat;
    background-size: 180px auto;
}

/* Hero style */

#hero, .journey-products, .aboutme {
    background-repeat: repeat;
    background-image: url(img/background.svg);
}

.hero-image {
    border: 1.5px solid #ADADAD;
}

.image::before {
    width: 12em;
    height: 9em;
    left: 30%;
    position: absolute;
    content: "";
    top: -20%;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(img/image-decor.png);
}

/* Blog style */

.blog, .main-form {
    background-color: var(--body-text);
    position: relative;
}

.blog::after {
    position: absolute;
    content: "";
    top: 0;
    bottom: 20em;
    left: -5em;
    width: 20em;
    height: 20em;
    transform: rotate(180deg);
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/left-decor-star.svg);
}

.main-form::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0em;
    width: 20em;
    height: 20em;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/right-decor-star.svg);
}

.main-form-background {
    background-image: url(img/kepeslap-background.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 1
}

article.content {
    padding: 0 0.5rem 2rem;
}

.blog-label {
    position: absolute;
    border-radius: 3.125rem;
    margin-top: 1rem;
    padding: 8px;
    font-size: 1rem;
    text-transform: capitalize;
    margin-left: 1rem;
    background: var(--background-color);
    color: var(--body-text);
}

.card h3 {
    line-height: 1.2;
    margin-top: 0.5rem
}

#blog article .card h3 a {
    text-decoration: none;
    color: inherit;
    background: none;
}

#blog article .card h3 a:hover {
    color: var(--primary-button-color)
}

.published {
    background: url(img/calendar.svg);
    background-repeat: no-repeat;
    margin: 0.5rem 0
}

.published::before {
    content: "";
    height: 24px;
    width: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.widget-portre {
    border-radius: 50%;
    width: 50%;
    border: 3px solid var(--body-text);
    margin-bottom: 0.5rem
}

#blog h3 {
    position: relative
}

#blog h3::before, #blog h3::after {
    display: none;
}

#blog article a {
    background-color: var(--background-color);
    color: inherit
}

/* Decors style */

.journey-stars, .inner-form, .journey-products {
    position: relative;
}

.inner-form::before, .journey-stars::before {
    position: absolute;
    z-index: -1;
    content: "";
    top: -7em;
    right: 0em;
    width: 10em;
    height: 20em;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/right-black-stars.svg);
}

.inner-form::after {
    position: absolute;
    content: "";
    bottom: 0;
    left: -5em;
    width: 20em;
    height: 20em;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/left-black-stars.svg);
}

.journey-road .image-funny::after {
    width: 28em;
    height: 25em;
    left: 10%;
    top: 0;
    z-index: -1;
    margin-top: -22%;
    position: absolute;
    content: "";
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(img/funny-background.svg);
}

.journey-road a.button::after {
    position: absolute;
    content: "";
    margin-top: 2.5rem;
    left: 3em;
    width: 5em;
    height: 9em;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/arrow.svg);
}

.journey-products {
    padding: 1rem 0
}

.journey-products::before {
    position: absolute;
    z-index: -1;
    content: "";
    top: 0;
    width: 10em;
    height: 20em;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/decor03.svg);
}

.journey-products::after {
    position: absolute;
    z-index: -1;
    content: "";
    right: 0em;
    width: 6em;
    height: 20em;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/decor04.svg);
}

/* Services style */

.service-card {
    align-items: center;
    position: relative;
    border: 0.1875rem solid var(--background-color);
    border-radius: 1.25rem;
    padding: 3rem 1.25rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.superhero {
    background-color: var(--background-color);
    background-repeat: no-repeat;
    background-image: url(img/decor01.svg);
    background-position-x: right;
    background-position-y: -7rem;
    background-size: 80%;
}

.unic {
    background-color: white;
    background-repeat: no-repeat;
    background-image: url(img/decor02.svg);
    background-position-x: -6rem;
    background-position-y: -7rem;
    background-size: 80%;
}

/* Footer style */

footer, #copyright {
    background-color: var(--body-text);
    color: white
}

#copyright {
    border-top: solid 0.8px;
    padding: 1rem 0;
}

/* MQ */

@media only screen and (max-width: 900px) {
    #logo {
        position: relative;
    }

    #menu {
        display: none;
    }

    #menu-top-menu {
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul {
        display: block
    }

    nav ul li {
        padding: 10px 0;
        margin: 0 0 1rem
    }

    #main-menu {
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    #logo {
        left: 0;
    }

    #hamburger {
        height: 45px;
        width: 45px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        right: 15px;
        margin: 0;
        position: absolute;
        cursor: pointer;
        z-index: 2;
        padding: 10px;
        border-radius: 50%;
        background-color: var(--body-text);
    }

    #hamburger span {
        height: 3px;
        width: 25px;
        border-radius: 10px;
        z-index: 32;
        transition: background .3s;
        -webkit-transition: background .3s;
        background: var(--primary-button-color);
    }

    #hamburger.collapse {
        justify-content: center;
    }

    #hamburger.collapse span:nth-of-type(1) {

        -ms-transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
        -webkit-transition: all .3s ease-in-out;
        transition: all .3s ease-in-out;
    }

    #hamburger.collapse span:nth-of-type(3) {
        margin-top: -3px;
        -ms-transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        -webkit-transition: all .3s ease-in-out;
        transition: all .3s ease-in-out;
    }

    #hamburger.collapse span:nth-of-type(2) {
        display: none;
    }

    .row-reverse {
        flex-direction: column-reverse;
    }

    .journey-road .image-funny::after {
        display: none;
    }

    .journey-road a.button::after {
        background-size: 70%;
    }

}

/* WC kosár oldal */

@media screen and (max-width: 640px) {
    /* Force table to not be like tables anymore */
    .woocommerce-page table.shop_table,
    .woocommerce-page table.shop_table thead,
    .woocommerce-page table.shop_table tbody,
    .woocommerce-page table.shop_table th,
    .woocommerce-page table.shop_table td,
    .woocommerce-page table.shop_table tr,
    .woocommerce-page table.shop_table tfoot {
      display: block;
    }
  /* Hide table headers (but not display: none;, for accessibility) */
    .woocommerce-page table.shop_table thead tr, .woocommerce-page table.shop_table th {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }

  .woocommerce-page table.shop_table td {
      position: relative;
      padding-left: 40%!important;
    }
  .woocommerce-page table.shop_table {
      border: none;
    }

  .woocommerce-page table.shop_table td:before {
      position: absolute;
      font-weight: 600;
      font-size: 14px;
      left: 10px;
      white-space: nowrap;
    }

    td.product-remove {
        float: right
    }

  .woocommerce-page table.shop_table td.product-name:before {
      content: "Termék";
    }
  .woocommerce-page table.shop_table td.product-price:before {
      content: "Ár";
    }
  .woocommerce-page table.shop_table td.product-quantity:before {
      content: "Mennyiség";
    }
  .woocommerce-page table.shop_table td.product-subtotal:before {
      content: "Összesen";
    }
  .woocommerce-page table.shop_table td.product-total:before {
      content: "Fizetendő";
    }

    .woocommerce-page table.shop_table tr.cart-subtotal td::before {
        content: "Részösszeg";
    }

    .woocommerce-page table.shop_table tr.woocommerce-shipping-totals.shipping td::before {
        content: "Szállítás"
    }

    .woocommerce-page table.shop_table tr.order-total td::before {
        content: "Összesen"
    }    

  .woocommerce .quantity,
    .woocommerce #content .quantity,
    .woocommerce-page .quantity,
    .woocommerce-page #content .quantity {
      margin: 0;
    }
  .woocommerce-page table.cart td.actions,
    .woocommerce-page #content table.cart td.actions {
      text-align: left;
      border: 0;
      padding-left: 6px !important;
    }
  .woocommerce-page table.cart td.actions .button.alt,
    .woocommerce-page #content table.cart td.actions .button.alt {
      float: left;
      margin-top: 10px;
    }
  .woocommerce-page table.cart td.actions div,
    .woocommerce-page #content table.cart td.actions div,
    .woocommerce-page table.cart td.actions input,
    .woocommerce-page #content table.cart td.actions input {
      margin-bottom: 10px;
    }
  .woocommerce-page .cart-collaterals .cart_totals {
      float: left;
      width: 100%!important;
      text-align: left;
    }
  .woocommerce-page .cart-collaterals .cart_totals th,
    .woocommerce-page .cart-collaterals .cart_totals td {
      border: 0 !important;
    }
  .woocommerce-page .cart-collaterals .cart_totals table tr.cart-subtotal td,
    .woocommerce-page .cart-collaterals .cart_totals table tr.shipping td,
    .woocommerce-page .cart-collaterals .cart_totals table tr.total td {
      padding-left: 40%!important;
    }
  .woocommerce-page table.shop_table tr.cart-subtotal td,
    .woocommerce-page table.shop_table tr.shipping td,
    .woocommerce-page table.shop_table tr.total td,
    .woocommerce-page table.shop_table.order_details tfoot th,
    .woocommerce-page table.shop_table.order_details tfoot td {
      padding-left: 40%!important;
      border: 0 !important; 
    }
  .woocommerce-page table.shop_table tbody {
      padding-top: 10px;
    }
  .woocommerce .col2-set .col-1,
    .woocommerce-page .col2-set .col-1,
    .woocommerce .col2-set .col-2,
    .woocommerce-page .col2-set .col-2,
    .woocommerce form .form-row-first,
    .woocommerce form .form-row-last,
    .woocommerce-page form .form-row-first,
    .woocommerce-page form .form-row-last {
      float: none;
      width: 100%!important;
    }
  .woocommerce .order_details ul,
    .woocommerce-page .order_details ul,
    .woocommerce .order_details,
    .woocommerce-page .order_details {
      padding: 0;
    }
  .woocommerce .order_details li,
    .woocommerce-page .order_details li {
      clear: left;
      margin-bottom: 10px;
      border: 0;
    }
}
