@charset "utf-8";
/* CSS Document */

body, h1, h2, h3, h4 {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #739081;
  text-align: center; 
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column; 
  align-items: center; 
}

#navigation ul {
  list-style: none;             
  display: flex;
  justify-content: center;      
  gap: 25px;                    
  flex-wrap: wrap;              
  margin: 20px 0;
  padding: 0;
}

#navigation li {
  margin: 0;
}

#navigation a {
  text-decoration: none;        
  color: #333;                  
  font-size: 1.1rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

#navigation a:hover {
  color: #0077cc;               
}

#header h1 {
  font-size: 2rem;
  margin: 10px 0;
}

#subhead h2 {
  font-size: 1.2rem;
  font-weight: normal;
  margin: 10px 0;
}

#title h4 {
  font-size: 1.5rem; 
  margin-top: 30px;  
  margin-bottom: 40px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 15px;      
  max-width: 1200px;    
  width: 100%;
  justify-items: center;
}

.grid-container img {
  width: 100%;
  max-width: 250px; 
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grid-container img:hover {
  transform: scale(1.05);
}

@media (max-width: 1000px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr); 
  }
}

@media (max-width: 700px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  #title h4 {
    font-size: 1.3rem;
    margin-top: 20px;
  }
}

@media (max-width: 500px) {
  .grid-container {
    grid-template-columns: 1fr;
  }

  #navigation h3 {
    font-size: 0.9rem;
    gap: 10px;
  }

  #header h1 {
    font-size: 1.5rem;
  }

  #subhead h2 {
    font-size: 1rem;
  }

  #title h4 {
    font-size: 1.1rem;
  }
}