body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 10px;
  margin: 0 auto; /* Center the main content horizontally and add equal margins on left and right */
  max-width: 800px; /* Set a maximum width to prevent it from stretching too wide on larger screens */
}

h1 {
  color: hsl(229, 6%, 66%);
  font-size: 1.3em;
}

h2 {
  font-size: 1.6em;
  color: hsl(234, 12%, 34%);
}

p {
  color: hsl(229, 6%, 66%);
  font-size: 0.9em;
}

.card-section {
  display: flex;
  justify-content: center;
  max-width: 800px; /* Limit the width of card section */
  margin-top: -20px; /* Add space above card section */
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 20px;
  padding: 20px;
  width: 300px;
  text-align: left;
  display: inline-block;
  vertical-align: top;
}

.card h3 {
  color: hsl(234, 12%, 34%);
  margin-top: 0;
}

.middle-section {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center items horizontally in middle section */
  max-width: 800px; /* Limit the width of middle section */
  margin-top: 40px; /* Add more space above middle section */
}

.supervisor, .calculator {
  margin-top: 140px; /* Large margin for big screens */
  margin-bottom: 140px; /* Large margin for big screens */
}

.card img {
  width: 50px;
  height: 50px;
  margin-top: 10px;
  margin-left: 240px; /* Adjust for smaller screens in media query */
}

@media (max-width: 768px) {
  main {
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin: 0 10px;
  }

  .card-section {
    flex-direction: column;
    align-items: center;
    margin-top: 10px; /* Reduce margin for smaller screens */
  }

  .card {
    width: 90%;
    margin: 10px 0;
  }

  .middle-section {
    margin-top: 20px; /* Reduce margin for smaller screens */
  }

  .card img {
    margin-left: 300px; /* Center image in card for smaller screens */
  }

  .supervisor, .calculator {
    margin-top: 20px; /* Reduce margin for smaller screens */
    margin-bottom: 20px; /* Reduce margin for smaller screens */
  }
}
