@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Yusei+Magic&display=swap');

:root {
  font-size: clamp(16px, calc(14px + 1vw), 24px);
  font-family: 'Open Sans', sans-serif;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  background: url(images/background.png);
}

a {
  cursor: pointer;
}

h1,
h2 {
  font-family: 'Yusei Magic', sans-serif;
  text-align: center;
}

#home {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  background: url(images/home.png) no-repeat center top / cover;
}

#home h1 {
  font-size: 1.5rem;
  width: 16ch;
  background-color: hsla(0, 0%, 100%, 0.6);
  padding: 1em 0.7em;
  margin: 0;
  border-radius: 50%;
  border: 3px solid black;
  backdrop-filter: blur(2px);
}

nav {
  display: flex;
  position: absolute;
  width: 100%;
  height: 4rem;
  bottom: 0;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  width: 5rem;
  position: absolute;
  left: calc(50vw - 2.5rem);
  bottom: 0.5rem;
  transform: scale(1);
  transition: transform 0.2s ease-in-out;
}

img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.nav-link {
  font-family: 'Yusei Magic', sans-serif;
  text-decoration: none;
  text-transform: lowercase;
  text-align: center;
  color: black;
  padding: 0.25rem 0.75rem 0.45rem;
  background-color: hsla(40.9, 86.8%, 85.1%, 0.85);
  border: 0.15rem solid hsla(24.1, 50.9%, 43.1%, 0.85);
  border-radius: 0.5rem;
  width: 5rem;
  backdrop-filter: blur(2px);
  transform: scale(1);
  transition: transform 0.2s ease-in-out;
}

.logo:hover,
.logo:focus,
.nav-link:hover,
.nav-link:focus {
  transform: scale(1.1);
}

#menu,
#contact {
  display: none;
  flex-direction: column;
  width: calc(100% - 1rem);
  height: calc(100vh - 4.5rem);
  margin: 0.5rem 0.5rem 4rem;
  padding: 0.5rem 0.5rem 1.5rem;
  background-color: hsla(0, 0%, 100%, 0.6);
  backdrop-filter: blur(2px);
  border-radius: 0.5rem;
}

#menu {
  overflow: scroll;
  scrollbar-width: none;
  gap: 1rem;
}

#menu section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 0.5rem;
}

#menu section:last-child {
  border-bottom: 1rem solid transparent;
}

#menu h1 {
  font-size: 1.6rem;
  text-align: center;
  text-transform: uppercase;
  margin: 0;
  padding: 0.3rem 0 0.4rem;
  color: white;
  background-color: hsl(357.7, 85.3%, 52%);
  border-radius: 0.5rem;
}

#menu article {
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: white;
}

#menu h2 {
  flex-basis: 100%;
  text-transform: lowercase;
  border-bottom: 0.05rem solid black;
}

#menu h3 {
  padding: 0 1rem;
  margin-top: 1rem;
}

#menu p {
  padding: 1rem;
}

#contact {
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

#contact h1 {
  margin: 0;
}

#contact p,
#contact a {
  text-align: center;
  max-width: 60ch;
}

#contact .credit {
  color: hsl(0, 0%, 14%);
  font-size: 0.6rem;
  text-decoration: none;
}

@media screen and (min-width: 400px) {
  #menu section {
    justify-content: space-evenly;
  }

  #menu article {
    flex-basis: 350px;
  }
}

@media screen and (min-width: 600px) {
  #menu article {
    flex-basis: 35vw;
  }
}

@media screen and (min-width: 750px) {
  nav {
    max-width: 8rem;
    top: 0;
    justify-content: start;
    align-items: flex-start;
    flex-direction: column;
    padding: 6rem 0.5rem;
    gap: 0.5rem;
  }

  .logo {
    left: 0.5rem;
    bottom: initial;
    top: 0.5rem;
  }

  #menu,
  #contact {
    max-width: calc(100% - 6.5rem);
    height: calc(100vh - 1rem);
    margin: 0.5rem 0.5rem 0.5rem auto;
  }
}

@media screen and (min-width: 1000px) {
  #content {
    max-width: 1400px;
    margin: 0 auto;
  }

  #menu article {
    flex-basis: 350px;
  }
}
