<div class="wrapper">
  <div class="container">
    <div class="element"></div>
  </div>
</div>

<div class="container">
  <div class="element"></div>
</div>
@import url("https://fonts.googleapis.com/css?family=Gochi+Hand");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  background-color: #291642;
  font-family: "Gochi Hand", sans-serif;
  font-size: 100%;
  letter-spacing: 0.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background-blend-mode: hue;
}

.wrapper {
  width: 40vw;
  height: 40vh;
  box-shadow: 0 0 0 1px #f36;
  position: relative;
}

.container {
  width: 30vw;
  height: 30vh;
  box-shadow: 0 0 0 1px #09f;
  position: relative;
  margin: 3vh;
}

.wrapper .container {
  position: static;
  margin: 0;
}

.element {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 20vw;
  height: 10vh;
  background-color: #f09;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.