:root {
    --bs-primary: #2c3e50;
    --bs-secondary: #3498db;
    --bs-secondary: #3498db;
    --bs-light: #ecf0f1;
    --bs-dark: #2c3e50;
    --accent: #9b9b9b;
    --gulfarven: #eaca33;
}

html {
  font-size: 14px;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background-color: #ffffff;

}

.container-responsive {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}

.statement {position:relative; top: 12vh; text-align:center; font-size:3rem;}
a { text-decoration: none; color: #000000;}
section a {color:black;}
section a:hover {color:grey;}
.logoarea a {color:black;}
.highlight {background-color:lightyellow;}
.ingress {font-size: 1.9rem; font-weight:lighter;}
.bodytext {font-size: 1.2rem; font-weight:normal;}
.urker {line-height: 1.4 !important; font-size: 1em !important; margin-bottom: 0 !important; color:#000000; font-weight:bolder;}

.glow-outline {
    color: white;
    text-shadow:
        0 0 2px #000,
        0 0 4px #000,
        0 0 6px #000;
}
.outline-text {
    color: white;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
        -2px  0    0 #000,
         2px  0    0 #000,
         0   -2px  0 #000,
         0    2px  0 #000;
}

@media (min-width: 768px) {
  /*.statement {position:relative; top: 5vh; text-align:center; font-size:2rem;}*/
  html {font-size: 16px; }
}

/* boostrap ov errides */
.list-group-item.active{color: #000000;background-color: #eaca33;border-color: #eaca33; }
.list-group-item:hover {background-color: #eaca33;}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
.btn-primary {
    background-color: var(--gulfarven) !important;
    border-color: var(--gulfarven) !important;
    color:black;
}
.btn-primary:hover {color:#555555; }

select option:hover, option:focus {  background: plum;}

/* forms */
label { font-weight: bold; color: #333333; }
.control-label {font-weight: bold; color: #333333; }
.labelrm { margin: 0 10px 0 0; }
.labelrmn { font-weight: normal !important; margin: 0 10px 0 0; }  /*kun brukt i spesifikasjonavuttak-dialog */
/*.form-control, ::picker(select), .form-control::-webkit-scrollbar {appearance: base-select; -webkit-appearance: base-select; background-color: lightyellow; color:#000000;}*/
.form-control {background-color: #d6d6d6; color:#000000;}
.form-control:focus {background-color: lightyellow; box-shadow:0 0 transparent,-0.6em 0 1em #eaca33; outline: 3px solid #eaca33; border:none;border-radius: .5rem;}
.form-control option {background-color: lightyellow;}
.form-control option:hover {background-color: var(--gulfarven);}
.form-control:disabled, .form-control[readonly] {background-color: #cccccc; opacity: .6;}
.form-group {margin-bottom: 10px;}
.form-check-input:checked {background-color: black; border-color: var(--gulfarven);}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    /* box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb; */
    box-shadow: 0 0 transparent, -0.6em 0 1em #eaca33; outline: 3px solid #eaca33;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #666666;
}
.navbar {
    background-color: var(--bs-primary) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand, .nav-link {
    color: white !important;
}

.nav-link:hover { color: yellow !important; opacity: 0.9; }

.dropdown-menu {
    background-color: var(--bs-primary);
}
        
.dropdown-item {
    color: white;
}
        
.dropdown-item:hover {
    background-color: #eaca33;
}
.dropdown-item a {
    color: #d2ba4d !important;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}
        
/*.card:hover {
    transform: translateY(-5px);
}*/
    
.btn-primary {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}
        
.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}
.btn-outline-secondary {
    color: black;
    border-color: #6c757d;
}



.table {color:black;}  
.table th {
    background-color: var(--bs-primary);
    color: white;
}
        
.modal-header {background-color: #cccccc;}
.modal-content {background-color:#eeeeee;}

.closebutt {font-size:1.5em;font-weight: bold;line-height: 1; color: #666666; margin:0 0 0 10px !important;}
.closebutt:hover { color: #000; text-decoration: none; cursor: pointer; } 

.input-container { display: flex; align-items: center; }
.group-container {gap: 20px; flex-wrap: wrap; align-items: start;} /* modifiserer input-container */

table tr:hover {background-color: lightcyan; }

/* Kalender ---------------- */
    .calendar-page
    {
        display: flex;
        flex-direction: column;
        padding: 0.5rem;
        box-sizing: border-box;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        background-color:#eeeeee;
    }

    .calendar-header
    {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0.75rem;
        font-size: 1.25rem;
        font-weight: 600;
    }

    .calendar-header span
    {
        font-size: 1.1rem;
        opacity: 0.8;
    }

    .calendar-ukedager
    {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        grid-auto-rows: 3rem;
        border-radius: 0.5rem;
        border: 1px solid #000;
        overflow: hidden;
        height:2.5rem;
        margin:0;
    }

    .calendar-day-name
    {
        background: #333333;
        color:#ffffff;
        padding: 0.4rem 0.5rem;
        border-bottom: 1px solid #ddd;
        border-right: 1px solid #ddd;
        font-size: 1.1rem;
        font-weight: 600;
        text-align: center;
    }

    .calendar-day-name:last-child
    {
        border-right: none;
    }

    .calendar-grid
    {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        grid-auto-rows: minmax(2.5rem, auto);
        border: 1px solid #000;
        border-radius: 0.5rem;
        overflow: hidden;
    }

    .calendar-cell
    {
        background: #dddddd;
        border-right: 2px solid #eee;
        border-bottom: 2px solid #eee;
        display: flex;
        flex-direction: column;
        padding: 0.25rem;
        box-sizing: border-box;
        position: relative;
        overflow: hidden;
    }

    .calendar-cell:nth-child(7n)
    {
        border-right: none;
    }

    .calendar-day-number
    {
        font-size: .9rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        align-self: flex-end;
    }

    .calendar-day-outside
    {
        background: transparent;
        color: #aaa;
    }

    .calendar-events
    {
        flex: 1;
        overflow-y: auto;
        padding-right: 0.1rem;
    }

    .calendar-event
    {
        font-size: 0.75rem;
        line-height: 1.2;
        margin-bottom: 0.25rem;
        padding: 0.2rem 0.25rem;
        border-radius: 0.35rem;
        border: 1px solid #ddd;
        /*background-color: #fdfdfd;*/
        background-color: #ffffee;
        box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    }
    .calendar-event:hover
    {
        /*background-color: #feffbd;*/
        background-color: lightcyan;
    }

    .calendar-event-header
    {
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
        font-weight: 600;
    }

    .calendar-event-time
    {
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
        color:red;
    }

    .calendar-event-body
    {
        margin-top: 0.15rem;
    }

    .calendar-badge
    {
        display: inline-block;
        font-size: 0.65rem;
        padding: 0.05rem 0.35rem;
        border-radius: 999px;
        border: 1px solid #ccc;
        margin-right: 0.25rem;
        white-space: nowrap;
    }

    .calendar-status-active
    {
        border-color: #1f8b4c;
    }

    .calendar-events::-webkit-scrollbar
    {
        width: 6px;
    }

    .calendar-events::-webkit-scrollbar-thumb
    {
        border-radius: 999px;
        background: #ccc;
    }

    @media (max-width: 768px)
    {
        .calendar-header

    {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .calendar-day-name
    {
        font-size: 0.7rem;
    }

    .calendar-day-number
    {
        font-size: 0.8rem;
    }

    .calendar-event
    {
        font-size: 0.7rem;
    }

    }
/* Kalender slutt ---------------- */

/* Sugar */
        .menubar {position:absolute; top:1px; left:1px; padding:5px; width:99%; z-index:2; display: flex; flex-wrap: wrap; justify-content:space-between; }
        .logoarea {min-width:320px; width:40%; margin:0 0 0 10px;}
        .menuitems-wrapper{ font-size: 1.3rem; display: flex; justify-content: flex-end;}
        .menypunkt { font-weight:bold; padding: 10px 15px 0 0; cursor: pointer; color:black; display:inline;}
        .menypunkt:hover {color:rgb(253, 216, 7); text-shadow: none;}
        .menypunk-outline {font-size:1.4em; font-weight: bold; text-shadow: -1px -1px 0 #ffffff, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff, 1px 1px 0 #ffffff;} 
        .menypunkt-mask {height:30%; background-color: #ffffff; mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)); }
        /* .billedheader {font-size:2rem; line-height:2.2rem; color:rgb(253, 216, 7); font-weight: bold; text-shadow: -2px -2px 0 #ffffff, 2px -2px 0 #ffffff, -2px 2px 0 #ffffff, 2px 2px 0 #ffffff;} */
        .billedheader {font-size:2rem; line-height:2.2rem; color:rgb(253, 216, 7); font-weight: bold; text-shadow: -2px -2px 0 #000000, 2px -2px 0 #000000, -2px 2px 0 #000000, 2px 2px 0 #000000; }
        .hovedbilde{width: 100%;}
        .innhold {margin:30px 4% 0 4%;}
        a {color:black;}

        .flex-container {
        display: flex;
        flex-wrap: wrap;
        justify-content:flex-start;
        }

        .article-preview {
        display: block; 
        text-decoration: none; 
        color: inherit; 
        background-size: cover;
        background-position: center;
        position: relative;
        width: calc(25% - 20px); 
        height: 200px;
        margin: 10px;
        background-color: #f0f0f0;
        padding: 20px;
        text-align: center;
        }

        .article-preview img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        }

        .text-3 {
            font-size: 1em !important;.font-weight-bold {font-weight: 700 !important;}
        }

        ul.simple-post-list {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        li {
            line-height: 24px;
        }
        ul.simple-post-list li {
            border-bottom: 1px dotted #E2E2E2;
            padding: 15px 0;
        }
        article {
            display: block;
            unicode-bidi: isolate;
        }
        ul.simple-post-list .post-image {
            float: left;
            margin-right: 12px;
        }
        .d-block {
            display: block!important;
        }
        .img-thumbnail.img-thumbnail-no-borders {
            border: none;
            padding: 0;
        }
        .img-thumbnail {
            padding: .25rem;
            background-color: var(--bs-body-bg);
            border: var(--bs-border-width) solid var(--bs-border-color);
            border-radius: var(--bs-border-radius);
            max-width: 100%;
            height: auto;
        }
        .img-thumbnail {
            border-radius: var(--border-radius);
            position: relative;
        }
        body a {
            outline: none !important;
            text-decoration: none;
        }
        img, svg {
            vertical-align: middle;
        }
        ul.simple-post-list .post-info {
            line-height: 20px;
        }
        ul.simple-post-list .post-meta {
            color: var(--grey-900);
            font-size: 0.8em;
        }
        .columnheader { font-weight:bolder; font-size:1.5rem; color:black; }

        /* footer-seksjon */
        footer {
        padding:0 0 0 4% !important;
        background-color: #333;
        color: #fff;
        text-align:left;
        }

        .footer-container {display: flex;justify-content: space-between;margin: 0 auto;}
        .flex-breaker{flex-wrap:wrap;width:70%; display: flex;}

        .column {flex-basis: 20%;margin: 20px;}
        .column-wide {flex-basis: 30%; margin:15px 20px 20px 0;}
        .column-wide p {margin:0 0 5px 0;}
        .column h4 {margin-top: 0;}
        .column ul {list-style: none;padding: 0;margin: 0;}
        .column li {margin-bottom: 5px;}
        .column a {color: #fff !important;text-decoration: none;}
        .column a:hover {color:var(--gulfarven) !important;}

        
        /* make it responsive */
        @media (max-width: 804px) {
        .article-preview {
            width: calc(50% - 20px); /* adjust the width to fit 2 items per row on smaller screens */
        }
        .hovedbilde { margin:50px 0 0 0; }
        .menuitems-wrapper {
            justify-content: flex-start;
            margin:0 0 0 12px;
        }
        .menuitems-wrapper{display:none;}
        .menypunkt-mask { height: 15%; background-color: #ffffff; mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5)); }
        .statement {position:relative; top: 12vh; text-align:center; font-size:2rem;}
        .statement p {font-size:2rem;}
        .billedheader {font-size:1.7rem; line-height:1.7rem; }
        .column h4 {font-size:14px;  }
        .column li {font-size:12px;  }
        .column-wide p {font-size:12px;  }
        }

        @media (max-width: 600px) {
            .statement {position:relative; top: 13vh; text-align:center; font-size:2rem;}
            .statement p {font-size:2rem;}
            .container-fluid {--bs-gutter-x:151px !important;}
            .container-responsive {--bs-gutter-x:10px;}
            footer {padding:0 1% 0 2% !important;} 
            .footer-container {display: block;justify-content:revert;margin: 0 0 0 0; padding:5px 0 0 5px;}
            .flex-breaker{flex-wrap:wrap;width:100%; display: flex;}
            .column {flex-basis: 27%;margin:0 10px 10px 0; }
            .column li {margin-bottom: 1px;}
            .article-preview {width: 100%; /* stack items vertically on very small screens */  }
            .menuitems-wrapper {display:none;}
            .ingress {font-size: 1.3rem; font-weight:bold;}
            .bodytekst {font-size: 1.3rem;}
        }
        

@media print { 
    h3 {break-after:avoid-region;}
    .noprint { visibility: hidden; display: none !important;}
    .page-break {page-break-before: always;}
     tr {break-inside: avoid;}
    }
