* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  background: linear-gradient(to right, #ff69b4, #0000ff);
}

.container {
  width: 90%;
  max-width: 600px; /* Limit max width for larger screens */
  background-color: aliceblue;
  border-radius: 10px;
  box-shadow: 0 10px 15px rgba(0, 0, 255, 0.4);
  padding: 1.5rem;
}

h1 {
  margin-bottom: 1.5rem;
}

.projects-container {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping of items */
  justify-content: center;
  align-items: center;
  gap: 1.5rem; /* Space between items */
}

.project,
.game {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 150px; /* Limit width of each box */
  flex: 1 1 45%; /* Allow items to grow and shrink */
  transition: transform 0.3s; /* Add transition for hover effects */
}

img {
  width: 100%; /* Full width of the container */
  height: auto; /* Maintain aspect ratio */
  border-radius: 20px;
  cursor: pointer;
}

h3 {
  margin-top: 0.5rem;
}

/* Hover effect on project and game boxes */
.project:hover,
.game:hover {
  transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .container {
    width: 90vw; /* Full width on smaller screens */
  }

  img {
    max-width: 120px; /* Limit image size */
  }

  h1 {
    font-size: 1.8rem; /* Adjust heading size */
  }

  h3 {
    font-size: 1.1rem; /* Adjust heading size */
  }
}

@media (max-width: 480px) {
  .projects-container {
    flex-direction: column; /* Stack items vertically */
  }

  img {
    max-width: 100px; /* Further reduce image size */
  }

  h1 {
    font-size: 1.5rem; /* Smaller title font size */
  }

  h3 {
    font-size: 1rem; /* Smaller heading font size */
  }
}
