html {
    width: 100%;
    height: 100%;
    margin: 0;
}

/* general */

body {
    background-color: white;
    font-family: arial, helvetica, verdana, sans-serif;
    font-style: normal;
    font-size: small;
    min-width: 800px;
    margin: 0;
    /*
     * why o why, in order to make div 100% of window width/height 100% needs to be
     * propagated down to the div.
     */
    height: 100%;
    width: 100%;
    /* crap, but I see no other solution to avoid the menubar from shrinking on going to projects */
    overflow-y: scroll;
}

#spinner {
    display: none;
    position: fixed;
    left: 49.8%; /* why tell me why */
    top: 50.2%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    z-index: 10000000;
}

#spinner img {
    height: 165px;
    width: 220px;
    opacity: 0.92;
}

#backgroundworld {
    background-color: white;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-origin: border-box;
    background-position: center center;
    width: 100%;
    height: 100%;
}

#bottomtext {
    z-index: 1000;
    position: absolute;
    bottom: 15px;
    font-size: 2em;
}

#bottomtext.left {
    left: 0;
}

#bottomtext.right {
    right: 0;
}

.black {
    color: black;
}

.white {
    color: white;
}

a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
    color: #cc0000
}

ul {
    margin-left: -33px;
    margin-top: 0;
}

li {
    list-style-type: none;
    margin-top: 13px;
}

pre {
    font-family: arial, verdana, sans-serif;
    font-size: 1.0em;
}

a:active, a:focus {
    outline-style: none;
    -moz-outline-style: none;
}

/* navbar */
#navbar {
    position: fixed;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-between;
    min-height: 168px;
    top: 0;
    margin: 0;
    height: 35px;
    padding: 0;
    z-index: 1000;
    width: 100%;
}

#navbar-project {
    flex-basis: 86px;
}

#navbar-photobook {
    flex-basis: 75px;
}

#navbar-facebook {
    flex-basis: 106px;
}

#navbar-blog {
    flex-basis: 48px;
}

#navbar-misc {
    flex-basis: 50px;
}

#navbar-contact {
    flex-basis: 83px;
}

#navbar a {
    color: black;
}

#navbar li {
    text-align: left;
}

#navbar h1 {
    color: black;
    font-size: 24px !important;
    font-weight: normal;
}

#navbar a.nav-selected h1, .sub-active {
    color: LightBlue !important;
}

ul.navbar-nav {
    padding: 0;
    white-space: nowrap;
}

/* mobile devices */
@media (max-width: 1025px) and (orientation: portrait) {

    #navbar h1 {
        font-size: 48px !important;
    }

    #navbar {
        width: 842px;
    }

    .portrait-hide {
        display: none;
    }

    #navbar-project {
        flex-basis: 86px;
    }

    #navbar-photobook {
        flex-basis: 140px;

    }

    #navbar-misc {
        flex-basis: 90px;

    }

    #navbar-contact {
        flex-basis: 210px;
    }

    #selector_box {
        display: none;
    }
}

/* frontpage clickbox */
.clickbox {
    width: 20%;
    height: 20%;
    position: relative;
    left: 40%;
    top: 40%;
    border: 0 none;
}

.clickbox.active:hover {
    cursor: pointer;
}

/* content */
/*
#content {
    margin-top: 32px;
    margin-bottom: -32px; firefox scroll-fucker workaround
}
*/
/* selector */

#selector_box {
    position: fixed;
    width: 100%;
    min-height: 113px;
    background-color: white;
    margin: 0;
    padding: 0;
    z-index: 1000000;
}

#selector {
    height: 85px;
    margin-top: 10px;
    padding: 0;
    margin-left: 0;
    margin-bottom: 18px;
}

#selector > li {
    margin: 0;
    padding-top: 5px;
    font-size: 1.4em;
    cursor: pointer;
}

.selected {
    background-color: LightBlue;
}

#selector_box {
    display: none;
}

#selector a, #selector a:visited {
    color: black;
}

#selector .subchoice, #selector a:visited.subchoice {
    padding: 0 4px;
    margin: 0 10px 0 -4px;
    color: lightblue;
}

#selector .selected {
    color: white;
}

.subselector {
    position: absolute;
    left: 158px;
    margin-top: -21px;
}

.subselector li {
    display: inline;
    font-size: 1.0em;
}

.submenu {
    overflow-x: visible;
    white-space: nowrap;
    width: 60px;
}

#items_list {
    /* only for misc */
    margin-left: 0;
    padding: 0;
    padding-top: 155px; /* keep list out of selector_box */
}

#clocks_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 9%;
}

@media (min-width: 576px){
    .mobile-alert .modal-title{
        font-size: 3.5rem;
    }
    .mobile-alert .modal-body{
        padding: 2rem;
    }
    .mobile-alert .modal-title{
        padding: 2rem 2rem;
    }
    .mobile-alert .modal-body, 
    .mobile-alert .btn,
    .modal-header .close span{
        font-size: 2.5rem;
    }
    .modal-dialog {
        max-width: 85%;
        margin: 1.75rem auto;
    }
}
