/* Layout Reset, Bugfixes, and baseline */

html, body, address, blockquote, div,
form, fieldset, caption,
h1, h2, h3, h4, h5, h6,
hr, ul, li, ol, ul, dl, dt, dd,
table, tr, td, th, p, img {
    margin: 0;
    padding: 0;
}

img, fieldset {
    border: none;
}

*,
*:after,
*:before {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

hr {
    display: none;
}

button, label {
    cursor: pointer;
}

body, button, input, table, textarea, select {
    font-family: var(--font-family-default);
    font-size: var(--font-size-default);
    line-height: var(--line-height-default);
}

/* End of CSS Resets */


body {
    background: var(--body-background);
    color: var(--body-color);
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

body#page-home {
    background: rgb(51, 33, 29);
}

#page-home #hero {
    color: #fff;
    min-height: 100vh;
    margin-top: -8em;
    display: flex;
    justify-content: center;
    align-items: center;
}

#page-home #hero::after {
    position: absolute;
    content: "";
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: -1;
    background: var(--background-image) no-repeat;
    background-size: cover;
    background-position-x: center;
    filter: blur(3px);
    -webkit-filter: blur(3px);
    opacity: 0.7;
}

#page-home #hero > .content > p {
    font-size: 4em;
    text-align: center;
    text-shadow: 2px 2px 10px #000, -2px -2px 10px #000;
    line-height: 2;
    user-select: none;
}

#page-home #hero > .content > p > .highlight {
    font-size: 1.5em;
    color: #da9f5b;
}

main {
    display: flex;
    flex-direction: column;
    padding: 0 var(--wrapper-width);
    flex-grow: 1;
}

header, footer {
    flex: 0 0 auto;
}

header {
    position: relative;
    display: flex;
    justify-content: space-between;
    text-align: center;
    padding: var(--header-padding);
    color: var(--header-color);
    z-index: 9;
}

#page-home > header {
    /*position: fixed;*/
}

#page-menu > header {
    background: var(--header-background), url(../images/coffee-bg.jpg);
    background-position: top;
    background-repeat: repeat;
    background-size: 30em;
}

#page-menu > header::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 15px;
    left: 0;
    z-index: 1;
    bottom: -1px;
    background-image: url(../images/overlay-bottom.png);
}

#menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: var(--menu-gap);
    height: 100%;
    align-items: center;
    font-size: 1.4em;
}

header > h1 > a,
#menu li a {
    display: inline-block;
    text-decoration: none;
    color: var(--menu-color);
    transition: all 0.5s;
}

header > h1 > a:hover,
#mainMenu li a:focus,
#menu li a:hover,
#menu li a.active {
    color: var(--menu-hover-color);
}

footer {
    position: relative;
    text-align: center;
    padding: var(--footer-padding);
    color: var(--footer-color);
}

#page-menu > footer {
    background: var(--footer-background), url(../images/coffee-bg.jpg);
    background-position: top;
    background-repeat: repeat;
    background-size: 50em;
}

#page-menu > footer::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 15px;
    left: 0;
    z-index: 1;
    top: -1px;
    background-image: url(../images/overlay-top.png);
}

/* End of basic styles */

#menu-page > h2 {
    font-size: 3em;
    margin: 1em 0 0;
    text-align: center;
}

#menu-page .category {
    margin: 5em 0;
}

#menu-page .category > .inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
}

#menu-page .card {
    display: flex;
    justify-content: space-between;
}

#menu-page .card .content {
    padding: 1em;
    flex: 1 0;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#menu-page .card picture img {
    border-radius: var(--card-radius);
    display: block;
    height: 10em;
}

#menu-page .card .content .price {
    margin-top: auto;
    font-weight: bold;
    font-size: 1.1em;
}

#menu-page .category h3.header {
    font-size: 2.2em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 1em;
}

#menu-page .card .content h4.header {
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

#menu-page span.separator {
    font-size: 0.7em;
}

#menu-page .header > .second-name {
    font-size: 0.8em;
    display: block;
}

#menu-page .card {
    display: flex;
    justify-content: space-between;
    background: rgb(51 33 29 / 6%);
    border: 1px solid rgb(51 33 29 / 8%);
    border-radius: var(--card-radius);
    flex-direction: row-reverse;
    gap: 1em;
    height: 10em;
}

.card > .content > .header > h4 {
    font-size: 1.6em;
}

@media (max-width: 1000px) {
    #menu-page .category > .inner {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    #menu-page .category {
        margin: 5em max(1.5em, calc((100% - 48em) / 2));
    }
}

@media (max-width: 900px) {
    #page-home #hero > .content > p {
        font-size: 3em;
    }
}

@media (max-width: 600px) {
    #page-home #hero > .content > p {
        font-size: 2em;
    }

    #menu-page .category {
        font-size: 0.9em;
        margin: 5em max(0em, calc((100% - 48em) / 2));
    }

    #menu-page .card .content {
        padding: 0.5em;
        gap: 0.5em;
    }
}

@media (max-width: 500px) {
    #menu-page .category {
        font-size: 0.8em;
    }
}