* {
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Sans Pro', sans-serif;
}
html,body {
	height: 100%; /*Firefox needs this line...*/
}
.topborder {
    position: relative;
    width: 100%;
    height: 50px;
    background: #555;
    color: white;
    padding: 10px 0 0 10px;
    z-index: 95;
    box-shadow: 0 0 10px #333;
    box-shadow: 0 0 30px rgba(34,34,34, 0.33);
    overflow: auto;
}
.topborder a {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    color: white;
    text-decoration: none;
    background: #777;
    background: rgba(255,255,255,0.27);
    border-radius: 4px;
    cursor: pointer !important;
    transition: 0.3s;
}
.topborder a:hover {
    background: rgba(255,255,255,0.4);
}
.topborder a:active {
    background: rgba(255,255,255,0.47);
}
.leftTopBorder {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 30px 0 0;
    transition: 1s;
}
.profileImg {
    opacity: 0.6;
    -webkit-filter: invert(100%); /* Safari 6.0 - 9.0 */
    filter: invert(100%);
}
.profileImg:hover {
    opacity: 0.8;
}
.loginBox {
    position: fixed;
    z-index: 10;
    top: -250px;
    right: 0;
    overflow: hidden;
    background: #169cb1;
    transition: 0.4s;
    text-align: center;
    color: white;
    height: 0;
    padding: 0;
    box-shadow: 0 0 10px #222;
}
.loginBox p {
    padding: 10px;
}
.loginBox a {
    padding-top: 10px;
    display: block;
    width: fit-content;
    margin: auto;
}
#alert, #question {
    display: none;
    position: fixed;
    z-index: 500;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    background: #fffe;
    border-radius: 6px;
    min-width: 300px;
    max-width: 500px;
    color: black;
    padding: 20px;
    box-shadow: 0 0 10px #333;
    box-shadow: 0 0 30px rgba(34,34,34, 0.33);
}
button {
    width: auto;
    padding: 5px;
    line-height: 20px;
    font-size: 16px;
    text-align: center;
    background: #777;
    background: rgba(0, 0, 0, 0.27);
    color: #fff;
    border: none;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}
button:hover {
    background: #555;
    background: rgba(0, 0, 0, 0.4);
}
button:active {
    background: rgba(0, 0, 0, 0.47);
}

.ljusBtn {
    background: #333;
    background: rgba(255, 255, 255, 0.27);
}
.ljusBtn:hover {
    background: #222;
    background: rgba(255, 255, 255, 0.4);
}
.ljusBtn:active {
    background: #111;
    background: rgba(255, 255, 255, 0.47);
}

@keyframes fadeUp {
    0% {
        transform: translate(-50%, 50px);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}
.fadeInUp {
    display: block !important;
    animation-name: fadeUp;
    animation-duration: 0.8s;
}

@media screen and (max-width: 800px) {
    @keyframes fadeH1Up {
        0% {
            font-size: 20px;
            transform: translateY(100px);
            opacity: 0;
        }
        50% {
            transform: translateY(-20px);
        }
        75% {
            transform: translateY(10px);
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }
    #frontTopBorder h2 {
        /*text-align: left;*/
    }
    #alert, #question {
        max-width: 90%;
    }
}
.frontpage {
    position: absolute;
    z-index: 100;
    top: 0;
    right: 0;
    /*height: 100%;*/
    width: 100%;
}
#frontTopBorder {
    position: fixed;
    top: 0;
    background: #169cb1;
    height: 70px;
    text-align: center;
    transition: 1s;
}
#frontTopBorder h2 {
    transition: 1s;
    padding-top: 10px;
    width: 100%;
    cursor: default;
}
.frontpage .BG {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -100;
    background-image: url(/images/bordsplacering1.jpg);
    background-size: cover;
    background-position: bottom center;
    filter: grayscale(80%);
    transition: 3s;
}
.frontpage .backBG {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -200;
    background-color: #bbb;
    background-image: url(/images/bordsplacering-small.jpg);
    background-size: cover;
    background-position: bottom center;
    filter: grayscale(80%);
}
.frontpage h1 {
    color: white;
    text-align: center;
    position: absolute;
    font-size: 3em;
    padding: 0 5%;
    top: 100px;
    width: 100%;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.67);
    animation-duration: 1s !important;
}
@media screen and (min-width: 801px) {
    @keyframes fadeH1Up {
        0% {
            font-size: 1em;
            transform: translateY(100px);
            opacity: 0;
        }
        50% {
            transform: translateY(-20px);
        }
        75% {
            transform: translateY(10px);
        }
        100% {
            font-size: 3em;
            transform: translateY(0);
            opacity: 1;
        }
    }
}
.fadeH1Up {
    animation-name: fadeH1Up;
    animation-duration: 2s;
}
.frontpage .section {
    position: relative;
    width: 100%;
    height: 500px;
}
#topMenu {
    background: white;
    height: 50px;
    margin-top: 70px;
    text-align: center;
    overflow: auto;
    overflow-y: hidden; 
    white-space: nowrap;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    -webkit-overflow-scrolling: touch;
}
.borderBtn {
    text-decoration: none;
    color: black;
    padding: 14px 25px 14px 25px;
    display: inline-block;
}
.borderBtn:hover {
    background: #a1d7e0;
    cursor: pointer;
    color: black !important;
}
@keyframes fadeBtnUp {
    0% {
        opacity: 0;
    }
    66% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
.beginBtn {
    transition: 0.3s;
    margin-top: 200px;
    background: #000;
    background: rgba(0, 0, 0, 0.6666666666666666);
    height: auto;
    padding: 15px 30px;
    animation-name: fadeBtnUp;
    animation-duration: 2s;
}
.beginBtn:hover {
    background: #fff;
    background: rgba(255, 255, 255, 0.8);
    color: black;
}
.half {
    width: 50%;
    float: left;
    padding: 20px;
}
@media screen and (max-width: 800px) {
    #topMenu {
        margin-top: -100px;
        height: 220px;
    }
    .borderBtn {
        margin-top: 170px;
        padding: 14px 25px 14px 25px;
    }
    .half {
        width: 100%;
    }
}
.half img {
    box-shadow: 2px 2px 10px #333;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.33);
}
.upToTop {
    cursor: pointer;
    transform: rotate(90deg);
    text-align: center;
    border-radius: 50%;
    border: 2px white solid;
    width: 60px;
    height: 60px;
    font-size: 1.5em;
    margin: auto;
    opacity: 0.7;
    line-height: 56px;
}
.upToTop:hover {
    opacity: 1;
}