/*
Theme Name: Norm
Author: Ken Gubler
Author URI: https://kengubler.ch/
Description: Theme for the Norm Website
Version: 1.0
*/


@font-face {
    font-family: 'RiformaLLWebMedium';
    src: url('assets/fonts/RiformaLLWeb-Medium.woff');
    src: url('assets/fonts/RiformaLLWeb-Medium.eot?iefix') format('embedded-opentype'),
        url('assets/fonts/RiformaLLWeb-Medium.woff2') format('woff2'),
        url('assets/fonts/RiformaLLWeb-Medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RiformaLLWebMedium';
    src: url('assets/fonts/RiformaLLWeb-MediumItalic.woff');
    src: url('assets/fonts/RiformaLLWeb-MediumItalic.eot?iefix') format('embedded-opentype'),
        url('assets/fonts/RiformaLLWeb-MediumItalic.woff2') format('woff2'),
        url('assets/fonts/RiformaLLWeb-MediumItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face { 
    font-family: 'RiformaLLWebMedium';
    src: url('assets/fonts/RiformaLLWeb-Bold.woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'RiformaLLWebMedium';
    src: url('assets/fonts/RiformaLLWeb-BoldItalic.woff');
    font-weight: bold;
    font-style: italic;
}

/* .variant {
    font-family: 'RiformaLLWebMedium';
    font-variant-alternates: stylistic(3);
} */


html {
    box-sizing: border-box;
    height: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    position: relative;
    height: 100%;
    width: 100%;
    background: white;
    font-family: 'RiformaLLWebMedium', Helvetica Neue, Helvetica, Arial, sans-serif;
    line-height: 1;
    color: #000;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* font-size: 16px; */
    /* fallback */
    /* font-size: calc(12px + 0.75vh); */
    /* for firefox */
    /* font-size: max(16px, 1.725vh); */
    /* safari, chrome */
    font-size: clamp(16px, 1.725vh, 32px);
    /* letter-spacing: 0.00em; */
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


a:link,
a:active,
a:visited,
a:hover,
a:focus {
    text-decoration: none;
    color: black;
    outline-style: none;
}

a.active {
    border-bottom: 1px solid #000;
}


/* header .header-container {
    display: flex;
    justify-content: flex-end;
    height: 5vh;
    padding: 8px;
}


header .header-actions {
    margin-left: auto;
    z-index: 2;
} */

footer {
    padding: 0 0 2.75vh 3vh;
    width: 100%;
}

.nav-container {
    position: fixed;
    top: 0px;
    left: 0px;
    padding: 2.75vh 0 2.75vh 3vh;
    /* ca. 100/29 */
    z-index: 200;
    /* height: 100%; */
    display: flex;
    flex-direction: column;


    /* font-size: 32px; */
    /* fallback */
    /* font-size: calc(24px + 1.5vh); */
    /* for firefox */
    /* font-size: max(32px, 3.45vh); */
    /* safari, chrome */

    font-size: clamp(32px, 3.45vh, 64px);

    transition: top 0.7s;
    background-color: rgba(0, 0, 0, 0);
}

@media only screen and (max-width: 599px) {
    .nav-container-hidden {
        top: calc(var(--navHeight) * -1);
        transition: top 0.7s;
    }
}


ul.menu-main,
ul.menu-buy,
ul.sub-menu {
    padding: 0;
    margin: 0;
    list-style-type: none;
    overflow: hidden;
}

ul.menu-buy>li,
ul.sub-menu>li {
    float: left;
    clear: left;
}


#norm {
    line-height: 1;
    margin-bottom: 1.75vh;
}

#contact,
footer,
.font-title {
    /* font-size: 32px; */
    /* fallback */
    /* font-size: calc(24px + 1.5vh); */
    /* for firefox */
    /* font-size: max(32px, 3.45vh); */
    /* safari, chrome */

    font-size: clamp(32px, 3.45vh, 64px);
}


.page-navigation li {
    /* display: none; */
}

.page-navigation li.current_page_item {
    /* display: list-item; */
    /* show only active item */
}

.menu-main>li {
    /* margin for top level menu items */
    margin-bottom: 1.75vh;
}

/* ul.sub-menu {
    list-style-type: circle;
    list-style-position: inside;
} */

.sub-menu .menu-item a {
    vertical-align: middle;
}

.menu-item-has-children>a {
    cursor: default !important;
}


.menu-item:not(.menu-item-has-children) {
    cursor: pointer;
}

.sub-menu .menu-item:not(.menu-item-has-children):hover::before,
.menu-buy .menu-item:hover::before {
    content: '● ';
}

.section-navigation>li:hover::before {
    content: '● ';
}

.sub-menu .menu-item::before {
    content: '○ ';
    white-space: pre;
    tab-size: 100;
    -moz-tab-size: 100;
    -ms-tab-size: 100;
    display: inline-block;
    /* vertical-align: middle; */
}

.sub-menu .current-menu-item::before {
    content: '● ';
    white-space: pre;
    tab-size: 100;
    -moz-tab-size: 100;
    -ms-tab-size: 100;
    display: inline-block;
    /* vertical-align: middle; */
}

.section {
    padding-top: 2.75vh;
    margin-bottom: 6.89vh;
}

.section-navigation {
    display: block;
    margin: 0px 0px 1.75vh 0px;
    padding: 0px;
}

.section-navigation>li::before {
    content: '○ ';
    white-space: pre;
    tab-size: 100;
    -moz-tab-size: 100;
    -ms-tab-size: 100;
    display: inline-block;
    /* vertical-align: middle; */
}

.menu-buy>li:before {
    content: '○ ';
    white-space: pre;
    tab-size: 100;
    -moz-tab-size: 100;
    -ms-tab-size: 100;
    display: inline-block;
    /* vertical-align: middle; */
}

.section-navigation>li.current::before {
    content: "● ";
    tab-size: 100;
    -moz-tab-size: 100;
    -ms-tab-size: 100;
    display: inline-block;
    /* vertical-align: middle; */
}

.section-navigation>li.loading::before {
    opacity: 0.1;
}

.section-navigation li {
    list-style-type: none;
    float: left;
    clear: left;
    /* flex: 0 0 auto; */
}

.section-link,
.menu-buy>li>a,
.chapter-link {
    vertical-align: middle;
}

.section-link {
    transition: opacity 0.7s;
}

.section-link.loading {
    cursor: default;
    opacity: 0.1;
    transition: opacity 0.35s;
}

.section-navigation>li {
    cursor: pointer;
}

/* .chapter-link {
    cursor: pointer;
} */

.section-title {
    /* transform: scale(5); */
    /* -webkit-transform-origin-x: 0; */
    /* -webkit-transform-origin-y: 0; */
    font-size: 500%;
    position: relative;
}

.c-accordion__title {
    outline-style: none;
}

.margin-bottom {
    margin-bottom: 1.75vh;
}

.buy-menu-toggle {
    cursor: pointer;
}

.content-container {
    width: 62.07vh;
    max-width: 90vw;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wp-content-container {
    position: relative;
    /* margin: auto 0px; */
}

.wp-content-container-full {
    position: relative;
    margin: 0px;
}

.page-container {
    padding: 2.75vh 0;
}

.section-division {
    height: 6.89vh;
}

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

.wp-block-image {
    margin: 0;
}


.ecwid-shop {
    position: absolute;
    z-index: 100;
    left: 3vh;
    bottom: 1vh;
}

.ec-cart__sidebar-inner::after {
    content: "";
    margin-bottom: 20px;
    display: block;
    font-size: 18px;
    color: red;
    white-space: pre-line;
}

@media only screen and (max-width: 599px) {

    .nav-container {
        padding: 5vw;
        font-size: 24px;
        width: 100%;
        height: initial;
        max-height: 100%;
        background: white;
    }

    .section-navigation {
        overflow-y: auto;
    }


    .content-container {
        width: 90vw;
    }

    .section {
        padding-top: 4.75vw;
        margin-bottom: 5vw;
        overflow-x: hidden;
    }

    .section-navigation li,
    ul.menu-buy>li,
    ul.sub-menu>li {
        float: initial;
    }

    /* .wp-content-container {
        top: var(--navHeight);
        margin: 20px 0px 0px 0px;
    } */

    #contact,
    footer,
    .font-title {
        font-size: 24px;
    }

}

/* .c-accordion__title:after {
    color: green;
} */