
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  background-color: #f9f9f9;
  color: #333;
}

/* Rubriker */
h1, h2, h3 {
  font-family: 'Merriweather', serif;
}

h2 {
  color: #004466;
  font-weight: bolder;
}

/* Header och navigation  */
header {
  background-color: #004466;
  color: white;
  padding: 1em;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 2em;
}

nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #aaddff;
  text-decoration: underline;
  text-underline-position: under;
}

/* Hero-sektioner med bakgrundsbilder */
.hero, .hero2 {
  padding: 20px;
  background-size: cover;
  background-position: center;
}

.hero {
  background-image: url("Index.jpg");
}

.hero2 {
  background-image: url("Background.jpg");
}

/*  Textblock */
.text {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 40px;
  margin: 100px auto 50px auto;
  text-align: center;
  max-width: 40%;
}

/*  Sökrutan och overlay (fick inte till sökrutan för mindre skärmar)) */
.search-popup {
  display: none;
  position: fixed;
  top: 20%;
  left: 80%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border: 4px solid navy;
  z-index: 1000;
}

.search-popup input {
  width: 300px;
  padding: 10px;
  font-size: 16px;
}

.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/*  Faktaruta  */
.fakta-ruta {
  background-color: #f0f8ff;
  border-left: 5px solid #2a7f9d;
  padding: 20px;
  margin: 40px auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow: hidden;
}

.fakta-ruta .bild {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.fakta-ruta h3 {
  margin-top: 0;
  color: #2a7f9d;
  font-size: 1.5rem;
}


.bild, .bild-nyheter {
  float: right;
  padding-left: 20px;
  padding-bottom: 10px;
}

.bild {
  max-width: 400px;
}

.bild-nyheter {
  width: 350px;
}

/*Footer */
.footer {
  background-color: #004466;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}

/* Menyknapp för mobil  */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Responsiv design  */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1em;
    background-color: #004466;
    padding: 10px 0;
  }

  .nav-links.show {
    display: flex;
  }

  nav ul li {
    text-align: center;
  }
}

/* Kontaktformulär */
.kontakt-container {
  max-width: 500px;
  margin: 100px auto;
  padding: 30px;
  background-color: #ffffff;
  border: 2px solid #004466;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.kontakt-container h2 {
  color: #004466;
  margin-bottom: 10px;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.kontakt-form label {
  font-weight: bold;
}

.kontakt-form input,
.kontakt-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.kontakt-form button {
  background-color: #004466;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.kontakt-form button:hover {
  background-color: #006080;
  transform: scale(1.05);
}

/* Responsiv design för kontaktformulär */
@media (max-width: 600px) {
  .kontakt-container {
    margin: 50px 20px;
    padding: 20px;
  }
}
