/* ---------------------------------------------------------------------------------------------------*/
/*  Creación de una vista de cuadrícula receptiva para RWD (Responsive Web Desing) */
/* ---------------------------------------------------------------------------------------------------*/
/* 1- aseguramos que el relleno y el borde estén incluidos en el ancho y alto total de los elementos */
* {
    box-sizing: border-box;
}
/* 2- cuadrícula receptiva con 12 columnas
      porcentaje para cada columna: 100% / 12 columnas = 8,33%
      creamos una clase para cada una de las 12 columnas class="col-"y un número que define cuántas columnas debe abarcar la sección */

    .col-1 {width: 8.33%;}
    .col-2 {width: 16.66%;}
    .col-3 {width: 25%;}
    .col-4 {width: 33.33%;}
    .col-5 {width: 41.66%;}
    .col-6 {width: 50%;}
    .col-7 {width: 58.33%;}
    .col-8 {width: 66.66%;}
    .col-9 {width: 75%;}
    .col-10 {width: 83.33%;}
    .col-11 {width: 91.66%;}
    .col-12 {width: 100%;}

/* 3- Las columnas deben estar flotando a la izquierda y tener un relleno de 15px */

    [class*="col-"] {
        float: left;
        /* border: 1px solid rgba(1,14,50,.9); */
        border-radius: 10px;
        /* background-color: #cccccc; */
    }

/* 4- Las columnas dentro de una fila están todas flotando hacia la izquierda y por lo tanto se eliminan
      del flujo de la página, y otros elementos se colocarán como si las columnas no existieran.
      Para evitar esto, agregaremos un estilo que borre el flujo: */

    .row::after {
        content: "";
        clear: both;
        display: table;
    }

/* 5- Cada fila debe estar envuelta en un archivo <div>
      El número de columnas dentro de una fila siempre debe sumar 12.
      Ejemplo:
        <div class="row">
            <div class="col-3">...</div> <!-- 25% -->
            <div class="col-9">...</div> <!-- 75% -->
        </div> */

/* ---------------------------------------------------------------------------------------------------*/
/*  Fin creación vista de cuadrícula receptiva para RWD (Responsive Web Desing)                       */
/* ---------------------------------------------------------------------------------------------------*/

/* Gestion GENERAL -----------------------------------------------------------*/

@font-face {
    font-family: informal;
    src: url('../fonts/InFormal_Style_Regular.otf');
}

@font-face {
    font-family: pincel;
    src: url('../fonts/OneBrush.ttf');
}

@font-face {
    font-family: secret;
    src: url('../fonts/Top_Secret.ttf');
}

@font-face {
    font-family: informal2;
    src: url('../fonts/segoe-script-2.ttf');
}

body {
    width: 90%;
    background-image: url("../images/pared.jpg");
    margin: 2% auto;
    border: 50px solid transparent;
    border-image: url("../images/marco.png") 100 round;
    text-align: center;
}

.cuerpo {
    margin-top: 0px;
    text-align: center;
    background-image: url("../images/bg_corcho.jpg");
}

/* Gestion HEADER ------------------------------------------------------------*/

header {
    bottom: 800px;
    left:0px;
    top:10px;
}

h1 {
    margin: 5% auto;
    font-family: informal;
    font-size: 70px;
    font-weight: bold;
    color: black;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 0.5s steps(11) 0.3s 1 normal both, blink 0.3s steps(1) infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.box_header {
    display: flex;
    align-items: center;
}

.logo {
    margin-right: 10%;
    margin-left: 2vw;
}

.menu_burguer {
    display: none;
}

/* Gestion MENU --------------------------------------------------------------*/

nav {
    margin: auto;
    margin-top: 10px;
}

.link_activo{
    background-color: #000066;
    color: white !important;
}

.menu {
    height: 145px;
    background-image: url("../images/paper.png");
    background-size: 100% 100%;
    display: flex;
}

.menu a {
    float: left;
    display: block;
    padding: 14px 16px;
    text-align: center;
    text-decoration: none;
    font-size: 23px;
    color: black;
    border-radius: 10px;
    margin-left: 1px;
    margin-top: 4%;
}

.menu a:hover {
    color: #000066 !important;
    background-color: #4b7d98;
}

.login {
    float: left;
    margin-left: 30px;
    margin-top: 3.5%;
}

/* Gestion Main  -------------------------------------------------------------*/

.texte {
    margin: 0px;
    padding: 15px 10px 5px 12%;
    text-align: left;
    font-weight: bold;
    font-size: 22px;
    font-family: informal2;
}

.ibm_foto {
    margin-top: 5px;
}

.login_butons {
    margin: 15px 5px 15px 5px;
    padding: 10px 15px 10px 15px;
    border-radius: 5px;
    border-color: #000066;
    cursor: pointer;
}

.login_butons:hover {
  background-color: #4b7d98;
  color: #000066;
}

.tira_de_notas_p2050, .tira_de_notas_p1900, .tira_de_notas_p1700, .tira_de_notas_p1500, .tira_de_notas_p1350, .tira_de_notas_p1170 {
    width: 100%;
    display: none;
}

.projectes_demografia, .projectes_video, .projectes_whatsapp, .projectes_colaboracions, .projectes_investigacio {
    width: 100%;
    display: none;
    cursor: pointer;
}

.trajectoria0 {
    padding-left: 10px;
    padding-right: 10px;
}
.trajectoria {
    border: 3px solid #000066;
    border-radius: 10px;
}
.fulla {
    margin-top: 0px;
    text-align: center;
    background-image: url("../images/fulla.png");
    background-repeat: none;
    box-shadow: 10px 10px 30px black;
    margin: 2%;
}
.postit_kuppers {
    margin-top: 20px;
}

/* Gestion FOOTER ------------------------------------------------------------*/

.foot_01 {
    margin-top: -30px;
    background-image: url("../images/bg_corcho.jpg");
    font-family: informal2;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}
.foot_01 img {
    margin: 10px;
}
.foot_01 p {
    margin-top: 20px;
    margin-bottom: 0px;
}

/* Gestion detall projectes en pantalla MODAL -----------------------------------*/

.modal_demografia, .modal_video, .modal_whatsapp, .modal_colaboracions, .modal_investigacio {
    display: none;
}

.modal_projectes_contingut {
  background-color: transparent;
  background-image: url("../images/prova.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 10px;
  padding: 15px 5px 20px 65px;
  margin: 10% 40% 40% 40%;
  position: relative;
}

.modal_projectes{
  background-color: rgba(0,0,0,.8);
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  left:0;
  opacity:0;
  pointer-events:none;
  transition: all 2s;
}

#modal_projectes:target{
  opacity:1;
  pointer-events:auto;
}

.modal_projectes_titol, .modal_colaboracions_titol {
  font-weight: bold;
  color: #000066;
  font-family: informal2;
  margin-bottom: 30px;
}

.modal_projectes_text, .modal_colaboracions_text {
  font-weight: bold;
  font-family: informal2;
  font-size: 25px;
  margin-bottom: 30px;
}

.modal_projectes_butons {
    margin: 10px;
    padding: 10px 15px 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    justify-content: bottom;
}

.modal_projectes_butons:hover {
  background-color: #4b7d98;
  color: #000066;
}
.modal_colaboracions a, .modal_investigacio a  {
    text-decoration: none;
    color: green;
    font-family: informal2;
}
.modal_colaboracions a:hover, .modal_investigacio a:hover {
    color: #000066;
    font-size: 20px;
    font-weight: bold;
}

/* Gestion serveis en pantalla MODAL -----------------------------------*/

.modal_serveis_contingut {
  background-color: transparent;
  background-image: url("../images/prova.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 10px;
  padding: 15px 5px 20px 65px;
  margin: 10% 40% 40% 40%;
  position: relative;
}

.modal_serveis{
  background-color: rgba(0,0,0,.8);
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  left:0;
  opacity:0;
  pointer-events:none;
  transition: all 2s;
}

#modal_serveis:target{
  opacity:1;
  pointer-events:auto;
}

.modal_serveis_titol{
  font-weight: bold;
  color: #000066;
  font-family: informal2;
  margin-bottom: 30px;
}

.modal_serveis_text{
  font-weight: bold;
  font-family: informal2;
  font-size: 25px;
  margin-bottom: 30px;
  text-decoration: none;
}

.modal_kitdigital a {
  color: blue;
}

.modal_serveis_butons {
    margin: 10px;
    padding: 10px 15px 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    justify-content: bottom;
}

.modal_serveis_butons:hover {
  background-color: #4b7d98;
  color: #000066;
}

/* Gestion peticio login en pantalla MODAL -----------------------------------*/

.modal_login_contingut {
  background-color: white;
  width:300px;
  padding: 10px 10px;
  margin: 15% auto;
  position: relative;
  border-radius: 10px;
}

.modal_login{
  background-color: rgba(0,0,0,.8);
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  left:0;
  opacity:0;
  pointer-events:none;
  transition: all 2s;
}

#modal_login:target{
  opacity:1;
  pointer-events:auto;
}

.login_text{
    font-size: 20px;
    margin: 5px 5px 15px 5px;
}

input {
    height: 35px;
    width: 200px;
    margin: 15px;
    border-radius: 5px;
}

.login_butons {
    margin: 15px;
    padding: 10px 15px 10px 15px;
    cursor: pointer;
}

.login_butons:hover {
  background-color: #4b7d98;
  color: #000066;
}

.ojo_pass {
    position: relative;
}

.ojo_pass span {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 43px;
    top: 12px;
    cursor: pointer;
}

.ull_obert {
    background-image: url("../images/ull_obert.png");
}

.ull_tencat {
    background-image: url("../images/ull_tencat.png");
}

.registre {
    text-decoration: none;
    font-size: 20px;
    color: #000066;
    margin-bottom: 5px;
}

/* Gestion registre en pantalla MODAL -----------------------------------*/

/* TEMPORAL A BORRAR QUAN EL FORMULARI ESTIGUI OK */
.obres {
    background-image: url("../images/obras.jpg");
    background-size: 100% auto;
    background-repeat: no-repeat;
    font-family: informal2;
    font-weight: bold;
    font-size: 25px;
    color: #000066;
}
.obres h2 {
    margin-top: 50px;
    margin-bottom: 50px;
}
.obres button {
    margin-bottom: 25px;
}
/* FI TEMPORAL A BORRAR QUAN EL FORMULARI ESTIGUI OK */

.modal_registre_contingut {
  background-color: white;
  width: 350px;
  padding: 10px 10px;
  margin: 10% auto;
  border-radius: 10px;
  position: relative;
}

.modal_registre{
  background-color: rgba(0,0,0,.8);
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  left:0;
  opacity:0;
  pointer-events:none;
  transition: all 2s;
}

#modal_registre:target{
  opacity:1;
  pointer-events:auto;
}

.registre_text{
    font-size: 20px;
    margin: 5px 5px 15px 5px;
}

/* Gestion cookies en pantalla MODAL -----------------------------------*/

.modal_cookies_contingut {
    position: relative;
    margin: 5% auto;
    width: 75%;
    border-radius: 10px;
    padding: 10px 10px;
    background-color: white;
}

.modal_cookies{
  background-color: rgba(0,0,0,.8);
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  left:0;
  opacity:0;
  pointer-events:none;
  transition: all 1s;
  overflow-y: auto;
}

.texte_cookies {
    text-align: justify;
    margin: 5px;
    padding: 5px;
}

.titol_texte_cookies {
    font-size: 20px;
    color: #000066;
}

.botons_cookies {
    height: 50px;
    width: 225px;
    border: 2px solid #4b7d98;
    border-radius: 10px;
    margin: 0px 5px 15px 5px;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
}

.botons_cookies:hover {
    background-color: #4b7d98;
}

.lineal_cookies {
    border: 1px solid grey;
    background-color: grey;
}

.personalitzacio_cookies {
    width: 90%;
    margin: auto;
    margin-top: 15px;
    border: 3px solid #4b7d98;
    border-radius: 10px;
    margin-bottom: 15px;
}

.ocult {
    margin-top: 1px;
    width: 1px;
    height: 1px;
    float: left;
    cursor: pointer;
    color: transparent;
}

/* ---------------------------------------------------------------------------*/
/*  GESTIO RESPONSIVE WEB DESING                                              */
/* ---------------------------------------------------------------------------*/

@media only screen and (min-width: 2000px) {
    body {
        width: 75%;
    }
}

@media only screen and (max-width: 1999px) {
    .modal_projectes_contingut, .modal_serveis_contingut {
      margin: 10% 30% 30% 30%;
    }
}

@media only screen and (max-width: 1690px) {
    [class*="col-"] {
        width: 100%;
    }
    .principal {
        margin-top: 0px;
    }
    h1 {
        margin: 2%;
    }
    .box_header {
        justify-content: center;
    }
    nav {
        margin-top: 0px;
    }
    body {
        width: 80%;
    }
    .tira_de_notas_p2050, .tira_de_notas_p1900, .tira_de_notas_p1700, .tira_de_notas_p1350, .tira_de_notas_p1170 {
        display: none;
    }
    .tira_de_notas_p1500 {
        display: inline;
    }
    .ibm_foto {
        margin-top: 20px;
        margin-bottom: 15px;
    }
    .sobre1, .sobre2 {
        display: none;
    }
}

@media only screen and (min-width: 1171px) {
    #menu_m {
        display: none;
    }
}

@media only screen and (max-width: 1170px) {
    .menu {
        display: none;
    }
    .menu_burguer {
        display: block;
        width: 60px;
        height: 60px;
        margin: 20px 5px 20px 0px;
        cursor: pointer;
    }
    #menu_m {
        top: 160px;
        width: 60%;
        display: none;
        position: absolute;
        background-color: black;
        background-image: url("../images/pared.jpg");
        border-radius: 10px 0px 0px 10px;
        border-top: 2px solid black;
        border-left: 2px solid black;
        border-bottom: 2px solid black;
        box-shadow: 5px 5px;
        text-align: left;
    }
    #menu_m li {
        list-style:none;
        text-align: left;
        border-bottom:1px solid rgba(255,255,255, .3);
    }
    #menu_m a {
        margin: 3px;
        color: black;
        font-weight: bold;
        font-size: 25px;
        text-decoration-line: none;
    }
    #menu_m a {
        display: block;
        padding: 10px 15px;
        color: black;
        border-radius: 10px;
        margin-left: 1px;
    }
    #menu_m a:hover {
        color: #000066 !important;
        background-color: #4b7d98;
        font-weight: bold;
        font-size: 30px;
    }
    h1 {
        font-size:7vw;
        margin: auto;
    }
    .sergi_foto {
        width: 70%;
        height: 70%;
    }
    .slideshow-container {
        display: none;
    }
    .modal_serveis, .modal_projectes{
      background-color: transparent;
    }
}

@media only screen and (max-width: 940px) {
    .modal_projectes_contingut, .modal_serveis_contingut {
      margin: 15% 20% 20% 20%;
    }
}

@media only screen and (max-width: 850px) {
    #menu_m {
        top: 160px;
    }
}

@media only screen and (max-width: 656px) {
    h1 {
        width: auto;
        overflow: auto;
        white-space: normal;
        animation: none;
    }
}
@media only screen and (max-width: 630px) {
    .ibm_foto{
        width: 80%;
        height: 80%;
        margin-bottom: 15px;
    }
    .modal_projectes_titol, .modal_serveis_titol {
      font-size: 20px;
    }
    .modal_projectes_text, .modal_serveis_text{
      font-size: 20px;
    }
}

@media only screen and (max-width: 560px) {
    #menu_m {
        top: 145px;
    }
    .postit_kuppers {
        width: 80%;
        height: 80%;
    }
    .postit_verd {
        width: 80%;
        height: 80%;
    }
    .logo {
        width: 100%;
        height: 100%;
    }
    .menu_burguer {
        width: 50%;
        height: 50%;
        margin: 0px 5px 0px 27px;
    }
    h1 {
        margin-left: 30px;
    }
    .texte {
        padding-left: 17%;
    }
    .modal_colaboracions_text {
        display: none;
    }
    .modal_colaboracions_titol {
        font-size: 15px;
        margin-bottom: 5px;
    }
    .modal_colaboracions a {
        font-size: 10px;
    }
}

@media only screen and (max-width: 540px) {
    #menu_m {
        top: 140px;
    }
}

@media only screen and (max-width: 500px) {
    #menu_m {
        top: 135px;
    }
}

@media only screen and (max-width: 465px) {
    .modal_projectes_titol, .modal_serveis_titol {
      font-size: 15px;
    }
    .modal_projectes_text, .modal_serveis_text {
      font-size: 15px;
    }
}

@media only screen and (max-width: 450px) {
    body {
        width: 98%;
        border: 50px solid transparent;
        border-image: url("../images/marco.png") 100 round;
    }
    h1 {
        font-size:10vw;
        margin-left: 15px;
    }
    #menu_m {
        top: 150px;
    }
    .texte {
        font-size: 20px;
    }
}

@media only screen and (max-width: 465px) {
    .modal_projectes_titol, .modal_serveis_titol {
      font-size: 14px;
    }
    .modal_projectes_text, .modal_serveis_text {
      font-size: 13px;
    }
    .modal_projectes_contingut, .modal_serveis_contingut {
      padding: 15px 5px 20px 30px;
    }
}

@media only screen and (max-width: 380px) {
    #menu_m {
        top: 135px;
    }
}
