﻿html, body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    height: 100%;
}

#holder {
    min-height: 100%;
    position: relative;
}

#topmatter {
    background-color: black;
    color: white;
    margin: 0;
    padding: 0em;
    clear: both;
    border: none;
}

#topmatter a.back {
    display: inline-block;
    padding: 0.3em;
    text-decoration: none;
    color: black;
    background-color: white;
    text-align: center;
    width: 4em;
}

#topmatter h1 {
    display: inline-block;
    margin: 0;
    padding: 0.3em;
    padding-bottom: 0;
    font-size: medium;
}

#topmatter h1 a {
    color: white;
    text-decoration: none;
}

#topmatter nav, #topmatter nav menu {
    margin: 0;
    padding: 0;
    display: inline-block;
}

#topmatter nav menu li {
    display: inline-block;
}

#topmatter nav menu li.menuitem a {
    text-decoration: none;
    padding: .2em;
    color: white;
    border: 1px solid white;
    border-bottom: none;
}

#topmatter nav menu li.active a {
    background-color: white;
    color: black;
}

#topmatter nav menu li.menuitem a:hover {
    background-color: white;
    color: black;
}

#topmatter nav menu li.login a {
    border: none;
    color: white;
    text-decoration: none;
}

#topmatter nav menu li.login a:hover {
    color: white;
    text-decoration: underline;
}

#mainmatter h2 {
    font-size: xx-large;
}

footer {
    background-color: black;
    color: white;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
}

.easteregg {
    color: white;
}

.content {
    padding: .5em;
}

a#godturknapp {
    display: block;
    border: 1px solid #0073BD;
    background-color: #0073BD;
    color: white;
    font-size: 150%;
    margin: auto;
    margin-top: 1em;
    padding: 1em;
    text-align: center;
    width: 75%;
    text-decoration: none;
}

a#godturknapp::after, a.gavidere::after {
    content: "\2192";
}

a.gavidere {
    display: block;
    border: 2px solid #0073BD;
    background-color: #0073BD;
    color: white;
    margin: auto;
    margin-top: .5em;
    margin-bottom: 0.8em;
    padding: .5em 2em;
    text-align: center;
    width: 75%;
    text-decoration: none;
}

div#login, div#goahead {
    display: block;
    margin-top: .5em;
    margin-bottom: .5em;
    background-color: gainsboro;
    text-align: center;
}

div#login {
    padding: .5em;
}

div#goahead div {
    padding: .5em;
}

div#login label {
    display: none;
}

input[type=text], input[type=password], input[type=number], input[type=file] {
    padding: .5em;
    border: none;
}

input[type=submit], input[type=button], button {
    padding: .5em 2em;
    border: solid 2px #0073BD;
    background-color: #0073BD;
    color: white;
}

details {
    /*margin-bottom: .5em;
    background-color: gainsboro;*/
    margin-bottom: 2em;
    border: solid 1px black;
    border-radius: 5px;
    background: #B0C4DE;
}

details summary {
    cursor: pointer;
    /*background-color: cornflowerblue*/
    background: #483D8B;
    color: white;
    padding-top: .2em;
    padding-left: .5em;
    padding-bottom: .2em;
}

details.correct {
    background-color: #8FBC8F;
}

details.toomany {
    background-color: #bc8f8f;
}

details.toomany summary {
    background-color: #640000;
    color: white;
}

/*details.correct summary {
    background-color: limegreen;
}*/
details.correct summary {
    background-color: #006400;
    color: white;
}

details.correct a.gavidere {
    background-color: #006400;
    border: none;
}

details.correct summary::after {
    content: " \2713";
    font-weight: bold;
}

details.toomany summary::after {
    content: " \2718";
    font-weight: bold;
}

details summary h3 {
    font-weight: normal;
}

details summary > * {
    display: inline;
}

details > div {
    padding: .3em;
}

details > div > div.form {
    text-align: center;
}

p.given_answer {
    font-weight: bold;
}

h2.leaderboard {
    text-align: center;
    font-size: 400%;
    text-transform: uppercase;
    letter-spacing: 16px;
    font-family: Impact, sans-serif;
    margin-bottom: 0em;
}

ol.leaderboard {
    list-style-position: inside;
    max-width: 50em;
    width: auto;
    margin-left: -2.5em;
    margin: auto;
}

    ol.leaderboard li {
        height: 8em;
        background-color: #be9afc;
        position: relative;
        padding-left: 1.8em;
        padding-top: .5em;
        z-index: 0;
        border-bottom: 2px solid white;
    }

        ol.leaderboard li::marker {
            font-size: 300%;
            color: white;
            z-index: 1;
            padding-left: 1em;
        }

        ol.leaderboard li::before {
            content: "";
            background-color: red;
            position: absolute;
            display: inline-block;
            width: 4.0em;
            height: 4.0em;
            border-radius: 50%;
            z-index: -1;
            left: 0.8em;
            top: 0.4em;
        }

        ol.leaderboard li[value="1"]::before {
            background-color: gold;
        }

        ol.leaderboard li[value="2"]::before {
            background-color: silver;
        }

        ol.leaderboard li[value="3"]::before {
            background-color: #CD7F32;
        }

        ol.leaderboard li span.lagnavn {
            display: inline-block;
            left: 3.0em;
            top: .7em;
            height: 2em;
            position: absolute;
            font-size: 200%;
            font-weight: bold;
            font-family: Helvetica, sans-serif;
        }

        ol.leaderboard li span.poeng {
            display: inline-block;
            left: 3.0em;
            height: 2em;
            position: absolute;
            top: 2em;
            font-size: 200%;
            font-family: Helvetica, sans-serif;
        }

        ol.leaderboard li:nth-child(odd) {
            background-color: #98d3f5;
        }

        ol.leaderboard li:hover {
            background-color: #fce29a;
        }

    ol.leaderboard img {
        height: 7em;
        float: right;
        margin-right: .5em;
        margin-top: .5em;
    }

    ol.leaderboard li a {
        position: absolute;
        display: inline-block;
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        text-decoration: none;
        color: black;
        z-index: 9999999;
    }