h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

a {
  text-decoration: none;
  color: currentColor;
}

img {
  display: block;
  width: 100%;
}

.parent {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 800px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 30px;
  outline: 1px solid tomato;
}

.child {
  width: 350px;
  height: 200px;
  outline: 1px solid rgba(159, 156, 156, 0.8);
}

.child:nth-child(1) {
  background-image: url('../images/cat.png');
  background-repeat: no-repeat;
  background-position: center;
}

.child:nth-child(2) {
  background-image: url('../images/dog.png');
  background-repeat: repeat-x;
}

.child:nth-child(3) {
  background-image: url('../images/pig.png');
  background-repeat: repeat-y;
}

.child:nth-child(4) {
  background-image: url('../images/unicorn.png');
}

.container {
  width: 400px;
  margin-right: auto;
  margin-left: auto;
  padding: 10px;
  outline: 1px solid teal;
}

.title::before {
  display: inline-block;
  content: '';
  width: 100%;
  height: 120px;
  background-color: rgba(159, 156, 156, 0.8);
  background-image: url('../images/cat.png');
  background-repeat: no-repeat;
  background-position: center;
}

.btn {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;

  width: 150px;
  padding: 15px;
  border: 1px solid rgb(47, 255, 252);
  border-radius: 5px;
}

.btn::before {
  content: '';
  display: inline-block;
  margin-right: 10px;
  width: 20px;
  height: 20px;
  background-color: rgb(156, 145, 167);
  background-image: url('../images/pig.png');
  background-size: contain;
}

.thumb {
  max-width: 800px;
  height: 300px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 40px;
  background-image:
    linear-gradient(to right, rgba(255, 0, 0, 0.2), rgba(0, 0, 255, 0.5)),
    url('https://blog.gale.com/wp-content/uploads/2024/07/iStock-1693812103.jpg');
  background-position: center;
}
