/* CSS Reset - normalize spacing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body base styles */
body {
  font-family: Serif, sans-serif;
  padding: 30px;
  line-height: 1.6;
  background-color: #00FFFF;
}

/* Header styling */
header {
  text-align: center;
  margin-bottom: 30px;
}

/* Grid layout: desktop specific */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

/* Grid items */
.grid-layout .item {
  background-color: #FAEBD7;
  padding: 20px;
  border: 4px solid #444;
  text-align: center;
}

/* Image and text */
.image-text {
  text-align: center;
}

.image-text img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 40px;
  color: #555;
}

/* Media Query: tablet specific */
@media (max-width: 768px) {
  /* 2 column grid for tablets */
  .grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  body {
    background-color: #e3f2fd; /* lighter background on tablet */
  }
}

/* Media Query: smartphone specifc */
@media (max-width: 480px) {
  /* 1 column grid for smartphones */
  .grid-layout {
    grid-template-columns: 1fr;
  }

  body {
    background-color: #fffde7; /* lighter background available on phone */
  }

  header h1 {
    font-size: 1.4rem;
  }

  .grid-layout .item {
    font-size: 0.9rem;
    padding: 15px;
  }
}