/* myer reset v2 */ a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}

/* palette */
:root {
    --blackberry: #232323;
    --eggplant: #322553;
    --garlic: #eeeeee;
    --lemon: #ffd31a;
    --mango: #ff941a;
    --milk: #fafafa;
    --mushroom: #9a9a9a;
    --plum: #5a4868;
    --tangerine: #db6516;
    --watermelon: #de4074;
    --eggplant-screen: rgba(50, 37, 83, 0.5);
    --watermelon-screen: rgba(222, 64, 116, 0.9);

    --font-display: "Kanit", sans-serif;
    --font-text: "Open Sans", "Segoe UI", sans-serif;
}

a {
    color: var(--watermelon);
    text-decoration: none;
}

.accessibility {
    display: none;
}

body {
    background-attachment: fixed;
    background-color: #150e2d;
    background-image: url(purple-lace.jpg);
    background-repeat: repeat-x;
    display: flex;
    flex-direction: column;
    font-family: var(--font-text);
}
    .content-master {
        background-attachment: fixed;
        background-color: var(--lemon);
        background-image: url(orange-lace.jpg);
        background-repeat: repeat-x;
        border: 10px solid var(--garlic);
        display: flex;
        flex-direction: column;
        margin: 60px 120px;
    }

    .content-master, footer {
        align-self: center;
        max-width: 1200px;
        width: 100%;
    }

header {
    padding: 40px 0 40px 40px;
}

    h1 {
        color: var(--milk);
        font-family: var(--font-display);
        font-size: 60px;
        font-weight: 100;
        letter-spacing: -0.02em;
    }
        .specialties {
            color: var(--eggplant);
            text-transform: uppercase;
            font-size: 13px;
        }

    .specialties {
        display: flex;
    }
        .specialties li {
            margin-right: 8px;
        }
        .specialties li:not(:first-child):before {
            content: "◊";
            margin-right: 8px;
        }

nav {
    display: flex;
    flex-direction: column;
    margin: 0 10px;
}
    .site-wrap {
        align-self: flex-end;
    }
        .site-wrap ul ul {
            display: none;
        }
        .site-wrap ul {
            display: flex;
        }
        .site-wrap li {
            background-color: var(--eggplant);
            color: var(--garlic);
        }
        .site-wrap li:not(:first-child) {
            border-left: 1px solid var(--plum);
        }
        .site-wrap li a {
            color: var(--mushroom);
            display: flex;
            text-transform: uppercase;
            padding: 12px 16px;
        }
        .site-wrap li a:hover {
            color: var(--milk);
        }
        body.home .site-wrap li.home,
        body.recipes .site-wrap li.recipes,
        body.articles .site-wrap li.articles,
        body.about .site-wrap li.about {
            background-color: var(--garlic);
            display: flex;
        }
            body.home .site-wrap li.home a,
            body.recipes .site-wrap li.recipes a,
            body.articles .site-wrap li.articles a,
            body.about .site-wrap li.about a {
                color: var(--eggplant);
                cursor: default;
                display: flex;
                text-transform: uppercase;
            }

.content-wrapper {
    background-color: var(--garlic);
    display: flex;
    margin: 0 10px 10px;
}

.sub-nav-section {
    font-family: var(--font-display);
    font-weight: 100;
}
    .sub-nav-wrap {
        background-color: var(--eggplant);
        background-image: url(floral.jpg);
        background-position: 0 100%;
        background-repeat: no-repeat;
        margin: -10px 0 10px 10px;
        min-width: 320px;
        min-height: 600px;
    }
        .sub-nav-section {
            color: var(--garlic);
            display: flex;
            font-family: var(--font-display);
            font-size: 24px;
            padding: 20px;
            text-transform: lowercase;
        }
        .sub-nav-section:after {
            background-image: url(strawberry.png);
            background-repeat: no-repeat;
            background-size: contain;
            content: "";
            display: inline-block;
            height: 30px;
            margin-bottom: -7px;
            margin-left: 12px;
            width: 35px;
        }
        /* don't show header on pages without sub-sections */
        body.home .sub-nav-section,
        body.about .sub-nav-section {
            display: none;
        }

        .sub-nav {
            padding-bottom: 180px;
        }
            .sub-nav ul {
                display: flex;
                flex-direction: column;
            }
            .sub-nav li {
                display: flex;
            }
            .sub-nav a {
                color: var(--mushroom);
                display: flex;
                flex: 1;
                font-size: 15px;
                padding: 10px;
                text-indent: 10px;
                transition: background-color 75ms;
            }

            .sub-nav a:hover {
                background-color: var(--tangerine);
                color: var(--milk);
                margin: 0 -10px 0 10px;
                text-indent: 0;
            }

.opener {
    display: none;
}


main {
    color: var(--plum);
    padding: 80px;
    line-height: 1.61;
}
    main p,
    main ul,
    main ol {
        padding-bottom: 1em;
    }

    main ol {
        list-style-type: decimal;
    }

    main ul {
        list-style-type: square;
    }

    main h2,
    main h3,
    main h4,
    main h5,
    main h6 {
        color: var(--tangerine);
        font-family: var(--font-display);
        font-size: 24px;
        font-weight: 100;
        padding-bottom: 1em;
    }

        main h2:before {
            background-image: url(watermelon.png);
            background-repeat: no-repeat;
            background-size: contain;
            content: "";
            display: inline-block;
            height: 30px;
            margin-bottom: -7px;
            width: 35px;
        }

    main img {
        max-width: 100%;
    }

/*
----- FOOTER
*/

footer {
    color: var(--mushroom);
    display: flex;
    font-size: 14px;
    justify-content: space-between;
    margin: 0 120px 40px;
}

footer a {
    color: var(--mushroom);
}
    footer a:hover {
        color: var(--lemon);
    }


/*
----- HAMBURGER ----------------------------------------------------------------------------------
*/

.closeburger {
    cursor: pointer;
    display: none;
	height: 30px;
	position: absolute;
	right: 10px;
	top: 40px;
	transition: left .5s;
	width: 30px;
	z-index: 201;
}

.middleburger,
.closeburger:before,
.closeburger:after {
	width: 30px;
	height: 3px;
	position: absolute;
	background-color: var(--milk);
	border-radius: 1px;
}

.middleburger {
	top: 50%;
	margin-top: -2px;
	transition: transform ease (500ms);
}

.closeburger:before {
	content: '';
	top: 5px;
	transition: top 500ms ease 500ms, transform 500ms ease;
}

.closeburger:after {
	content: '';
	bottom: 6px;
	transition: bottom 500ms ease 500ms, transform 500ms ease;
}

.menu-open .closeburger .middleburger {
	background-color: var(--milk);
	transform: rotate(225deg);
	transition: transform 500ms ease 500ms;
}

.menu-open .closeburger:before {
	background-color: var(--milk);
	top: 13px;
	transform: rotate(225deg);
	transition: top 500ms ease, transform 500ms ease 500ms;
}

.menu-open .closeburger:after {
	background-color: var(--milk);
	bottom: 14px;
	transform: rotate(-225deg);
	transition: bottom 500ms ease, transform 500ms ease 500ms;
}

/*
----- TO TOPPER -------------------------------------------------------------------
*/

.totop {
	background-image: url(chevron.svg);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 30px;
	border-radius: 50%;
	box-shadow: 0 0 6px rgba(0,0,0,0.5);
	display: flex;
	height: 50px;
	justify-content: center;
	opacity: 0;
    overflow: hidden;
    background-color: var(--watermelon-screen);
	pointer-events: none;
	position: fixed;
	right: 20px;
	text-decoration: none;
	text-indent: -90px;
	top: 75vh;
	transform: rotateX(180deg);
	transition: opacity 3s;
	width: 50px;

}
	.totop.active {
		opacity: 1;
		pointer-events: all;
	}

/*
----- ADMIN PANELS
*/

#frmadmincontent,
.login .wrap {
    padding: 40px;
    margin: 20px;
    background-color: rgba(255,255,255,0.2)
}

#frmadmincontent h2,
.login h2 {
    font-family: var(--font-display);
    font-size: 24px;
    padding-bottom: 10px;
}

#frmadmincontent input,
#frmadmincontent textarea,
.login input {
    font-size: 17px;
    font-family: monospace;
    padding: 10px;
}

#frmadmincontent textarea {
    width: 100%;
}

#submitdelete {
    float: right;
}

/*
----- 600 HEADER ADJUSTMENTS
*/
@media screen and (max-width: 600px) {
    header {
        padding: 20px 0 20px 20px
    }

    h1 {
        font-size: 12vw;
    }
    .specialties {
        font-size: 2.75vw;
        margin-top: 6px;
    }
}

/*
----- 900 CONTENT ADJUSTMENTS
*/
@media screen and (max-width: 900px) {
    main {
        padding: 20px 10px 20px 30px;
    }
    footer {
        flex-direction: column;
        line-height: 1.75;
        margin: 0;
        padding: 20px 0;
        text-indent: 10px;
    }
}

/*
----- 900 HAMBURGER NAVIGATION
*/
@media screen and (max-width: 900px) {

    .content-master {
        margin: 10px 0 0 0;
        border: 0;
        border-top: 10px solid var(--milk);
    }
    .sub-nav-wrap {
        display: none;
    }
    .closeburger {
        display: block;
    }

    nav {
        background: var(--watermelon-screen);
        height: 100%;
        justify-content: center;
        left: 0;
        margin: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0;
        position: fixed;
        top: -101%;
        transition: top 1s;
        width: 100%;
    }
        .menu-open nav {
            top: 0;
        }
        .site-wrap {
            align-self: flex-start;
            width: calc(100% - 60px);
            margin-right: 60px;
            margin-left: 20px;
        }
            .site-wrap > ul > li:before {
                background-image: url(watermelon.png);
                background-size: 20px;
                background-repeat: no-repeat;
                content: "";
                display: block;
                height: 30px;
                margin-right: -30px;
                float: left;
                width: 30px;
            }
            .site-wrap li:not(:first-child) {
                border: 0;
            }
            .content-master nav .site-wrap ul li:not(.booger) {
                background-color: transparent;
            }
            .content-master nav .site-wrap ul li:not(.booger) a {
                color: var(--eggplant);
                padding: 7px 0;
                text-indent: 30px;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
                .sectionparent .opener {
                    background-color: var(--eggplant-screen);
                    cursor: pointer;
                    display: block;
                    float: right;
                    height: 30px;
                    line-height: 30px;
                    margin-bottom: 1px;
                    text-align: center;
                    width: 30px;
                }
            body.home .site-wrap li.home,
            body.recipes .site-wrap li.recipes,
            body.articles .site-wrap li.articles,
            body.about .site-wrap li.about {
                display: block;
            }
            body.home .site-wrap li.home a,
            body.recipes .site-wrap li.recipes a,
            body.articles .site-wrap li.articles a,
            body.about .site-wrap li.about a {
                color: var(--mushroom);
                cursor: default;
                display: flex;
                text-transform: uppercase;
            }
            .site-wrap ul {
                flex-direction: column;
            }
            .sectionparent {
                flex-direction: column;
            }
            .site-wrap ul ul {
                display: flex;
            }
                .site-wrap li.sectionparent li {
                    max-height: 0;
                    overflow: hidden;
                    transition: max-height 1s;
                }
                .site-wrap li.sectionparent.active li {
                    max-height: 30px;
                }

}

