html {
    scroll-behavior: smooth;
    }
    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        margin: 0;
        background-image: linear-gradient(to bottom, #e7e4e0, #b3aca1);
    }
    h2 {
        padding-left: 40px;
    }
    .canScroll {
        scroll-margin-top: 110px;
    }

    #headerCont, #header {
        position: sticky; top: 0;
        height: 90px;
        background-color: #e7e4e0;
        z-index: 1000;
    }
    #header {
        margin: 0 20px;
        border-bottom: 2px solid #ccc;
        box-sizing: border-box;
    }
    #padder {
        background-color: #e7e4e0;
        height: 10px;
    }

    .portraitBlock {
        display: inline-block;
        width: 100px;
        text-align: center;
        padding: 0;
    }
    .portraitBlock img {
        width: 60%;
        border-radius: 50%;
    }
    .vertical-center {
        margin: 0;
        position: absolute;
        top: 50%;
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }
    .logoBlock {
        position: absolute; left: 100px;
        cursor: pointer;
        display: inline-block;
        text-align: center;
        width: 155px;
    }
    .logoBlock:hover {
        border-bottom: 3px solid #27231c;
    }
    .logoBlock img {
        width: 100%;
        margin-top: 6px;
    }

    .navbar {
        position:absolute; left: 270px;
    }
    .navbar a {
        text-decoration: none;
    }
    .navlink {
        display: inline-block;
        cursor: pointer;
        width: 100px;
        padding: 25px 10px;
        margin: 0 10px;
        text-align: center;
        color: #27231c;
        font-size: 18px;
        font-weight: bold;
    }
    .navlink:hover {
        color: #888;
        border-bottom: 3px solid #27231c;
    }


    #mainpage, #readwhy {
        z-index: 250;
    }
    #curtain {
        position: fixed;
        width: 100%;
        height: 0;
        background-color: #fff;
        opacity: 0;
        -webkit-transition:opacity 2500ms ease-in-out;
        -moz-transition:opacity 2500ms ease-in-out;
        -o-transition:opacity 2500ms ease-in-out;
        transition:opacity 2500ms ease-in-out;

        z-index: 500;
    }
    #darkcurtain {
        position: fixed;
        width: 100%;
        height: 0;
        background-color: #000;
        opacity: 0.75;
        z-index: 500;
    }


    p ul {
        line-height: 1.5;
    }
    

    .darkSection, .lightSection, .whiteSection, #contactFormDiv {
        position: relative;
        margin: 30px 20px;
        padding: 0;
        border-radius: 10px;
    }
    .whiteSection {
        background-image: linear-gradient(to bottom right, #56524a, #cac4b9);
        background-image: linear-gradient(to right, #27231c, #403026);
        /* background-image: linear-gradient(to left, #dcd8d1, #e9e6e2); */
        border: 1px solid #27231c;
        /* box-shadow: 5px 10px #ddd; */

        color: #eee;
    }
    .darkSection h1 {
        color: #fefefe;
    }
    .darkSection a {
        color: #27231c;
        text-decoration: none;
        -webkit-transition:color 500ms ease-in-out;
        -moz-transition:color 500ms ease-in-out;
        -o-transition:color 500ms ease-in-out;
        transition:color 500ms ease-in-out;
    }
    .darkSection a:hover, #readwhy a:hover {
        color: #27231c;
    }
    .leftTextBlock {
        display: inline-block;
        width: 50%;
        border-bottom-left-radius: 10px;
        border-top-left-radius: 10px;
        box-sizing: border-box;
        padding: 40px;
    }
    #introSection {
        background-image: url("images/study2.jpg");
        background-repeat: no-repeat;
        background-size: cover;
    }
    #mobileStudyDiv {
        display: none;
    }


    #intro {
        background-color: #27231c;
        background-image: linear-gradient(to bottom, #181513, #30261f);
        color: #27231c;
        -webkit-transition:color 2000ms ease-in-out;
        -moz-transition:color 2000ms ease-in-out;
        -o-transition:color 2000ms ease-in-out;
        transition:color 2000ms ease-in-out;
    }
    #rightCurtain {
        position:absolute; left:50%; top: 0;
        width: 50%;
        background-color: #27231c;
        background-image: linear-gradient(to bottom, #181513, #30261f);
        -webkit-transition:width 2000ms ease-in-out;
        -moz-transition:width 2000ms ease-in-out;
        -o-transition:width 2000ms ease-in-out;
        transition:width 2000ms ease-in-out;
    }



    .lightSection {
        background-color: #eeeeee;
    }
    .leftImgBlock {
        display: inline-block;
        width: 50%;
        border-bottom-left-radius: 10px;
        border-top-left-radius: 10px;
        box-sizing: border-box;
        padding: 40px;
        text-align: center;
    }
    .rightTextBlock {
        display: inline-block;
        width: 48%;
    }

    .quote {
        text-align: center;
        margin: 20px 10%;
        color: #444;
        line-height: 2;
    }
    .quoteHead {
        color: #5a544a;
    }
    .quoteText {
        font-style: italic;
    }
    .quoteAttribution {
        font-weight: bold;
        color: #666;
    }
    .name {
        color: #444;
        font-size: 1.2em;
    }

    
    
    /* ABOUT */

    #about {
        display: inline-block;
        background-image: linear-gradient(to bottom, #cac4b9, #e9e6e2);
        padding: 40px;
        text-align: justify;
    }
    #halifax {
        float: left;
        width: 40%;
    }
    #world {
        float: right;
        width: 40%;
    }
    #plaque {
        float: right;
        width: 25%;
    }
    #icaew {
        float: left;
        width: 15%;
    }
    #icaew2 {
        display:none;
    }





    .leftTextBlock img {/* Case study Logos */
        width: 10%;
    }
    .wider {
        text-align: justify;
        width: 70%;
    }
    .rightImgBlock {
        display: inline-block;
        text-align: center;
        width: 25%;
    }

    .readstudy, .closestudy {
        cursor: pointer;
        padding: 15px;
        margin: 20px 0;
        background-color: #27231c;
        color: #fff;
        font-weight: bold;
        border: 2px solid #27231c;
        border-radius: 5px;
    }
    .readstudy:hover, .closestudy:hover {
        background-color: #dedad4;
        color: #27231c;
        border: 2px solid #27231c;
    }
    .closestudy {
        position: relative;
        margin-left: 20px;
        z-index: 800;
    }

    #about a, .whiteSection a, .studydiv a {
        text-decoration: none;
        color: #382013;
        font-weight: bold;
    }
    #about a:hover, .whiteSection a:hover, .studydiv a:hover {
        color: #888;
    }
    .whiteSection a {
        color: #eee;
    }

    /*  for contact form */

    #contactFormDiv {
        background-image: linear-gradient(to bottom right, #cac4b9, #e9e6e2);
        color: #333;
    }
    #contactFormCont {
        display: inline-block;
        width: 70%;
    }
    
    #contactFormDiv h2 {
        padding-top: 20px;
    }

    form {
        text-align: center;
        margin: 10px 20px;
        width: 95%;
    }

    .contactLine {
        text-align: left;
        margin: 10px 20px;
        padding: 5px;
    }
    input[type=text], input[type=email] {
        width: 100%;
        margin: 0 20px;
        padding: 5px;
    }
    textarea {
        width: 100%;
        height: 150px;
        margin: 0 20px;
        padding: 5px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        resize: none;
    }
    #captchaDiv {
        margin: 10px 20px;
        text-align: center;
    }
    .g-recaptcha {
        display: inline-block;
    }
    #contactFormButtonM{
        display: none;
    }

    #contactFormImg {
        display: inline-block;
        width: 20%;
        margin: 4%;
    }
    #contactFormImg img {
        width: 100%;
    }


    .warningBox {
        background-color: #e0e0e0;
        background-image: linear-gradient(to bottom right, #cac4b9, #e9e6e2);
        color: black;
        padding: 25px;
        position: fixed; top: 100px; left: 40px;
        display: inline-block;
        width: 300px; 
        border-radius: 10px;
        z-index: 800;
    }
    
    .warningBoxOK {
        float: right;
        background-color: #27231c;
        color: #ffffff;
        font-size: large;
        font-weight: bold;
        margin: 15px;
        padding: 5px 10px;
        border: 1px solid #27231c;
        border-radius: 5px;
        cursor: pointer;
    }
    
    .warningBoxOK:hover {
        background-color: #e2dfd9;
        color: #27231c;
    }
    
    

    #footer {
        padding: 10px;
        background-color: #27231c;
        color: #BEC9D4;
    }
    #footer a {
        color: #BEC9D4;
    }





    /* CASE STUDIES */

    #csaventec, #cssyhff, #csmabey {
        position: absolute; top: 100px;
        text-align:center;
        width: 0;
    
        opacity: 0;
        -webkit-transition:opacity 2500ms ease-in-out;
        -moz-transition:opacity 2500ms ease-in-out;
        -o-transition:opacity 2500ms ease-in-out;
        transition:opacity 2500ms ease-in-out;
    
        z-index: 0;
    }

    .studydiv {
        display: inline-block;
        width: 95%;
        border-radius: 8px;
        box-sizing: border-box;
        padding: 20px;
        text-align: justify;
        background-color: #E9E9EA;
        background-image: linear-gradient(to bottom, #e7e4e0, #e9e5e1);
        color: #111;
    }
    .studydiv p, .studydiv h2 {
        padding: 10px 20px;
    }
    

    .caseHead {
        font-size: 28px;
    }
    .caseHeadText {
        font-size: 28px;
        vertical-align: top;
        padding-left: 20px;    
    }
    .caseHead img {
        margin-left: 10px;
        width: 200px;
    }
    #syhff-blue {
        position: relative;
        top: -5px;
    }
    .caseClose {
        cursor: pointer;
        color: #27231c;
        float: right;
        margin-right: 20px;
    }
    .caseClose:hover {
        color: grey;
    }

    .imgDiv {
        padding: 20px;
        text-align: center;
    }

    .imgDiv img {
        width: 75%;
    }

    .smaller img {
        width: 50%;
    }

    .imgText {
        color: #888;
        text-align: center;
        padding: 0 !important;
    }

    .L, .Ls {
        float: left;
        width: 15%;
    }

    .R {
        float: right;
        width: 20%;
        padding: 20px 20px 0px 20px;
    }

    .R2 {
        float: right;
        width: 40%;
        padding: 20px 20px 0px 20px;
    }

    .R3 {
        float: right;
        width: 60%;
        padding: 20px 20px 0px 20px;
    }

    .L2 {
        float: left;
        width: 25%;
    }

    .L3 {
        float: left;
        width: 40%;
    }

    .sidebyside {
        display: inline-block;
        width: 48%;
        padding: 5px;
    }

    li {
        padding-right: 20px;
    }

    #studentbki::before {
        content: "";
            position: absolute;
            top: 0px;
            right: 0px;
            bottom: 0px;
            left: 0px;
        background-image: url("images/mabey/STUDENTS_grayscale.png");
        background-repeat: no-repeat;
        background-size: cover;
        opacity: 0.175;
    }
    #studentbki p {
        opacity: 100%;
    }


    #c_change_p {
        height: 400px;
    }

    #footer {
        font-size: 10px;
    }
