img {
  max-width: 100%;
}

.basic {
  width: min(100%, 300px);
  height: 200px;
  background-color: #f49292;
  overflow: auto;
  resize: both;
}
.basic img {
  max-width: 100%;
  height: auto;
  border: solid 6px blue;
}

.pseudo {
  width: 400px;
  height: 200px;
  font-size: 2em;
  font-weight: bold;
  color: #444;
  padding: 1em;
  text-align: right;
  margin-block: auto;
  color: #333;
  background-color: #88cb8e;
}

.attempt-1::before {
  content: url(face.svg);
  width: 300px;
  height: 200px;
}

.attempt-2::before {
  content: "";
  background-image: url(face.svg);
  background-size: contain;
  width: 300px;
  height: 200px;
}

.attempt-3::before {
  content: "";
  background-color: pink;
  background-image: url(face.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 1em 10px;
  display: block;
  width: 100%;
  height: 100%;
}

.attempt-4 {
  position: relative;
}
.attempt-4:hover::before {
  background-color: transparent;
}

.attempt-4::before {
  content: "";
  background-color: rgba(254, 179, 191, 0.75);
  background-image: url(face.svg);
  background-size: 150px;
  background-repeat: no-repeat;
  background-position: 0.25em 15px;
  position: absolute;
  inset: 0;
  display: block;
  transition: background 0.5s ease-out;
}

.code-file {
  display: none;
  scale: 1 0;
  transform-origin: top center;
  transition: 0.5s ease-in;
  transition-property: overlay display scale;
  transition-behavior: allow-discrete;
}

.show-code {
  scale: 1 1;
  display: block;
}
@starting-style {
  .show-code {
    scale: 1 0;
  }
}

.recap-list li {
  margin-bottom: 1em;
}