html, body{
    width: 100%;
    overflow-x: hidden;
}

body{
    background-color: #f5f5f5;
    color: #000000;
    /* font-family: 'Nunito', sans-serif; */
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    position: relative;
}

div, img, h1, h2, p, a{
    position: relative;
}

div.container,
div.small-container{
    width: 90%;
    margin: auto;
}

div.header{
    padding: 10em 1em;
}

.bg-white{
    background-color: #ffffff;
}

.bg-gray{
    background-color: #f5f5f5;
}

.side-border{
    border-left: #17bcb8 solid 5px;
    padding-left: .5em;
}

h1, h2{
    line-height: 1.2;
}

h1{
    font-size: 1.5rem;
    font-weight: bold
}

h2{
    font-size: 1.2rem;
    font-weight: 500;
}

.text-center{
    text-align: center;
}

.text-left{
    text-align: left;
}

.text-right{
    text-align: right;
}

small{
    font-size: .7em;
}

a.purchase-button{
    color: #ffffff;
    text-decoration: none;
    background-color: #1A96E2;
    padding: 1em 4em;
    display: inline-block;
    margin: 1em 0;
}

a.purchase-button:hover{
    color:  #FFFF00;
}

a#go-to-top{
    position: fixed;
    padding: 12px 17px;
    z-index: 999;
    /* display: inline-block; */
    background-color: #1A96E2;
    color: #ffffff;
    text-decoration: none;
    right: 1em;
    bottom: 1em;
    border: 0px solid #ffffff;
    border-radius: 25px;
    display: none;
}

a#go-to-top:hover:hover:after{
    border-top: 2px solid rgb(255,255,0);
    border-right: 2px solid rgb(255,255,0);
}

a#go-to-top:after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgb(255,255,255);
    border-right: 2px solid rgb(255,255,255);
    -moz-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    vertical-align: middle;
}

img.full-responsive{
    width: 100%;
    height: auto;
}

img.img-responsive{
    max-width: 100%;
    height: auto;
}

div.shadow{
    position: absolute;
    background: rgba(0, 0, 0, .5);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

div.companies img{
    height: 20px;
    width: auto;
}

div.companies img.cross{
    grid-area: cross;
    width: 10px;
    height: auto;
    justify-self: center;
    align-self: center;
}

div.spec{
    display: grid;
    grid-template-areas: "value" "type";
}

div.spec span.spec-value{
    grid-area: value;
    font-size: 3em;
    color: #ba9d8f;
}

div.spec span.spec-type{
    grid-area: type;
    font-size: 1.5em;
}

/* header */

header{
    background-color: #000000;
    color: #ffffff;
    display: grid;
    grid-template-areas: "logo caret" "menu menu" "buy buy"; 
    grid-template-columns: auto 57px;
    z-index: 10;
    width: 100%;
    overflow: hidden;
}

header .logo{
    grid-area: logo;
    /* padding: 1em 1em 0 1em; */
    padding: 1em;
    text-align: center;
}

header .logo img:first-child,
header .logo img:last-child{
    height: 20px;
    width: auto;
}

header .logo img:nth-child(2) {
    width: 10px;
    height: 10px;
    margin: 0 5px 5px;
}

header .menu{
    grid-area: menu;
    align-self: center;
    display: none;
}

div.menu ul{
    padding: 0;
    text-align: right;
}

div.menu ul li{
    list-style: none;
    display: inline-block;
    box-sizing: border-box;
}

div.menu ul li a{
    color: #ffffff;
    padding: 1em 2em;
    text-decoration: none;
}

div.menu ul li a.active,
div.menu ul li a:hover{
    color: #29ABE2;
}

header .buy-button{
    grid-area: buy;
    align-self: stretch;
    display: none;
    text-align: center;
}

div.buy-button a{
    justify-self: stretch;
    align-self: stretch;
    display: grid;
}

div.buy-button a,
div.caret a{
    color: #ffffff;
    text-decoration: none;
    /* background-color: #1A96E2; */
    background-color: #000000;
}

header .caret{
    grid-area: caret;
    align-self: stretch;
    display: grid;
    text-align: center;
}

div.caret a{
    justify-self: stretch;
    align-self: stretch;
    display: grid;
}

div.buy-button a span,
div.caret a i{
    align-self: center;
}

div.buy-button a:hover,
div.caret a:hover{
    color:  #FFFF00;
}

header.mobile-open .menu{
    display: block;
    /* max-height: 200px;
    overflow-y: scroll;
    overflow-x: hidden; */
}

header.mobile-open .menu li{
    width: 100%;
    text-align: center;
    padding: 1em;
}

header.mobile-open .menu li a{
    padding: 1em;
}

header.mobile-open .buy-button{
    display: grid;
}

header.mobile-open .buy-button a{
    padding: 1em;
}

/* main */

main{
    /* padding-top: 57px; */
}

/* video banner */

div#video-banner{
    padding-bottom: 15em;
    background-color: #000000;
}

div#video-banner video{
    /* width: auto;
    height: 300px;
    margin-left: -25%; */
    width: 100%;
    height: auto;
}

div#video-banner div.content{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #ffffff;
    /* padding-bottom: 20em; */
}

div#video-banner div.content div.companies{
    position: absolute;
    /* top: 2em; */
    top: 5em;
    left: 0;
    right: 0;
    display: grid;
    grid-template-areas: "left useya cross madgaze right";
    grid-template-columns: 1fr auto auto auto 1fr;
    align-items: center;
    grid-column-gap: 1em;
}

div#video-banner div.content div.companies img:first-child{
    grid-area: useya;
    justify-self: right;
}

div#video-banner div.content div.companies img:last-child{
    grid-area: madgaze;
    justify-self: left;
}

div#video-banner div.content div.description{
    position: absolute;
    bottom: 3em;
    margin: auto;
    /* left: 25em;
    right: 25em; */
    left: 0;
    right: 0;
    width: auto;
    padding: 1em;
}


/* footer */

footer{
    background-color: #000000;
    color: #ffffff;
    padding: 2em;
}

footer div.companies{
    display: grid;
    grid-column-gap: 1em;
    grid-template-areas: "left useya cross madgaze right";
    grid-template-columns: 1fr auto auto auto 1fr;
    align-items: center;
}

footer div.companies img:first-child{
    justify-self: right;
    grid-area: madgaze;
}

footer div.companies img:last-child{
    justify-self: left;
    grid-area: useya;
}

div.copyright{
    padding: 1em;
}

/* footer div.companies img
{
    margin: 0 1em;
} */
/* X5 */

div#x5{
    display: grid;
    grid-template-areas: "header" "specs" "feature" "footer";
}

div#x5 div.specs > div.container{
    display: grid;
    grid-template-areas: "title" "content-text" "list" "image";
}

div#x5 div.specs h1.title{
    grid-area: title;
}

div#x5 div.specs > div.container > p{
    grid-area: content-text;
}

div#x5 div.specs div.image-container{
    grid-area: image;
    overflow-y: hidden;
    min-height: 500px;
}

div#x5 div.specs div.image-container img{
    position: absolute;
}

div#x5 div.specs div.image-container img:first-child{
    top: 4em;
    left: 2em;
}

div#x5 div.specs div.image-container img:last-child{
    top: 0;
    left: 6em;
}

div#x5 div.specs div.list{
    grid-area: list;
    display: grid;
    grid-template-areas: 
        "spec-1 spec-2" "spec-3 spec-5" 
        "spec-4 spec-4"      
        "spec-6 spec-6" "spec-7 spec-7";
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1em;
    grid-row-gap: 1em;
    justify-self: left;
    padding: 2em 0;
    width: 100%;
}

div#x5 div.specs div.list div.spec:first-child{
    grid-area: spec-1;
}

div#x5 div.specs div.list div.spec:nth-child(2){
    grid-area: spec-2;
}

div#x5 div.specs div.list div.spec:nth-child(3){
    grid-area: spec-3;
}

div#x5 div.specs div.list div.spec:nth-child(4){
    grid-area: spec-4;
}

div#x5 div.specs div.list div.spec:nth-child(5){
    grid-area: spec-5;
}

div#x5 div.specs div.list div.spec:nth-child(6){
    grid-area: spec-6;
}

div#x5 div.specs div.list div.spec:nth-child(7){
    grid-area: spec-7;
}

div#x5 div.feature div.camera,
div#x5 div.feature div.display{
    display: grid;
    grid-column-gap: 1em;
    grid-row-gap: 1em;
    padding: 6em 0;
}

div#x5 div.feature div.camera{
    grid-template-areas: "title" "content-text" "image";
}

div#x5 div.feature div.display{
    grid-template-areas: "title" "content-text" "image";
}

div#x5 div.feature div.camera h1,
div#x5 div.feature div.display h1,
div#x5 div.feature div.camera p,
div#x5 div.feature div.display p{
    width: 80%;
    margin: auto;
}

div#x5 div.feature div.camera h1,
div#x5 div.feature div.display h1{
    grid-area: title;
}

div#x5 div.feature div.camera h1,
div#x5 div.feature div.camera p{
    justify-self: left;
}

div#x5 div.feature div.display h1,
div#x5 div.feature div.display p{
    justify-self: right;
}

div#x5 div.feature div.camera p,
div#x5 div.feature div.display p{
    grid-area: content-text;
}

div#x5 div.feature div.camera div.image-container,
div#x5 div.feature div.display div.image-container{
    grid-area: image;
    text-align: center;
}

div#x5 div.feature div.camera div.image-container img,
div#x5 div.feature div.display div.image-container img{
    width: 75%;
    height: auto;
}

div#x5 div.control-type-container{
    display: grid;
    grid-template-areas: "control-1" "control-2" "control-3" "control-4" "control-5" "control-6";
    grid-column-gap: 1em;
    grid-row-gap: 1em;
}

div#x5 div.control-type-container div.control-type{
    display: grid;
    grid-template-areas: "title" "content-text" "image";
}

div#x5 div.control-type-container div.control-type:first-child{
    grid-area: control-1;
}

div#x5 div.control-type-container div.control-type:nth-child(2){
    grid-area: control-2;
}

div#x5 div.control-type-container div.control-type:nth-child(3){
    grid-area: control-3;
}

div#x5 div.control-type-container div.control-type:nth-child(4){
    grid-area: control-4;
}

div#x5 div.control-type-container div.control-type:nth-child(5){
    grid-area: control-5;
}

div#x5 div.control-type-container div.control-type:nth-child(6){
    grid-area: control-6;
}

div#x5 div.control-type-container div.control-type h1{
    grid-area: title;
}

div#x5 div.control-type-container div.control-type p{
    grid-area: content-text;
}

div#x5 div.control-type-container div.control-type h1,
div#x5 div.control-type-container div.control-type p{
    padding: 0 1.5rem;
}

div#x5 div.control-type-container div.control-type div.image-container{
    grid-area: image;
    align-self: end;
}

div#x5 div.footer{
    display: grid;
    grid-template-areas: "image" "content-text";
    grid-row-gap: 1em;
    margin-top: 1em;
    padding: 8em 0;
}

div#x5 div.footer div.image-container{
    grid-area: image;
    background: url('../images/large_group_01.png');
    background-position: -170px 4px;
    background-repeat: no-repeat;
    background-size: 720px 180px;
    min-height: 200px;
}

div#x5 div.footer div.footer-content{
    grid-area: content-text;
    width: 80%;
    text-align: center;
    margin: auto;
}

/* Ares */

div#ares div.feature div.os,
div#ares div.feature div.storage,
div#ares div.feature div.display,
div#ares div.feature div.video{
    display: grid;
    grid-column-gap: 1em;
    grid-row-gap: 1em;
    grid-template-areas: "title" "content-text" "image";
    padding: 4em 0;
}

div#ares div.feature div.os h1,
div#ares div.feature div.os p,
div#ares div.feature div.storage h1,
div#ares div.feature div.storage p,
div#ares div.feature div.display h1,
div#ares div.feature div.display p,
div#ares div.feature div.video h1,
div#ares div.feature div.video p{
    width: 80%;
    justify-self: center;
    text-align: center;
}

div#ares div.feature div.os h1,
div#ares div.feature div.storage h1,
div#ares div.feature div.display h1,
div#ares div.feature div.video h1{
    grid-area: title;
}

div#ares div.feature div.os p,
div#ares div.feature div.storage p,
div#ares div.feature div.display p,
div#ares div.feature div.video p{
    grid-area: content-text;
}

div#ares div.feature div.os div.image-container,
div#ares div.feature div.storage div.image-container,
div#ares div.feature div.display div.image-container,
div#ares div.feature div.video div.image-container{
    grid-area: image;
    align-self: center;
    text-align: center;
}

div#ares div.feature img{
    width: 75%;
    height: auto;
}

div#ares div.operation-type-container{
    display: grid;
    grid-template-areas: "operation-1" "operation-2";
    grid-column-gap: 1em;
    grid-row-gap: 1em;
}

div#ares div.operation-type-container div.operation-type{
    display: grid;
    grid-template-areas: "title" "content-text" "image";
}

div#ares div.operation-type-container div.operation-type:first-child{
    grid-area: operation-1;
}

div#ares div.operation-type-container div.operation-type:last-child{
    grid-area: operation-2;
}

div#ares div.operation-type-container div.operation-type h1{
    grid-area: title;
}

div#ares div.operation-type-container div.operation-type p{
    grid-area: content-text;
}

div#ares div.operation-type-container div.operation-type h1,
div#ares div.operation-type-container div.operation-type p{
    padding: 0 1.5rem;
}

div#ares div.operation-type-container div.operation-type div.image-container{
    grid-area: image;
    align-self: end;
}

div#ares div.connector{
    display: grid;
    grid-template-areas: "content-text" "image";
    grid-row-gap: 1em;
    grid-column-gap: 1em;
    margin-top: 1em;
}

div#ares div.connector div.image-container{
    grid-area: image;
}

div#ares div.connector div.content-container{
    grid-area: content-text;
    justify-self: left;
    align-self: center;
}

div#ares div.footer{
    background: url('../images/ares_bk.jpg');
    background-position: center center;
    padding: 8em 0;
    background-size: cover;
    color: #ffffff;
}

div#ares div.footer div.footer-content{
    z-index: 2;
}

/* Vader */

div#vader div.header{
    background: linear-gradient(to bottom, #f5f5f5 0%, #fff 100%);
}

div#vader div.control-container{
    padding: 1em 0;
}

div#vader div.control-list-container{
    display: grid;
    grid-column-gap: 1em;
    grid-row-gap: 1em;
    grid-template-areas: "control-1" "control-2" "control-3" "control-4" "control-5";
}

div#vader div.control-list-container div.control-list h1{
    margin: 0;
}

div#vader div.control-list-container div.control-list{
    padding: 1em;
}

div#vader div.control-list-container div.control-list:first-child{
    grid-area: control-1;
}

div#vader div.control-list-container div.control-list:nth-child(2){
    grid-area: control-2;
}

div#vader div.control-list-container div.control-list:nth-child(3){
    grid-area: control-3;
}

div#vader div.control-list-container div.control-list:nth-child(4){
    grid-area: control-4;
}

div#vader div.control-list-container div.control-list:last-child{
    grid-area: control-5;
}

div#vader div.specification{
    display: grid;
    grid-column-gap: 1em;
    grid-row-gap: 1em;
    grid-template-areas: "title" "image" "specification";
    margin-bottom: 1em;
}

div#vader div.specification > h1{
    grid-area: title;
}

div#vader div.specification > img{
    grid-area: image;
    align-self: center;
}

div#vader div.specification-list-container{
    grid-area: specification;
    display: grid;
    grid-column-gap: 1em;
    grid-row-gap: 1em;
    grid-template-areas: "spec-1 spec-1" "spec-2 spec-3" 
    "spec-4 spec-8" "spec-5 spec-5" 
    "spec-6 spec-6" "spec-7 spec-7" 
    "spec-9 spec-9";
}

div#vader div.specification-list-container div.spec:first-child{
    grid-area: spec-1;
}

div#vader div.specification-list-container div.spec:nth-child(2){
    grid-area: spec-2;
}

div#vader div.specification-list-container div.spec:nth-child(3){
    grid-area: spec-3;
}

div#vader div.specification-list-container div.spec:nth-child(4){
    grid-area: spec-4;
}

div#vader div.specification-list-container div.spec:nth-child(5){
    grid-area: spec-5;
}

div#vader div.specification-list-container div.spec:nth-child(6){
    grid-area: spec-6;
}

div#vader div.specification-list-container div.spec:nth-child(7){
    grid-area: spec-7;
}

div#vader div.specification-list-container div.spec:nth-child(8){
    grid-area: spec-8;
}

div#vader div.specification-list-container div.spec:nth-child(9){
    grid-area: spec-9;
}

div#vader div.footer{
    display: grid;
    grid-template-areas: "image" "content-text";
    grid-row-gap: 1em;
    margin-top: 1em;
    padding: 8em 0;
}

div#vader div.footer div.image-container{
    grid-area: image;
    justify-self: center;
    text-align: center;
}

div#vader div.footer div.image-container > img{
    width: 75%;
    height: auto;
}

div#vader div.footer div.footer-content{
    grid-area: content-text;
    width: 80%;
    justify-self: center;
    text-align: center;
}

div#vader figure{
    margin: 0;
}

div#vader .cd-resize-img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    overflow: hidden;
    /* Force Hardware Acceleration in WebKit */
    transform: translateZ(0);
    backface-visibility: hidden;
}

div#vader .is-visible .cd-resize-img {
    width: 50%;
    /* bounce in animation of the modified image */
    animation: cd-bounce-in 0.7s;
}

.cd-resize-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    overflow: hidden;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .cd-resize-img img {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
}

.cd-image-container{
    text-align: center;
}

.cd-image-container img {
    display: block;
}

figure.cd-image-container img#original-2d{
    width: 100%;
    height: auto;
}

.cd-handle {
    position: absolute;
    height: 44px;
    width: 44px;
    /* center the element */
    left: 50%;
    top: 50%;
    margin-left: -22px;
    margin-top: -22px;
    border-radius: 50%;
    background: #dc717d url("../images/cd-arrows.svg") no-repeat center center;
    cursor: move;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.2), 0 0 10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    opacity: 0;
    -webkit-transform: translate3d(0, 0, 0) scale(0);
    -moz-transform: translate3d(0, 0, 0) scale(0);
    -ms-transform: translate3d(0, 0, 0) scale(0);
    -o-transform: translate3d(0, 0, 0) scale(0);
    transform: translate3d(0, 0, 0) scale(0);
}
.cd-handle.draggable {
    /* change background color when element is active */
    background-color: #445b7c;
}

.is-visible .cd-handle {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0) scale(1);
    -moz-transform: translate3d(0, 0, 0) scale(1);
    -ms-transform: translate3d(0, 0, 0) scale(1);
    -o-transform: translate3d(0, 0, 0) scale(1);
    transform: translate3d(0, 0, 0) scale(1);
    -webkit-transition: -webkit-transform 0.3s 0.7s, opacity 0s 0.7s;
    -moz-transition: -moz-transform 0.3s 0.7s, opacity 0s 0.7s;
    transition: transform 0.3s 0.7s, opacity 0s 0.7s;
}

@keyframes cd-bounce-in {
    0% {
        width: 0;
    }
    60% {
        width: 55%;
    }
    100% {
        width: 50%;
    }
}

div#vader div.bluetooth div.image-container{
    display: grid;
    grid-template-areas: "icon icon icon" "glass glass glass" "mic game key";
    grid-column-gap: 1em;
    grid-row-gap: 1em;
    justify-items: center;
}

div#vader div.bluetooth div.image-container img:first-child{
    grid-area: icon;
}

div#vader div.bluetooth div.image-container img:nth-child(2){
    grid-area: glass;
}

div#vader div.bluetooth div.image-container img:nth-child(3){
    grid-area: mic;
}

div#vader div.bluetooth div.image-container img:nth-child(4){
    grid-area: game;
}

div#vader div.bluetooth div.image-container img:last-child{
    grid-area: key;
}

div#vader div#hand-gesture-scene{
    background: url('../images/img_HandControl_bk.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

div#vader div#hand-gesture-scene div.hand-gesture-front{
    position: absolute;
    top: 0;
    left: 0;
}

div#vader div#hand-gesture-scene div.hand-gesture-front .hand-gesture-front-svg{
    position: absolute;
    bottom: 0;
    right: 0;
}

/* solution / application */

div#application{
 
    background: url('../images/arbanner.png');
    background-size: cover;
    background-position: center top;
    padding: 7em 1em;
    color: #ffffff;
}

div#application h1,
div#application p,
div#application a{
    z-index: 2;
}

@media (max-width: 576px) {

    div#application{
        background-position: 70% 50%;
    }
    
    div#application .column {
      width: 100%;
    }
}


/* solution / usecase */

div#usecase{
    
    background: url('../images/casestudy.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size:cover;
    padding: 1em 1em;
    color: #ffffff;
  
}

#row-padding{
    padding-left: 2em;
}

#youtube-container
{
    position:relative;
    padding-top: 3em;
    width: 50%;
    height: 50%;
    float: right;
    margin: auto;
}

iframe {
position:absolute;
width:100%;
height:100%;
left:0px;
top: 0px;
}



#left{
    padding-left: 200px;
    width:70%;
    
}

#right {
    float:right;
    padding-left: 5em; 
    order: 2; 
    width: 30%;
}

div.vader-container {
    width: 20%;
}

@media (max-width: 1500px) {
    div#usecase{
        padding: 7em 1em;    
    }

    #row-padding{
        padding-left: 0em;
    }

    
    #left {
        display:block;
        float: center;
        width:70%;
        order: 1 ;
        padding-left:0px;
    }

    #right {
        float:right;
        padding-left: 2em; 
        order: 2; 
        width: 30%;
    }

    #youtube-container
    {
    position:relative;
    padding-top: 2em;
    width: 100%;

    height: 100%;
    
    }

}

@media (max-width: 576px) {

    div#usecase{
        background-position: right top;
        padding: 3em 1em;
    }
    div#usecase div.column{
        width: 100%;
        height: 100%;
    }

    #youtube-container
    {
    width: 100%;
    height: 100%;
    
    }


    .row {
        flex-flow: row wrap;
    }

    #row-padding{
        padding-left: 0em;
    }

    #left {
        display:block;
        float: none;
        width:100%;
        order: 1 ;
        padding-left:0px;
    }

    iframe {
        width: 100%;
        height: 100%;
    }

    #right {
        display:block;
        float:right;
        padding-left: 0em;
        padding-top: 1em; 
        width:100%;
        order: 2; 
    }
}

div#usecase h1,
div#usecase p,
div#usecase a{
    z-index: 2;
}
.inner {
    margin-top: 90px;
    margin-bottom: 90px;
}

.label {
    margin-left:10px;
}

.row {
   
    display: flex;
   
}

.column {
    width: 50%;
}

/* language toggle */

section#language-toggle{
    border: none;
    border-radius: 15px;
    overflow: hidden;
    padding: 1em;
    background: rgba(0, 0, 0, .5);
    position: fixed;
    bottom: 1em;
    left: 1em;
    z-index: 10;
}

section#language-toggle a{
    padding: 1em;
    color: #ffffff;
    text-decoration: none;
}

section#language-toggle a:hover,
section#language-toggle a.active{
    color: #FFFF00;
}

/* modal */

section#modal-section{
    display: none;
    z-index: 99;
}

div.modal-area{
    display: grid;
    align-items: center;
    justify-items: center;
    grid-template-columns: 100%;
}

section#modal-section, 
section#modal-section div.overlay,
section#modal-section div.modal-area{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

section#modal-section div.overlay{
    /* display: none; */
    background-color: rgba(0, 0, 0, .5);
}

div#connector-modal, div#purchase-modal{
    display: none;
}

div#connector-modal div.grid-container{
    /* background-color: #f5f5f5; */
    background-color: #000000;
    display: inline-grid;
    /* grid-template-areas: "android" "ios";
    grid-template-columns: 1fr; */
    grid-template-areas: "android ios";
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 2em;
    justify-items: center;
    align-items: center;
    border: none;
    border-radius: 15px;
    /* margin: auto; */
    padding: 2em;
}

div#connector-modal div.grid-container a:first-child{
    grid-area: android;
}

div#connector-modal div.grid-container a:last-child{
    grid-area: ios;
}

div#connector-modal div.grid-container a{
    color: #ffffff;
}

div#connector-modal div.grid-container a:hover{
    color: #FFFF00;
}

div#purchase-modal{
    width: 100%;
}

div#purchase-modal div.grid-container{
    padding: 1em;
    background-color: #f5f5f5;
    width: 90%;
    max-width: 600px;
    margin: auto;
    
}

div#purchase-modal div.grid-container h1{
    margin-top: 0; 
}

div#purchase-modal div.grid-container label{
    padding-bottom: 1.5em;
}

div#purchase-modal div.grid-container input, 
div#purchase-modal div.grid-container textarea{
    padding: .5em;
    width: 100%;
    border: none;
    line-height: 1.5em;
    box-sizing: border-box;
    margin: .5em 0 1em;
}

div#purchase-modal div.grid-container textarea{
    resize: none;
}

div#purchase-modal div.grid-container input.submit-button{
    background-color: #1A96E2;
    color: #ffffff;
}

div#purchase-modal div.grid-container input.submit-button:hover{
    color: #FFFF00;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {

    /* header */

    div#video-banner{
        padding-bottom: 0;
    }

    div#video-banner div.content div.companies{
        top: 4em;
    }

    div#video-banner div.content div.description{
        position: absolute;
        bottom: 4em;
    }

    /* vader */

    div#vader div.control-list-container{
        grid-template-areas: "control-1 control-1" "control-2 control-3" "control-4 control-4" "control-5 control-5";
    }

    div#vader div.specification-list-container{
        grid-template-areas: "spec-1 spec-1 spec-2 spec-2 spec-3 spec-3" 
        "spec-4 spec-4 spec-4 spec-5 spec-5 spec-5" 
        "spec-6 spec-6 spec-6 spec-7 spec-7 spec-7" 
        "spec-8 spec-8 spec-8 spec-9 spec-9 spec-9";
    }

    /* x5 */

    div#x5 div.specs div.list{
        grid-template-areas: 
            "spec-1 spec-1 spec-2 spec-2 spec-3 spec-3" 
            "spec-4 spec-4 spec-4 spec-5 spec-5 spec-5" 
            "spec-6 spec-6 spec-6 spec-7 spec-7 spec-7";
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    }

    div#x5 div.specs div.image-container img:first-child{
        left: 10em;
    }
    
    div#x5 div.specs div.image-container img:last-child{
        left: 14em;
    }

    div#x5 div.feature div.camera,
    div#x5 div.feature div.display{
        grid-template-columns: 1fr 1fr;
    }

    div#x5 div.feature div.camera{
        grid-template-areas: "image title" "image content-text";
    }

    div#x5 div.feature div.display{
        grid-template-areas: "title image" "content-text image";
    }
    
    div#x5 div.feature div.camera div.image-container img,
    div#x5 div.feature div.display div.image-container img{
        position: absolute;
        width: auto;
    }

    div#x5 div.feature div.camera div.image-container img{
        top: 0;
        right: 0;
    }
    
    div#x5 div.feature div.display div.image-container img{
        top: -8em;
        left: 0;
    }

    div#x5 div.footer{
        grid-template-areas: "image content-text";
        grid-template-columns: 1fr 1fr;
    }

    div#x5 div.footer div.footer-content{
        justify-self: left;
        text-align: left;
    }

    div#x5 div.footer div.image-container{
        background-position: -170px 50px;
        background-size: 720px 180px;
    }

    /* ares */

    div#ares div.tech-spec .container > div{
        width: 55%;
    }

    div#ares div.feature div.os,
    div#ares div.feature div.storage,
    div#ares div.feature div.display,
    div#ares div.feature div.video{
        grid-template-columns: 1fr 1fr;
    }


    div#ares div.feature div.storage,
    div#ares div.feature div.video{
        grid-template-areas: "image title" "image content-text";
    }

    div#ares div.feature div.os,
    div#ares div.feature div.display{
        grid-template-areas: "title image" "content-text image";
    }

    div#ares div.feature div.os h1,
    div#ares div.feature div.os p,
    div#ares div.feature div.storage h1,
    div#ares div.feature div.storage p,
    div#ares div.feature div.display h1,
    div#ares div.feature div.display p,
    div#ares div.feature div.video h1,
    div#ares div.feature div.video p{
        text-align: left;
    }

    div#ares div.feature div.os h1,
    div#ares div.feature div.os p,
    div#ares div.feature div.display h1,
    div#ares div.feature div.display p{
        justify-self: right;
    }

    div#ares div.feature div.storage h1,
    div#ares div.feature div.storage p,
    div#ares div.feature div.video h1,
    div#ares div.feature div.video p{
        justify-self: left;
    }

    div#ares div.feature img{
        position: absolute;
        width: auto;
    }

    div#ares div.feature div.os img{
        left: 0;
        top: -15em;
    }

    div#ares div.feature div.storage img{
        top: -5em;
        right: 0;
    }

    div#ares div.feature div.display img{
        top: -10em;
        left: 0;
    }

    div#ares div.feature div.video img{
        top: -15em;
        right: 0;
    }

    div#ares div.operation-type-container{
        grid-template-areas: "operation-1 operation-2";
    }

    /* application */

    div#application{
        padding: 5em 1em;
    }

    
    /* use case */

    div#usecase{
       
    }

    /* modal */

    div#connector-modal div.grid-container{
        grid-column-gap: 5em;
        padding: 5em;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

    body{
        font-size: 16px;
    }

    h1{
        font-size: 3rem;
    }
    
    h2{
        font-size: 1.5rem;
    }

    /* header */

    header.mobile-open .menu{
        max-height: 100%;
        overflow: visible;
    }

    /* video banner */
    div#video-banner div.content div.companies{
        top: 10em;
    }

    /* vader */

    div#vader div.specification{
        grid-template-areas: "title image" "specification image";
        grid-template-columns: 3fr 2fr;
    }

    div#vader div.footer{
        grid-template-areas: "content-text image";
        grid-template-columns: 1fr 1fr;
    }

    div#vader div.footer div.image-container,
    div#vader div.footer div.footer-content{
        justify-self: right;
        text-align: left;
    }

    /* x5 */

    div#x5 div.footer div.image-container{
        background-position: -200px 50px;
        background-size: 720px 180px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

    div.container{
        width: 80%;
    }

    div.small-container{
        width: 60%;
    }

    div.companies img{
        height: 80px;
    }
    
    div.companies img.cross{
        width: 40px;
    }

    /* header */

    header{
        grid-template-areas: "logo menu buy"; 
        grid-template-columns: auto 5fr 1fr;
        position: fixed; 
    }

    header .logo{
        text-align: left;
    }

    header .logo img:nth-child(2){
        width: 15px;
        height: 15px;
        margin: 0 5px 5px;
    }

    header .logo img:first-child,
    header .logo img:last-child{
        height: 25px;
        width: auto;
    }

    div.menu ul li a{
        padding: 1em 1.5em;
    }

    header .caret{
        display: none;
    }

    header .menu{
        display: block;
    }

    header .buy-button{
        display: grid;
    }

    div#video-banner div.content div.description{
        bottom: 10em;
    }

    /* main */

    main{
        padding-top: 62px;
    }

    /* x5 */

    div#x5 div.specs > div.container{
        grid-template-columns: 3fr 2fr;
        grid-template-areas: "title image" "content-text image" "list image";
    }

    

    div#x5 div.specs div.image-container img:first-child{
        left: 0;
    }
    
    div#x5 div.specs div.image-container img:last-child{
        left: 4em;
    }

    div#x5 div.control-type-container{
        grid-template-areas: "control-1 control-2" "control-3 control-4" "control-5 control-6";
        grid-template-columns: 1fr 1fr;
    }

    /* ares */

    div#ares div.connector{
        grid-template-areas: "image content-text";
        grid-template-columns: 1fr 2fr;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

    div.companies img{
        height: 100px;
    }
    
    div.companies img.cross{
        width: 50px;
    }

    div#video-banner div.content div.description{
        bottom: 15em;
    }

    /* header */

    header .logo img:nth-child(2){
        width: 25px;
        height: 25px;
        margin: 0 5px 7px;
    }

    header .logo img:first-child,
    header .logo img:last-child{
        height: 40px;
        width: auto;
    }

    div.menu ul li a{
        padding: 1em 2em;
    }

    /* main */

    main{
        padding-top: 70px;
    }

    /* x5 */

    div#x5 div.specs > div.container{
        grid-template-columns: 3fr 1fr;
        grid-template-areas: "title image" "content-text image" "list image";
    }

    div#x5 div.specs div.list{
        width: 70%;
    }



}

a {
    text-decoration:none;
    color:white;
}
