.flex-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

@media only screen and (max-width: 767px) {
  .flex-container {
    flex-wrap: wrap;
  }
}

.flex-item {
  flex: 1 1 auto;
}