html {
    scroll-padding-top: 5em;
}

body {
    margin: 0;
    font-family: 'Inconsolata', monospace;
    background-color: #F7F5F2;
    color: #151314;
    font-size: 1.25em;
}

p, li, a, .section-content, .tab-content, .event-list, .section-header, .tab-btn, h3, footer {
    font-size: inherit;
    font-family: inherit;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}
a:hover {
    color: #FE9900;
}

img {
    max-width: 100%;
    display: block;
}
img:not(.hero-static) {
    display: block;
    margin: 0 auto;
    max-width: 37.5em;
    height: auto;
    padding: 0.625em 0;
}

.section-content img {
    width: 100%;
    max-width: 37.5em;
    height: auto;
    display: block;
    margin: 0.625em auto;
}

.section-content p {
    max-width: 37.5em;
    margin: 0.625em auto;
    line-height: 1.6;
}

.navbar {
    background-color: #151314;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.625em 1.25em;
}
.nav-menu {
    display: flex;
    gap: 4em;
    justify-content: center;
    align-items: center;
    list-style: none;
}
.nav-menu li a {
    color: #F7F5F2;
    font-weight: bold;
}
.nav-menu li a:hover {
    color: #FE9900;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle .bar {
    height: 0.1875em;
    width: 1.5625em;
    background-color: #F7F5F2;
    margin: 0.25em 0;
    transition: 0.3s;
}

.hero {
    position: relative;
    height: 50em;
    overflow: hidden;
}

.hero img.hero-static {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 20em;
    width: 50%;
    height: auto;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
    z-index: 2;
}

@media (min-width: 70em) {
    .hero-logo {
        max-width: 20em;
        width: 20%;
    }
}

.section {
    padding: 3.125em 1.25em;
    max-width: 75em;
    margin: 0 auto;
    text-align: center;
}
.section-header {
    background-color: #151314;
    color: #F7F5F2;
    display: inline-block;
    padding: 0.625em 1.25em;
    margin-bottom: 1.25em;
}
.section-content,
.tab-content,
.event-list {
    text-align: left;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25em;
}
.tab-btn {
    padding: 0.9375em 1.5625em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.tab-btn:not(.active) {
    background-color: #C7C7C7;
    color: #151314;
}
.tab-btn.active {
    background-color: #151314;
    color: #F7F5F2;
}
.tab-btn:hover {
    color: #FE9900;
}
.menu-content {
    padding: 1.25em;
    max-width: 37.5em;
    margin: 0 auto;
    text-align: left;
    border: none;
}

.menu-category {
    margin-bottom: 2em;
}
.menu-category h4 {
    font-size: 1.25em;
    margin-bottom: 0.5em;
    color: #151314;
    border-bottom: 0.125em solid #FE9900;
    padding-bottom: 0.25em;
}
.menu-item {
    margin-bottom: 1.25em;
}
.dish-name {
    font-weight: bold;
    display: inline-block;
}
.dish-price {
    float: right;
    font-weight: bold;
}
.menu-item p {
    clear: both;
    margin: 0.25em 0 0 0;
    max-width: 37.5em;
    line-height: 1.6;
}

#event .section-content {
    max-width: 37.5em;
    margin: 0 auto;
    text-align: left;
    padding: 1.25em 0;
}
#event .menu-category h4 {
    font-size: 1.25em;
    margin-bottom: 0.5em;
    color: #151314;
    border-bottom: 0.125em solid #FE9900;
    padding-bottom: 0.25em;
}
#event .menu-item {
    margin-bottom: 1.25em;
}
#event .dish-name {
    font-weight: bold;
    display: inline-block;
}
#event .dish-price {
    float: right;
    font-weight: normal;
}
#event .menu-item p {
    clear: both;
    margin: 0.25em 0 0 0;
    line-height: 1.6;
}

footer {
    background-color: #151314;
    color: #F7F5F2;
    padding: 2em 1.25em;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 75em;
    margin: 0 auto;
    gap: 4em;
}

.footer-column {
    text-align: left;
    width: auto;
}

.footer-column p {
    margin: 0.25em 0;
    font-size: 1em;
}

.footer-column a {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: #F7F5F2;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a i {
    width: 1.2em;
    text-align: center;
    color: #F7F5F2;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #FE9900;
}

.footer-column a:hover i {
    color: #FE9900;
}

.footer-credit {
    margin-top: 1.5em;
    font-size: 0.9em;
    color: #aaa;
    text-align: center;
}

.open-text p {
    max-width: 37.5em;
    margin: 0.625em auto;
    line-height: 1.6;
}

@media (max-width: 48em) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        width: 100%;
        max-width: 20em; /* valfritt */
    }
}

@media (max-width: 48em) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: #151314;
        margin: 0;
        padding: 0;
    }
    .nav-menu.active {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-menu li {
        text-align: center;
        padding: 0.9375em 0;
        border-top: 0.0625em solid #FE9900;
        margin: 0;
    }
    .nav-menu li a {
        display: block;
    }
}

@media (max-width: 48em) {
    .section-content img {
        max-width: 90%;
    }
}

@media (max-width: 48em) {
    .hero {
        height: 30em;
    }

    .hero-logo {
        max-width: 12em;
        width: 60%;
    }
}
