@import url('https://fonts.googleapis.com/css2?family=Lexend&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Eagle+Lake&display=swap');

:root {
  --box-shadow: 0 0 4px 0px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: rgb(30, 30, 60);
  color: white;
  font-family: 'Lexend', sans-serif;
}

header {
  align-items: center;
  background-color: black;
  background-image: linear-gradient(
    to bottom left,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  box-shadow: var(--box-shadow);
  display: flex;
  height: 80px;
  justify-content: space-between;
  left: 0;
  padding: 0 20px;
  position: fixed;
  top: 0;
  width: 100%;
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

header > button {
  width: 60px;
}

.svg {
  height: 30px;
  width: 30px;
}

.logo {
  height: 60px;
  width: 60px;
}

nav {
  background-color: black;
  box-shadow: var(--box-shadow);
  height: 100vh;
  left: -250px;
  opacity: 0;
  position: fixed;
  top: 0;
  transition: 1s ease;
  width: 250px;
  z-index: 10;
}

nav.open {
  left: 0;
  opacity: 1;
}

nav > div {
  align-items: center;
  display: flex;
  height: 80px;
  justify-content: flex-end;
  margin-right: 20px;
}

li {
  list-style: none;
}

.nav-item {
  border-bottom: 1px solid rgb(30, 30, 90);
  margin: 30px;
  padding-bottom: 10px;
}

a:link,
a:visited,
a:active {
  color: inherit;
  text-decoration: none;
}

main {
  align-items: center;
  display: flex;
  flex-direction: column;
}

section {
  background-color: rgb(60, 60, 90);
  max-width: 768px;
  padding-top: 80px;
  width: 100%;
}

section:last-of-type {
  padding-bottom: 120px;
}

.background-container {
  background-position: center;
  background-size: cover;
  height: 200px;
}

h2 {
  font-family: 'Eagle Lake', cursive;
  font-size: 1.5rem;
  margin: 60px 0 40px;
  text-align: center;
}

.menu-item {
  margin: 0 10px 30px;
}

.menu-item > div:first-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  font-size: 1.2rem;
  justify-content: space-between;
  margin-bottom: 5px;
  padding-bottom: 5px;
}

.menu-item__price {
  margin-left: 20px;
}

.menu-item > div:nth-child(2) {
  font-size: 0.8rem;
  font-style: italic;
}

body > section {
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

h1 {
  margin-bottom: 20px;
}

.scroll-button {
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 50%;
  bottom: -60px;
  box-shadow: var(--box-shadow);
  height: 60px;
  left: calc(50% - 30px);
  opacity: 0;
  position: fixed;
  transition: 1s ease;
  width: 60px;
}

.scroll-button.visible {
  bottom: 20px;
  opacity: 1;
}

@media screen and (min-width: 768px) {
  header {
    padding: 0 60px;
  }

  .background-container {
    height: 240px;
  }
  
  .menu-item {
    margin: 0 60px 30px;
  }
}

@media screen and (max-width: 375px) {
  h2 {
    font-size: 1.4rem;
  }

  .menu-item > div:first-child {
    font-size: 1rem;
  }

  .menu-item > div:nth-child(2) {
    font-size: 0.7rem;
  }
}
