/*  General style definitions. */
body {
    text-align: justify;
    max-width: 50em;
    margin: auto;
    overflow: scroll;
    /*Forces scroll-bar so that content doesn't move. */
    font-family: Helvetica, sans-serif;
}


h1 {
    text-align: center;
    font-weight: 100;
    /* Mostly visible in mobile version for some reason. */
}

h2 {
    font-weight: 100;
}


a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    /* No underlining. */
    color: #6697db;
    /* Nice light blue. */
}

a:hover {
    color: gray;
}



/* The navbar works as a grid-structure. */
.grid_nav {
    display: grid;
    grid-template-columns: auto auto auto auto auto auto;
    /* Four columns, one for each entry. (See topnav.include.) */
    justify-content: space-around;
    margin: 1em 0;
    border-width: 0.1em;
    border-color: gray;
    border-top-style: solid;
    border-bottom-style: solid;
}

.blog_grid_nav {
    display: grid;
    grid-template-columns: auto auto auto;
    /* Four columns, one for each entry. (See topnav.include.) */
    justify-content: space-around;
    margin: 1em 0;
    border-width: 0.1em;
    border-color: gray;
    border-top-style: solid;
    border-bottom-style: solid;
}

/* Main page starts as a grid, most pages turn into standard blocks later on. */
.gridding {
    display: grid;
    grid-template-columns: 60% auto;
    grid-column-gap: 2em;
    grid-row-gap: 2em;
}

.intro_text {
    max-width: 35em;
    text-align: justify;
}

.gridded_picture {
    max-width: 100%;
    max-height: 100%;
    min-width: 100%;
    margin: auto;
    display: block;
}

.intro_headline {
    text-align: center;
}






/* Specific extra styles. */
.arxivist_shoutout {
    margin: auto;
    text-align: center;
    max-width: 40em;
}




/* Footer style */
footer {
    color: gray;
    font-size: 0.8em;
    text-align: center;
    margin: 3em 0 1em;
}



/* Printing style, removes images and the grid-structure. */
@media print {

    body {
        font-family: "Times New Roman", Times, serif;
    }

    .grid_nav {
        display: none;
    }

    .gridded_picture {
        display: none;
    }

    .gridding {
        display: block;
    }

    .intro_text {
        max-width: 100%;
        text-align: justify;
    }

}

dl {
    width: 95%;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

dt {
    float: left;
    width: 15%;
    /* Reduced width to create space for margin */
    padding: 0;
    margin: 0 2% 10px 0;
    text-align: right;/
}

dd {
    float: left;
    width: 75%;
    /* Width kept at 80% */
    padding: 0;
    margin: 0 0 10px 0;
}

/* Mobile style */
@media only screen and (max-width: 600px) {
    body {
        padding: 0 0.5em;
    }

    dl {
        width: 100%;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

    dt {
        float: none;
        width: 100%;
        text-align: left;
        padding: 0;
        /* Adjust as needed */
        margin: 0;
        /* Adjust as needed */
    }

    dd {
        float: none;
        width: auto;
        padding: 0;
        /* Adjust as needed */
        margin: 0 0 10px 0;
        /* Adjust as needed */
    }




    .grid_nav {
        /* Navbar is now in just two columns. */
        display: grid;
        grid-template-columns: 30% 30%;
        justify-content: space-around;
        margin: 1em 0;
        border-width: 0.1em;
        border-color: gray;
        border-top-style: solid;
        border-bottom-style: solid;
        border-left-style: solid;
        border-right-style: solid;

        grid-column-gap: 1em;
        grid-row-gap: 1em;
        background: lightgray;
        /* Very light gray background. */
        padding: 0.5em 0;
    }

    .grid_nav a {
        text-align: center;
    }

    .gridding {
        display: block;
        /* Turns main body into block from grid. */
    }

    .gridded_picture {
        /* The page picture is moved into a logo to the top-left corner. */
        position: absolute;
        min-width: 0;
        min-height: 0;
        height: 5em;
        top: 0;
        left: 0.5em;
    }

    h1 {
        text-align: left;
        padding-left: 3em;
    }

}