:root {
  --skoggronn: #4CAF50;
  --rev-oransje: #FF7043;
  --nottebrun: #8D6E63;
  --innsjo-bla: #4FC3F7;
  --eventyrgul: #FFEB3B;
  --black: #000000;
  --white: #FFFFFF;
}

body {
  margin: 0;
  font-family: 'Noto Sans', sans-serif;
  background-color: var(--skoggronn);
  color: var(--black);
  text-align: center;
  padding: 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--eventyrgul);
  color: var(--black);
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
  font-weight: bold;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--black);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka One', cursive;
  color: var(--eventyrgul);
  margin-top: 0;
  -webkit-text-stroke: 1px black;
  text-shadow:
    1px 1px 0 black,
   -1px 1px 0 black,
    1px -1px 0 black,
   -1px -1px 0 black;
}

/* Buttons */
button {
  padding: 0.7rem 1.5rem;
  font-family: 'Noto Sans', sans-serif;
  font-size: 1rem;
  margin: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background-color: var(--eventyrgul);
  color: var(--black);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

button:hover,
button:focus {
  background-color: var(--rev-oransje);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  outline: none;
}

button:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}

/* Forside-stil */
.forside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--skoggronn);
  color: var(--black);
  text-align: center;
  padding: 2rem;
  box-sizing: border-box;
}

/* Layout for sider med tekst og bilde */
.page.flexbox {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  gap: 2rem;
}

/* Tekstboks – venstre */
.tekstboks {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  max-width: 500px;
  text-align: left;
  line-height: 1.6;
  color: var(--black);
  order: 1;
}

/* Illustrasjon – høyre */
.illustrasjon {
  width: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  order: 2;
}

.illustrasjon img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

/* New container for text and illustration side by side */
.content-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .content-row {
    flex-direction: column;
    align-items: center;
  }
}

/* Navigasjonsknapper */
.nav-buttons {
  margin-top: 1.5rem;
}

.nav-buttons a {
  display: inline-block;
  text-decoration: none;
  background-color: var(--eventyrgul);
  color: var(--black);
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  margin: 0.3rem;
  font-weight: bold;
  transition: background-color 0.3s ease, box-shadow 0.2s ease;
}

.nav-buttons a:hover,
.nav-buttons a:focus {
  background-color: #fdd835;
  outline: none;
  box-shadow: 0 0 5px var(--black);
}

.nav-buttons a:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}

/* Responsiv justering */
@media (max-width: 768px) {
  .page.flexbox {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .tekstboks,
  .illustrasjon {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .illustrasjon img {
    width: 100%;
  }
}

.p {
  font-size: 1.5rem;
}
