/* 
    Document   : style
    Created on : 2014-jan-11
	Updated on : 2018-mar-25
    Author     : Philip
    Description: You can also read the webpage without this, but it's harder.
*/

body, html { 
    display: block;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    height:100%;
}

.page, blockquote {
    color: #4e4e4e;
}

.page {
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
    background-color: #ededed;
    font-size: 0.9em;
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    padding: 4em 0 3em 0;
    z-index: 0;
}

@media all and (max-width: 800px) {
.inner {
    position: relative;
    width: 100%;
}}
@media all and (min-width: 800px) {
.inner {
    position: relative;
    left: 50%;
    margin-left: -400px;
    width: 800px;
}}

.inline {
    display: inline-block;
    margin: 0 2em;
}

.header {
    color: #323232;
    margin: 10px;
    font-weight: 300;
}

h1{ font-size: 3.2em; }
h2{ font-size: 2.4em; }
h3{ font-size: 1.6em; }

a {
    text-decoration: none;
    color: #007692;
    
    -webkit-transition: color 0.1s ease-out;
    -moz-transition: color 0.1s ease-out;
    -o-transition: color 0.1s ease-out;
    -ms-transition: color 0.1s ease-out;
    transition: color 0.1s ease-out;
}

a:hover, blockquote:hover {
    color: #0066ff;
}

blockquote {
    font-size: 1.4em;
    font-style: italic;
    width: 200px;
    position: relative;
    margin: 0 1em;
    padding: 0;
    
    -webkit-transition: color 0.1s ease-out;
    -moz-transition: color 0.1s ease-out;
    -o-transition: color 0.1s ease-out;
    -ms-transition: color 0.1s ease-out;
    transition: color 0.1s ease-out;
}

blockquote:before, blockquote:after {
    font-family: Arial, sans-serif;
    display: block;
    font-size: 80px;
    position: absolute;
}

blockquote:before {
    content: "\201C";
    width: 40px;
    left: -45px;
    top: -20px;
    text-align: right;
}

blockquote:after {
    content: "\201D";
    width: 40px;
    left: 100%;
    top: -20px;
    text-align: left;
}

blockquote cite {
    color: #666666;
    font-size: 14px;
    display: block;
    margin-top: 5px;
    width: 300px;
    opacity: 0.3;
}

blockquote:hover cite {
    opacity: 1;
}
 
blockquote cite:before {
    content: "\2014 \2009";
}

/* Floating Contact Bar */
.contact {
    top: 100%;
    height: 30px;
    margin-top: -30px;
    padding-top: 5px;
    width: 100%;
    text-align: center;
    position: fixed;
    color: rgba(0, 0, 0, 0.6);
    z-index: 3;
}

.contact a { color: #4e4e4e; }
.contact a:hover { color: black; }

.contact.back {
    z-index: 1;
    background-color: #fcfcfc;
}

/* Floating Navigation Bar */
.navigation {
    background-color: #fcfcfc;
    top: 0;
    height: 40px;
    width: 100%;
    text-align: center;
    position: fixed;
    z-index: 1;
}

/* Front Page */

#introduction {
    z-index: 2;
    height: 100%;
    
    /*
    color: #ffffff !important;
    background-color: #1cbdfe;*/
    
    background-color: #1cbdfe;
    /*background-color: #1cbdfe;*/
    /*background-image: url('noise.gif');*/
    /*#64d3ff*/
}

#taglines {
    height: 6em;
    text-align: center;
}

#taglines #tagline {
    opacity: 1;
}

#taglines .header {
    position: absolute;
    width: 100%;
    text-align: center;
    color: black;
    opacity: 0;
    
    -webkit-transition: opacity 0.2s ease-out;
    -moz-transition: opacity 0.2s ease-out;
    -o-transition: opacity 0.2s ease-out;
    -ms-transition: opacity 0.2s ease-out;
    transition: opacity 0.2s ease-out;
}



.valign {
    position: relative;
    height: 300px;
    margin-top: -150px;
    top: 50%;
}

.nextpage {
    background-image: url('resource/down.png');
    background-position: 50% 50%;
    background-repeat: no-repeat;
    position: absolute;
    width: 100px;
    margin-left: -50px;
    left: 50%;
    height: 40px;
    top: 50%;
    margin-top: 100px;
}

.icon {
    opacity: 0.6;
    padding: 0 0.2em;
}

.icon:hover {
    opacity: 1;
}

#icons {
    -webkit-transition: opacity 0.2s ease-out;
    -moz-transition: opacity 0.2s ease-out;
    -o-transition: opacity 0.2s ease-out;
    -ms-transition: opacity 0.2s ease-out;
    transition: opacity 0.2s ease-out;
    
    padding: 1em 0;
}

@media all and (max-width: 600px) {
#icons {
    opacity: 0;
}}

.headericon {
    position: absolute;
    width: 100%;
    height: 0;
}


#a_developer {
    background-color: #fcfcfc;
}

.project {
    display: block;
    position: relative;
    padding: 2em 0;
}

/* Engineering */

#an_engineer {
    background-color: #ffffff;
}

.centered
{
    position: relative;
    width: 0;
    left: 50%;
    height: 120px;
    
}

.cog {
    position: absolute;
}

#cog1 {
    top: 50px;
    left: -38px;
    
    width: 92px;
    height: 92px;
    margin-left: -46px;
    margin-top: -46px;
    background-image: url('resource/cog1.png');
    
    animation: spin 32s linear infinite;
    -moz-animation: spin 32s linear infinite;
    -webkit-animation: spin 32s linear infinite;
    -o-animation: spin 32s linear infinite;
}

#cog2 {
    top: 80px;
    left: 20px;
    
    width: 54px;
    height: 54px;
    margin-left: -27px;
    margin-top: -27px;
    background-image: url('resource/cog2.png');
    
    animation: spin 16s linear infinite;
    -moz-animation: spin 16s linear infinite;
    -webkit-animation: spin 16s linear infinite;
    -o-animation: spin 16s linear infinite;
    
    animation-direction: reverse; 
    -moz-animation-direction: reverse; 
    -webkit-animation-direction: reverse; 
    -o-animation-direction: reverse; 
}

/* Research & Study */

#a_researcher {
    background-color: #fcfcfc;
}

.publications {
    text-justify: auto;
    text-align: left;
    font-size: 0.8em;
}

@media all and (min-width: 800px) {
.publications
{
    position: relative;
    width: 800px;
    margin-left: -400px;
    left: 50%;
    
    column-count: 2;
    -moz-column-count: 2;
    -webkit-column-count: 2;

    width: 800px;
}}

@media all and (max-width: 800px) {
.publications
{
    column-count: 1;
    -moz-column-count: 1;
    -webkit-column-count: 1;
    
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    
    display: inline-block;
    padding: 0 1em;
    width: 100%;
    max-width: 600px;
}}

/* Contact */

#in_touch {
    background-color: #e3e3e3;
    padding-bottom: 20%;
}

#in_touch .icon {
    display: inline-block;
    vertical-align: middle;
    padding-bottom: 1em;
}

/*
 * Not as widely supported as transitions, but if it doesn't work it's no
 * big deal and if it does work then it looks cool!
 */
@keyframes spin { from {transform: rotate(0deg);} to {transform: rotate(359deg);} }
@-moz-keyframes spin { from {-moz-transform: rotate(0deg);} to {-moz-transform: rotate(359deg);} }
@-webkit-keyframes spin { from {-webkit-transform: rotate(0deg);} to {-webkit-transform: rotate(359deg);} }
@-o-keyframes spin { 0% {-o-transform: rotate(0deg);} 100% {-o-transform: rotate(359deg);} }
