/*
    Document   : styles
    Created on : 16-Feb-2016, 18:16:51
    Author     : a.alfieri
    Description:
        Style sheet of Scroll.
*/

html {
    height: 100%;
    background-image:  url("../img/bg.jpg")
}

body {
    /*! height: 100%; */
    position: relative;
    /*! background-color: #fafafa; */
}

* {
    box-sizing:border-box ;
    
}

*, h1 {
    margin: 0;
    padding: 0;
}

a, ul, li, div {
    border: 0px solid #555;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    vertical-align: baseline;
}

.clear {
    clear: both;
}

.inner {
    width: 62.5%;
    margin: auto;
}

#container {
    position:relative;
}

header .inner {
    /*! position: relative; */
}
    
header {
    position:sticky;
    top:0;
    left: 0;
    width:100%;
    background-color: #fafafa;
    opacity: 0.8;  
    box-shadow: 0px -1px 5px -1px black;
    transition: height 0.3s;
    z-index: 6;
}


main {          
    /*! height: 100% !important; */    /* you need to assign a min-height to the main content so that the children can inherit it */
    position:static;
    /*! z-index: 1; */
    color: #2a3b44;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #fafafa;
    opacity: 0.6;  
    box-shadow: 0px -1px 5px -1px black;
    z-index: 2;
    transition: all 0.3s;
}

footer.scrolled {
    position: static;
    background-color: #2a3b44;
    opacity: 1;
    color:#ff0058;
}

#site-identity {
    border: 0px solid red;
    margin: 0 auto;     
}

#site-identity {
    display: inline-block;
    /*! height: 150px; */
    /*! line-height: 150px; */
    font-family: "Oswald", sans-serif;
    font-size: 36px;
    color: white;
    font-weight: 400;
    transition: all 0.3s;
    margin: 0;
}

#site-identity a {
    display: block;
    padding: 12px 0 8px;
}

header.scrolled {
    position: fixed;
    height: 75px;
    background-color: #2a3b44;
    opacity: 1;
}
header.scrolled #site-identity a {
   padding: 0;
}
    
#name {
    color: #000;
}

header.scrolled #name {
    color: #ff0058;
    font-size: 30px;
    height: 75px;
    line-height: 75px;
}

#name:hover {
    color: #333;
}

#description {
    color: #000;
    font-variant: none;   
}

header.scrolled #description {
    display: none;
}

#main-menu {
    position: absolute;
    top:0;
    left: 0;
    border: 0px solid red;
    margin: 0;
    padding: 0;
}

#nav-button {
    border: 0px solid blue;
    top: 0.8em;
    left: 1em;
    padding: 1.6em 1.6em 1.4em;
    font-size: 2em;
    color: #000;
    background-color: transparent;   
}

header.scrolled #nav-button {
    padding: 0.7em 0 0.56em 1.6em;
    color: #ff0058;
}

#nav-menu {
    border: 0px solid green;
    position: relative;
    display: none;
    border-bottom: 1px solid #ddd;
    z-index: 5;
}

header.scrolled #nav-menu {
}

#main-menu:hover #nav-menu {
    display:block;
}
    
#nav-menu li { 
    position:relative;
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
    background-color: #fafafa;   
}

#nav-menu li:first-child {
    border-top: 0
}

header.scrolled #nav-menu li {
    background-color: #2a3b44;
    border-top: 1px solid #5f0023;
    border-right: 1px solid #5f0023;
    }

#nav-menu li:first-child {
    border-top: 0
}

header.scrolled #nav-menu a {
    background-color: #2a3b44;
    color: #ff0058;
}
#nav-menu li:hover {
    background-color: #656565;
}
    
#nav-menu a { 
    display: block;
    min-width: 12em;
    padding: 0.6em 0.75em 0.6em 1.6em;
    font-size: 1.25em; 
    white-space: nowrap;   
    color: #333;
    font-variant: small-caps;
    transition: all 0.3s;
}

#nav-menu li:hover > a,
#nav-menu li.focus > a {
    background-color: #656565;
    color: #fafafa;
    font-weight: bold;
}

main p {
    width: 48%;
    margin: 0.5em auto 0;
    padding: 0.5em 1em;
    border: 1px solid;
    line-height: 1.667;  
}

#map {
    width: 100%;
    height: 400px;
    padding: 0 1em;
    box-sizing:content-box;
}


#container > p {
    position: absolute;
    left: 40px;
    top: 40%;
    width: 100px;
    /*! display: none; */
}
#container > p:nth-of-type(2) {
    left: 40px;
    top: 60%;
    width: 100px;
}

.item {
    width: 95%;
    text-align: center;
    vertical-align: center;
}

.red {
    background-color: #9f0000;
    color:#fafafa;   
}

.blue {
    background-color: #00009f;
    color: #fafafa;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.copyright {
   float: left;
   padding: 1em 0;
}

footer .social {
    float: right;
    margin: 0.5em 0;
}

footer .social a {
    display: inline-block;
    border: 1px solid #d1d1d1;
    border-radius: 50%;
    color: #333;
    margin: 0 0.1em;
    height: 35px;   
    width: 35px;    
}

footer .social i {    
    height: 33px;
    line-height: 33px;
    text-align: center;
    width: 33px;
}

footer .social a:hover {
    color: #9f0000;
}

/* -------------- Clearings -------------- */

header:before,
header:after,
main:before,
main:after,
footer:before,
footer:after {
    content: "";
    display: block;
}

header:after,
main:after,
footer:after {
    clear: both;
}

.modalDialog {
    position: fixed;
    font-family: Arial, Helvetica, sans-serif;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    opacity:0;
    transition: opacity 400ms ease-in;
    pointer-events: none;
}

.modalDialog:target {
    opacity:1;
    pointer-events: auto;
}

.modalDialog > div {
    width: 400px;
    position: relative;
    margin: 10% auto;
    padding: 5px 20px 13px 20px;
    border-radius: 10px;
    background: #fff;
}

.close {
    background: #606061;
    color: #FF0000;
    line-height: 25px;
    position: absolute;
    right: -12px;
    text-align: center;
    top: -10px;
    width: 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 1px 1px 3px #000;
}

.close:hover { background: #ffdddd; }

.modalDialog p {
    width: 96%;
}

/*  Parallax Styles  */

.parallax-1 {
    position: relative;
    z-index: 2;
    /*background-image: url('../img/para.png');*/
    background-repeat: no-repeat;
}

.parallax-1 [class*="bg__"] {
  position: relative;
  height: 50vh;
  text-indent: -9999px;
  background-attachment: fixed;
  background-position: top center;
  background-size: cover;
}

.parallax-1 [class*="bg__"]:nth-child(2n) {
  box-shadow: inset 0 0 1em #111;
}
.parallax-1 .bg__foo, .parallax-1 .bg__bazz {
  height: 100vh;
}
.parallax-1 .bg__foo {
  background-image: url(../img/Martin1.png);

}
.parallax-1 .bg__bar {
  background-image: url(../img/Martin1.png);
  filter: invert(100%);
  -webkit-filter: invert(100%);
   
}
.parallax-1 .bg__baz {
    background-image: url(../img/Martin1.png);
    filter: blur(5px);
    -webkit-filter: blur(5px);
}
.parallax-1 .bg__bazz {
  background-image: url(../img/Martin1.png);
  -webkit-filter: contrast(2);
  filter: contrast(2);
}

.parallax-2 {
    perspective: 1px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 2em;
    /*background-image: url("../img/para.png");
    background-repeat: no-repeat;*/
}

.parallax-group {
    position: relative;
    height: 100vh;
    transform-style: preserve-3d;
}

.para-img {
    transform: translateZ(0);
}

.parallax__layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.parallax__layer--base {
    transform: translateZ(0);
    color:white;
    border-bottom: 1px solid black;
}

.parallax__layer--back {
    transform: translateZ(-1px) scale(2);
    color: green;
    border-bottom: 2px solid red;
}

.title {
    text-align: center;
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.redc { background-color: rgba(255,0,0,0.4); }
.bluec { background-color: rgba(0,0,255,0.2);}
.greenc { background-color: rgba(0,255,0,0.4);}
.yellowc { background-color: rgba(255,255,0,0.4);}
.turquesac { background-color: rgba(0,255,255,0.4);}
.fucsiac { background-color: rgba(255,0,255,0.4); }

.group-1 .parallax__layer--back {
   /*background-image: url("../img/Martin1.png");*/
}

/* ----------------------------------------- */
/* ---------- RESPONSIVE STYLES ------------ */

@media screen and (max-width: 880px) {
    
body {
    position: initial;
    height:100%;
    margin: 0;
    padding: 0;
}
    
header, header.scrolled {
    height: 3em;     
    width:100%;
    z-index: 2;
}

footer {   
    height: auto;
    padding: 0;     
}
    
.inner {
    width: 95%;
    margin: 0 auto;
}
    
#site-identity, header.scrolled #site-identity  {
    position: relative;
    left: 3em;
    top: 0.3em;
    border: 0px solid red;
    font-size: 1.5em;
}
    
#site-identity a {
    display: block;
    padding: 0;
}
    
#name, header.scrolled #name {
    border: 0px solid red;
    font-size: 1.5em;
    color: #222;
    font-variant: small-caps;
    margin: 0em auto 0;
    height: auto;
    line-height: 1;
}

header.scrolled #name {
    color: #ff0058;
}

#name:hover {
    color: #000;
}

#description {
    display:none;
}

#main-menu {    
    width: 60%;
    margin: 0;
}

#nav-menu {
    position: absolute;
    top: 3em;
    left: 0;
    display: none;
    width: 100%; 
    z-index: 2; 
    padding:0;
}

#main-menu:hover #nav-menu {
    display:none;
}

#nav-button, header.scrolled #nav-button {
    position: absolute;
    top: 0em;
    left: 0em;
    width: 2.5em;
    height: 2.5em;
    margin: 0;
    padding: 0;
    font-size: 1.2em;
    color: #222;
    background-color: #fafafa;   
}

header.scrolled #nav-button {
    color: #ff0058;
}

#main-menu.toggled-on #nav-menu {
    display: block;
}

#nav-menu li {      
   background-color: #fafafa;
   border-top: 1px solid #cfcfcf; 
}

#nav-menu li:hover {
    background-color: #656565;
}

#nav-menu li a {
    background-color:transparent;
    color: #333;
    font-variant: small-caps;
    padding: 0 0.5em;
    font-size: 1.3em;    
}

#nav-menu li:hover > a {
    color: #fafafa;  
    font-weight: bold;    
}
    
main p {
    width: 100%;
    margin: 0.5em auto;
}

.copyright {
    font-size: 0.9em;
    float: none;
    width: 95%;
    margin: 0.5em auto 0;
}

.social {
    display: none;
    float: none;
    width:80%;
    margin: 0.5em auto;
}

#social .social {
    display: block;
    padding: 3em 0;
    width: 97%;    
    margin: auto;
}

#social .social a {    
    margin-left: 0.8em;    
}

#social .social i {
    font-size: 1.8em;
    height: 1.4em;
    width: 1.4em;
    line-height: 1.4em;
}

}



