@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: black;
  text-decoration: underline, bold;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: white;
  overflow-x: hidden;
}

h2>i{
  font-family: 'Great Vibes', cursive;
}

/* HERO SECTION */
.hero {
  height: 100vh;
  width: 100%;
  background-image: url('media/background_4.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-title {
  font-family: 'Great Vibes', cursive;
  font-size: 5rem;
  letter-spacing: 2px;
  color: white;
  text-shadow: 0 0 20px rgba(0,0,0,0.6);
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 25px 50px;
  display: flex;
  justify-content: flex-end;
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
}

nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 30px;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav.scrolled a {
  color: #333;
}

nav.scrolled a>img {
  filter: invert();
}

#navbar_hamburger{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  cursor: pointer;
  user-select: none;
  width: 50px;
  height: 100%;
  /* height: 50px; */
  margin: 0px 10px;
}
.navbar_hamburger_bar{
  position: relative;
  box-sizing: border-box;
  display: flex;
  width: 40px;
  margin: auto;
  border: 2px;
  background-color: white;
  border-color: white;
  border-width: 2px;
  border-style: solid;
  border-radius: 2px;
}
.nav.scrolled .navbar_hamburger_bar{
  background-color: black;
  border-color: black;
}


.icon_black {
  width: 20px;
  height: 20px;

  /* background-color: black; */
  /* filter: hue-rotate(30deg); */
  filter: invert();
}


/* HERO LINKS */
.hero-link-left,
.hero-link-right {
  position: absolute;
  bottom: 30px;
  font-size: 1rem;
  letter-spacing: 1px;
}

.hero-link-left {
  left: 40px;
}

.hero-link-right {
  right: 40px;
}

.hero a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid white;
  padding-bottom: 2px;
  transition: opacity 0.3s ease;
}

.hero a:hover {
  opacity: 0.7;
}

/* Velkommen */


/* Siste Nytt */
.breaking_news{
  display: flex;
  flex-direction: column;
  min-width: fit-content;
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
  /* border: 1px solid #333; */
  background-color: white;
  border-radius: 3px;
  overflow: hidden;
  padding: 5px 15px;
  margin: 5px 0px;
}

/* Program */

.program {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;

}

.program-days {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}
.program-day{
  display: flex;
  flex-direction: column;
  justify-content: top;
  text-align: center;
  align-items: center;
  width: 50%;
  min-width: 300px;
  margin: 15px auto 50px auto;

}

.program-datetime{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
}

.program-timeline{
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 45%;
  min-width: fit-content;
  max-width: 400px;
  border-left: 1px solid #333;
  margin: 10px auto;
}

.program-event{
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-width: fit-content;
  width: 100%;
  max-width: 300px;
  padding-left: 35px;
  margin-bottom: 30px;
  /* position: absolute; */
}

.program-timeline-line {
  position: relative;
}

.program-timeline-line::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -35px;
  width: 30px;
  border-top: 1px solid #000;
  box-sizing: border-box;
}


/* Sted */

#sted {
  min-height: 80vh;
  background-image: url("./media/skrivegarden_background.webp"); /* legg inn ditt bilde */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;

  position: relative;
}

/* White transparent overlay */
#sted::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(255, 255, 255, 0.7); /* juster 0.3–0.7 */
  z-index: 0;
}

/* Sørg for at innholdet ligger over overlay */
#sted > * {
  position: relative;
  z-index: 1;
}

/* Pergament/papir */
.parchment {
  max-width: 720px;
  padding: 3rem 3.5rem;

  background: #f5eddce4;
  color: #473e31;

  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.7;

  box-shadow:
      0 10px 25px rgba(0,0,0,0.25),
      inset 0 0 40px rgba(0,0,0,0.05);

  border-radius: 4px;

  position: relative;
}

/* Litt ujevn / revet effekt */
.parchment::before,
.parchment::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, transparent 20px, rgba(0,0,0,0.08) 21px),
        radial-gradient(circle at bottom right, transparent 20px, rgba(0,0,0,0.08) 21px);
    pointer-events: none;
}

/* Avstand mellom avsnitt */
.parchment p + p {
    margin-top: 1.2rem;
}

/* footer */
#footer{
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  width: 100%;
  background-color: #333;
  color: white;
  padding: 15px;
}

h3>a{
  color: white;
}