/*
Modified from W3 Schools' "Device Look" tutorial

https://www.w3schools.com/howto/howto_css_devices.asp
*/

/* The device with borders */
.smartphone {
  position: relative;
  width: 30vw;
  height: 65vh;
  margin: auto;
  border: 16px black solid;
  border-top-width: 60px;
  border-bottom-width: 100px;
  border-radius: 36px;
}

/* The horizontal line on the top of the device */
.smartphone:before {
  content: "";
  display: block;
  width: 60px;
  height: 5px;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #333;
  border-radius: 10px;
}

/* The circle on the bottom of the device */
.smartphone:after {
  content: "";
  display: block;
  width: 35px;
  height: 35px;
  position: absolute;
  left: 50%;
  bottom: -90px;
  transform: translate(-50%, -50%);
  background: #333;
  border-radius: 50%;
}

/* The screen (or content) of the device */
.smartphone .content {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;

  color: white;
  background-color: #333;
}

@media screen and (max-width: 600px) {
    .smartphone {
        position: relative;
        width: 75vw;
        height: 50vh;
        margin: auto;
      }
}