/* =============================== */
/*     GLOBALT UTSEENDE           */
/* =============================== */

* { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

body {
  font-family: "Lucida Sans", sans-serif;
  font-size: 18px;
  background: #f7f7f7;
  color: #222;
  line-height: 1.6;
}

/* =============================== */
/*           GRID LAYOUT          */
/* =============================== */

.grid-container {
  display: grid;
  grid-template-areas:
    "header"
    "menu"
    "main"
    "facts"
    "footer";
  gap: 20px;
  padding: 20px;
  justify-items: center; /* Centrerar allt */
}

.header {
  grid-area: header;
  background: #c40000;
  color: white;
  text-align: center;
  padding: 20px;
  width: 100%;
  border-radius: 10px;
}

.header h1 {
  font-size: 42px;
  font-weight: bold;
}

.menu {
  grid-area: menu;
  width: 100%;
  max-width: 200px;
}

.menu ul {
  list-style: none;
}

.menu li {
  background: navy;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  text-align: center;
  transition: 0.2s;
}

.menu li:hover {
  background: #0099cc;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* =============================== */
/*             CONTENT             */
/* =============================== */

.content {
  grid-area: main;
  max-width: 800px;
  text-align: center;
}

.content img {
  width: 75%;
  max-width: 500px;
  border-radius: 12px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.content h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

/* =============================== */
/*              FACTS              */
/* =============================== */

.facts {
  grid-area: facts;
  background: #fffbe6;
  border: 2px solid #0099cc;
  padding: 15px 20px;
  max-width: 800px;
  width: 100%;
  border-radius: 10px;
}

.facts h2 {
  text-align: center;
  margin-bottom: 10px;
}

/* =============================== */
/*             FOOTER              */
/* =============================== */

.footer {
  grid-area: footer;
  width: 100%;
  background: #0099cc;
  color: white;
  padding: 15px;
  text-align: center;
  border-radius: 10px;
}

/* =============================== */
/*        RESPONSIV DESIGN         */
/* =============================== */

@media (min-width: 700px) {
  .grid-container {
    grid-template-areas:
      "header header header"
      "menu main facts"
      "footer footer footer";
    grid-template-columns: 200px 1fr 250px;
  }
}
