/* ===== Global Reset and Base Styles ===== */
body {
  background: #fdfcf9; /* light parchment tone */
  color: #2d2d2d;
  font-family: 'Lato', 'Trebuchet MS', 'Verdana', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Headlines: Add Norwegian serif for cultural tone */
h1, h2, h3, h4, h5, h6 {
  font-family: 'EB Garamond', serif;
  color: #2c3e50;
  margin: 1.2em 0 0.5em;
}

h1 {
  font-size: 2em;
  border-bottom: 2px solid #c0392b;
  padding-bottom: 0.2em;
}
h2 {
  font-size: 1.6em;
  color: #7b2c22;
}
h3 {
  font-size: 1.3em;
  color: #3a3a3a;
}

p {
  margin: 1em 0;
}

/* ===== Links ===== */
a {
  color: #b22222; /* Deep red - bunad inspired */
  text-decoration: underline;
}
a:hover {
  color: #000;
  text-decoration: none;
}

/* ===== Navigation ===== */
#mainmenubg {
  background: linear-gradient(to right, #2e3b4e, #4a5e6a);
  height: auto;
  padding: 10px 0;
}

#mainmenu {
  display: flex;
  justify-content: space-around;
  background: transparent;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
}

#mainmenu li {
  margin: 0 10px;
}

#mainmenu li a {
  padding: 10px 15px;
  border-radius: 8px;
  color: #fff;
  transition: background 0.3s;
}

#mainmenu li a:hover,
#mainmenu li.itemselectedcurrent a {
  background-color: #c0392b;
  color: white;
}

/* ===== Boxes / Containers ===== */
.box, .sidebarelement {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

/* ===== Buttons and Forms ===== */
input, textarea {
  font-size: 1em;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 8px;
  width: 100%;
  max-width: 400px;
  background: #fff;
}

input.searchsubmit {
  background-color: #b22222;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
}

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

thead {
  background: #2e3b4e;
  color: #fff;
}
tbody tr:nth-child(even) {
  background: #f2f2f2;
}

/* ===== Footer ===== */
#footer {
  padding: 20px;
  background-color: #2e3b4e;
  color: white;
  text-align: center;
  font-size: 0.9em;
}