@import url(drag-drop.css);

/* -------------------------------------- Framework ------ */

.container {
    width: 100%;
    padding: 0 10%;
}

@media (min-width: 1200px) {
    .container {
        max-width: 100%;
    }
}
@media (min-width: 992px) {
    .container {
        max-width: 100%;
    }
}
@media (min-width: 768px) {
    .container {
        max-width: 100%;
    }
}
@media (max-width: 576px) {
    .container {
        max-width: 100%;
    }
}
@media (min-width: 576px) {
    .container {
        max-width: 100%;
    }
}

/*--------------------------------------- Scrollbar ---*/

body::-webkit-scrollbar {
    width: 1rem;
    transition: 0.9s cubic-bezier(0.18, 1, 0.21, 1);
}
 
body::-webkit-scrollbar-track {
    -webkit-box-shadow: 0;
    background-color: rgba(160, 160, 160, 0.3);
}
 
body::-webkit-scrollbar-thumb {
    background-color: rgba(52,52,52,0.3);
    outline: 1px solid rgba(52,52,52,0.3);
}

.flex-collection {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
}

.flex-center {
    align-items: center;
    display: flex;
}

.flex-selected {
    width: 100% !important;
}

.flex-collection.no-space {
    justify-content: center !important;
}

.flex-border {
    border-bottom: 1px solid #d3d6d8;
    border-radius: 0;
    margin-bottom: 30px;
}

.flex-collection.no-response .flex-1 {
    width: 100%;
}
.flex-collection.no-response .flex-2 {
    width: 48%;
}
.flex-collection.no-response .flex-3 {
    width: 32%;
}
.flex-collection.no-response .flex-4 {
    width: 23%;
}
.flex-collection.no-response .flex-5 {
    width: 18%;
}
.flex-collection.no-response .flex-6 {
    width: 15%;
}
.flex-collection.no-response .flex-7 {
    width: 13%;
}
.flex-collection.no-response .flex-10 {
    width: 10%;
}

@media (min-width: 1300px) {
    .flex-3 {
        width: 32%;
    }
    
    .flex-2 {
        width: 48%;
    }
    
    .flex-4 {
        width: 23%;
    }
    
    .flex-5 {
        width: 18%;
    }
    
    .flex-6 {
        width: 15%;
    }
    
    .flex-7 {
        width: 13%;
    }
}

@media (min-width: 992px) and (max-width: 1300px) {
    .flex-3 {
        width: 48%;
    }
    
    .flex-2 {
        width: 48%;
    }
    
    .flex-4 {
        width: 23%;
    }
    
    .flex-5 {
        width: 48%;
    }
    
    .flex-6 {
        width: 100%;
    }
    
    .flex-7 {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .flex-3 {
        width: 100%;
    }
    
    .flex-2 {
        width: 100%;
    }
    
    .flex-4 {
        width: 100%;
    }
    
    .flex-5 {
        width: 100%;
    }
    
    .flex-6 {
        width: 100%;
    }
    
    .flex-7 {
        width: 100%;
    }
}

.container-reading {
    width: 100%;
    padding: 0 10%;
}

section.internal-heading {
    background: #28323e;
    position: relative;
    display: none;
}

section.internal-heading .heading-content {
    padding: 190px 100px 100px 10%;
    min-height: 79vh;
}

@media screen and (max-width: 980px) {
    section.internal-heading .heading-content {
        min-height: auto;
    }
}

section.internal-heading h2,
section.internal-heading h1 {
    color: #ececec;
}

section.internal-heading .module-number {
    background: #5ec39f;
    color: #2c2c2c;
    font-size: 0.7rem !important;
    font-weight: 800;
    display: inline-block;
    padding: 3px 20px;
    border-radius: 50px;
    
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

section.internal-content {
    padding: 90px 0;
    min-height: 74vh;
    color: #28323e;
    margin-top: 50px;
    display: none;
}

@media (max-width: 1200px) {
    section.internal-heading h1, 
    section.internal-heading h2  {
        font-size: 4rem;
    }
}
@media (max-width: 992px) {
    section.internal-heading h1, 
    section.internal-heading h2 {
        font-size: 3.6rem;
    }
}
@media (max-width: 768px) {
    section.internal-heading h1, 
    section.internal-heading h2 {
        font-size: 3.5rem;
    }
}
@media (max-width: 576px) {
    section.internal-heading h1, 
    section.internal-heading h2 {
        font-size: 2rem;
    }
}

section.landing-content {
    padding: 50px 0;
}

section.landing-content h4 {
    padding-bottom: 30px;
}

.pd0 {
    padding: 0;
}

.pb0 {
    padding-bottom: 0;
}

.mb0 {
    margin: 0;
}

.pb30 {
    padding-bottom: 30px;
}

.pb50 {
    padding-bottom: 50px !important;
}

.mb30 {
    margin-bottom: 30px !important;
}

.mt50 {
    margin-top: 50px !important;
}

.borderless {
    border: 0;
}

.invisible {
    display: none !important;
}

.centered {
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    left: 0;
    right: 15px;
    text-align: right;
}

/* -------------------------------------- Palette ------ */

.primary {
    background-color: #1971c2;
}

.primary-border {
    border-right: 5px solid #1971c2;
}

.primary-text {
    color: #1971c2;
}

.secondary {
    background-color: #a5d8ff;
}

.secondary-border {
    border-right: 5px solid #a5d8ff;
}

.secondary-text {
    color: #a5d8ff;
}

.tertiary {
    background-color: #228ae6;
}

.tertiary-border {
    border-right: 5px solid #228ae6;
}

.tertiary-text {
    color: #228ae6;
}

.white {
    background: #FFF;
/*    border-bottom: solid 1px rgba(160, 160, 160, 0.3);*/
/*    border-top: solid 1px rgba(160, 160, 160, 0.3);*/
}

.white-text {
    color: #FFF;
}

.white-border {
    border-right: 5px solid #FFF;  
}

@media screen and (max-width: 1200px) {
    .primary-border {
        border-bottom: 5px solid #1971c2;
        border-right: 0;
    }

    .secondary-border {
        border-bottom: 5px solid tomato;
        border-right: 0;
    }

    .tertiary-border {
        border-bottom: 5px solid #228ae6;
        border-right: 0;
    }

    .white-border {
        border-bottom: 5px solid #FFF;
        border-right: 0;
    }
}

/* -------------------------------------- Bottom Navigation ------ */

.navigation-bar {
    background: #FFF;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    
    z-index: 100000;
    
    -webkit-box-shadow: 0px 3px 57px -15px rgba(0,0,0,0.38);
    -moz-box-shadow: 0px 3px 57px -15px rgba(0,0,0,0.38);
    box-shadow: 0px 3px 57px -15px rgba(0,0,0,0.38);
    
    font-size: 0.9rem;
}

.bar-next,
.bar-previous {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    
    width: 49%;
    display: inline-block;
    border-left: 1px solid #ececec;
    padding: 30px;
    
    border-bottom: 0;
}

a.bar-next:hover,
a.bar-previous:hover  {
    background: rgba(43,43,43,0.04);
}

.bar-next {
    text-align: right;
    border-right: 1px solid #ececec;
}

.bar-icon {
    border: 1px solid #ececec;
}

.menu-title {
    margin: 0;
    display: inline-block;
    text-align: right;
    padding-top: 30px;
    padding-bottom: 30px;
    word-wrap: break-word;
    
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35%;
    left: 50%;
    line-height: 1.2;
}

@media screen and (max-width: 1234px) {
    .bar-next,
    .bar-previous {
        padding: 10px !important;
        border-bottom: 1px solid #ececec !important;
    }
    
    .navigation-bar .flex-collection .flex-2 {
        width: 100% !important;
    }
    
    .menu-title {
        position: relative !important;
        left: 0;
        width: 80%;
        word-wrap: normal !important;
    }
}

@media screen and (max-width: 736px) {
    .primary-nav {
        padding-top: 5px !important;
        padding-bottom: 0px !important;
    }
    
    .menu-title {
        display: none;
    }
    
    footer {
        margin-bottom: 30px !important;
    }
    
    footer img {
        width: 90px;
    }
    
    span.direction-title {
        display: none;
    }
}

.button.secondary {
    background: #28323e;
}

/*--------------------------------------- Header ---*/

nav.primary-nav {
    padding: 0;
    overflow: hidden;

    display: inline-block;
    float: right;
    padding-top: 30px;
    padding-bottom: 30px;
}

nav.primary-nav ul {
    margin: 0;
    float: right;
}

nav.primary-nav ul li {
    margin: 0;
    display: inline-block;
}

nav.primary-nav ul li a {
    text-decoration: none;
    border: 0;
}

header h1 {
    font-size: 2rem;
    line-height: 1;
    margin-top: 22px;
    display: inline-block;
    float: left;
    
    font-family: 'Noto Sans HK', sans-serif;
    font-weight: 600;
    color: #28323e;
}

header.landing h1 {
    color: rgba(255, 255, 255, 0.57);
    font-weight: 400;
}

header h1 span.module {
    font-weight: 300;
}

@media screen and (max-width: 736px) {
    header h1 {
       font-size: 1.2em;
       margin: 15px 0;
       padding: 0 !important;
    }

    nav.primary-nav ul li,
    nav.primary-nav ul li a {
        padding: 0;
        padding: 6.5px 0;
    }
}

span.menu-label {
    margin-left: 5px;
}

/*--------------------------------------- Footer ---*/

footer {
    margin-top: 0 !important;
    position: relative;
    border-top: solid 1px rgba(160, 160, 160, 0.3);
    overflow: hidden;
    
    height: 120px;
    background: #FFFFFF;
}

@media screen and (min-width: 736px) {
    footer {
        margin-bottom: 85px !important;
    }
}

@media screen and (max-width: 737px) {
    footer {
        margin-bottom: 30px !important;
    }
}

footer.landing {
    border-top: solid 1px rgba(160, 160, 160, 0.3);
    margin-top: 0 !important;
    display: none;
}

footer .copy,
footer .byline {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 900;
}

footer .copy {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10%;
}

footer .byline {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10%;
}

@media screen and (max-width: 550px) {
    footer .copy,
    footer .byline {
        text-align: center;
        display: block;
        float: none;
        padding: 10px 0;
    }
}

/*--------------------------------------- Introduction ---*/

button.begin-module {
    border-radius: 0;
    position: absolute;
    bottom: 0;
    top: 0;
    right: 0;
    
    z-index: 1000;
    margin: 0;
}

/*--------------------------------------- Banner Image ---*/

.banner-image {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    background-size: cover !important;
    background-position: center center !important;
}

@media (max-width: 992px) {
    .banner-image {
        position: relative;
        height: 200px;
    }
}

.banner-image:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    content: "";

    background: rgba(40, 50, 62, 0.34);
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    transform: translateY(-50%);

    text-align: center;
    color: #FFF;
}

.banner-content button {
    background: transparent;
    border: 0;
}

.banner-content button i {
    color: #FFF;
}

.banner-content button i:hover {
    color:  #228ae6;
}

.banner-content h1 {
    color: #FFF;
    font-size: 4em;
}

.banner-content h5.subtitle {
    color: #1971c2;
}

@media screen and (max-width: 835px) {
    .banner-content h1 {
        font-size: 3em;
    }

    .banner-content h5.subtitle {
        font-size: 1em;
    }

    .banner-content p {
        font-size: 0.8em;
    }
}

/*--------------------------------------- Images ---*/

.inline-image {
    border: 25px solid #FFF;
    width: 100%;
    box-shadow: 0px 0px 45px 0px rgba(0,0,0,0.17);
    background: #FFF;
}

.image {
    width: 100%;
}

a.image {
    border-bottom: 0;
    margin-bottom: 30px;
}

.image-container {
    position: relative;
    display: block;
}

.image-caption {
    width: 100%;
    padding: 10px 30px 20px;
    font-size: 0.8rem;
    background: rgba(243, 243, 243, 0.74);
    position: absolute;
    bottom: 0px;
}

@media screen and (max-width: 1200px) {
    .image-full {
        height: auto;
        position: relative;
    }
    
    .image-caption {
        width: 100%;
    }
}

figcaption {
    display: block;
    font-size: 0.7em !important;
    line-height: 1.42857143;
    color: #777;
    font-style: italic !important;
}

/*--------------------------------------- Video ---*/

.video-caption-content,
.video-caption-media {
    padding: 60px 10px;
    width: 100%;
}

@media screen and (max-width: 1200px) {
    .video-caption-content {
        padding: 10px 0 60px 0;
    }

    .video-caption-media {
        padding: 60px 0 10px 0;
    }
}

/*--------------------------------------- Responsive iframe */

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 35px;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*--------------------------------------- Cards ---*/

.objective-card {
    background: #1f242f;
    margin: 1em 0;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    
    border-bottom-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}

@media (max-width: 768px) {
    .objective-card, 
    .objective-card .numberical-value i,
    .objective-card .card-summary {
        font-size: 8pt !important;
    }
}

.objective-card .numberical-value {
    font-size: 1em;
    font-weight: 600;
    display: block;
    padding: 25px 50px;
    background: #28323e;
    color: white;
    
    position: relative;
    overflow: hidden;
    z-index: 2;
    
    border-top-right-radius: 30px;
}

.objective-card .numberical-value i {
    font-size: 1rem;
    margin-right: 10px;
    z-index: 1;
    background: rgba(255,255,255,0.08);
    color: #5ec39f !important;
    padding: 15px;
    border-radius: 30px;
}

.objective-card .card-summary {
    padding:  0 50px 50px 50px;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

.objective-card .card-summary ul.listing li {
    background: rgba(255,255,255,0.04);
}

.objective-card .card-summary ul.listing li:before {
    background: rgba(255,255,255,0.04);
    color: #FFF;
}

.objective-card .category {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -64px;

    color: #FFF;
    font-weight: 900;
    font-size: 3em;
}

.two-character {
    left: -80px !important;
}

.objective-card button {
    background:  #f1f1f1;
    color: #28323e !important;
    border: 0;
    
    width: 100%;
    margin: 0 auto;
    min-width: 100px;
    clear: both;
    
    padding: 20px 30px;
    
    display: block;
    cursor: pointer;
    
    font-weight: 500;
    
    transition: cubic-bezier(0.2, 0.72, 1, 1) ease-in 100ms;
}

.objective-card button:focus,
.objective-card button:hover {
    background: #cecece;
    color: #28323e;
    transition: cubic-bezier(0.2, 0.72, 1, 1) ease-out 100ms;
}

/*--------------------------------------- Lists  ---*/

.checkitem {
    background: white;
    padding: 30px;
    margin-bottom: 10px;
}

ul.checklist {
    list-style-type: none;
    padding-left: 0;
}

ul.checklist li {
    position: relative;
    list-style-type: none;
    margin: 25px .5em 25px 0;
    counter-increment: index;
}

ul.checklist li:first-child {
    margin-top: 0;
}

ul.checklist li i.fa,
td i.fa {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
}

span.checkname {
    margin: 0 0 0 2em;
    display: block;
    position: relative;
}

.listing {
    list-style-type: none;
    padding-left: 0;
    margin: 30px auto;
    
    counter-reset: numberical-order;
}

.listing li {
    position: relative;
    margin-bottom: 8px;
    background: #fbfbfb;
    counter-increment: numberical-order;
}

.listing li a {
    border-color: #cacaca;
}

.listing li[type=button] {
    -webkit-appearance: none;
}

.listing li:nth-child(odd),
.listing li:nth-child(even){
    padding: 10px;
    padding-left: 120px;
}

.listing li:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    
    height: auto;
    width: 100px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    
    content: counter(numberical-order);
    background: #e8e8e8;
    color: #28323e;
    font-weight: 700;
}

.listing.alpha {
    counter-reset: alpha-order !important;
}

.listing.alpha li {
    counter-increment: alpha-order !important;
}

.listing.alpha li:before {
    content: counter(alpha-order, lower-alpha) !important;
}

#questionaire li.question:hover {
    transition: 0.9s cubic-bezier(0.18, 1, 0.21, 1);
}

#questionaire li.question.correct,
#questionaire li.question.incorrect {
/*    outline: 2px solid;*/
    transition: 0.9s cubic-bezier(0.18, 1, 0.21, 1);
}

#questionaire li.question.correct {
    background: rgba(94, 195, 159, 0.83);
/*    outline-color: #5ec39f;*/
}

#questionaire li.question.incorrect {
    background: rgba(255, 99, 71, 0.83);
/*    outline-color: #ff6347;*/
}

#questionaire li.question.correct:after,
#questionaire li.question.incorrect:after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    
    color: #FFF;
    transition: 0.9s cubic-bezier(0.18, 1, 0.21, 1);
    font-size: 0.8rem;
}    

#questionaire li.question.correct:after {
    content: 'Correct';
}

#questionaire li.question.incorrect:after {
    content: 'Incorrect';
}

@media (max-width: 768px) {
    .listing li {
        margin-top: 30px;
    }
    
    .listing li:before {
        width: 50px;
    }
    
    .listing li:nth-child(odd),
    .listing li:nth-child(even){
        padding-left: 60px;
    }
    
    #questionaire li.question.correct:after,
    #questionaire li.question.incorrect:after {
        top: -10px;
        right: 0;
        font-size: 0.6rem;
    }
}

/*--------------------------------------- Bootstrap Accordion ---*/

#accordion .card {
    background: transparent;
    border: 0;
    box-shadow: 0;
    margin: 0;
}

#accordion .card-header {
    background: #f1f1f1;
    border: 0;
    box-shadow: 0;
    position: relative;
}

#accordion .card .btn.btn-link {
    color: #28323e !important;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 5px;
}

#accordion .card-header .collapse-icon {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

#accordion .card-body {
    background: #f3f3f3;
    color: #28323e;
    margin-bottom: 15px;
}

/*--------------------------------------- Bootstrap Popovers */
  
.popover {
    box-shadow: none;
    border: 0;
    padding: 15px;
}

.popover .arrow {
    display: none;
}

.popover-title {
    font-weight: 600;
    border: 0;
    background: transparent;
}

.popover-content {
    
}

/*--------------------------------------- Diagrams and Tables */

.block {
    background: #e8e8e8 !important;
    padding: 10px 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.secondary.block {
    font-weight: 800;
    background: #d2d2d2 !important;
}

.diagram {
    position: relative;
    margin: 100px 0 50px 0;
}

.diagram:after {
    height: calc(100% - 35px);
    width: 3px;
    background: #1f242f;
    
    position: absolute;
    top: 26px;
    left: -35px;
    content: '';
    z-index: -1;
}

.diagram .block[type=button] {
    -webkit-appearance: none;
}

.diagram .block {
    position: relative;
    font-size: 1.1rem;
    padding-right: 60px;
    word-wrap: break-word;
}

.diagram .block:hover,
.diagram .block:focus {
    background: #FFF;
    outline: none;
    transition: 0.9s cubic-bezier(0.18, 1, 0.21, 1);
}

.diagram .block.heading {
    background: #1f242f;
    color: #FFF;
    font-weight: 700;
    line-height: 1.3;
}

.diagram .block.heading:hover {
    outline: none;
}

.diagram .block.connection-left:after {
    height: 3px;
    width: 50px;
    background: #1f242f;
    
    position: absolute;
    top: 50%;
    transform: translateX(-50%);
    left: -10px;
    content: '';
    z-index: -1;
}

.diagram .block.connection-top:after {
    height: 50px;
    width: 3px;
    background: #1f242f;
    
    position: absolute;
    bottom: -50px;
    right: 50%;
    transform: translateY(-50%);
    content: '';
    z-index: -1;
}

i.interactive {
    color: #b5b5b5;
    
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 30px;
    transition: 0.9s cubic-bezier(0.18, 1, 0.21, 1);
}

:hover > i.interactive,
:focus > i.interactive {
    color: #e8e8e8;
    transition: 0.9s cubic-bezier(0.18, 1, 0.21, 1);
}

.diagram-wedge-collection {
}

.diagram-wedge {
    border: 0;
    border-radius: 10px;
    padding: 20px;
    
    background: #FFF;
    margin-bottom: 10px;
    display: block;
    position: relative;
}

.wedge-heading p {
    text-align: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
}

.diagram-wedge.right-wedge {
    text-align: right;
}

@media screen and (max-width: 1250px) {
    .diagram-wedge.right-wedge {
        text-align: left !important;
    }
}

.diagram-wedge:hover {
    background: rgba(255, 255, 255,0.7);
    transition: 0.9s cubic-bezier(0.18, 1, 0.21, 1);
}

.diagram-wedge:focus {
    outline: 2px solid #228ae6;
    transition: 0.9s cubic-bezier(0.18, 1, 0.21, 1);
}

.diagram-wedge.wedge-heading:hover {
    background: #FFF;
    transition: 0.9s cubic-bezier(0.18, 1, 0.21, 1);
}

/*--------------------------------------- Bootstrap Tooltips */

.highlight-tooltip {
    transition: 0.9s cubic-bezier(0.18, 1, 0.21, 1);
}

.highlight-tooltip:hover {
    transition: 0.9s cubic-bezier(0.18, 1, 0.21, 1);
    
    outline: 2px solid #28323e;
}