@import url("https://fonts.googleapis.com/css?family=IBM+Plex+Mono:400,500,700");
body {
  background: #333135;
  font-family: IBM Plex Mono;
}

.monitor {
  height: 700px;
  width: 900px;
  background: #c1c1aa;
  border-radius: 20px 20px 10px 10px;
  margin: 0 auto 0;
  border-bottom: 2px solid #8a8a8a;
  overflow: hidden;
  position: relative;
  z-index: 20;
}
.monitor .main-screen {
  height: 82%;
  width: 82%;
  background: #b3b3a2;
  margin: 8% auto 0;
  border-radius: 40px;
  overflow: hidden;
}
.monitor .main-screen .lcd {
  background: radial-gradient(circle, #39423b 0%, #0d0d0d 100%);
  width: 96%;
  height: 96%;
  margin: 2% auto;
  border-radius: 60px;
  position: relative;
  overflow: hidden;
}
.monitor .main-screen .lcd:before {
  width: 100%;
  height: 100%;
  position: absolute;
  background: url(https://i.warosu.org/data/g/img/0483/60/1433617253870.png);
  content: "";
  background-size: 100%;
  display: block;
  border-radius: 60px;
  opacity: 0.03;
  -webkit-animation: vsync 2s infinite;
          animation: vsync 2s infinite;
  transition: all 2s linear;
}
.monitor .main-screen .lcd .screen-area {
  padding: 50px;
  color: #586b5d;
  font-size: 18px;
  height: 415px;
  overflow: hidden;
}
.monitor .main-screen .lcd .screen-area .center {
  text-align: center;
}
.monitor .main-screen .lcd .screen-area .commands {
  position: absolute;
  bottom: 50px;
  width: calc(100% - 50px);
}
.monitor .main-screen .lcd .screen-area .commands .left {
  position: absolute;
}
.monitor .main-screen .lcd .screen-area .commands .right {
  right: 50px;
  position: absolute;
}

.bottom {
  height: 80px;
  width: 900px;
  margin: -15px auto 0;
  background: #ccccc0;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
}
.bottom .branding {
  background: #000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border: 2px solid #fff;
  margin-top: 30px;
  border-radius: 5px;
  width: 165px;
  margin-left: 80px;
  color: #fff;
  padding: 5px 15px;
}
.bottom .branding .main {
  font-size: 14px;
  display: inline-block;
  line-height: 20px;
}
.bottom .branding .small {
  font-size: 8px;
}
.bottom .power-button {
  position: absolute;
  top: 13px;
  right: 80px;
  height: 60px;
  border: 2px solid #8a8a8a;
  padding: 5px 25px;
}
.bottom .power-button .led {
  background: #e87676;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
  height: 5px;
  width: 20px;
  margin: 5px auto;
}
.bottom .power-button .label {
  font-size: 12px;
  color: #99a59d;
}

@-webkit-keyframes vsync {
  0% {
    background-position: 0;
  }
  100% {
    background-position: 800px 100px;
  }
}

@keyframes vsync {
  0% {
    background-position: 0;
  }
  100% {
    background-position: 800px 100px;
  }
}

/* Default styling for larger screens */
.monitor {
  height: 700px;
  width: 900px;
}

.bottom {
  height: 80px;
  width: 900px;
}

/* Media query for smaller screens (tablets and below) */
@media (max-width: 768px) {
  .monitor {
    width: 80%;
    height: auto;
    max-width: 600px;
  }

  .monitor .main-screen {
    width: 90%;
    height: auto;
  }

  .monitor .main-screen .lcd .screen-area {
    padding: 30px;
    font-size: 16px;
  }

  .bottom {
    width: 80%;
    height: 60px;
  }

  .bottom .branding {
    width: 120px;
    margin-left: 40px;
  }

  .bottom .power-button {
    right: 40px;
    padding: 5px 15px;
  }
}

/* Media query for mobile screens */
@media (max-width: 480px) {
  .monitor {
    width: 95%;
    height: auto;
    max-width: 400px;
  }

  .monitor .main-screen {
    width: 90%;
    margin: 5% auto 0;
  }

  .monitor .main-screen .lcd .screen-area {
  
    font-size: 14px;
  }

  .bottom {
    width: 95%;
    height: 50px;
  }

  .bottom .branding {
    width: 100px;
    margin-left: 20px;
  }

  .bottom .power-button {
    right: 20px;
    padding: 3px 10px;
  }
}

/* Smaller font sizes for mobile screens */
@media (max-width: 480px) {
  .monitor .main-screen .lcd .screen-area {
    font-size: 12px;
 
  }

  .bottom .branding .main {
    font-size: 12px;
  }

  .bottom .branding .small {
    font-size: 7px;
  }

  .bottom .power-button .label {
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .monitor .main-screen .lcd:before {
    background-size: 150%; /* Adjust background scaling */
  }
}

@media (max-width: 480px) {
  .monitor .main-screen .lcd:before {
    background-size: 200%; /* Further scaling for mobile */
  }
}

@media (max-width: 480px) {
 
  .bottom .power-button {
    right: 10px; /* Adjust power button position */
    padding: 2px 8px;
  }

  .power-button .label {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  .bottom {
    display: none;
  }
  .monitor {
    background: none;
    border: none;
  }

  .main-screen {
    margin: 0;
    background: none;

  }
}