@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");

body {
  font-family: Roboto, sans-serif;
}

/* ===== LAYOUT ===== */
header, main, footer {
  max-width: 1000px;
  margin: 1rem auto;
  padding: 1rem;
  border: 1px solid #ccc;
  background-color: lightblue;
}

/* ===== HEADER ===== */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

h1 {
  margin: 0;
  font-size: 1.5rem;
}

/* ===== NAV ===== */
nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

nav a {
  padding: 1rem;
  text-decoration: none;
  color: black;
}

nav a:hover {
  color: #555;
}

.hide {
  display: none;
}

/* ===== MENU BUTTON ===== */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 30px;
  height: 4px;
  background-color: black;
  margin: 6px 0;
  transition: 0.4s;
}

/* Animation */
.change .bar1 {
  transform: translate(0, 10px) rotate(-45deg);
}
.change .bar2 {
  opacity: 0;
}
.change .bar3 {
  transform: translate(0, -10px) rotate(45deg);
}

/* ===== MAIN ===== */
section {
  background: white;
  padding: 1rem;
  margin: 1rem;
  border: 1px solid #ccc;
}

/* ===== DESKTOP ===== */
@media (min-width: 700px) {
  .menu-btn {
    display: none;
  }

  nav {
    display: flex !important;
    width: auto;
    flex-direction: row;
  }

  main {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  main {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

footer {
  text-align: center;
}
