/* 
  Styles for www.viqi.org, Dima Fedorov 
  ver 1.0
*/

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    /*font-size:100%;*/
    vertical-align:baseline;
    background:transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;    
}

article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section { 
    display:block;
}

html, body {
    height: 100%;
}

body {
    color: #333333;
    background: #999999;
    line-height:1;
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 100;
}

h1 {
    text-transform: uppercase;
}

p, li {
    font-family: 'Roboto', sans-serif;
    font-weight: 100;
}

b {
    font-weight: 300;    
}

/******************************************************************
// Links
******************************************************************/

a:link { color: #000000; background: transparent; }
a:visited { color: #ffffff; }
a:active { color: #FF0000; }
a:hover { color: #0099FF; }


/******************************************************************
// Header
******************************************************************/

header {
    background-color:rgba(0,0,0,0.7);
    width: 100%;
    height: 50px;
    position: fixed;
    top: 0px; 
    z-index: 100;
}

header a:link { color: #ffffff; }
header a:visited { color: #aaaaaa; }
header a:hover { color: #0099FF; }

.logo {
    position: fixed;
    left: 20px;
    top: 7px;
    font-size: 32px;
    font-family: 'Varela Round', sans-serif;
}

.logo a {
    text-decoration: none;
}

nav {
    position: fixed;
    right: 10px;
    top: 10px;
}

nav a {
    font-family: 'Abel', sans-serif;
    text-decoration: none;
    font-size: 26px;
    padding: 0px;
    margin: 0px 10px 0px 0px;
}

nav a#selected {
    border-bottom: #0099FF 2px solid;
    color: #0099FF;
}

header form {
    position: absolute;
    right: 350px;
    width: 230px;
    display: block;
    margin: 8px 15px 8px 15px;
}

header form input[type=text] {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 200px;
    height: 18px;
    font-size: 1.1em;
    line-height: 1.1em;
    -webkit-transition: background-color 0.3s ease-out;
    -moz-transition: background-color 0.3s ease-out;
    -o-transition: background-color 0.3s ease-out;
    transition: background-color 0.3s ease-out;
    color: #666666;
    background: transparent;
    border: 2px solid #333333;
    padding: 4px 30px 4px 4px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;  
    font-family: 'Abel', sans-serif;  
}

header form input[type=text]:hover {
    -webkit-transition: border-color 0.3s ease-out, -webkit-box-shadow 0.3s ease-out;
    -moz-transition: border-color 0.3s ease-out, -moz-box-shadow 0.3s ease-out;
    -o-transition: border-color 0.3s ease-out, -o-box-shadow 0.3s ease-out;
    transition: border-color 0.3s ease-out, box-shadow 0.3s ease-out;
    border-color: #0099FF;
    -webkit-box-shadow: 0px 0px 8px 0px rgba(0, 153, 255, 1);
    -moz-box-shadow:    0px 0px 8px 0px rgba(0, 153, 255, 1);
    box-shadow:         0px 0px 8px 0px rgba(0, 153, 255, 1);  
}

header form button {
    -webkit-transition: color 0.3s ease-out;
    -moz-transition: color 0.3s ease-out;
    -o-transition: color 0.3s ease-out;
    transition: color 0.3s ease-out;
    position: absolute;    
    right: 0px;
    top: 8px;   
    margin: 0px;
   
    background-image: url('assets/images/icon_search.png');
    background-size: 16px;
    background-color: transparent;
    background-repeat: no-repeat;    
    width: 18px;
    height: 18px;
    border: 0;
    cursor: pointer;
    opacity: 0.5;
}

div.sociallinks {
    float:right;
    font-family: 'Roboto', sans-serif;
    margin-top: 5px;
    margin-right: 15px;
}

/******************************************************************
// Sections
******************************************************************/

section {
    clear: both;
    font-size: 120%;
    font-weight: lighter;
    margin: 0px 0px 0px 0px;
    display: block;
    
    background-color: #F0F0F0;
	background-repeat: no-repeat;
    background-size: cover;
    
    position: relative;
}

section h1 {
    font-size: 280%;
}

section h2 {
    font-size: 250%;
}

section h3 {
    font-size: 220%;
}

section p {
    font-size: 120%;
    padding: 1em 0em 0.5em 0em;
    line-height: 1.3em;
}

.block {
    min-height: 300px;
    color: #000000;
    background-color: #999999;
    text-align: left;
}

.image img {
    position: absolute;
    z-index: 10;
}

.alternate {
    background-color: #999999;
    text-align: right;
}


.block h1, .block h2, .block h3, .alternate h1, .alternate h2, .alternate h3 {
    padding: 0.8em 30px 0.5em 30px;
}

.block h1, .alternate h1  {
    font-size: 100px; 
}

.alternate h1, .alternate h2 {
    color: #F0F0F0; 
    text-align: right;
}

.block p, .alternate p {
    padding: 0px 30px 0px 30px;
}

.block ul, .alternate ul {
    padding: 15px 30px 10px 30px;
    line-height: 1.5em;
    list-style: circle inside;
    /*font-family: 'Varela Round', sans-serif;*/
}

.block li, .alternate li {
    padding: 0px 10px 0px 10px;
}

.block.image h1, .block.image h2, .block.image h3, .block.image p, .block.image ul {
    padding-right: 450px;
    padding-left: 30px;
}

.alternate.image h1, .alternate.image h2, .alternate.image h3, .alternate.image p, .alternate.image ul {
    padding-left: 450px;
    padding-right: 30px;
}

.block.image img {
    -webkit-transform: perspective( 1000px ) rotateY( -20deg );
    -webkit-box-shadow: 2px 2px 10px 2px rgba(51,51,51,1);
    -moz-box-shadow: 2px 2px 10px 2px rgba(51,51,51,1);
    box-shadow: 2px 2px 10px 2px rgba(51,51,51,1);    
}

.alternate.image img {
    -webkit-transform: perspective( 1000px ) rotateY( 20deg );
    -webkit-box-shadow: 2px 2px 10px 2px rgba(51,51,51,1);
    -moz-box-shadow: 2px 2px 10px 2px rgba(51,51,51,1);
    box-shadow: 2px 2px 10px 2px rgba(51,51,51,1);
}

.noshadow {
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}


.first {
    padding-top: 90px !important;
    background-repeat: no-repeat;
    background-size: cover;    
}

.first h3 {

}

.shaded h2,h3 span {
    color: #dddddd;
    line-height: 1.35em;    
    background-color: rgba(20,20,20,0.8);
    padding-left: 10px;
    padding-right: 10px;

    //background: linear-gradient(to right, rgba(20,20,20,0.0) 0%,rgba(20,20,20,0.8) 10%,rgba(20,20,20,0.8) 90%,rgba(20,20,20,0.0) 100%);

}

p.description {

    background-color: rgba(20,20,20,0.8);
    margin-left: 10px;
    margin-right: 10px;
    a:link { color: #0077cc; }

    //background: linear-gradient(to right, rgba(20,20,20,0.0) 0%,rgba(20,20,20,0.8) 10%,rgba(20,20,20,0.8) 90%,rgba(20,20,20,0.0) 100%);

}

p.description span {
    color: #dddddd;
    line-height: 1.35em;   
}

.prelude {
    color: #0099FF;
    font-size: 170%;
    min-height: 0px;
    padding: 0px 10px 30px 10px;
}

.prelude h3 {
    padding-top: 0px;
    font-size: 220%;
    color: #ffffff;
}

.prelude p {
    font-size: 80%;
    padding-bottom: 15px;
}

.prelude p span {
    background-color: rgba(20,20,20,0.5);
}



footer {
    background-color: #333333;
    color: #ffffff;
    padding: 0px;
    min-height: 100px;    
}

footer p {
    padding-top: 30px;
    text-align: center; 
}

//footer a:link {
 //   color: #333333;
//}

//footer a:hover {
 //   color: #0099FF;
//}

//footer a:visited {
 //   color: #333333;
//}



.portfolio {
    /*padding: 4%;*/
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 30000;
    overflow: scroll;
    width: 100%;
    height: 100%;
    background: rgba(64,64,64,0.9);
}

.portfolio .close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    
    z-index: 30;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: -134px -34px;
    background-image: url('assets/images/icons_viewer.svg');
    background-size: 200px;
}

.portfolio section {
    margin-top: 5%;
    margin-left: 5%;
    width: 90%;
    height: 90%;
    padding-bottom: 20px;
    overflow: scroll;    
}

.portfolio img {
    width: 40%;
    margin: 10px;
    float: right;
}





.person {
    max-height: 60%;
    width: 20%;
    background-color: rgba(0,0,0,0.5);
    padding: 0px 10px 0px 10px;
    overflow: hidden;
}

.person img {
    float: left;
    width: 150px;
    height: 200px;
    margin-right: 15px;
}

.person h3 {
    font-size: 120%;
    font-weight: lighter;
    margin-bottom: 10px;
    color: #ffffff;
}

.person p {
    font-size: 80%;
    font-weight: lighter;
    color: #aaaaaa;
    text-overflow:ellipsis;
    max-height: 50%;

}

.socialicon {
    background-image: url('assets/images/social_media.png');
    background-repeat: no-repeat;    
    width: 60px;
    height: 60px; 
    display: block;  
    z-index: 10; 
    float: left;
    opacity: 0.6;
}

.facebook {
    background-position: -0px -0px;
}
.facebook:hover {
    background-position: -0px -63px;
}

.twitter {
    background-position: -61px -0px;
}
.twitter:hover {
    background-position: -61px -63px;
}

.email {
    background-position: -128px -0px;
}
.email:hover {
    background-position: -128px -63px;
}

.google {
    background-position: -190px -0px;
}
.google:hover {
    background-position: -190px -63px;
}

.bitbucket {
    background-position: -388px -0px;
}
.bitbucket:hover {
    background-position: -388px -63px;
}

.linkedin {
    background-position: -256px -0px;
}
.linkedin:hover {
    background-position: -256px -63px;
}

.youtube {
    background-position: -322px -0px;
}
.youtube:hover {
    background-position: -322px -63px;
}



/************* mobile media ***************/

@media all and (max-width: 767px) {

header {
    height: auto;
    position: static;
    background-color: #333333;
}

.logo {
    float: left;
    width: 80px;
    position: static;
    text-align: center;
    padding: 20px 10px 20px 10px;
    font-size: 150%;
}

nav {
    position: static;
    clear: both;
}

nav a {
    display: block;
    padding: 15px;
    margin: 0px 0px 0px 0px;
    border-top: #222222 1px solid;
    font-size: 130%;
}

nav a:after {
    content: ">";
    position: absolute;
    right: 15px;
}

nav a#selected {
    padding-left: 2em;
    font-size: 150%;  
}

nav a#selected:after {
    content: "";
}

header form {
    position: absolute;
    width: 70%;
    right: 0px;
    top: 0px;
    display: block;
    margin: 0px;
    height: auto;
    margin: 15px 0px 10px 85px;
}

header form input[type=text] {
    position: absolute;
    margin: 0px;
    border: 1px solid #232323;
    width: 70%;
    right: 20px;
    top: 5px;
    left: auto;
}

header form button {
    position: absolute;    
    right: 30px;
    top: 11px;
    left: auto;
}

.block h1, .alternate h1  {
    font-size: 50px; 
    top: 0px;
}

.block h2, .alternate h2  {
    font-size: 40px; 
    top: 0px;
}

.block.image img, .alternate.image img {
    position: static;
    width: 100% !important;
    -webkit-transform: none;
}

.block.image h1, .block.image h2, .block.image h3, .block.image p, .block.image ul {
    padding-right: 30px;
    padding-left: 30px;
}

.alternate.image h1, .alternate.image h2, .alternate.image h3, .alternate.image p, .alternate.image ul {
    padding-left: 30px;
    padding-right: 30px;
}

section#users h3 {
    font-size: 150%;
} 


.block.image img, .alternate.image img {
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

.block.image .small, .alternate.image .small {
    width: 40% !important;
    float: right;
}


} /* mobile media */

#sponsors ul {
    list-style-type: none;
}

