﻿
/* Inkludera padding och border i elementens storlek */
* {
    box-sizing: border-box;
}

/*Klass för hantering av objekts storlek*/
.responsive {
    max-width: 100%;
    height: auto;
}

/*Hantera textmarginaler, bredd, färg och bakgrundsfärg.*/
body {
    width: 90%;
    max-width: 1920px;
    margin: 10px auto;
    background-color: white;
    color: black;
    font-family: 'Open Sans', sans-serif;
}

/*Hantera bild i sidhuvudet.*/
header img {
    align-content:center;
    padding: 0.1em;
    resize: both;
}

/*Hantera heading 1 i sidhuvudet.*/
header h1 {
    margin: 0;
    font-weight: 300;
    font-size: 1.8em;
    padding: 0.5em;
    text-align: center;
}

/* När webbläsarfönstret är 600px eller mindre förminskas bilden och textstorlekar */
@media all and (max-width: 600px) {

    /*Minskar storlek på text i sidhuvudet.*/
    header h1 {
        font-size: 1.3em;
        text-align:center;
    }
    /*Test att förstora text på små skärmar.*/
    p {
        font-size: x-large;
    }

    h2 {
        font-size: xx-large;
    }

    h3 {
        font-size: xx-large;
    }

    ul {
        font-size: x-large;
    }

    /* Responsive layout - when the screen is less than 600px wide, make the navigation links stack on top of each other instead of next to each other*/
    .navbar a {
        float: none;
        width: 100%;
    }
    .navbar {
        font-size: x-large;
    }


}

/*Formaterar Breadcrum*/
ul.breadcrumb {
    padding: 4px 4px;
    list-style: none;
    background-color: white;
}

    /*Lägger texten på rad*/
    ul.breadcrumb li {
        display: inline;
        font-size: 0.9em;
    }

    /*Infogar snedstreck (/) före/efter varje nivå*/
    ul.breadcrumb li + li:before {
        padding: 1px;
        color: black;
        content: "/\00a0";
    }

    /*Färgar alla länkar i listan*/
    ul.breadcrumb li a {
        color: #0275d8;
        text-decoration: none;
    }

    /*Ändra färg och understrykning vid mouse-over*/
    ul.breadcrumb li a:hover {
        color: #01447e;
        text-decoration: underline;
    }

.vertical-menu {
    width: 100%; /* Set a width if you like */
}

    .vertical-menu a {
        background-color: #e8e8e8; /* Grey background color */
        color: black; /* Black text color */
        display: block; /* Make the links appear below each other */
        padding: 8px; /* Add some padding */
        text-decoration: none; /* Remove underline from links */
    }

        .vertical-menu a:hover {
            background-color: dimgrey; /* Dark grey background on mouse-over */
        }

        .vertical-menu a.active {
            background-color: #808080; /* Add a green color to the "active/current" link */
            color: white;
        }
/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
    .vertical-menu {
        width: 100%;
        font-size: x-large;
    }
}

/* Clear floats after the columns */
.row::after {
    content: "";
    display: table;
    clear: both;
}

.column {
    float: left;
}

    /* Left and right column */
    .column.side {
        width: 25%;
        padding: auto;
    }

    /* Middle column */
    .column.middle {
        width: 75%;
        padding-inline: 5px;
    }

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
    .column.side, .column.middle {
        width: 100%;
    }
}

/* Add a card effect for articles */
.card {
    background-color: white;
    padding: 1px;
    margin-top: 1px;
}

nav {
    clear: left;
}

/*Navbar container*/
.navbar {
    overflow: hidden;
    background-color: lightgray;
    font-family: Arial;
}

    .navbar .active {
        background-color: #808080;
        color: white;
    }

    /*Länkar i navbar*/
    .navbar a {
        float: left;
        /*font-size: 16px;*/
        font-size:1.0em;
        color: black;
        text-align: center;
        padding: 14px 16px;
        text-decoration: none;
    }

/*Sidfot*/
footer {
    font-size: 0.8em;
    text-align: center;
    padding: 0.8em;
    border-top: 1px solid #006293;
    background-color: lightgrey;
}

/*Länkarna i sidfoten*/
#linksinfooter {
    overflow: hidden;
    width: 100%;
}

    /*Länkar i sidfoten*/
    #linksinfooter a {
        float: left;
        display: contents;
        color: inherit;
        text-align: center;
        padding: 14px 16px;
    }
        /*Lägger till streck mellan länkarna*/
        #linksinfooter a + a:before {
            padding: 1px;
            color: black;
            content: "| ";
        }

        /*Ändra färg på text vid hover*/
        #linksinfooter a:hover {
            color: Highlight;
        }


/*Används inte ----------------------------*/
/*Dropdown container*/
.dropdown {
    float: left;
    overflow: hidden;
}

    /*Dropdown button*/
    .dropdown .dropbtn {
        font-size: 16px;
        border: none;
        outline: none;
        color: black;
        padding: 14px 16px;
        background-color: inherit;
        font-family: inherit;
        margin: 0;
    }

    /*Ändrar färg vid hover*/
    .navbar a:hover, .dropdown:hover .dropbtn {
        background-color: dimgrey;
    }

/*Format för dropdown*/
.dropdown-content {
    display: none;
    position: absolute;
    background-color: lightgray;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    /*Länkar i dropdown*/
    .dropdown-content a {
        float: none;
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
    }

        /*Ändra färg för val i dropdown vid hover*/
        .dropdown-content a:hover {
            background-color: #808080;
        }

/*Visa meny vid hover*/
.dropdown:hover .dropdown-content {
    display: block;
}
