/*! Devices.css v0.2.0 | MIT License | github.com/picturepan2/devices.css */
.device,
.device::before,
.device::after,
.device *,
.device *::before,
.device *::after {
  box-sizing: border-box;
  display: block;
}

.device {
  position: relative;
  transform: scale(1);
  z-index: 1;
  margin: 0 auto;
}

.device .device-frame {
  z-index: 1;
  position: relative;
}

.device .device-screen {
  background-color: #000;
  background-position: center center;
  background-size: cover;
  object-fit: cover;
  position: relative;
}

/* iPad Pro */
.device-ipad-pro {
  height: 778px;
  width: 560px;
}

.device-ipad-pro.landscape {
  height: 560px;
  width: 778px;
}

.device-ipad-pro .device-frame {
  background: #0d0d0d;
  border-radius: 36px;
  box-shadow: 
    inset 0 0 0 1px #babdbf, 
    inset 0 0 1px 3px #e2e3e4, 
    0 30px 60px rgba(0,0,0,0.3),
    0 10px 20px rgba(0,0,0,0.2);
  height: 778px;
  padding: 27px;
  width: 560px;
}

.device-ipad-pro.landscape .device-frame {
  height: 560px;
  padding: 27px;
  width: 778px;
}

.device-ipad-pro .device-screen {
  border: 2px solid #121212;
  border-radius: 11px;
  height: 724px;
  width: 506px;
}

.device-ipad-pro.landscape .device-screen {
  height: 506px;
  width: 724px;
}

.device-ipad-pro .device-btns::after,
.device-ipad-pro .device-btns::before {
  background: #babdbf;
  content: "";
  position: absolute;
}

.device-ipad-pro .device-btns::after {
  height: 2px;
  right: 40px;
  top: -2px;
  width: 36px;
}

.device-ipad-pro.landscape .device-btns::after {
  height: 36px;
  right: -2px;
  top: 40px;
  width: 2px;
}

.device-ipad-pro .device-btns::before {
  box-shadow: 0 37px #babdbf;
  height: 32px;
  right: -2px;
  top: 63px;
  width: 2px;
}

.device-ipad-pro.landscape .device-btns::before {
  box-shadow: 37px 0 #babdbf;
  height: 2px;
  right: 63px;
  top: -2px;
  width: 32px;
}

.device-ipad-pro .device-sensors::after,
.device-ipad-pro .device-sensors::before {
  content: "";
  position: absolute;
}

.device-ipad-pro .device-sensors::after {
  background: #1a1a1a;
  border-radius: 17px;
  box-shadow: -20px 0 #1a1a1a, 70px 0 #1a1a1a;
  height: 10px;
  left: 50%;
  margin-left: -30px;
  top: 12px;
  width: 10px;
}

.device-ipad-pro.landscape .device-sensors::after {
  box-shadow: 0 -20px #1a1a1a, 0 70px #1a1a1a;
  height: 10px;
  left: 12px;
  margin-left: 0;
  margin-top: -30px;
  top: 50%;
  width: 10px;
}

.device-ipad-pro .device-sensors::before {
  background: radial-gradient(farthest-corner at 20% 20%, #6074bf 0, transparent 40%), radial-gradient(farthest-corner at 80% 80%, #513785 0, #24555e 20%, transparent 50%);
  border-radius: 50%;
  box-shadow: 0 0 1px 1px rgba(255, 255, 255, .05);
  height: 6px;
  left: 50%;
  margin-left: -3px;
  top: 14px;
  width: 6px;
}

.device-ipad-pro.landscape .device-sensors::before {
  left: 14px;
  margin-left: 0;
  margin-top: -3px;
  top: 50%;
}

.device-ipad-pro.device-spacegray .device-frame {
  box-shadow: inset 0 0 0 1px #6a6d70, inset 0 0 1px 3px #83878a, 0 20px 40px rgba(0,0,0,0.3);
}

.device-ipad-pro.device-spacegray .device-btns::after,
.device-ipad-pro.device-spacegray .device-btns::before {
  background: #6a6d70;
}

.device-ipad-pro.device-spacegray .device-btns::before {
  box-shadow: 0 37px #6a6d70;
}

/* MacBook Pro */
.device-macbook-pro {
  height: 434px;
  width: 740px;
}

.device-macbook-pro .device-frame {
  background: #0d0d0d;
  border-radius: 20px;
  box-shadow: inset 0 0 0 2px #c8cacb;
  height: 418px;
  margin: 0 auto;
  padding: 9px 9px 23px 9px;
  position: relative;
  width: 618px;
}

.device-macbook-pro .device-frame::after {
  background: linear-gradient(to bottom, #272727, #0d0d0d);
  border-radius: 0 0 20px 20px;
  bottom: 2px;
  content: "";
  height: 24px;
  left: 2px;
  position: absolute;
  width: 614px;
}

.device-macbook-pro .device-header {
  background: #0d0d0d;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  height: 12px;
  left: 50%;
  margin-left: -32px;
  position: absolute;
  top: 11px;
  width: 64px;
  z-index: 2;
}

.device-macbook-pro .device-header::after,
.device-macbook-pro .device-header::before {
  content: "";
  height: 4px;
  position: absolute;
  top: 0;
  width: 4px;
}

.device-macbook-pro .device-header::after {
  background: radial-gradient(circle at bottom left, transparent 0, transparent 75%, #0d0d0d 75%, #0d0d0d 100%);
  left: -4px;
}

.device-macbook-pro .device-header::before {
  background: radial-gradient(circle at bottom right, transparent 0, transparent 75%, #0d0d0d 75%, #0d0d0d 100%);
  right: -4px;
}

.device-macbook-pro .device-screen {
  border: 2px solid #121212;
  border-radius: 10px 10px 0 0;
  height: 375px;
  width: 600px;
}

.device-macbook-pro .device-power {
  background: radial-gradient(circle at center, #e2e3e4 85%, #c8cacb 100%);
  border: solid #a0a3a7;
  border-radius: 2px 2px 12px 12px;
  border-width: 1px 2px 0 2px;
  box-shadow: inset 0 -2px 8px 0 #6c7074;
  height: 24px;
  margin-top: -10px;
  position: relative;
  width: 740px;
  z-index: 9;
}

.device-macbook-pro .device-power::after {
  background: #e2e3e4;
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 0 4px 2px #babdbf;
  content: "";
  height: 10px;
  left: 50%;
  margin-left: -60px;
  position: absolute;
  top: 0;
  width: 120px;
}

.device-macbook-pro .device-power::before {
  background: transparent;
  border-radius: 0 0 3px 3px;
  bottom: -2px;
  box-shadow: -300px 0 #272727, 300px 0 #272727;
  content: "";
  height: 2px;
  left: 50%;
  margin-left: -20px;
  position: absolute;
  width: 40px;
}

.device-macbook-pro.device-spacegray .device-frame {
  box-shadow: inset 0 0 0 2px #767a7d;
}

.device-macbook-pro.device-spacegray .device-power {
  background: radial-gradient(circle at center, #83878a 85%, #767a7d 100%);
  border-color: #454749;
  box-shadow: inset 0 -2px 8px 0 #202121;
}

.device-macbook-pro.device-spacegray .device-power::after {
  background: #b7babc;
  box-shadow: inset 0 0 4px 2px #6a6d70;
}
