.topnav{
    display: none;
}

body{
    background-color: #202124;
    font-family: open-sans;
    color: #d9d9d9;
}

#russel{
    position: absolute;
    bottom: 20px;
    width: 40px;
}

#russel > img{
    max-height: 40px;
    max-width: 50px;
}

#pagewrap{
    text-align: center;
    margin-left: 20%;
    margin-right: 20%;
    color: white;
}

nav{
    border-bottom: 4px solid #333438;
}

#logo{
    position: absolute;
    top: 0;
    right: 1%;
    padding-top: 1%;
    padding-bottom: 1%;
}

#logo img{
    justify-items: center;
    align-items: center;
}

/* Design for navigation menu */

#mylinks{
    font-family: open-sans;
    padding-left: 10%;
    padding-top: 1%;
    padding-bottom: 1%;
}

#kont{
    font-size: 24px;
    font-family: roboto;
    text-decoration: none;
    color: #D260A1;
    font-weight: 400;
    text-decoration: underline;
}

.kartbilder{
    height: 100%;
    width: 100%;
    object-fit: contain;
}

#mylinks a{
    text-decoration: none;
    margin-right: 40px;
}

#mylinks a:not(#active){
    color: white;
    margin-right: 40px;
}

#mylinks li{
    display: inline-block;
    font-size: 20px;
    font-family: roboto;
}

#link{
    color: white;
}

#kart{
    color:#D260A1;
}

#kartet{
    color:#D260A1;
    float: left;
    font-family: roboto;
}

#mylinks #active{
    text-decoration: underline;
    color: #D260A1;
}

#mylinks li:hover{
    text-decoration: underline;
}

/* Bilder av program */

.progb{
    max-height: 100%;
    max-width: 100%;
}

.progl{
    max-height: 40%;
    max-width: 40%;
}

/* Overskrift */
#text-container2{
    font-size: 18px;
    margin-top: 4%;
    margin-bottom: 4%;
    margin-left: 10%;
    margin-right: 10%;
    font-family: roboto;
    color: lightgray;
}

.text-h1{
    color: #D260A1;
    font-size: 36px;
    margin-bottom: 16px;
}

.text-h2{
    color: #D260A1;
    font-size: 26px;
    margin-bottom: 0;
    margin-top: 0;
}

#freslister{
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-left: 10%;
    margin-right: 10%;
    text-align: left;
}

#footers{
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-left: 20%;
    margin-right: 20%;
    text-align: center;
    border-top: 4px solid #333438;
    padding: 20px;
}

#nestennatta{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-left: 10%;
    margin-right: 10%;
}

@media only screen and (max-width: 1200px){
    #logo{
        top: 0;
        right: 1%;
        padding-top: 1%;
        padding-bottom: 1%;
    }
}

@media only screen and (max-width: 900px){
    #mylinks{
        font-family: open-sans;
        padding-left: 1%;
        padding-top: 1%;
        padding-bottom: 1%;
    }
}

@media only screen and (max-width: 600px){
    #logo{
        display: none;
    }

    /* ----------------------------------------------- */
    /* Style the navigation menu */
    .topnav {
        display: block;
        overflow: hidden;
        background-color: #333;
        position: relative;
        padding: 1.5%;
    }

    .navtop{
        display: none;
    }

    #logo2{
        max-height: 10%;
        max-width: 10%;
    }

    /* Hide the links inside the navigation menu (except for logo/home) */
    .topnav #myLinks {
        display: none;
    }

    /* Style navigation menu links */
    .topnav a {
        color: white;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 21px;
        display: block;
    }

    /* Style the hamburger menu */
    .topnav a.icon {
        display: block;
        position: absolute;
        right: 1%;
        top: 1.5%;
    }

    /* Add a grey background color on mouse-over */
    .topnav a:hover {
        text-decoration: underline;
    }

    /* Style the active link (or home/logo) */
    /* ------------------------------------------ */
    #pagewrap{
        margin-left: 0%;
        margin-right: 0%;
    }

    #programwrap{
        margin-left: 5%;
        margin-right: 5%;
    }

    #mylinks{
        padding-left: 1%;
        padding-right: 1%;
        margin: -1px;
    }

    #mylinks li{
        display: inline;
        font-size: 1.3rem;
        margin: 0rem;
        padding-right: 0.3rem;
        padding-left: 0.3rem;
    }

    #active{
        text-decoration: underline;
    }

    #ptxt{
        margin: 0;
        font-size: 0.6rem;
    }

    #fcont{
        color: white;
        font-size: 0.5rem;
    }

    #last{
        display: grid;
        grid-template-columns: 1fr 6fr;
    }

    #freslister{
        display: grid;
        grid-template-columns: 1fr;
        margin-left: 1%;
        margin-right: 1%;
        text-align: left;
    }

    #footers{
        display: grid;
        grid-template-columns: 1fr;
        margin-left: 20%;
        margin-right: 20%;
        text-align: center;
        border-top: 4px solid #333438;
        padding: 20px;
    }

    #nestennatta{
        display: grid;
        grid-template-columns: 1fr;
        margin-left: 10%;
        margin-right: 10%;
    }

    footer{
        display: grid;
        grid-template-columns: 1fr 4fr;
    }
}

/* Ny stil for statistikk-tabeller */
/* Midtstill tabellen */
.statistikk-tabell {
    margin: 0 auto; /* Sentrerer tabellen horisontalt */
    border-collapse: collapse; /* Fjerner mellomrom mellom cellene */
    width: 80%; /* Juster bredden etter behov */
}

.statistikk-tabell th, .statistikk-tabell td {
    border: 1px solid #333; /* Legg til en grense for cellene */
    padding: 8px; /* Juster innholdet i cellene */
    text-align: center; /* Sentrer innholdet i cellene */
}

.statistikk-tittel {
    text-align: center; /* Sentrer tittelen over tabellen */
    margin-top: 20px; /* Juster margin for bedre avstand */
    font-size: 24px; /* Juster fontstørrelse på titlene */
    color: #D260A1; /* Farge på titlene, juster om nødvendig */
}

/* Responsiv design for tabeller */
@media only screen and (max-width: 600px) {
    .statistikk-tabell {
        width: 95%; /* Bredden på tabellen justeres for mindre skjermer */
    }
}

/* Bildeopplasting og galleri-stiler */
.image-container {
    display: inline-block;
    margin: 10px;
}

.image-container img {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* ======================= */
/* 📸 Lightbox-stil (trygg, med prefiks) */
/* ======================= */

.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 2000; /* høyere enn alt annet */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    animation: lightbox-fadein 0.2s ease-in;
}

.lightbox-overlay img.lightbox-image {
    max-width: 90%;
    max-height: 80%;
    box-shadow: 0 0 20px #000;
    border-radius: 8px;
}

/* Lukkeknapp */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5em;
    color: white;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Navigasjonspiler */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 0 15px;
    user-select: none;
    transition: color 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ccc;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Enkel fade-animasjon */
@keyframes lightbox-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ======================= */
/* 📜 Lightbox-informasjon */
/* ======================= */
.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
}

.lightbox-info {
    margin-top: 10px;
    text-align: center;
    color: #fff;
    font-family: roboto, sans-serif;
}

.lightbox-info p {
    margin: 5px 0;
    font-size: 1rem;
}

@media only screen and (max-width: 600px) {
    .lightbox-info p {
        font-size: 0.9rem;
    }
}
