/*
Theme Name: Merel 2
Theme URI: https://merelcorduwener.com
Author: Richard Jong
Author URI: https://merelcorduwener.com
Description: Merel's nieuwe thema
Version: 2.0
*/

/*
    Blue:   #031279
    Red:    #ea3c18
    Orange: #f88758
 */

body, html {
    padding: 0;
    margin: 0;
    font-family: 'Karla', sans-serif;
    color: #f88758;
    font-size: 16px;
    letter-spacing: -1px;
}

* {
    box-sizing: border-box;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: #f88758;
    outline: 0;
}

a:hover {
    color: #ea3c18;
}

a::-moz-focus-inner {
    border: 0;
}

.contentwrapper {
    position: relative;
    z-index: 2;
}


/* Menu */
.menu-primary-container {
    text-align: center;
    height: 60px;
    position: relative;
    z-index: 3;
}

.menu-primary-container .menu {
    padding: 0 20px;
    display: inline-block;
}

.menu li {
    display: inline-block;
}

.menu li a {
    display: inline-block;
    font-size: 1.3em;
    padding: 17.5px 20px;
    color: #ea3c18;
    text-decoration: none;
    transition: all .2s;
}

.menu li.current-menu-item a {
    font-weight: 800;
}

.menu li:hover a {
    color: #031279;
}

.menu li:first-child a {
    color: #031279;
}

.menu-primary-container .toggle, .menu-primary-container .mobile-title {
    display: none;
    height: 60px;
    line-height: 60px;
    text-transform: lowercase;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
        overflow-x: hidden;
    }

    .menu-primary-container {
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        padding-left: 20px;
        height: 60px;
        background: white;
        width: 100%;
        transition: all .2s;
        text-align: left;
        z-index: 3;
    }

    body.admin-bar .menu-primary-container {
        top: 46px;
    }

    .menu-primary-container .toggle {
        display: inline-block;
        width: 50px;
        height: auto;
    }

    .menu-primary-container .mobile-title {
        display: block;
        margin-left: 15px;
        font-size: 1.3em;
        opacity: 1;
        transition: opacity .3s;
    }

    .toggle .line {
        height: 5px;
        width: 40px;
        background: #ea3c18;
        margin: 7px 0;
        transform-style: preserve-3d;
        transition: transform 250ms, width 200ms;
    }

    .expanded .toggle .line:nth-child(1) {
        width: 21px;
        transform: rotateZ(-45deg) translateX(10px) translateY(17px);
    }
    .expanded .toggle .line:nth-child(2) {
        width: 43px;
        transform: rotateZ(45deg);
    }
    .expanded .toggle .line:nth-child(3) {
        width: 21px;
        transform: rotateZ(-45deg) translateX(6px) translateY(-1px);
    }

    .menu-primary-container .menu {
        padding: 0;
        height: 0;
        overflow: hidden;
        z-index: -1;
        opacity: 0;
        transition-delay: 0;
        transition: opacity 0;
        position: fixed;
        left: 0px;
        top: 60px;
        background: white;
    }

    .menu-primary-container.expanded .menu {
        z-index: 2;
        opacity: 1;
        width: 220px;
        height: 100%;
        transition: opacity .4s;
        transition-delay: .1s;
    }

    .menu-primary-container.expanded .mobile-title {
        opacity: 0;
    }

    .menu li {
        display: block;
    }

    body.admin-bar .menu-primary-container.expanded .menu {
        top: 106px;
    }

    body > .contentwrapper {
        width: 100vw;
        transition: width .2s;
    }

    body > .contentwrapper > .content {
        width: 100vw;
        display: inline-block;
    }

    body > .contentwrapper > .content * {
        max-width: 100%;
    }

    body > .contentwrapper::before {
        display: inline-block;
        content: " ";
        width: 0;
        height: 100vh;
        transition: width .2s;
        float: left;
    }

    body.menu-expanded > .contentwrapper {
        width: calc(100vw + 250px);
    }

    body.menu-expanded > .contentwrapper::before {
        width: 220px;
    }

    body.menu-expanded > .contentwrapper > .content {
        background-color: rgba(0,0,0,.02);
        -webkit-box-shadow: inset 26px 1px 25px -28px rgba(0,0,0,.1);
           -moz-box-shadow: inset 26px 1px 25px -28px rgba(0,0,0,.1);
                box-shadow: inset 26px 1px 25px -28px rgba(0,0,0,.1);
    }

    #wpadminbar {
        position: fixed;
    }
}


/* Homepage */
body.home .gallery {
    position: relative;
    height: calc(100vh - 60px);
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

body.home.admin-bar .gallery {
    height: calc(100vh - 92px);
}

@media (max-width: 768px) {
    body.home.admin-bar .gallery {
        height: calc(100vh - 106px);
    }
}

.gallery .prev, .gallery .next {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5%;
    min-width: 50px;
    height: calc(100% - 70px);
}

.gallery .arrow {
    border: solid #f88758;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 12px;
    transition: border .2s;
}

.gallery .prev .arrow {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

.gallery .next .arrow {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.gallery .prev:hover .arrow, .gallery .next:hover .arrow {
    border-color: #ea3c18;
}

.gallery .list {
    position: relative;
    width: 90%;
    max-width: calc(100% - 100px);
    height: calc(100% - 70px);
}

.gallery .list .image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.gallery .list .image.active {
    display: block;
}

.image .desktop, .image .mobile {
    display: none;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    transition: background-size .2s;
    transition: transform .2s;
}

@media (min-width: 769px) {
    .image .desktop {
        display: block;
    }
}
@media (max-width: 768px) {
    .image .mobile {
        display: block;
    }
}

.gallery .nav {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
}

.gallery .nav a {
    text-indent: -999999px;
    background: #f88758;
    border-radius: 100%;
    width: 12px;
    height: 12px;
    display: inline-block;
    margin: 10px;
    transition: background .2s;
}

.gallery .nav a.active, .gallery .nav a:hover {
    background-color: #ea3c18;
}

@media (max-width: 768px) {
    .gallery .prev, .gallery .next {
        position: absolute;
        width: 50%;
        z-index: 2;
    }

    .gallery .next {
        right: 0;
    }

    .gallery .arrow {
        display: none;
    }

    .gallery .list {
        margin: 0 5%;
        max-width: 100%;
    }
}

.gallery .sticker {
    background: #f14b23;
    color: white;
    font-weight: 800;
    font-size: 1.2em;
    line-height: 1.3em;
    padding: 35px 10px;
    border-radius: 100%;
    position: absolute;
    top: 35px;
    left: 100px;
    text-align: center;
    animation: rotate 1s ease-out 0s alternate infinite;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
}

.gallery .sticker span {
    font-size: .9em;
    line-height: 1em;
    display: block;
    width: 100%;
}

.gallery .sticker.blauw {
    background: #2e2b70;
}

@media (max-width: 768px) {
    .gallery .sticker {
        font-size: 1em;
        width: 150px;
        height: 150px;
        top: auto;
        bottom: 45px;
        left: 15px;
        padding: 22px 10px;
    }
}

@keyframes rotate {
    0%, 20%, 40% {
        transform: rotate(-10deg);
    }
    10%, 30% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(0);
    }
}

/* Category pages */

.image .image {
    width: 100%;
    height: 100%;
    background-size: 100%;
}

body.page-template-category .content, body.single-post .content, body.error404 .content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
}

body.single-post .content, body.error404 .content {
    align-items: center;
}

body.page-template-category .image, body.single-post .image {
    text-align: left;
    display: inline-block;
    margin-bottom: 30px;
    text-align: center;
}

body.page-template-category .image p {
    margin-top: 8px;
    max-width: 90vw;
}

.image.portrait .desktop {
    width: 45vw;
    max-height: 90vh;
    overflow: hidden;
}

.image.landscape .desktop {
    width: 90vw;
    max-height: 90vh;
    overflow: hidden;
}

.image.portrait .desktop .image, .image.landscape .desktop .image {
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    transform: scale(1);
    transition: transform .2s;
}

.image.portrait .mobile, .image.landscape .mobile {
    width: 90vw;
}

.image.landscape a:hover .desktop .image, .image.portrait a:hover .desktop .image {
    transform: scale(1.1);
}


@media (min-width: 769px) {
    body.page-template-category .image.portrait p {
        max-width: 45vw;
    }
}

@media (max-width: 768px) {
    body.page-template-category .image {
        padding-bottom: 50px;
    }
}

/* Single page */
body.single-post .text {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    text-align: center;
    width: 90vw;
}
@media (min-width: 768px) {
    body.single-post .text {
        width: 45vw;
    }
}

body.single-post .text .wrapper {
    display: inline-block;
}
@media (min-width: 768px) {
    body.single-post .text .wrapper {
        width: 60%;
    }
}


body.single-post .text h2 {
    color: #ea3c18;
    width: 100%;
}

body.single-post .text p {
    width: 100%;
}

/* Page */
body.page .columns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

body.page .columns .column {
    width: 45vw;
    max-width: 500px;
    margin: 0 2%;
}

body.page .columns .column * {
    max-width: 100%;
}

body.page .columns .column.alt {
    color: #031279;
    font-size: 14px;
    padding-bottom: 100px;
}

.column.alt a {
    color: #031279;
}

@media (max-width: 768px) {
    body.page .columns .column {
        width: 90vw;
    }
}

/* Simple Page Template */
body.page-template-page_simple .content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 28px;
}


/* Video */
.image.video .desktop, .image.video .mobile {
    display: none;
}

.image.video.landscape video {
    width: 90vw;
}
.image.video.portrait video {
    width: 45vw;
    max-height: 90vh;
}

@media (max-width: 768px) {
    .image.video.portrait video {
        width: 90vw;
    }
}

/* WooCommerce */
body.woocommerce .content {
    max-width: 90%;
    margin: 0 5%;
    color: #031279;
    line-height: 1.5em;
}

body.woocommerce .content a {
    color: #031279;
}

.woocommerce .page-title,
.woocommerce .page-description,
.woocommerce-breadcrumb,
.woocommerce-products-header,
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce .product_meta,
.woocommerce #sidebar,
.woocommerce-tabs,
.woocommerce .related {
    display: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding-bottom: 0;
}

.woocommerce-LoopProduct-link {
    text-align: center;
}

.woocommerce-Price-currencySymbol {
    display: none;
}

.woocommerce-Price-amount {
    color: #031279;
}
.woocommerce-Price-amount::after {
    content: "euro";
}

.woocommerce .button.add_to_cart_button {
    display: none;
}

.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

.woocommerce .product.product-type-simple {
    display: flex;
    align-items: center;
}

.woocommerce .product .summary {
    padding: 20px;
}

.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
    background-color: #ea3c18;
}

.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
    background-color: #f88758;
}

.woocommerce-page .content .woocommerce {
    width: 90%;
    margin: 5%;
}

.cart-customlocation {
    display: block;
    text-align: center;
    margin: 20px;
}

@media (max-width: 768px) {
    .woocommerce .product.product-type-simple {
        display: block;
    }

    .woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products[class*="columns-"] li.product {
        width: 100%;
    }
}

/* Confetti */
#confetti {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}