* {
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
}

body {
  background-color: #f2f2f2;
}

h1 {
  text-align: center;
  margin: 30px 0;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  height: min-content;
  width: 70%;
  margin: auto;
  justify-content: space-around;
}

.flex-item {
  background-color: white;
  border-radius: 10px;
  text-align: center;
  width: 250px;
  overflow: hidden;
  transition: 0.2s;
}

.flex-item > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.flex-item:hover {
  scale: 1.035;
  transition: 0.2s;
}

.flex-item > div {
  padding: 10px;
  border-top: 1px solid #f2f2f2;
  color: black;
}

@media screen and (max-width: 1030px) {
  .flex-container {
    justify-content: space-evenly;
    width: 100%;
  }

  .flex-item {
    width: 200px;
  }

  .flex-item > img {
    height: 160px;
  }
}

@media screen and (max-width: 500px) {
  .flex-container {
    flex-direction: column;
    width: min-content;
    gap: 10px;
  }

  .flex-item {
    width: 70vw;
  }

  .flex-item > img {
    height: 180px;
  }

  h1 {
    width: 70%;
    margin: 30px auto;
  }
}
