.contenedor {
  position: relative;
  width: 80%;
  min-height: 200vh;
  margin: 0 auto;
  background-color: yellow;
  padding: 20px;
  box-sizing: border-box;
  overflow: auto;
}

.contenedor h1 {
  text-align: left;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.div1 h1,
.div2 h1,
.div3 h1 {
  font-size: 1rem;
  margin: 0 0 10px 0;
}

.div1 {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 30%;
  height: 30%;
  background-color: blue;
  color: white;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.div2 {
  position: absolute;
  top: 60%;
  left: 60%;
  width: 30%;
  height: 30%;
  background-color: green;
  color: white;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
  transform: rotate(20deg);
  object-fit: contain;
}

.div2 img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.div3 {
  position: absolute;
  top: 40%;
  left: 40%;
  width: 30%;
  height: 40%;
  background-color: rgba(128,128,128,0.6);
  color: white;
  padding: 10px;
  box-sizing: border-box;
  overflow: auto;
  word-break: break-word;
  overflow-wrap: break-word;
}
