@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500');
@import "timeline.scss";

/* Resets */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup,
var, b, i, hr, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, figure, figcaption, hgroup, menu, footer, header, nav, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
}

.clearfix:before, .clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    zoom: 1;
}

.maxwidth {
    max-width: 75rem;
    margin: auto;
}

article, aside, canvas, figure, figure img, figcaption, hgroup, footer, header, nav, section, audio, video {
    display: block;
}

body, input, button,
textarea, select, option {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-size: 1.6em;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -webkit-text-shadow: rgba(0, 0, 0, 0.01) 0 0 1px;
    text-shadow: rgba(0, 0, 0, 0.01) 0 0 1px;
}

body {
    background: #333333;
    background-image: url("../img/mbabane.jpg");
    background-attachment: fixed;
    background-size: cover;
    text-align: center;
    overflow-x: hidden;
}

p {
    margin-bottom: 1em;
}

b {
    font-weight: 500;
}

a {
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid transparent;

    transition: .3s all ease-in-out;
    -moz-transition: .3s all ease-in-out;
    -webkit-transition: .3s all ease-in-out;
}

a:hover, a:hover:before, a:hover:after {
    box-shadow: 2px 2px 10px 5px rgba(0, 0, 0, 0.3);
}

header {
    position: fixed;
    z-index: 999;
    font-size: .8em;
    left: 0;
    top: 0;
    padding: 10px;
    max-height: 100px
}

header *,
:after,
:before {
    transition: .3s all ease-in-out;
    -moz-transition: .3s all ease-in-out;
    -webkit-transition: .3s all ease-in-out;
}

header.active {
    max-height: 100vh;
}

.menutoggle {
    display: block;
    width: 32px;
    height: 44px;
    cursor: pointer;
    padding: 12px;
    position: relative;
}

.menutoggle span,
.menutoggle span:before,
.menutoggle span:after {
    content: "";
    height: 4px;
    width: 32px;
    display: block;
    border-radius: 2px;
    background: #333;
}

.highlight .menutoggle span,
.highlight .menutoggle span:before,
.highlight .menutoggle span:after {
    background: #fff;
}

.menutoggle span {
    margin-top: 20px;
    position: relative;
}

.menutoggle span:before {
    position: absolute;
    top: -12px;
}

.menutoggle span:after {
    position: absolute;
    top: 12px;
}

nav {
    visibility: hidden;
}

nav ul {
    list-style: none;
    text-align: left;
}

nav ul li {
    position: relative;
    visibility: hidden;
    opacity: 0;
}

.active nav {
    visibility: visible;
}

.highlight nav ul li,
.active nav ul li {
    position: relative;
    visibility: visible;
    opacity: 1;
}

nav ul img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

nav ul i {
    font-size: 1.2em;
    width: 36px;
    box-sizing: border-box;
    text-align: center;
}

nav ul a {
    display: block;
    padding: 10px;
    color: #fff;
}

nav ul span {
    position: absolute;
    left: 50px;
    top: 10px;
    white-space: nowrap;
    background: #20388a;
    border-radius: 10px;
    padding: 3px 10px;
    font-size: .8em;
    visibility: hidden;
    opacity: 0;
}

.active nav ul span,
nav ul li:hover span {
    opacity: 1;
    visibility: visible;
}

nav hr {
    border-collapse: collapse;
    height: 1px;
    border-top: 1px solid #fff;
    opacity: 0;
    visibility: hidden;
    margin: 5px 0;
}

.highlight nav hr {
    opacity: 0.5;
    visibility: visible;
}

h3 {
    font-size: 3em;
    margin-bottom: .5em;
}

.sunrise {
    background: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    overflow: hidden;
}

.sunrise h2 {
    transform: scale(.7);
    max-width: 800px;
    margin: auto;
    position: relative;
    z-index: 9;
    text-transform: uppercase;
    color: #fff;
    font-weight: 300;
    transition: 10s all ease-in-out;
    -moz-transition: 10s all ease-in-out;
    -webkit-transition: 10s all ease-in-out;
}

.sunrise:hover h2 {
    transform: scale(1);
}

/* cover-video */

.video-wrapper {
    position: fixed;
    width: 100%;
    margin: rem-calc(0 0 54.5);
    min-height: 31.25rem;
    overflow: hidden;
    height: 100%;

    background: url(../img/video-bg.jpg) no-repeat center;
    background-size: cover;
}

.video-overlay {
    height: 100%;
    opacity: .6;
    background: #333;
    position: fixed;
    width: 100%;
    z-index: 2;
}

.video-expand:hover {
    -webkit-transition: all 400ms ease-in-out;
    -moz-transition: all 400ms ease-in-out;
    transition: all 400ms ease-in-out;
}

.tv {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tv .screen {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    margin: auto;
    opacity: 0;
    transition: opacity .5s;
}

.tv .screen.active {
    opacity: 1;
}

/* cover-video ends */

.skyline {
    position: absolute;
    width: 100%;
    bottom: -10px;
    min-width: 660px;
    right: 0;
    z-index: 3;
}

.intro {
    position: relative;
    box-sizing: border-box;
    z-index: 2;
    padding: 10px 15vw;
    min-height: 85vh;
    color: #333;
    overflow: hidden;
}

.intro a {
    color: #fff;
    display: inline-block;
    margin-top: 20px;
    font-weight: 500;
    font-size: .8em;
    padding: 5px 20px;
    border: 1px solid #fff;
    border-radius: 25px;
    position: relative;
    z-index: 9;
}

.intro a i {
    font-size: .8em;
    margin-right: 8px;
}

.select {
    position: relative;
    box-sizing: border-box;
    z-index: 3;
    padding: 10vh 15vw;
    background: #42210B;
}

.select a {
    display: block;
}

.pillars {
    display: grid;
    padding-top: 55px;
    grid-template-columns: 4fr 4fr 4fr 4fr;
    grid-gap: 20px;
}

.pillar .icon {
    box-sizing: border-box;
    width: 12vw;
    height: 12vw;
    border: 4px solid #fff;
    border-radius: 50%;
    display: grid;
    justify-items: center;
    align-items: center;
    padding: 15%;
    margin: auto;
    margin-bottom: 20px;
}

h1 {
    margin: 10vh auto;
}

h1 img {
    display: block;
    width: 250px;
    height: auto;
    margin: auto;
}

.pillar-section {
    padding: 50px 0;
    font-size: .8em;
    background: no-repeat center fixed;
    background-size: 50%;
    position: relative;
    z-index: 2;
}

.housing {
    background-image: url(../icons/materialgre.png);
}

.manufacturing {
    background-image: url(../icons/financialgre.png);
}

.healthcare {
    background-image: url(../icons/technicalgre.png);
}

.food-security {
    background-image: url(../icons/stategra.png);
}

.natural-resources {
    background-image: url(../icons/radio-bg.svg);
}

.information-network {
    background-image: url(../icons/partnership-bg.svg);
}

.food-security,
.food-security .container::after {
    background-color: #232612;
}

.housing,
.housing .container::after {
    background-color: #0c180b;
}

.manufacturing,
.manufacturing .container::after {
    background-color: #000000;
}

#natural-resources, .natural-resources .container::after {
    background-color: #000000;
}

#information-network, .information-network .container::after {
    background-color: #42210B;
}

.healthcare,
.healthcare .container::after {
    background-color: #301934;
}

/* The actual timeline (the vertical ruler) */
.timeline {
    position: relative;
    margin: 0 10vw;
    padding-top: 160px;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
    content: '';
    position: absolute;
    width: 1px;
    top: 0;
    bottom: 0;
    left: 50%;
    background: #ffffff; /* Old browsers */
    background: -moz-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 255) 6%, rgba(255, 255, 255, 255) 94%, rgba(255, 255, 255, 0) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 255) 6%, rgba(255, 255, 255, 255) 94%, rgba(255, 255, 255, 0) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 255) 6%, rgba(255, 255, 255, 255) 94%, rgba(255, 255, 255, 0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

/* Container around content */
.container {
    box-sizing: border-box;
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-top: -100px;
    z-index: 3;
}

/* The circles on the timeline */
.container::after {
    content: "";
    position: absolute;
    width: 45px;
    height: 45px;
    right: -24px;
    border: 2px solid #fff;
    top: 92px;
    border-radius: 50%;
    z-index: 1;
    background: #333 url(../img/arrow-up.svg) no-repeat center;
    background-size: auto 80%;
}

.container.reduce::after {
    background-image: url(../img/arrow-down.svg);
}

/* Place the container to the left */
.left {
    left: 0;
    text-align: right;
}

/* Place the container to the right */
.right {
    left: 50%;
    text-align: left;
}

/* Add arrows to the container */
.left::before,
.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 117px;
    width: 30px;
    z-index: 1;
    right: 30px;
    border-top: 2px solid #fff;
}

/* Add arrows to the right container (pointing left) */
.right::before {
    left: 30px;
}

/* Fix the circle for containers on the right side */
.right::after {
    left: -25px;
}

/* The actual content */
.content {
    padding: 20px 30px;
    position: relative;
    border-radius: 6px;
}

.content img {
    width: 80px;
}

.enablers {
    background: #093447 url(../img/skyline-2.svg) no-repeat center 101%;
    padding: 50px 10px 100px;
    min-height: 90vh;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.stakeholders {
    background: #00466D url("../img/stakeholders.svg") no-repeat center 120%;
    background-size: 600px;
    padding: 50px 10px 100px;
    min-height: 90vh;
    box-sizing: border-box;
    margin-top: -1px;
    position: relative;
    z-index: 2;
}

footer {
    display: grid;
    grid-template-columns: 1fr 70px 1fr;
    grid-gap: 10px;
    align-items: center;
    font-size: .7em;
    padding: 10px;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
}

footer p {
    margin: 20px 0;
}

footer a {
    display: inline-block;
    padding: 5px 10px;
    /* color: #333; */
}

footer a.totop {
    border: 1px solid #fff;
    padding: 20px;
}

.holders {
    text-align: center;
}

.holders > div {
    display: inline-block;
    vertical-align: top;
    width: 13vw;
    margin: 20px 1vw;
    font-size: .8em;
}

.holders span {
    border: 2px solid #fff;
    border-radius: 50%;
    width: 12vw;
    height: 12vw;
    box-sizing: border-box;
    display: grid;

}

.holders img {
    display: block;
    margin: auto;
    max-height: 7vw;
    max-width: 7vw;
}

.holders p {
    padding-top: 20px;
    line-height: 1.2;
}

#enablerslider {
    margin: auto;
    padding: 10px;
    max-width: 800px;
}

#enablerslider .slide > div {
    display: grid;
    grid-template-columns: 200px auto;
    text-align: left;
    grid-column-gap: 40px;
    font-size: 0.7em;
}

#enablerslider .slide img {
    width: 100%;
}

#enablerslider .slide h4 {
    font-size: 1.2em;
    margin-bottom: .5em;
}

#enablerslider .slide ul {
    margin-left: 25px;
}

.flex-control-nav {
    list-style: none;
    text-align: center;
    padding-top: 20px;
    clear: both;
}

.flex-control-nav li {
    display: inline-block;
    vertical-align: middle;
    padding: 5px 2px;
}

.flex-control-nav li a {
    display: block;
    box-sizing: border-box;
    padding: 0px 10px;
    overflow: hidden;
    border: 1px solid #fff;
    font-size: .8em;
    opacity: .5;
}

.flex-control-nav li a.flex-active {
    opacity: 1;
    border-width: 2px;
}

.flex-direction-nav {
    list-style: none;
    position: relative;
}

.flex-direction-nav li {
    position: absolute;
    top: -24px;
}

.flex-direction-nav li a {
    text-indent: -9999px;
    overflow: hidden;
    display: block;
    height: 2px;
    background: #fff;
    width: 30px;
}

.flex-direction-nav li a:before,
.flex-direction-nav li a:after {
    content: " ";
    display: block;
    position: absolute;
    height: 3px;
    background: #fff;
    width: 15px;
}

.flex-direction-nav li a:after {
    transform: rotate(30deg);
    top: 4px;
}

.flex-direction-nav li a:before {
    transform: rotate(-30deg);
    top: -4px;
}

.flex-direction-nav li.flex-nav-next {
    right: 0;
}

.flex-direction-nav li a.flex-next:after {
    transform: rotate(30deg);
    top: -4px;
    right: 0;
}

.flex-direction-nav li a.flex-next:before {
    transform: rotate(-30deg);
    top: 4px;
    right: 0;
}

.overlay {
    position: fixed;
    z-index: 99;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(50, 50, 50, 0.8);
    display: none;
}

.video-container {
    position: fixed;
    z-index: 101;
    width: 760px;
    height: 400px;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    display: none;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.closevideo {
    position: absolute;
    width: 30px;
    height: 30px;
    top: -40px;
    right: 0;
    cursor: pointer;
}

.big4-tabs ul {
    list-style: none;
}

.big4-tabs li {
    display: inline-block;
    margin: 10px;
    font-size: .8em;
}

.big4-tabs li a {
    display: block;
    border: 1px solid #fff;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.big4-tabs li a.active {
    background-color: #fff;
    color: #333
}

.tab-content {
    max-height: 0;
    overflow: hidden;
    box-sizing: border-box;

    transition: .3s all ease-in-out;
    -moz-transition: .3s all ease-in-out;
    -webkit-transition: .3s all ease-in-out;
}

.tab-content.active {
    max-height: 2000px;
}

.opportunities {
    padding: 20px;
}

.opportunities > div {
    background: url(../img/idea.svg) no-repeat center top;
    background-size: 60px;
    display: inline-block;
    margin: 10px;
    vertical-align: top;
    width: 40%;
    padding: 80px 2% 20px 2%;
    max-width: 400px;
}

.opportunities h4 {
    margin-bottom: 1em;
}

.opportunities li {
    list-style: none;
    font-size: .85em;
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
}

.opportunities li:before {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    background: #fff;
    opacity: .6;
    transform: rotate(45deg);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.toggle-switch a {
    border: 1px solid #fff;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-block;
    margin: 5px 0;
    font-size: .7em;
}

.toggle-switch i {
    font-size: .8em;
    transition: .3s all ease-in-out;
    -moz-transition: .3s all ease-in-out;
    -webkit-transition: .3s all ease-in-out;
}

.toggle-switch.active a {
    background-color: #fff;
    color: #333;
}

.toggle-switch + div {
    max-height: 0;
    overflow: hidden;
    transition: .3s all ease-in-out;
    -moz-transition: .3s all ease-in-out;
    -webkit-transition: .3s all ease-in-out;
}

.toggle-switch.active + div {
    max-height: 1000px;
}

.enabler-opportunities h5,
.enabler-contacts h5 {
    margin-bottom: 1em;
}

.enabler-contacts p {
    margin-bottom: .4em;
}

.enabler-contacts a {
    text-decoration: underline;
}

.enabler-contacts img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.contacts {
    padding: 50px;
    max-width: 1000px;
    margin: auto;
}

.slides.contacts {
    max-width: none;
}

.flexslider.carousel {
    max-width: 900px;
    margin: auto;
    padding: 10px 60px;
    overflow: hidden;
}

.flexslider.carousel .flex-viewport {
    overflow: visible !important;
}

.contacts > div,
.contacts > li {
    display: inline-block;
    width: 320px;
    vertical-align: top;
    margin-bottom: 20px;
    list-style: none;

}

.contacts h5 {
    margin-bottom: 1em;
}

.contacts p {
    margin-bottom: .1em;
    font-size: .8em;
}

.contacts img {
    width: 150px;
    height: 150px;
    display: block;
    margin: 10px auto;
    border-radius: 50%;
    object-fit: cover;
}

.contacts a {
    text-decoration: underline;
}

.enabler-contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

.enabler-contacts > div {
    display: grid;
    grid-template-columns: 100px auto;
    grid-gap: 10px;
    font-size: 0.7em;
}

.contacts-section {
    background: #00314c;
    z-index: 2;
    position: relative;
    padding: 30px;
}

.contacts-section .contacts {
    font-size: .7em;
    padding: 0;
}

.contacts-section .contacts > li {
    width: 240px;
    margin: 0 10px;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 800px) {
    body, input, button,
    textarea, select, option {
        font-size: 1.4em;
    }

    header.active {
        background: rgba(0, 0, 0, 0.8);
        right: 0;
        bottom: 0;
    }

    header.active .menutoggle span,
    header.active .menutoggle span:before,
    header.active .menutoggle span:after {
        background: #fff;
    }

    .highlight nav ul li {
        visibility: hidden;
        opacity: 0;
    }

    .active nav ul li {
        visibility: visible;
        opacity: 1;
    }

    nav ul li {
        background: #20388a;
        margin-bottom: 5px;
        border-radius: 5px;
    }

    nav ul li span {
        background: none;
        position: static;
        font-size: 1.1em;
    }

    .highlight nav hr {
        opacity: 0;
        visibility: hidden;
    }

    .active nav hr {
        opacity: 0.5;
        visibility: visible;
    }

    .intro {
        min-height: 80vh;
        padding: 10px 20px;
    }

    .sun {
        bottom: 25vh;
    }

    .hills {
        margin-bottom: -30px;
        transform: none !important;
    }

    h1 {
        width: 100%;
        height: 250px;
    }

    h3 {
        font-size: 1.3em;
    }

    .pillar-section {
        background-size: contain;
    }

    .timeline {
        padding-top: 10px;
    }

    .timeline::after {
        left: 31px;
    }

    .container {
        width: 100%;
        padding-left: 55px;
        padding-right: 10px;
        margin-top: 0;
    }

    .left {
        text-align: left;
    }

    .container::before {
        left: 40px;
    }

    .left::after, .right::after {
        left: 6px;
    }

    .right {
        left: 0%;
    }

    .content {
        padding: 10px 0 0px 30px;
    }

    .stakeholders {
        background-size: 80%;
        background-position: center 105%;
    }

    .select {
        padding: 40px 20px;
    }

    .select a {
        text-align: left;
        display: grid;
        grid-template-columns: 60px auto;
        grid-gap: 20px;
        align-items: center;
        font-size: .8em;
    }

    .pillars {
        display: block;
    }

    .pillar .icon {
        width: 60px;
        height: 60px;
        border-width: 2px;
        border-radius: 50%;
        padding: 10px;
    }

    #enablerslider .slide > div {
        display: block;
    }

    #enablerslider .slide img {
        margin: 10px auto 20px;
        max-width: 100px;
        display: block;
    }

    .holders > div {
        width: 100px;
    }

    .holders span {
        width: 100px;
        height: 100px;
    }

    .holders img {
        max-height: 50px;
        max-width: 50px;
    }

    .video-container {
        width: 320px;
        height: 200px;
    }

    .opportunities > div {
        width: 80%;
    }

}

@media screen and (max-width: 560px) {
    .enabler-contacts {
        grid-template-columns: auto;
    }
}
