html {
    scroll-behavior: smooth;  /* smooth scrolling */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* includes padding in width */
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    text-align: left;
}

/* Fixed Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    padding-right: 2em;
    width: 100%;
    height: 70px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 9999; /* navbar stays on top */
}

.nav-link {
    color: #CC9966;
    font-size: large;
    font-weight: bold;
    width: 100px;
    text-decoration: none;   /* remove default underline */
}

.nav-link:hover {
    text-decoration: underline;
}

/* Fonts */
h1 {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    text-align: center;
    font-size: clamp(32px, 6vw, 48px);
}

h2 {
    color: #CC9966;
    font-size: clamp(20px, 4vw, 24px);
    text-align: center;
}

p {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #f2f2f2;
}

/* General format for all sections */
.intro, .menu, .about, .contact {
    min-height: 100vh;               /* full viewport height */
    width: 100%;
    background-size: cover;           /* cover the section */
    background-position: center;      /* center image */
    background-repeat: no-repeat;     /* no repeat */
}

.intro > div,
.menu > div,
.about > div,
.contact > div {
    width: min(90%, 500px);
    border-radius: 2em;
    padding: 3em;
}

img {
  max-width: 100%;
}

/* Info section */
.intro {
    background-image: url('img/sl-cafe-bg-01.jpg');
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;          /* vertically center content */
    align-items: center;              /* horizontally center content */
}

.intro > div {
    background: rgba(0, 0, 0, 0.7);
    padding: 1em;                /* spacing inside the div */
    text-align: center;          /* center text inside each div */
}

.menu,
.about,
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}

/* Menu Section */
.menu {
    background-image: url('img/sl-cafe-bg-02.jpg');
    padding-top: 80px;
}

/* make header span both columns */
.menu .header {
    grid-column: 1 / -1; /* spans all columns */
    margin: 0 auto;
    background: #fff;
    justify-content: center;
    padding: 1em;
}

.menu .header h2 {
    color: black;
}

.menu > div {
    background: #544639;
    justify-self: center;
    color: #fff;
    padding: 5px 0 5px 3em;
}

.menu-items {
    height: max-content;
}

/* About Section */
.about {
    background-image: url('img/sl-cafe-bg-03.jpg');
}

.about > div {
    grid-column: 2;   /* move content to second half */
    background: rgba(0, 0, 0, 0.7);
    color: #f2f2f2;
    justify-self: center;
    align-self: center;
}

/* Contact Section */
.contact {
    background-image: url('img/sl-cafe-bg-04.jpg');
    padding: 80px 1em 40px 1em;
    align-items: stretch;
}

.contact > div {
    justify-self: center;
}

.contact-items > p {
    color: rgba(0, 0, 0, 0.8) !important;
}

#email-form {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

#contact-us {
    background: rgba(254, 254, 254, 0.7);
}

input, textarea {
    border: none;                 /* remove all borders */
    border-bottom: 2px solid #CC9966;  /* keep only bottom border */
    outline: none;                /* remove blue outline */
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    border-color: #CC9966;
}

input {
    height: 50px;
}

textarea {
    height: 150px;
}

button {
    font-size: large;
    background: transparent;
    color: #f2f2f2;
}

button:hover {
    color: #CC9966;
}

.footer {
    grid-column: 1 / span 2;       /* spans both columns */
    width: 100%;        /* full width */
    display: flex;
    justify-content: center;
    align-items: end;
    color: #fff;
}