/* 
    Document   : Estils
    Created on : 01-nov-2012, 20:44:30
    Author     : Dr. Carles Torras
    Description:
    Purpose of the stylesheet follows.
*/
a:link  {text-decoration: none; color: grey}
a:visited {text-decoration: none; color: grey}
a:hover  {text-decoration: none; color: black}
a:active  {text-decoration: none; color: grey}

@font-face {
    font-family: AleksandraC;
    src: url('AleksandraC_regular.otf');
    font-weight:400;
}
@font-face {
    font-family: Sans;
    src: url('open-sans.light.otf');
    font-weight:400;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    color:#333;
    font-family:AleksandraC;
    font-size:40px;
}
.parallax-1, .parallax-2, .parallax-3, .parallax-4 {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
} 
.parallax-1 {
    background-image: url('esponafons.jpg');
    min-height: 60%;    
}
.parallax-2 {
    background-image: url('esponafons.jpg');
    min-height: 3%;    
}
.parallax-3 {
    background-image: url('esponafons.jpg');
    min-height: 30%;
}
.parallax-4 {
    background-image: url('esponafons.jpg');
    min-height: 10%;    
}

.titcat {
  position: absolute;
  left: 0;
  top: 20%;
  width: 100%;
  text-align: center;
  color: #000;
}
  .titcat span.border {
    background-color: #111;
    color: #fff;
    padding: 20px;
    padding-left: 50px; 
    padding-right: 50px;    
    font-size: 15px;
    letter-spacing: 7px;
  }
  
h3 {
  letter-spacing: 5px;
  text-transform: uppercase;
  font: 20px sans-serif;
  color: #111;
  text-align:center;
}
h4 {
  font-size: 12px;
  color: #111;
  text-align:center;
}
h5 {
  font-size: 14px;
  color: orange;
  text-align:center;
}

nav ul {
    list-style: none;
    overflow: hidden;
    position: relative;
}
    nav ul li { 
        float: left; margin: 0 10px 0 0;
    }
    nav ul li a {
        display: block; width: 144px; height: 142px;
        background-repeat: no-repeat;
    }
        nav ul li:nth-child(1) a {
            background-image: url('bjo.png'); 
        }
        nav ul li:nth-child(2) a {
            background-image: url('bfoto.png');
        }
        nav ul li:nth-child(3) a {
            background-image: url('bflix.png');
        }
        nav ul li:nth-child(4) a {
            background-image: url('btech.png');
        }
        nav ul li:nth-child(5) a {
            background-image: url('btorras.png');
        }        
    nav ul li a span {
        font-size: 30px; 
        position: absolute; left: 850px; top: 50px;
        display: none;
    }
    nav ul li a:hover span {
        display: block;
    }
    nav ul li:nth-child(1) a span {
        color: #009bdb;
    }
    nav ul li:nth-child(2) a span {
        color: #81cded;
    }
    nav ul li:nth-child(3) a span {
        color: #fbc42e;
    }
    nav ul li:nth-child(4) a span {
        color: #fb6d2e;
    }
    nav ul li:nth-child(5) a span {
        color: #d74a4a;
    }    
    
.peupagina {
  position: absolute;
  left: 0;
  top: 75%;
  width: 100%;
  text-align: center;
  color: #000;
  padding-bottom: 10px;
}

.contingut {
    color: #777;
    background-color: #202020;
    padding:30px 80px;
    text-align: justify;    
    font: 20px sans-serif;
    align-content: center;
}

.loboto {
    background-color: grey;
    border: #777;
    color: white;
    text-align: center;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;    
    font-family: AleksandraC;    
}

.midapeu {
    font-size: 14px;
    display: inline-block;
}

/* Turn off parallax scrolling for tablets and phones */
@media only screen and (max-device-width: 768px) {
    .parallax-1, .parallax-2, .parallax-3, parallax-4 {
        background-attachment: scroll;
    }
  .titcat span.border {
    background-color: #111;
    color: #fff;
    padding: 20px;
    padding-left: 50px; 
    padding-right: 50px;    
    font-size: 10px;
    letter-spacing: 5px;
  }
  
    .midapeu {
        font-size: 10px;
        display: inline-block;
    }  
}