.gameboy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  padding: 20px;
  background-color: #4f50db;
  box-shadow: 0px -5px 0px #0d0e51, 0px 5px 0px #3d38b5;
  font-family: sans-serif;
  -webkit-user-select: none;
  cursor: default;
}

.gameboy::after {
  content: "";
  display: block;
  position: absolute;
  top: calc(100% - 34px);
  left: 5px;
  width: calc(100% - 10px);
  height: 50px;
  border-radius: 50%;
  background-color: #4f50db;
  box-shadow: 0px 5px 0px #3d38b5;
  border-bottom: 2px solid #9998eb;
}

@media (min-width: 1000px) {
  .gameboy::after {
    display: none;
  }
}

.gameboy .display-section {
  width: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;

  @media (min-width: 1000px) {
    height: 100%;
  }
}

.gameboy .control-section {
  width: 100%;
  min-height: 250px;

  @media (min-width: 1000px) {
    display: none;
  }
}

.gameboy .screen-area {
  position: relative;
  padding: 35px 50px 5px 50px;
  border-radius: 15px 15px 15px 15px;
  background-color: #23252d;
  color: #67879a;
  box-shadow: 0px 2px 0px black, 0px -2px 0px black, -2px 0px 0px black,
    2px 0px 0px black;

  @media (min-width: 1000px) {
    flex: 1;
  }
}
.gameboy .screen-area::after {
  content: "";
  display: block;
  position: absolute;
  top: calc(100% - 20px);
  left: 5px;
  width: calc(100% - 10px);
  height: 30px;
  border-radius: 50%;
  background-color: #23252d;
  box-shadow: 0px 2px 0px black;
}
.gameboy .screen-area .power {
  position: absolute;
  display: block;
  width: 50px;
  left: 0px;
  top: 33%;
  font-size: 10px;
  color: #67879a;
  letter-spacing: -0.5px;
  text-align: center;
}
.gameboy .screen-area .power .indicator {
  line-height: 14px;
}
.gameboy .screen-area .power .indicator .led {
  position: relative;
  display: inline-block;
  background-color: #ca1a21;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0px 0px 10px #ff552e;
  z-index: 5;
}
.gameboy .screen-area .power .indicator .arc {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: -2px;
}
.gameboy .screen-area .power .indicator .arc::before {
  position: absolute;
  left: 3px;
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #67879a;
}
.gameboy .screen-area .power .indicator .arc::after {
  position: absolute;
  left: 0px;
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #23252d;
}
.gameboy .screen-area .display {
  position: relative;
  background-color: black;
  height: 190px;
  width: 100%;
  border-radius: 3px;
  margin-bottom: 15px;
  overflow: hidden;

  @media (min-width: 1000px) {
    height: calc(100% - 45px);
  }
}
.gameboy .screen-area .label {
  position: relative;
  text-align: center;
  font-size: 20px;
  z-index: 5;
}
.gameboy .screen-area .label .title {
  display: inline;
  font-weight: bold;
  font-style: italic;
  color: #67879a;
  font-size: 20px;
  margin-right: 6px;
}
.gameboy .screen-area .label .subtitle {
  display: inline;
  font-family: "Comic Sans MS";
  font-weight: bold;
  font-size: 22px;
  letter-spacing: -1px;
}
.gameboy .screen-area .label .subtitle .c,
.gameboy .screen-area .label .subtitle .o1,
.gameboy .screen-area .label .subtitle .l,
.gameboy .screen-area .label .subtitle .o2,
.gameboy .screen-area .label .subtitle .r {
  display: inline-block;
}
.gameboy .screen-area .label .subtitle .c {
  color: #aa2058;
  font-size: 22px;
}
.gameboy .screen-area .label .subtitle .o1 {
  color: #605bd9;
  font-size: 20px;
}
.gameboy .screen-area .label .subtitle .l {
  color: #78b930;
  font-size: 22px;
  transform: rotateZ(-10deg);
}
.gameboy .screen-area .label .subtitle .o2 {
  color: #b6b524;
  font-size: 20px;
}
.gameboy .screen-area .label .subtitle .r {
  color: #317aaf;
  font-size: 22px;
}
.gameboy .nintendo {
  padding: 0px 5px;
  width: 82px;
  color: #3436bf;
  font-weight: bold;
  text-align: center;
  margin: 0 auto;
  border: 2px solid #3436bf;
  border-radius: 11px;
  margin-top: 30px;
  text-shadow: 0px -2px 1px #6b67ed;
  box-shadow: 0px -2px 1px #6b67ed;
  font-size: 16px;
}
.gameboy .controls {
  display: flex;
  justify-content: space-between;
}
.gameboy .controls .dpad {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 90px;
  z-index: 5;
}
.gameboy .controls .dpad > * {
  width: 33%;
  height: 33%;
  position: absolute;
  background-color: #565e6a;
  cursor: pointer;
}
.gameboy .controls .dpad > * i {
  position: relative;
  display: block;
  margin: 0 auto;
  text-align: center;
  height: 100%;
  font-size: 25px;
  color: #333a4a;
  text-shadow: 0px -0.5px 0px #aaa;
}
.gameboy .controls .dpad .up {
  top: calc(0% + 4px);
  left: 33%;
  border-top: 4px solid black;
  border-left: 4px solid black;
  border-right: 4px solid black;
  border-radius: 5px 5px 0px 0px;
}
.gameboy .controls .dpad .up:active {
  background: linear-gradient(to top, #565e6a 0%, #333 100%);
}
.gameboy .controls .dpad .up i {
  top: 0px;
  font-size: 25px;
}
.gameboy .controls .dpad .right {
  top: 33%;
  left: calc(66% - 4px);
  border-top: 4px solid black;
  border-bottom: 4px solid black;
  border-right: 4px solid black;
  border-radius: 0px 5px 5px 0px;
  box-shadow: 0px -2px 0px #888 inset;
}
.gameboy .controls .dpad .right:active {
  background: linear-gradient(to right, #565e6a 0%, #333 100%);
}
.gameboy .controls .dpad .right i {
  top: -2px;
  font-size: 25px;
}
.gameboy .controls .dpad .down {
  top: calc(66% - 4px);
  left: 33%;
  border-left: 4px solid black;
  border-bottom: 4px solid black;
  border-right: 4px solid black;
  border-radius: 0px 0px 5px 5px;
  box-shadow: 0px -2px 0px #888 inset;
}
.gameboy .controls .dpad .down:active {
  background: linear-gradient(to bottom, #565e6a 0%, #333 100%);
}
.gameboy .controls .dpad .left {
  top: 33%;
  left: calc(0% + 4px);
  border-top: 4px solid black;
  border-bottom: 4px solid black;
  border-left: 4px solid black;
  border-radius: 5px 0px 0px 5px;
  box-shadow: 0px -2px 0px #888 inset;
}
.gameboy .controls .dpad .left i {
  top: -2px;
  font-size: 25px;
}
.gameboy .controls .dpad .left:active {
  background: linear-gradient(to left, #565e6a 0%, #333 100%);
}
.gameboy .controls .dpad .middle {
  top: 33%;
  left: 33%;
  z-index: -5;
}
.gameboy .controls .dpad .middle::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 20%;
  display: inline-block;
  border: 1px solid #6e737a;
  background: linear-gradient(
    to bottom,
    #6d7075 0%,
    #6d7075 30%,
    #23272f 70%,
    #23272f 100%
  );
  border-radius: 50%;
  height: 60%;
  width: 60%;
}
.gameboy .controls .dpad .up-down {
  background-color: #565e6a;
  border: 4px solid black;
  border-radius: 5px;
  width: 20px;
  height: 60px;
}
.gameboy .controls .dpad .left-right {
  background-color: #565e6a;
  border: 4px solid black;
  border-radius: 5px;
  width: 60px;
  height: 20px;
}
.gameboy .controls .a-b {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 90px;
}
.gameboy .controls .a-b .a,
.gameboy .controls .a-b .b {
  position: absolute;
  display: inline-block;
  font-size: 22px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background-color: #2c313e;
  border-bottom: 2px solid #888;
  box-shadow: -1px 1px 5px black, 0px 0px 5px black inset;
  text-shadow: 0px -1px 1px #888;
  color: #2c313e;
  text-align: center;
  -webkit-user-select: none;
  cursor: pointer;
  transition: box-shadow 0.1s ease-out, border 0.1s ease-out,
    line-height 0.2s ease-out;
}
.gameboy .controls .a-b .a:active,
.gameboy .controls .a-b .b:active {
  box-shadow: -1px 1px 1px black, 0px 0px 5px black inset;
  border-width: 0px;
  line-height: 45px;
}
.gameboy .controls .a-b .a {
  top: 15px;
  right: 10px;
}
.gameboy .controls .a-b .b {
  top: 35px;
  left: 0%;
}
.gameboy .start-select {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
}
.gameboy .start-select .select,
.gameboy .start-select .start {
  display: inline-block;
  color: #6b67ed;
  text-shadow: 0px -1px 0px #3436bf;
  letter-spacing: -1px;
  width: 60px;
  font-size: 16px;
  text-align: center;
  margin-top: 60px;
}
.gameboy .start-select .select::before,
.gameboy .start-select .start::before {
  content: "";
  display: block;
  margin: 0 auto;
  width: 30px;
  height: 10px;
  margin-bottom: 5px;
  border-radius: 40%;
  background: linear-gradient(
    to bottom,
    #0b0a1c 0%,
    #0b0a1c 30%,
    #62636c 70%,
    #62636c 100%
  );
  background-repeat: no-repeat;
  border: 2px solid #0b0a1c;
  box-shadow: 0px -2px 1px #8482e9;
  cursor: pointer;
}
.gameboy .start-select .select:active::before,
.gameboy .start-select .start:active::before {
  background: linear-gradient(to bottom, #0b0a1c 0%, #0b0a1c 50%, #62636c 100%);
}
.gameboy .speaker {
  position: absolute;
  display: flex;
  width: 75px;
  height: 75px;
  right: 15px;
  bottom: 5px;
  justify-content: space-between;
  flex-wrap: wrap;
  z-index: 100;
  transform: skewY(-10deg);

  @media (min-width: 1000px) {
    display: none;
  }
}
.gameboy .speaker .dot {
  width: 7px;
  height: 7px;
  margin: 1px;
  border-radius: 50%;
}
.gameboy .speaker .dot.placeholder {
  background-color: transparent;
}
.gameboy .speaker .dot.open {
  background-color: #0a0717;
  box-shadow: 0px 0px 2px #7c7be0 inset;
}
.gameboy .speaker .dot.closed {
  background: linear-gradient(to bottom, #6664e5 0%, #2d3590 100%);
  box-shadow: 0px 0px 2px #7c7be0 inset;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
}

.gameboy {
  margin: 0 auto;
}
