.device {
  border-radius: 20px;
  position: relative;
  box-sizing: border-box;
  background: #fff;
  background: var(--color-turq);
  box-shadow: inset 0 4px 7px 1px #fff, inset 0 -5px 20px rgba(173, 186, 204, 0.25), 0 2px 6px rgba(0, 21, 64, 0.14), 0 10px 20px rgba(0, 21, 64, 0.05);
}

.device img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.24);
}

.device::before,
.device::after {
  content: "";
  display: block;
  position: absolute;
  background: #fff;
  background: var(--color-yellow);
  box-shadow: inset 0 4px 7px 1px #fff, inset 0 -5px 20px rgba(173, 186, 204, 0.25), 0 2px 6px rgba(0, 21, 64, 0.14), 0 10px 20px rgba(0, 21, 64, 0.05);
}

.phone {
  padding: 12% 3%;
}

.phone.landscape {
  padding: 1.75% 8%;
}

.tablet {
  padding: 8% 2%;
}

.tablet.landscape {
  padding: 1.12% 6%;
}

.laptop {
  margin-left: 12%;
  margin-right: 12%;
  margin-bottom: 2.5%;
  border-radius: 1vw;
  padding: 1.35%;
}

.desktop {
  margin-bottom: 11%;
  border-radius: 1vw;
  padding: 1.5%;
}

.phone::after {
  border-radius: 50%;
  margin: 0 auto 2%;
  left: 0;
  right: 0;
  bottom: 0;
  width: 10%;
  height: 0;
  padding-top: 10%;
  box-shadow: inset 0 0 5px 1px rgba(0, 0, 0, 0.12);
}

.phone.landscape::after {
  margin: auto 0;
  left: calc(100% - 7%);
  top: 0;
  bottom: 0;
  width: 6%;
  padding-top: 6%;
}

.phone::before {
  border-radius: 50px;
  margin: 5.5% auto 0;
  left: 0;
  right: 0;
  top: 0;
  width: 20%;
  height: 1%;
  box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.12);
}

.phone.landscape::before {
  margin: auto 0 auto 4.5%;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1%;
  height: 20%;
}

.tablet::after {
  border-radius: 50%;
  margin: 0 auto 2%;
  left: 0;
  right: 0;
  bottom: 0;
  width: 6%;
  height: 0;
  padding-top: 6%;
  box-shadow: inset 0 0 5px 1px rgba(0, 0, 0, 0.12);
}

.tablet.landscape::after {
  margin: auto 0;
  left: calc(100% - 5.25%);
  top: 0;
  bottom: 0;
  width: 4.5%;
  padding-top: 4.5%;
}

.tablet::before {
  border-radius: 50%;
  margin: 3.5% auto 0;
  left: 0;
  right: 0;
  top: 0;
  width: 2.25%;
  height: 0;
  padding-top: 2.25%;
  background: #eee;
  box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.12);
}

.tablet.landscape::before {
  margin: auto 0 auto 2.5%;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1.75%;
  padding-top: 1.75%;
}

.laptop::after {
  border-radius: 4px 4px 48px 48px;
  left: -15%;
  bottom: -4%;
  width: 130%;
  height: 7%;
}

.device-collection {
  width: 100%;
  height: 70%;
  align-self: flex-start;
  position: relative;
  -webkit-transform: rotateX(60deg) rotateY(-12deg) rotateZ(0deg) skewY(-12deg) scaleY(1.8);
  transform: rotateX(60deg) rotateY(-12deg) rotateZ(0deg) skewY(-12deg) scaleY(1.8);
}

.device-collection::after {
  content: "";
  display: block;
  /* padding-top: 70%; */
}

.device-collection .phone-container,
.device-collection .tablet-container,
.device-collection .desktop {
  position: absolute;
  bottom: 0;
}

.device-collection .phone,
.device-collection .tablet {
  margin: 0;
}

.device-collection .phone-container {
  left: 10%;
  max-width: 15%;
  z-index: 2;
  bottom: 8%;
}

.device-collection .tablet-container {
  right: 0;
  max-width: 30%;
  z-index: 1;
  transform: scaleX(.85);
}

.device-collection .desktop {
  left: 0;
  right: 0;
  margin: 0 5% 6%;
  transform: scaleX(.7);
}

@media (max-width: 800px) {
  .device-collection .device {
    border-radius: 1vw;
  }
  .device-collection {
    margin-top: 20%;
    height: 60%;
  }
  .device-collection .phone-container {
    left: 0;
    top: 10%;
    max-width: 35%;
  }
  .device-collection .tablet-container {
    top: 0;
    max-width: 60%;
    z-index: 0;
  }
  .device-collection .desktop {
    transform: scale(1.2);
    right: 10%;
  }
}
.ten-bg {
  margin: 0;
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  flex-flow: row wrap;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  align-items: center;
}
.device-collection {
  max-width: 100%;
  margin: 10%;
}

/* General layout and typography stuff */
.device-collection * {
  box-sizing: border-box;
  position: relative;
}
.device {
    transition: box-shadow 0.3s ease-in-out;
}

