#on-page {
    text-decoration: underline var(--varm-vild) !important;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    margin: 0 0 1rem 0;
    box-shadow: 0 5px 6px #0000001a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1000;
}

#header {
    position: relative;
    top: 0;
    width: 100%;
    padding: 0.25rem .25rem;
    background-image: linear-gradient(to left, var(--smovse-turkis) 55%, var(--lys-turkis) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    color: var(--tekst-farve);
}

.logo {
    all: revert;
    position: relative;
    top: 0;
    left: 0;
    height: 3rem;
    box-shadow: rgba(0, 0, 0, 0.535) 0px 1px 15px, rgba(0, 0, 0, 0.16) 0px 1px 4px;
    transition: height 0.5s ease;
}

#mobil-nav {
    display: none; 
    position: fixed;
    top: 3rem;
    left: 0;
    z-index: 999;
    list-style: none;
    background-image: linear-gradient(to left, var(--smovse-turkis) 55%, var(--lys-turkis) 100%);
    height: 0dvh;
    padding: 0rem 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    transition: height 0.5s ease, padding 0.5s ease;
}

#mobil-nav a {
    display: flex;
    color: var(--tekst-farve);
    height: fit-content;
    width: 100%;
    font-size: 0rem;
    font-family: var(--bold-font);
    text-decoration: none;
    justify-content: center;
    transition: font-size 0.5s ease;

}

.tabs {
    position: relative;
    height: 3rem;
    width: auto;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    align-content: center;
    transition: transform 0.5s ease;
}

.tabs div {
    width: 100%;
    height: 16%;
    transition: width 0.5s ease, height 0.6s ease;
    border-radius: 0%;
    border-image-width: 0% 0% 100% 100%;
    border-image-outset: 0px;
    border-image-repeat: stretch stretch;
    border-image-source: url(/img/bar-border.svg);
}

 #tabline-top {
    filter: invert(49%) sepia(18%) saturate(6156%) hue-rotate(10deg) brightness(111%) contrast(94%);
}
#tabline-mid {
    filter: invert(83%) sepia(72%) saturate(1497%) hue-rotate(321deg) brightness(103%) contrast(99%);
}
#tabline-bot {
    filter: invert(85%) sepia(75%) saturate(3435%) hue-rotate(335deg) brightness(107%) contrast(97%);
}

@keyframes slide {
    to {
        transform: translateX(-50%);
    }
}


@media (min-width: 768px) {
    header {
        position: sticky;
        background-image: linear-gradient(to right, var(--smovse-turkis) 55%, var(--lys-turkis) 100%);
        z-index: 1000;
        flex-direction: row;
    }
    
    #header {
        background-image: none;
        width: fit-content;
    }
    
    #header.scrolled .logo {
        height: 3rem;
        transition: height 0.5s ease;
    }

    #header.scrolled ~ #mobil-nav a {
        font-size: 1.5rem;
        transition: font-size 0.5s ease, padding 0.5s ease;
    }

    .logo {
        position: relative;
        top: 0;
        left: 0;
        height: 5rem;
        width: auto;
        transition: height 0.5s ease;
        box-shadow: initial;
    }
    
    .logo:hover {
        box-shadow: rgba(0, 0, 0, 0.535) 0px 1px 15px, rgba(0, 0, 0, 0.16) 0px 1px 4px;
        cursor: pointer;
    }
    
    #mobil-nav {
        all: initial;
        display: flex;
        align-items: center;
        justify-content: space-around;
        width: 100%;
        cursor: pointer;
    }
    
    #mobil-nav a {
        font-size: 2rem;
        /* margin: 0 1rem; */
        padding: 0.5rem 1rem;
        width: fit-content;
        border-radius: 0.5rem;
    }
    
    #mobil-nav a:hover {
        background-image: linear-gradient(to bottom, var(--smovse-turkis) 5%, var(--lys-turkis) 100%);
        box-shadow: rgba(0, 0, 0, 0.535) 0px 1px 15px, rgba(0, 0, 0, 0.16) 0px 1px 4px;
        text-decoration: underline var(--varm-vild);
    }
    
    .tabs {
        display: none;       
    }
    
}