/* Default styling here
// Little larger screen
@media only screen and (min-width: 480px) 

// Pads and larger phones
@media only screen and (min-width: 600px)

// Larger pads
@media only screen and (min-width: 768px)

// Horizontal pads and laptops
@media only screen and (min-width: 992px)

// Really large screens
@media only screen and (min-width: 1382px)
*/


/*Responsivnes*/

@media (max-width:1150px) {
    nav {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap-reverse;
    }

    .asgardlogo {
        display: none;
    }

    .theme {
        padding-right: 10px
    }

    .lang-switcher {
        padding-top: 20px;
    }

    td,
    th {
        font-size: 0.5em;
    }

}

@media (max-width:890px) {
    #totop {
        display: none;
    }

    .menu__list {
        align-items: stretch !important;
        flex-direction: column;
    }

    h1 {
        font-size: 20px !important;
    }
}

@media (max-width:1400px) {
    #totop {
        height: 10vw !important;
        width: 5vw !important;
    }
}

/*Main stuff*/
:root {

    --color-darkest: rgb(0, 0, 0);
    --color-darker: rgb(105, 105, 105);
    --color-dark: rgb(251, 250, 245);
}

body {
    line-height: 1.3;
    margin: 5px;
    overflow-y: scroll;
    /* Always show vertical scrollbar */
    margin: 0;
}

html {
    font-size: 100%;
    -ms-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    scroll-behavior: smooth;
    /*cursor: url('/cursor/cursor.jpg') auto; */
    margin: 10px;
}

/*Theme*/

@media (prefers-color-scheme: light) {
    body {
        color: #404040;
        background: var(--color-dark);
    }
}

@media (prefers-color-scheme: dark) {
    body {
        color: #252525;
        background: var(--color-darker);
    }
}

body.dark-mode {
    color: darkgrey;
    background: var(--color-darkest);

}

/*Stuff*/

nav {
    display: flex;
    justify-content: center;
    margin: auto;
    max-width: 1460px;
}

header {
    font-weight: 900;
}

h1 {
    font-size: 32px;
    text-align: center;
    font-family: 'Exocet', sans-serif;
    margin: 5px 0 5px 0;
}

h2,
h3,
h4 {
    padding-left: 15px;
    font-family: 'Exocet', sans-serif;
    margin: 5px 0 5px 0;
}

h1::first-letter,
h2::first-letter,
h3::first-letter {
    color: #ff0000;
}

a {
    color: #e22d30;
    text-decoration: none;
}

a:hover {
    color: #C70039;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

article {
    order: 1;
    max-width: 1100px;
    min-height: 1000px;
    margin: auto;
    display: flex;
}

.context {
    min-height: 1000px;
    position: relative;
    margin-bottom: 50px;

}

ul {
    display: block;
}

table {
    border-collapse: collapse;
    width: 90%;
    overflow: scroll;

}

table.left {
    float: left;
    width: 49%;
}

table.right {
    width: 50%;
    float: left;
}

td,
th {
    word-wrap: break-word;
    border: 1px solid grey;
    text-align: center;
    padding: 2px;
}

td:nth-child(n) {
    white-space: initial;
}

td:hover,
th:hover {
    background-color: grey;
}

/*Pseudo-elements*/

::selection {
    color: darkgrey;
    background: indianred;
}

::marker {
    color: red;
}

/*Font*/
/*exocet.woff2*/

@font-face {
    font-family: 'Exocet';
    src: url('/fonts/exocet.woff') format('woff');
}

.exocet {
    font-family: 'Exocet', sans-serif;
}

/* Logo */

.asgardlogo {
    max-width: none;

}

.logo__title {
    color: #fd3e08;
    font-size: 7vw;
    line-height: 1;
    display: flex;
    justify-content: center;
    font-family: 'Exocet', sans-serif;
}

/* Nav */

.menu__list {
    margin: auto 16px auto 16px;
    justify-content: center;
    padding: 0;
    display: flex;
    align-items: center;
    width: auto;
    flex-grow: 1;

}

.menu__item {
    transition: background-color .25s ease-out;
    font-size: 17px;
    border: 1px solid grey;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    font-family: 'Exocet', sans-serif;
    white-space: initial;
    word-wrap: break-word;
}

.menu__item:hover {
    background: lightgrey;
    padding-bottom: 5px;
    padding-top: 5px;
}

.active {
    background: darkgray;
    /*font-size: 120%;*/
    padding-bottom: 8px;
    padding-top: 8px;
}

.menu__link {
    display: block;
    padding: .625rem .9375rem;
    font-weight: 900;
}

.lang-switcher {
    padding-left: 10px;
    min-width: 70px;
}

/* Simplify stuff*/

ul.hor li {
    display: block;
    margin-left: 0;
    margin-right: 15px;
}

/* To top */

#totop {
    position: fixed;
    bottom: 10px;
    left: 10px;
    height: 20vw;
    width: 10vw;
    margin-bottom: 0;
    margin-left: 0;

}