﻿/* Reset */
*{margin:0;padding:0;}

body{
    min-width:900px;
}
/* Slider */
#slider{
    width:100%;
    height:600px;
    position:relative;
    overflow:hidden;
}
@keyframes load{
    from{left:-100%;}
    to{left:0;}
}
.slides{
    width:400%;
    height:100%;
    position:relative;
    -webkit-animation:slide 38s infinite;
    -moz-animation:slide 38s infinite;
    animation:slide 38s infinite;
}
.slider{
    width:25%;
    height:100%;
    float:left;
    position:relative;
    z-index:1;
    overflow:hidden;
}
.slide img {
    width: 100%;
    height: 100%;
}

.image{
    width:100%;
    height:100%;
    
}
.images img {
    position: center;
    width: 100%;
    min-height: 800px;
    z-index: 5;
}

.imagesVerticalAdjust {
    z-index: 3;
}

.imagesVerticalAdjust img {
    width: 100%;
    min-height: 800px;
    transform: translateY(-11%);
}

.imagesVerticalAdjustMore {
    z-index: 3;
}
.imagesVerticalAdjustMore img {
    width: 100%;
    min-height: 800px;
    transform: translateY(-22%);
}


.images video {
    object-fit: fill;
    width: 100%;
    min-height: 800px;
    background-size: cover;
}

.images {
    z-index: 3;
}

/* Legend */
.legend {
    border:370px solid transparent;
    border-left:800px solid rgba(52, 73, 94, .7);
    border-bottom:0;
    position:absolute;
    bottom:0;
    z-index: 4;
}

/* Contents */
.content{
    width:100%;
    height:100%;
    position:absolute;
    overflow:hidden;
    z-index: 5;
}
.content-txt {
    width: 380px;
    height: 150px;
    float: left;
    position: relative;
    top: 350px;
    -webkit-animation: content-s 9.5s infinite;
    -moz-animation: content-s 9.5s infinite;
    animation: content-s 9.5s infinite;
}

.context-txt-bottom {
    margin-top: 150px;
}

.content-txt b {
    color: white;
}
.content-txt h1 {
    text-transform: uppercase;
    font-size: 42px;
    text-align: left;
    margin-left: 30px;
    padding-bottom: 10px;
    color: #00a3cc;
    text-transform: none;
}

.content-txt h2{
    font-weight:normal;
    font-size:24px;
    color:#fff;
    text-align:left;
    margin-left:30px;
}

/* Slider Layover box for relevant text description */
.infoLayoverBox {
    display: inline-block;
    position: absolute;
    min-width: 250px;
    max-width: 300px;
    min-height: 300px;
    z-index: 200;
    left: 70%;
    top: 50%;
}

.infoLayoverHeader {
    width: 100%;
    height: 50px;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.80);
}

.infoLayoverContent {
    width: 100%;
    height: 250px;
    background: rgba(0, 0, 0, 0.65);
}

.infoLayoverContent p {
    color: white;
}


/* Switch */
.switch {
    width: 120px;
    height: 10px;
    position: absolute;
    bottom: 50px;
    z-index: 99;
    left: 30px;
}
.switch > ul{
    list-style:none;
}
.switch > ul > li{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#333;
    float:left;
    margin-right:5px;
    cursor:pointer;
}
.switch ul{
    overflow:hidden;
}
.on{
    width:100%;
    height:100%;
    border-radius:50%;
    position:relative;
    -webkit-animation:on 38s infinite;
    -moz-animation:on 38s infinite;
    animation:on 38s infinite;
}

/* Animation */
@-webkit-keyframes slide{
    0%,100%{
        margin-left:0%;
    }
    21%{
        margin-left:0%;
    }
    25%{
        margin-left:-100%;
    }
    46%{
        margin-left:-100%;
    }
    50%{
        margin-left:-200%;
    }
    71%{
        margin-left:-200%;
    }
    75%{
        margin-left:-300%;
    }
    96%{
        margin-left:-300%;
    }
}
@-moz-keyframes slide{
    0%,100%{
        margin-left:0%;
    }
    21%{
        margin-left:0%;
    }
    25%{
        margin-left:-100%;
    }
    46%{
        margin-left:-100%;
    }
    50%{
        margin-left:-200%;
    }
    71%{
        margin-left:-200%;
    }
    75%{
        margin-left:-300%;
    }
    96%{
        margin-left:-300%;
    }
}
@keyframes slide{
    0%,100%{
        margin-left:0%;
    }
    21%{
        margin-left:0%;
    }
    25%{
        margin-left:-100%;
    }
    46%{
        margin-left:-100%;
    }
    50%{
        margin-left:-200%;
    }
    71%{
        margin-left:-200%;
    }
    75%{
        margin-left:-300%;
    }
    96%{
        margin-left:-300%;
    }
}

@-webkit-keyframes content-s{
    0%{left:-420px;}
    10%{left:0px;}
    30%{left:0px;}
    40%{left:0px;}
    50%{left:0px;}
    60%{left:0px;}
    70%{left:0;}
    80%{left:-420px;}
    90%{left:-420px;}
    100%{left:-420px;}
}
@-moz-keyframes content-s{
    0%{left:-420px;}
    10%{left:0px;}
    30%{left:0px;}
    40%{left:0px;}
    50%{left:0px;}
    60%{left:0px;}
    70%{left:0;}
    80%{left:-420px;}
    90%{left:-420px;}
    100%{left:-420px;}
}
@keyframes content-s{
    0%{left:-420px;}
    10%{left:20px;}
    15%{left:0px;}
    30%{left:0px;}
    40%{left:0px;}
    50%{left:0px;}
    60%{left:0px;}
    70%{left:0;}
    80%{left:-420px;}
    90%{left:-420px;}
    100%{left:-420px;}
}

@-webkit-keyframes on{
    0%,100%{
        margin-left:0%;
    }
    21%{
        margin-left:0%;
    }
    25%{
        margin-left:15px;
    }
    46%{
        margin-left:15px;
    }
    50%{
        margin-left:30px;
    }
    71%{
        margin-left:30px;
    }
    75%{
        margin-left:45px;
    }
    96%{
        margin-left:45px;
    }
}

@-moz-keyframes on{
    0%,100%{
        margin-left:0%;
    }
    21%{
        margin-left:0%;
    }
    25%{
        margin-left:15px;
    }
    46%{
        margin-left:15px;
    }
    50%{
        margin-left:30px;
    }
    71%{
        margin-left:30px;
    }
    75%{
        margin-left:45px;
    }
    96%{
        margin-left:45px;
    }
}

@keyframes on{
    0%,100%{
        margin-left:0%;
    }
    21%{
        margin-left:0%;
    }
    25%{
        margin-left:15px;
    }
    46%{
        margin-left:15px;
    }
    50%{
        margin-left:30px;
    }
    71%{
        margin-left:30px;
    }
    75%{
        margin-left:45px;
    }
    96%{
        margin-left:45px;
    }
}

/* main */
/* Reset */
a{text-decoration:none;color:inherit;}
html{width:100%;height:100%;}

/* Body */
body{
    background:#fff;
}

/* Header */
header{
    width:100%;
    height:80px;
    background:#222;
}
.logo{
    width:50px;
    height:65px;
    position:relative;
    top:7.5px;
    float:left;
    margin-left:5%;
}
.logo img{
    width:100%;
    height:100%;
}

/* Content */
.container{
    width:70%;
    height:auto;
    padding:20px 0;
    margin:20px auto;
}
.container h1{
    font-family:Arial;
    font-size:24px;
    color:#222;
    text-transform:uppercase;
    margin:20px 0;
}
.container h2{
    font-family:arial;
    font-size:16px;
    color:#444;
    margin-top:10px;
}
.container h3{
    font-family:arial;
    font-weight:normal;
    font-size:16px;
    color:#aaa;
}
.code{
    width:600px;
    height:auto;
    margin:20px auto;
    padding:10px 20px;
    background:#222;
    border-left:10px solid #aaa;
    font-family: arial;
    font-size:16px;
    color:#fff;
}
.code span{
    color:#89A978;
}
.space{
    width:20px;
    height:1px;
    float:left;
}

footer{
    width:100%;
    height:50px;
}
footer h1{
    font-family:Arial;
    font-weight:normal;
    font-size:14px;
    color:#fff;
    margin-left:5%;
    line-height:50px;
}


/* iPad - horizontal */
@media screen and (max-width: 1024px) {
    #slider {
        max-width: 1024px;
    }        
}

/* iPad - vertical */
@media screen and (max-width: 768px) {
    body {
        width: 768px;
    }

    #slider {
        max-width: 768px;
    }    
}

/* iPhone 6 Plus - horizontal */
@media screen and (max-width:736px) {
    body {
        width: 736px;
    }

    #slider {
        max-width: 736px;
    }    
}

/* iPhone 6 - horizontal */
@media screen and (max-width: 667px) {
    body {
        width: 667px;
    }

    #slider {
        max-width: 667px;
    }
}

/* iPhone 6 Plus - vertical */
@media screen and (max-width:414px) {
    body {
        width: 414px;
    }

    #slider {
        max-width: 414px;
        height: 300px;
    }


    .slides {
        width: 400%;
        height: 100%;
    }

    .slider {
        max-width: 414px;
        height: 100%;
        float: left;
    }

    /* Legend */
    .legend {
        border: 400px solid transparent;
        border-left: 700px solid rgba(0, 0, 0, 0);
    }
}

/* iPhone 6 - vertical */
@media screen and (max-width:375px) {

    body {
        width: 375px;
    }

    #slider{
        max-width: 375px;
        height:300px;
    }


    .slides{
        width:400%;
        height:100%;
    }

    .slider{
        max-width: 375px;
        height:100%;
        float:left;
    }

    /* Legend */
    .legend {
        border:400px solid transparent;
        border-left:700px solid rgba(0, 0, 0, 0);
    }
}

/* Galaxy S5 - vertical */
@media screen and (max-width:360px) {
    body {
        width: 360px;
    }

    #slider {
        max-width: 360px;
    }

    .slider {
        max-width: 360px;
    }
}
