/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&family=Open+Sans:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
}

.grid-container {
  display: grid;
  grid-template-rows: auto auto 1fr auto; /* Four rows: headline, hero image, content, footer */
  grid-template-columns: repeat(4, 1fr); /* Four equal-width columns */
  padding: 20px;
}

/* Headline */
.headline {
  grid-column: 1 / -1; /* Span across all columns */
  text-align: center;
  font-family: 'Roboto', sans-serif; /* Google Font 1 */
  font-size: 2em;
  padding: 20px 0;
  border: 1px solid black;
}

/* Hero Image */
.hero-image {
  grid-column: 1 / -1; /* Span across all columns */
  height: 300px; /* Adjust height to match the image */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  border: 1px solid black;
  overflow: hidden;
}

.hero-image img {
    width: 100%;  /* Make the image take up the full width of the container */
    height: 100%; /* Make the image take up the full height of the container */
    object-fit: cover; /* Ensures the image fits and crops itself if necessary */
  }
  
/* Content Paragraphs */
.content {
  grid-column: 1 / -1; /* Span across all columns */
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Four equal columns */
}

.paragraph {
  border: 1px solid black;
  padding: 20px;
  text-align: center;
  font-size: 1em;
}

/* Footer */
.footer {
  grid-column: 1 / -1; /* Span across all columns */
  text-align: center;
  padding: 20px 0;
  font-size: 1em;
  font-family: 'Open Sans', sans-serif; /* Same Google Font 2 */
  border: 1px solid black;
}

