
/**
 * General
 */
html, body {
    height: 100%;
    position: relative;
}

/**
 * Header
 */
header {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: 50px;
    background: url('../assets/cover-bg.jpg') no-repeat center center;
    background-attachment: fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.header-iso .rubber {
    z-index: 40;
    left: 0; /* Temporary hack as this will be included in a future version of the framework */
}

.header-iso .topbar {
    z-index: 30;
    width: auto;
    right: 0;
}

.header-iso .rubber,
.header-iso .topbar {
    position: fixed;
}

.fixed-top .rubber {
    position: absolute;
}

.fixed-top .topbar .poweredby-txt {
    color: #eee;
}

header .cover-text {
    position: absolute;
    /*left: 25%;*/
    left: 25%;
    /*top: 35%;*/
    top: 20%;
    padding: 40px 20px 20px 20px;
    margin: 20px;
    color: #fff;
    text-align: right;

    background-color: rgba(0, 0, 0, 0.4);
}

header .cover-text .title {
    position: absolute;
    top: -50px;
    right: 20px;
    font-size: 87px;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.6);
    /*font-size: 64px;*/
    /*background-color: rgba(0, 0, 0, 0.3);*/
    /*padding: 8px 12px 2px 12px;*/
}

header .cover-text .title .dash {
    font-weight: bold;
}

header .cover-text .text {
    font-size: 28px;
    font-weight: 500;
    /*background-color: rgba(0, 0, 0, 0.3);*/
    padding: 0;
    margin: 0;
}

/**
 * Menu
 */
#offcanvas-menu {
    top: 0; /* Temporary hack as this will be included in a future version of the framework */
}

#main-menu {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #000;
    z-index: 20;
    min-height: initial;
    border-top: 5px solid #006bb6;
}

#main-menu,
#main-menu ul li a {
    border-radius: 0;
    outline: none;
    font-size: 24px;
    font-weight: 500;
}

#main-menu a { color: #eee; }
#main-menu a:hover { background-color: #f1f1f1; }
#main-menu a:focus { background-color: transparent; }
#main-menu .active a { background-color: #006bb6; }

#offcanvas-menu ul > li:not(.active) a:hover {
    color: #006bb6;
}

#main-menu a:focus,
#main-menu .active a,
#offcanvas-menu ul > li a:focus:hover {
    color: #fff;
}

.fixed-top #main-menu {
    position: fixed; /* Override Bootstrap default behavior as IDs have higher priority on classes.. */
    top: 0;
    bottom: auto;
    border-top: none;
    border-bottom: 5px solid #006bb6;
}

/**
 * Content
 */

.besmart { background-image: url('../assets/besmart-header.jpg'); }
.solutions { background-image: url('../assets/solutions-header.jpg'); }
.identifygaps { background-image: url('../assets/identifygaps-header.jpg'); }
.measureup { background-image: url('../assets/measureup-header.jpg'); }
.happyplaces { background-image: url('../assets/happyplaces-header.jpg'); }
.yourcity { background-image: url('../assets/yourcity-header.jpg'); }

.main.container {
    margin-bottom: 40px;
}

.main.container.subject {
    margin-bottom: 0;
}

.subject {
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.subject .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
}

.subject .title {
    font-size: 57px;
    text-align: center;
}

.subject .subtitle {
    text-align: center;
    padding: 0 10%;
}

a.fancybox:hover img {
    opacity: 0.8;
}

h1.watermark {
    font-size: 85px; 
    font-size: 7vw;
    color: #e6e6e6;
    overflow: hidden;
}

/**
 * Internet Explorer...
 */
.ie8 .subject {
    background-image: none;
}

.ie8 #main-menu a:hover {
    color: #006bb6;
}

.ie8 #main-menu li.active a:hover {
    color: #fff;
}

/**
 * Footer
 */
footer.footer-iso {
    margin: 0;
    padding: 20px 30px;
    background-image: none;
}

footer.footer-iso .footer-social {
    margin: 0;
}

/**
 * Responsive
 */
@media only screen and (max-width: 1199px) {
    #main-menu > .container {
        margin: 0;
        padding: 0;
        width: auto;
    }

    .poweredby-txt {
        display: none;
    }

}

@media only screen and (max-width: 991px) {
    h1.watermark {
        font-size: 60px; 
        font-size: 15vw;
    }
}

@media only screen and (max-width: 767px) {
    #main-menu {
        background-color: transparent;
        width: auto;
    }

    header .cover-text {
        left: 0;
        padding-top: 20px;
    }

    header .cover-text .title {
        font-size: 36px;
        top: -21px;
    }

    header .cover-text .text {
        font-size: 18px;
    }

    .fixed-top .rubber {
        position: fixed;
    }

    .fixed-top #main-menu {
        position: absolute; /* Reset position to absolute (otherwise it breaks in Safari..) */
        border-bottom: none;
    }

    footer.footer-iso .footer-social {
        margin-bottom: 30px;
    }
    
}


/**
 * Hack as "background-attachment: fixed;" has been disabled from mobile browsers.
 * Fixed-backgrounds have huge repaint cost..
 * Targets major devices (iPhones, iPads etc...) except laptops...
 */
@media only screen and (max-device-width: 1024px) {
    header,
    .subject {
        background-attachment: scroll;
    }
}
