html {
 /* Base styles go here */
 font: 14px/1.5 Arial, sans-serif;
}

body {
 font-family: 'Helvetica Neue', sans-serif;
 letter-spacing: -1px;
 background: #fff;
 padding: 0 0px;
 width: 1280px;
 margin: 0 auto;
 position:relative;
}
header{
    position: relative;
    z-index: 999;
    clear: both;
    width: 100%;
    height: 88px;
    padding-top: 10px;
    background-color: #fff;
}
video{
   display: none;
}
#logo{left: 0;
    width: 383px;
    height: auto;
}
#exercise{
    right: 0;
    left: auto;
    position: absolute;
    width: 174px;
    height: auto;

}
.floatleft{
    float: left;
}
.floatRight{
    float: right;
}
nav{
    position: fixed;
    
     
    color: #024B54;
    width: 100px;
    letter-spacing: normal;
    z-index: 99;
}
@media screen 
  and (min-width: 1280px)  { 
    nav{
    right:calc(50vw - 1280px / 2);
    }
}

nav #spacer{
    display: block;
    height: 120px;
}
nav li{
    list-style: none;
    text-align: right;
    padding-right: 10px;
    mix-blend-mode: difference;
    border-right: solid 4px rgba(255, 255, 255, 1);
    cursor: pointer;
}
nav li:hover{
     color: #078190;
}
nav li.active{
    border-right: solid 4px #F2654F;
}

.page{
    min-width: 100%;
    max-width: 1280px;

    width: 100%;
    height: 100vh;
    clear: both;
    float: left;
    padding: 6%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    min-height: 100%;
}
.copy{
    line-height: 48px;
}
#wonder, #chat{
    background: #4DA0AE;
}

h1,h2,h3,h4{
    font-weight: 500;
    margin:0;
    padding: 0;
}
h1{
    color: #fff;
    font-size: 46px;
    padding: 0;
    margin:0;
}
h2{
    color: #78D9E5;
    padding: 0;
    margin:0;
    font-size: 40px;
}
#page1right{
    bottom: -200px;
    right: 0;
    left: auto;
    top: auto;
    position: absolute;
}
#page1left{

    left: 0;
    top: auto;
    position: absolute;
    bottom: -60px;
}
#page4left{
    top: 250px;
    z-index: -1;
    position: absolute;
}
#page4right{
    top: 250px;
    right: 0px;
    z-index: -1;
    position: absolute;
}
.typo{
    display: inline-block;
     position: relative;
}
.typo > .shade {
  position: absolute;
  top: 0;
  left: -90%;
  width: 200%;
  height: 100%;
  max-width: none;
  background-image: linear-gradient(to right, transparent, #4DA0AE 50%, #4DA0AE);
}
#apply{
    background:transparent ;
    height: auto;

}
#apply .typo > .shade, #share  .typo > .shade {
  background-image: linear-gradient(to right, transparent, #fff 50%, #fff);
}
#apply h2,#share h2{
    color:#EE704B;
}
#apply h1,#share h1{
    color:#292929;
}
#apply svg{position:absolute;z-index: -1;}
#applyfilter, #casestudy{
    margin-top: 24px;
    clear: both;
}
#Physical, .Physical{
    border: solid #059657 3px;
}
#Functional, .Functional{
    border: solid #C54500 3px;
}
#Clinical, .Clinical{
    border: solid #297ce1 3px;
}
#all{

    border: solid ##EE704B  3px;
}
#applyfilter li span, .button span{
    height: 20px;
    display: block;
    padding-left: 4px;
    float: left;
}
#applyfilter li, .button {
    cursor: pointer;
    list-style: none;
    float: left;
    margin-right: 12px;
    background: #E4E4E4;
    padding: 6px 16px;
    height: 38px;
    border-radius: 24px;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: normal;
    line-height: 1.4;
    vertical-align: middle;
    transition:  .5s ease-in-out; 
    font-size: 14px;
    color: #292929;
}
.button {
    background: white; 
}

#applyfilter li:hover, .button:hover{
    background: #D8FBFF; 
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.1);
}
#applyfilter li.active{
    color: #fff;
    background: #EE704B no-repeat;
    background-position: 10px center;
}
#applyfilter li img, .button img{
    width: 20px;
    height: auto;
    vertical-align: middle;
    float: left;
    height: 20px;
    display: none;
}
#applyfilter li.active img, .button.active img{
    display: block;
}
@keyframes myAnimation {
  from {background:  linear-gradient(-180deg,rgba(243, 131, 114, 1) 0%, rgba(243, 127, 110, 1) 28%, rgba(242, 101, 79, 1) 100%);}
  to {background:  linear-gradient(-180deg,rgba(243, 131, 114, 1) 0%, rgba(243, 127, 110, 1) 50%, rgba(242, 101, 79, 1) 100%);}
}
#casestudy li{
    list-style: none;
    background:  linear-gradient(-180deg,rgba(243, 131, 114, 1) 0%, rgba(243, 127, 110, 1) 28%, rgba(242, 101, 79, 1) 100%);
    height: 140px;
    width: 238px;
    border-radius: 24px;
    padding: 24px;
    box-sizing: border-box;
    color: #fff;
    letter-spacing: normal;
    font-size: 21px;
    line-height: 1;
    position: relative;
    cursor: pointer;
    float: left;
    margin-right: 24px;
    display: none;
    margin-bottom: 12px;
    font-size: 24px;

}
#casestudy li:hover{
    
    animation-name: myAnimation;
    animation-duration: 4s;
    
}
#casestudy li img{
    position: absolute;
    right: 15px;
    bottom: 15px;
    opacity: 1;
    width: 30px;
    height: auto;
}
#casestudy li.comingsoon img{
    display: block;
    opacity: .5;
}
#casestudy li.comingsoon .xtra{
    display: none;
}
#casestudy li.visible{
    display: block;
}
#casestudy li .tag{
    font-size: 14px;
    display: none;
}
#casestudy li .xtra{
    position: absolute;
    font-size: 14px;
    right: 20px;
    bottom: 20px;
}
#chat h1{
    margin-bottom: 10px;
}
#card{
    background: rgb(235, 235, 235);
    display: block;
    min-height: 80px;
    width: 65%;
    position: absolute;
    bottom: 100px;
    padding: 24px;
    letter-spacing: normal;
    z-index: 999;
}
#card .button{
    padding: 0;
    margin-right: 22px;
    box-shadow: none;
    background: transparent;
}
#card .button:hover{
    color: grey;
    background: transparent;
}
#card .button img{
    height: 20px;
    width: auto;
}
#card .detail{
    width: 80%;
}
#card .name{
    font-size: 24px;
    color: #F2654F;
    width: 20%;
}
#card .title{
    font-size: 20px;
    color: #024B54;
}

svg{
    z-index: 1;
}
@media only screen and (max-width: 596px){
    div{box-sizing: border-box;}
    header #logo, header #exercise{
        width: 40%;height: auto;
    }
    header{
        height: auto;
        padding: 2%;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        padding-bottom: 12px;
    }
    svg{
         transform: scale(.5);
         position: absolute;
    }
    body,.page{
        width: 100%;
        max-width: 100%;
    }
    .copy{
        line-height: 2.1em;
        margin-top: 140px;
        width: 100%;
    }
    .page{ overflow: hidden;}
    h2{
        font-size: 20px;
    }
    h1  {
        font-size: 32px;
        margin-bottom: 12px;
    }
    nav{
        top: 0px;
        right:20px;
        z-index: 1000;
    }
    nav #spacer{
        height: 80px;
    }
    #applyfilter li{
        width: auto;
        min-width: auto;
        margin-bottom: 12px;
        margin-right: 6px;
    }
    #apply,#chat{
        height: auto;
        min-height: 1vh;
    }
    #apply svg{
        left: -100;
        z-index: -1;
    }
    #casestudy li{
        width: 120px;
        font-size: 14px;
        padding: 4%;
        margin-right: 12px;
        margin-bottom: 12px;
        
    }
    #casestudy li img{
        right: 12%;
        width: 30px;
        height: auto;
    }
    #card{
        bottom: 0;
        left: 0;
        width: 100%;
    }
    #card .name{
        width: 100%;
    }
    #card .detail{
        width: 100%;
    }
    #chat .copy{
        margin-bottom: 400px;
    }
}
@media only screen 
  and (min-width: 597px) 
  and (max-width: 1280px)   {
  nav {
    right: calc(20px - 1vw/ 2);
  }
  body {
    width: 100%;
    max-width: none;
  }
  /* Add more desktop-specific styles here */
}
/* lightbox */
#fade {
  display: none;
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 1001;
  -moz-opacity: 0.8;
  opacity: .80;
  filter: alpha(opacity=80);
}

#light {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 600px;
  max-height: 360px;
  margin-left: -200px;
  margin-top: -45vh;
  background: #FFF;
  z-index: 10000;
  overflow: visible;
   position: fixed;
    width: 400px;
    height: auto;
    margin: 0;
    top:calc( 50vh - 355px);
    left: calc(50vw - 200px);
}
video{
        width: 100%;
    }
@media only screen and (max-width: 596px){
    #light {
        position: fixed;
        width: 100%;
        margin: 0;
        top:0;
        left: 0;
    }
    video{
        width: 100%;
    }
}
@media only screen 
  and (min-width: 597px) 
  and (max-width: 1280px)   {
    #light {
        position: fixed;
        width: 350px;
        height: auto;
        margin: 0;
        top:calc( 50vh - 311px);
       left: calc(50vw - 175px);
    }
    video{
        width: 100%;
    }
}
#boxclose {
  float: right;
cursor: pointer;
color: #fff;
border: 1px solid #AEAEAE;
border-radius: 24px;
background: #222222;
font-size: 31px;
font-weight: bold;
display: inline-block;
line-height: 0px;
padding: 11px 5px 15px 5px;
position: absolute;
font-weight: normal;
right: 2px;
top: 2px;
z-index: 1002;
opacity: 0.9;
}

.boxclose:before {
  content: "×";
}

#fade:hover ~ #boxclose {
  display:none;
}

.test:hover ~ .test2 {
  display: none;
}