/* =====================
   BASE STYLES
===================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    background-color: #1e1e1e;
    color: #f0f0f0;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
}

/* =====================
   HEADER
===================== */
header {
    background: linear-gradient(90deg, #ff4d4d, #ff9900);
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

header h1 {
    font-size: 2em;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* =====================
   MAIN CONTENT
===================== */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.content {
    width: 100%;
    max-width: 900px;
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* =====================
   TYPOGRAPHY & MENU
===================== */
#welcome-message {
    text-align: center;
    font-size: 1.3em;
    color: #ffa07a;
}

ul.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0;
    margin: 20px 0;
}

ul.menu li a {
    color: #ff4d4d;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

ul.menu li a:hover {
    background-color: #ff4d4d;
    color: #1e1e1e;
    transform: scale(1.1);
}

/* =====================
   IMAGE
===================== */
.hovedbilde {
    width: 100%;            /* maks bredde fyller container */
    max-width: 600px;       /* gjør alle bilder like brede */
    height: 400px;          /* gjør alle bilder like høye */
    object-fit: cover;      /* beskår proporsjonalt for å fylle området */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    margin: 20px auto;      /* sentrerer bildet */
}

.hovedbilde:hover {
    transform: scale(1.03);
}

/* =====================
   BUTTONS
===================== */
.tilbake-knapp {
    padding: 12px 25px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.tilbake-knapp:hover {
    background-color: #ffa07a;
    transform: scale(1.05);
}

/* =====================
   FOOTER
===================== */
footer {
    background-color: #111;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #888;
}

/* =====================
   LIGHTBOX
===================== */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

/* =====================
   NAVBAR
===================== */
.navbar {
    position: sticky;       /* holder navbar på toppen ved scroll */
    top: 0;
    width: 100%;
    background-color: #222;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar li {
    margin: 0 20px;
}

.navbar a {
    display: block;
    padding: 15px 10px;
    text-decoration: none;
    color: #f0f0f0;
    font-weight: bold;
    transition: color 0.3s, background-color 0.3s, transform 0.2s;
}

.navbar a:hover {
    color: #ff4d4d;
    transform: scale(1.1);
}

/* Active page highlight (optional) */
.navbar a.active {
    color: #ffa07a;
    border-bottom: 2px solid #ff4d4d;
}

