body {
  margin: 0;
}

header {
  height: 80px;
  background-color: #0e65c2;
  color: white;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 20px;
  box-sizing: border-box;
}

nav {
  grid-column: 2/4;
  display: flex;
  align-items: center;
}

ul {
  flex-grow: 1;
  display: flex;
  list-style: none;
  justify-content: space-around;
}

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

.header-buttons {
  grid-column: 4/5;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.signup {
  background-color: orange;
  border-radius: 10px;
  padding: 5px 20px;
}

.container {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(300px, 1fr);
}

.widget {
  border: 1px solid lightblue;
  padding: 20px;
  margin-top: -1px;
  margin-left: -1px;
}

.widget-avatar {
  width: 80px;
}

@media (max-width: 500px) {
  header {
    grid-template-columns: 1fr;
    height: auto;
  }

  nav,
  .header-buttons {
    grid-column: unset;
  }

  h1,
  ul {
    text-align: center;
  }

  ul {
    display: block;
    padding: 0;
  }

  .header-buttons {
    justify-content: center;
  }

  .container {
    grid-template-columns: 1fr;
  }
}
