@import  https://fonts.googleapis.com/css?family=Raleway:500,800;

* {
    box-sizing: border-box;
}

html,body {
    min-height: 100%;
    font-size: 24px;
}

body {
    margin: 0;
    padding: 2rem 1rem;
    background: linear-gradient(-10deg,#001e0a,#280050);
    color: #eee;
    font-family: 'raleway',arial,sans-serif;
    letter-spacing: .06em;
}

/* jeg har aldri */
#main {
    display: flex;
    font-size: 3.6rem;
}

header,div#text {
    float: left;
}

header {
    width: 33%;
    flex: 1;
}

div#text {
    width: 66%;
    flex: 2;
}

h1,div#text {
    font-size: inherit;
    text-shadow: 0 .045em #000;
    font-weight: 800;
    line-height: 1.05em;
}

h1 {
    white-space: nowrap;
    margin: 0;
    padding: 0;
    text-align: right;
    color: #f0dc50;
}

div#text {
    margin-top: 1.05em;
    padding-left: .3em;
    color: #e6ffff;
}

/* nav */
nav {
    font-size: 1rem;
}

#how {
    position: absolute;
    top: .5em;
    right: .5em;
    width: 2em;
    height: 2em;
}

#bg {
    fill: #fff;
}

#qmark {
    fill: #c82850;
}

#how:hover #qmark {
    fill: #f0dc50;
}

#how:hover #bg {
    fill: #111;
}

#howtext {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 700px;
    margin: auto;
    z-index: 666;
    background: rgba(0,0,0,0.9);
    box-shadow: 0 6px 10px rgba(0,0,0,0.6);
    padding: .5em .5em 1em;
}

#howtext p,#howtext ol {
    max-width: 600px;
    margin: .5em auto;
}

#howtext p {
    color: #f0dc50;
}

#okbutton {
    background: #c82850;
    color: #fff;
    max-width: 300px;
    margin: auto;
    text-align: center;
    padding: .5em;
}

#okbutton:hover {
    background: #f0dc50;
    color: #111;
}

#buttons {
    position: fixed;
/*bottom: 90px; Space ad */
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
}

.button {
    width: 50%;
    float: left;
    padding: .5rem;
    text-transform: uppercase;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.button.prev {
    background: #64143c;
    text-align: left;
}

.button.next {
    background: #78143c;
    text-align: right;
}

.button:hover {
    background: #dcc83c;
    color: #111;
}

#how:hover #qmark,#how:hover #bg,.button:hover,#okbutton:hover {
    cursor: pointer;
}

#how #qmark,#how #bg,.button {
    transition: all .1s ease-in;
}

div#fb,div#ad {
    position: fixed;
}

div#fb {
    color: #4169e1;
    top: 0;
    left: 0;
}

div#ad {
    width: 728px;
    height: 90px;
    background: grey;
    margin: auto;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
}

@media (min-width: 1300px) {
    #main {
        font-size: 4rem;
    }

    nav {
        font-size: 1.2rem;
    }
}

@media (min-width: 1500px) {
    #main {
        font-size: 4.5rem;
    }
}

@media (min-width: 1700px) {
    #main {
        font-size: 5rem;
    }
}

@media (max-width: 1000px) {
    body {
        padding: 2rem .75rem;
    }

    #main {
        font-size: 2.5rem;
    }

    nav {
        font-size: .75rem;
    }

    #buttons {
    /*bottom: 50px; Space for ad */
        bottom: 0;
    }

    .button {
        font-size: .75rem;
    }

    div#ad {
        width: 320px;
        height: 50px;
    }
}

@media (max-width: 800px) {
    #main {
        font-size: 1.75rem;
    }

    nav {
        font-size: .6rem;
    }
}

@media (max-width: 520px) {
    #main {
        font-size: 1.3rem;
    }
}
a:link {
    text-decoration: inherit;
    color: inherit;
    cursor: auto;
}

a:visited {
    text-decoration: inherit;
    color: inherit;
    cursor: auto;
}