/* 
    Created on : 8. jan. 2026, 11.02.12
    Author     : Jonas Primdahl
    Design Philosophy: Mobil first
*/
:root{
    /* frontpage color 
    dark blue: #234d71
    light blue: #5badf3
    #234d71;*/
    --text_alignment: center;
    --button_width_desktop: 20%;
    --button_width_smartphone: 100%;
    --button_color_one: #fdc800;
    --button_color_two: #ed7633;
    --angle: 45deg;
    --button_text_color: #f2f2f2;
    --border_color: #333;
    --border_radius: 0.1em;
    --button_padding: 1em;
    --frontpage_color: #234d71;
    --footer_color: #333333;


    --header_text: #234d71;
}
html {
    scroll-behavior: smooth;
}

body{
    margin: 0;
    padding: 0;
}

footer{
    position: sticky;
    bottom: 0em;
    background-color: var(--footer_color);
    width: 100%;
    text-align: center;
    padding: 0.5em;
    color: var(--button_text_color);
}
/* Smartphone*/
.topnav {
    overflow: hidden;
    background-color: #333;
    text-align: center;
}

.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.topnav a.active {
    background-image: linear-gradient(var(--angle), var(--button_color_one), var(--button_color_two));
    color: white;
}

.topnav .icon {
    display: none;
}
.to_top{
    position: sticky;
    float: right;
    right: 1em;
    bottom: 3em;
    background-image: linear-gradient(var(--angle), var(--button_color_one), var(--button_color_two));
    color: var(--button_text_color);
    border: 1px solid var(--border_color);
    padding: var(--button_padding);
    border-radius: var(--border_radius);
}
.page{
    margin: auto;
    text-align: center;
    width: 90%;
}
.page p{
    text-align: var(--text_alignment);
}
.page_element{
    clear: both;
}
.image img{
    width: 98%;
    padding: 1%;

}
.icons{
    width: 36px;
}


@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {
        display: none;
    }
    .topnav a.icon {
        float: right;
        display: block;
    }
}

@media screen and (max-width: 600px) {
    .topnav.responsive {
        position: relative;
    }
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}


/* Tablet / Ipad / Desktop*/
@media (min-width: 48em) {

    /*    .menu{
            justify-content: space-evenly;
        }*/
    .topnav {
        display: flex;
        justify-content: space-evenly;
    }
    .button{
        width: var(--button_width_desktop);
    }
    .page{
        width: 80%;
    }
    .image img{
        width: 40%;
    }
}