<div class="grid__container">
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></div>
  <div class="grid__item"></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;
  padding: 2vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

.grid__container {
  inline-size: 50vw;
  border-radius: 5px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s ease;

  overflow: hidden;
  resize: horizontal;

  background-image: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.5)
  );
  backdrop-filter: blur(3px);
}

.grid__item {
  background-color: rgba(200, 200, 255, 0.3);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1), 0 20px 20px rgba(0, 0, 0, 0.05);
  min-block-size: 10vh;
}

.grid__container {
  padding: 1em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 1em;
  grid-auto-flow: dense;
}

.grid__item:nth-child(1) {
  grid-column: 1 / -1;
  background: rgba(255, 200, 255, 0.3);
}

.grid__item:nth-child(3) {
  grid-column: span 5;
  grid-row: span 2;
  background: rgba(255, 200, 255, 0.3);
}

.grid__item:nth-child(5) {
  grid-column: span 5;
  background: rgba(255, 200, 255, 0.3);
}

.grid__item:nth-child(7) {
  grid-column: span 3;
}

.grid__item:nth-child(8) {
  grid-column: -3 / -1;
}

.grid__item:nth-child(12) {
  grid-column: 1 / -2;
  background: rgba(255, 200, 255, 0.3);
}

.grid__item:nth-last-child(8) {
  grid-row: span 2;
  background: rgba(255, 200, 255, 0.3);
}

.grid__item:nth-last-child(4) {
  grid-column: span 4;
  background: rgba(255, 200, 255, 0.3);
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.