*{
  box-sizing: border-box;

}
html {
  font-family: "W95FA", sans-serif;
}
body {
  
  display: flex;
  justify-content: center;

  background-image: url("tiled_bricks.png");
  background-repeat: repeat;
  background-size: 55%;
}
/* 1. Create a positioning context for the layers */
.monitor-container {
  position: relative;
  display: inline-block; /* Fits the size of the image */
  width: 100%;
  max-width: 1000px; /* Adjust based on your image size */
}

/* 2. Ensure the frame sits on top and dictates the size */
.monitor-frame {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 4; /* Sits on top of the content */
  pointer-events: none; /* Allows users to click elements behind the frame */
}

/* 3. Position the content behind the transparent cutout */
.monitor-content {
  position: absolute;
  z-index: 1; /* Sits behind the monitor frame */

  /* Tweak these percentages to align perfectly with your PNG's cutout */
  top: 6%;
  left: 10%;
  width: 82%;
  height: 46%;

  /* Optional: handle content overflow and styling */
  overflow: auto;
  /* force scrollbar */
  overflow: scroll;
  background: #008080; /* Screen background color */
  color: #fff;
  padding: 3%;
  text-align: center;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Creates 3 equal-width columns */
  gap: 20px; /* Adds spacing between columns */
}

.button-grid {
  display: flex;
  flex-wrap: wrap; /* Allows buttons to wrap to the next line on mobile */
  gap: 5px;
  align-items: center;
}

.gallery img {
  display: block;
  width: 70%;
  height: auto;
  margin: 2% auto;
  cursor: zoom-in;
}



.color-changer {
  /* animation: name duration timing-function loop */
  animation: changeColor 5s ease infinite;
}

@keyframes changeColor {
  0% { color: paleturquoise; }
  33% { color: mediumturquoise; }
  66% {color:mediumturquoise;}
  100% { color: paleturquoise; } /* Ends with red for a smooth loop */
}

@media screen and (max-width: 768px) {
  body{
    padding-top:30%;
  }
  .monitor-frame{
    position:relative;
    max-width: none;
    width: 130%;
    left: -15%;
  }
  .monitor-container{
    max-width: 1200px;
  }
  .monitor-content {
    padding: 4%;
    left: -2%;
    width: 105%;
   
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .gallery {
    display: flex;
    flex-direction: row;
    gap: 5px;
  }

  .gallery img {
    width: 60%;
  }

  iframe {
    height: 80px;
  }
}
