/* 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-dark1: rgb(251, 250, 245);
    --color-dark: #646464;

    646464
}

/*

#FFF8CD l yel
#FFE05D yel
#FF9642 or
#646464 grey

*/

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;
}

/*Light theme*/
@media (prefers-color-scheme: light) {
    body {
        line-height: 1.3;
        margin: 5px;
        overflow-y: scroll;
        /* Always show vertical scrollbar */
        margin: 0;
        color: #FFF8CD;
        background: no-repeat center/80% url("/images/bg.webp"), var(--color-dark);
        background-position: bottom;
        background-attachment: fixed;
        background-size: cover;
        background-position-y: 70%;
    }
}

/*Dark theme*/
@media (prefers-color-scheme: dark) {
    body {
        color: #252525;
        background: no-repeat center/80% url("/images/bg-dark.webp"), var(--color-dark);
        background-position: bottom;
        background-attachment: fixed;
        background-size: cover;
        background-position-y: 70%;
    }
}

/*Dark mode*/
body.dark-mode {
    color: darkgrey;
    background: no-repeat center/80% url("/images/bg-dark.webp"), var(--color-dark);
     !important background-position: bottom;
    background-attachment: fixed;
    background-size: cover;
    background-position-y: 70%;
}

nav {
    display: flex;
    justify-content: center;
    margin: auto;
    max-width: 1132px;
    background: rgba(0, 0, 0, 0.5);
}

header {
    font-weight: 900;
}

h1 {
    font-size: 32px;
    text-align: center;
    margin: 5px 0 5px 0;
}

h2,
h3,
h4 {
    padding-left: 15px;
    margin: 5px 0 5px 0;
}

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

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

a:hover {
    color: #FFC374;
}

a:visited {
    color: #D27D2D;
}

p {

    text-indent: 20px;
}

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;
    background: rgba(0, 0, 0, 0.5);
}

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

}

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*/


/* Logo */

.asgardlogo {
    max-width: none;
    vertical-align: middle;
}

.logo__title {
    color: #FFE05D;
    font-size: 5vw;
    line-height: 1;
    display: flex;
    justify-content: center;
    font-family: 'Exocet', sans-serif;
    padding: 80px 0;
}

.logo__link {}

/* Nav */

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


}

.menu__text {
    color: #FFE05D;
}

.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: #A9A9A9;
    padding-bottom: 5px;
    padding-top: 5px;
}

.active {
    background: gray;
    /*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;

}

/* Dark theme*/

/*
 * Dark Mode Toggle
 * Copyright (c) 2015 instructure-react
 * Forked from Dan Abramov's personal blog
 * https://github.com/gaearon/overreacted.io/blob/master/src/components/Toggle.css
 * MIT License
**/

.theme {
    margin: auto 0 auto 16px;
    margin: auto 0 auto 0;
    display: flex;
    display: flex;
    align-content: flex-end;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.js-toggle {
    touch-action: pan-x;
    display: inline-block;
    position: relative;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    padding: 0;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
}

.js-toggle-screenreader-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.js-toggle-track {
    width: 50px;
    height: 24px;
    padding: 0;
    border-radius: 30px;
    background-color: hsl(222, 14%, 7%);
    transition: all 0.2s ease;
}

.js-toggle-track-check {
    position: absolute;
    width: 17px;
    height: 17px;
    left: 5px;
    top: 0px;
    bottom: 0px;
    margin-top: auto;
    margin-bottom: auto;
    line-height: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.js-toggle--checked .js-toggle-track-check {
    opacity: 1;
    transition: opacity 0.25s ease;
}

.js-toggle-track-x {
    position: absolute;
    width: 17px;
    height: 17px;
    right: 5px;
    top: 0px;
    bottom: 0px;
    margin-top: auto;
    margin-bottom: auto;
    line-height: 0;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.js-toggle--checked .js-toggle-track-x {
    opacity: 0;
}

.js-toggle-thumb {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #fafafa;
    box-sizing: border-box;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
    transform: translateX(0);
}

.js-toggle--checked .js-toggle-thumb {
    transform: translateX(26px);
    border-color: #19ab27;
}

.js-toggle--focus .js-toggle-thumb {
    box-shadow: 0px 0px 2px 3px rgb(255, 167, 196);
}

.js-toggle:active .js-toggle-thumb {
    box-shadow: 0px 0px 5px 5px rgb(255, 167, 196);
}


/*


body {
    margin: 0;
    line-height: 1.5em;

}

.header div,
.container,
.copyright,
.menu {
    max-width: 1100px;
    margin: auto;
    padding: 0 15px;
}

.page .header div,
.page .container,
.page .copyright,
.page .menu {
    max-width: 900px;
}

.container {
    hyphens: auto;
}

@media (max-width: 930px) {
    .page .container {
        padding: 0;
    }
}

main {
    margin-bottom: 15px;
}


.header {
    border-top: 5px solid #666;
    border-bottom: 4px double #666;
    text-align: center;
    padding: 15px 0 5px;
}

.head-meta,
.menu {
    display: flex;
    justify-content: space-between;
}

.header,
.list section,
article {
    /* background: #fff;*/
}

.banner {
    font-size: 4em;
}

.banner .text {
    display: block;
    line-height: 1em;
}

.list {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
}

.list section {
    flex: 1 0 350px;
    box-sizing: border-box;
    box-shadow: 0 0 8px #ccc;
    margin: 1em 0 0 15px;
    padding: 1em;
    overflow-x: hidden;
}

@media (max-width: 380px) {
    .list section {
        flex: auto;
    }
}

@media (min-width: 715px) {
    .list section {
        max-width: calc(50% - 15px);
    }

    .article-list h1 {
        overflow-x: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .article-list h1:hover {
        white-space: inherit;
    }
}

@media (min-width: 1080px) {
    .list section {
        max-width: calc(33.33333% - 15px);
    }
}

.article-list a,
.banner a {
    /*color: #000;*/
}

.categories a {
    font-size: .9em;
    font-weight: bolder;
    text-transform: uppercase;
    /*color: #666;*/

}

h1 a:hover {
    text-decoration: underline;
}

.article-list h1 {
    margin: .2em auto .2em 0;
}


.article-list {

    background: rgba(0, 0, 0, 0.6);
}


article {
    padding: 1em;
}

.article-meta {
    text-decoration: none;
    background: #eee;
    padding: 5px;
    border-radius: 5px;
}

.menu,
.article-meta,
footer,
.post-nav {
    text-align: center;
}

.article-footer {
    text-align: left;
}

.title {
    font-size: 1.2em;
}

.article-list h1,
.title {
    line-height: 1.2em;
}

.article-list a,
.header a,
footer a,
.categories a,
.active a,
.comments a {
    text-decoration: none;
}

.pagination {
    text-align: center;
}

.pagination li,
.terms li {
    display: inline;
}

.pagination a {
    padding: 0 .2em;
}

.footer {
    background: #666;
    padding: 1em 0;
}

.footer,
.footer a {
    color: #fff;
}

.copyright,
.copyright a {
    color: #ccc;
}

.menu {
    margin-bottom: .5em;
    flex-wrap: wrap;
}

.menu li {
    display: inline-block;
    font-weight: bolder;
}

.menu a {
    padding: .5em;
}

.menu a:hover {
    color: #000;
    background: #fff;
}

hr {
    border-style: dashed;
    color: #ddd;
}

pre {
    border: 1px solid #ddd;
    box-shadow: 5px 5px 5px #eee;
    overflow-x: auto;
}

code {
    background: #f9f9f9;
}

pre code {
    background: none;
    padding: .5em;
    display: block;
}

img,
iframe,
video {
    max-width: 100%;
}

blockquote {
    background: #f9f9f9;
    border-left: 5px solid #ccc;
    padding: 3px 1em 3px;
}

table {
    margin: 1em auto auto;
    border-top: 1px solid #666;
    border-bottom: 1px solid #666;
}

table thead th {
    border-bottom: 1px solid #ddd;
}

th,
td {
    padding: 5px;
}

*/
/*tr:nth-child(even) {
    background: #eee
}*/
/*
.thumbnail {
    height: 5.1em;
    width: 6.8em;
    float: left;
    overflow: hidden;
    margin: 5px 8px 5px 0;
    box-shadow: 0 0 8px #666;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#TableOfContents,
#TOC,
.comments {
    border: 1px solid #eee;
    border-radius: 5px;
}

.comments a {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 1.2em;
}

.terms {
    padding-left: 0;
}

.post-nav {
    margin: .5em 0;
    display: flex;
    justify-content: space-between;
}

.footnotes {
    font-size: .9em;
}

.footnotes hr {
    width: 50%;
    margin-left: 0;
}

*/