/* ---------------------------------------------------------------------------------------------------*/
/*  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: 3px solid rgba(0,6,40,.9);
        border-radius: 10px 10px 10px 10px;
        background-color: transparent;
    }

/* 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: maiden;
    src: url('../fonts/maiden.ttf');
}
@font-face {
    font-family: domine;
    src: url('../fonts/Domine-Regular.ttf');
}
@font-face {
    font-family: informal2;
    src: url('../fonts/segoe-script-2.ttf');
}

body {
    width: 90%;
    margin: 0 auto;
    text-align: center;
    background-image: url("../images/black_leather.jpg");
}

/* ---------------------------------------------------------------------------*/
/*  GESTIO HEADER                                                             */
/* ---------------------------------------------------------------------------*/

h1 {
    margin: 2% auto;
    font-family: maiden;
    font-size: 80px;
    font-weight: bold;
    color: white;
}
header {
    bottom: 800px;
    left:0px;
    top:10px;
    margin: 10px 0px 10px 0px;
}
.box_header {
    display: flex;
    background-color: #000628;
    min-height: 125px;
}
.logo {
    width: 100px;
    height: 100px;
    margin-left: 40%;
}

/* GESTIO MENU --------------- */

nav {
    margin: auto;
}
.link_activo{
    background-color: #000066;
    color: white !important;
}
.menu {
    margin: auto;
}
.menu a {
    float: left;
    display: block;
    margin-right: 5px;
    padding: 14px 16px;
    text-align: center;
    text-decoration: none;
    font-size: 25px;
    color: white;
    border-radius: 10px;
}
.menu a:hover {
    color: #000066 !important;
    background-color: #4b7d98;
}
.login {
    margin: auto;
}
.hola {
    color: #4b7d98;
    margin: -14px;
    font-style: italic;
    font-weight: bold;
}

/* ---------------------------------------------------------------------------*/
/*  GESTIO SEPARADORS                                                         */
/* ---------------------------------------------------------------------------*/

hr {
    margin-top: -1px;
    border: 5px solid rgba(1,14,50,.5);
    background-color: rgba(1,14,50,.5);
}
.gruphr {
    text-align: left;
    margin: 30px 0px 25px 0px;
}
.gruphr_1 {
    border-radius: 5px 5px 0px 0px;
    padding: 5px;
    font-weight: bold;
    color: white;
    background-color: rgba(1,14,50,.5);
}

/* ---------------------------------------------------------------------------*/
/*  GESTIO NOTICIES                                                           */
/* ---------------------------------------------------------------------------*/

.portada {
    height: 350px;
    background-size: 100% 100%;
    background-position: center;
}
.portada:hover {
    background-size: 102% 102%;
}
.noticia {
    height: 350px;
    background-size: 100% 100%;
    background-position: center;
}
.noticia:hover, .reportatges:hover, .agenda:hover {
    background-size: 102% 102%;
}
.portada_titol {
    font-size: 35px;
    color: greenyellow;
    font-weight: bold;
}
.portada_text {
    font-size: 25px;
    color: greenyellow;
    font-weight: bold;
}
.noticia_titol {
    font-size: 25px;
    color: greenyellow;
    font-weight: bold;
}
.noticia_text {
    font-size: 15px;
    margin-top: 50px;
    color: greenyellow;
    font-weight: bold;
}
.reportatges {
    height: 400px;
    background-size: 100% 100%;
    background-image: url("../images/obras.jpg");
    background-position: center;
}
.agenda {
    height: 500px;
    background-size: 100% 100%;
    background-image: url("../images/obras.jpg");
    background-position: center;
}
.msg_error, .msg_manteniment {
    display: block;
    font-size: 25px;
    font-weight: bold;
    height: 50px;
    padding: 10px
}
.msg_error {
    background-color: #ffb3b3;
    color: red;
}
.msg_manteniment {
    background-color: #004d00;
    color: greenyellow;
}

.button_status_update, .button_status_delete, .button_status_create {
    border-radius: 5px;
    margin-right: 10px;
    margin-top: 10px;
    padding: 10px;
    cursor: pointer;
}
.button_status_update {
    background-color: #ccffcc;
}
.button_status_delete {
    background-color: #ffcccc;
}
.button_status_create {
    background-color: #9999ff;
}
.button_status_inactiu {
    border-radius: 5px;
    padding: 20px 50px;
    background-color: rgba(255, 0, 0,.5);
    font-size: 30px;
    font-weight: bold;
}
.button_texte {
    border-radius: 5px;
    padding: 20px 50px;
    background-color: rgba(0, 0, 0,.5);
    font-size: 30px;
    font-weight: bold;
}
/* ---------------------------------------------------------------------------*/
/*  GESTIO FOOTER                                                             */
/* ---------------------------------------------------------------------------*/

.foot_01 {
    margin-top: 10px;
    font-family: informal2;
    font-size: 20px;
    text-align: center;
    color: white;
}
.foot_01 img {
    margin: 10px;
}
.foot_01 p {
    margin-top: 20px;
    margin-bottom: 0px;
}
footer .col-12 {
    border: none;
}
.websergi {
    color: #8080ff;
    text-decoration: none;
    font-family: courier;
    margin-top: 2px;
}

/* ---------------------------------------------------------------------------*/
/*  GESTIO 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: 87px;
    float: left;
    cursor: pointer;
    color: white;
}

/* ---------------------------------------------------------------------------*/
/*  GESTIO RESPONSIVE                                                         */
/* ---------------------------------------------------------------------------*/

@media only screen and (max-width: 1350px) {
  .logo {
    display: none;
  }
}
@media only screen and (max-width: 1280px) {
  [class*="col-"] {
    width: 100%;
  }
  .logo {
    display: inline;
  }
}
@media only screen and (max-width: 700px) {
  .logo {
    display: none;
  }
}
@media only screen and (max-width: 640px) {
  h1 {
    font-size: 50px;
  }
  .menu a {
    margin: 0px;
    font-size: 16px;
    padding: 9px 10px;
  }
}
