
/* font instrument sans */
@font-face {
  font-display: swap;
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/instrument-sans-v4-latin-regular.woff2') format('woff2');
}

/* font aleo */
@font-face {
  font-display: swap;
  font-family: 'Aleo';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/aleo-v16-latin-regular.woff2') format('woff2');
}

/* body styling */
body {
  font-family: 'Aleo', serif;
  background: url('images/trendy-background-ideas-cover.webp'); 
  background-size: cover;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.5;
}

h1, h2 {
  font-family: 'Instrument Sans', sans-serif;
  margin: 0.5em 0;
}

h1 {
  font-size: 2.5em;
  text-align: center;
  color: #ff6f61;
}

h2 {
  font-size: 1.25em;
  margin-top: 0.5em;
  color: #333;
}

p {
  font-size: 1em;
  line-height: 1.6em;
  padding: 0 10px;
}


header {
  text-align: center;
  padding: 2em 1em;
  background-color: white; 
  color: #ff6f61;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, 250px); /* 5 column layout */
  gap: 20px;  /* Space between cards */
  padding: 2em;
  justify-content: center; 
  justify-items: center;   
  grid-auto-rows: auto;   
}


/* Card container for each dodge ball individual*/
.dodge-ball {
  max-width: 300px;
  background-color: rgba(255,255,255,0.9);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  text-align: center;
}

/* image display */
.dodge-ball img {
  width: 100%;
  height: auto;
  display: block;
}

/* text display */
.dodge-ball p {
  padding: 0.5em 1em 1em 1em;
  font-size: 0.9em;
  color: #555;
}

footer {
  text-align: center;
  padding: 1.5em;
  background-color: #ff6f61;
  color: white;
}
