@font-face { font-family: FranklinGothicM; src: url("../fonts/framd.eot") /* EOT file for IE */ }
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}

.container-fluid {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: stretch; 
    width: 100vw;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.capcalera {
    height: 100px;
    background-color: rgb(0, 130, 155);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    width: 100%;
    margin: 0 auto;
}

.capcalera .title {
    font-weight: 600;
    font-size: 2.5em;
}

.capcalera .subtitle {
    color: yellow;
    font-size: small;
}

#viewDiv {
    flex: 1;
    /* background-color: #f8f9fa; */
    display: flex;
    align-items: center;
    /* justify-content: center; */
    width: 100%;
    flex-direction: column;
}
.footer {
    background-color: #343a40;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    text-align: center;
    margin-top: auto;
}
.footer img {
    vertical-align: middle;
    width: 180px;
    margin: 0px 12px 12px;
}

/* .bg-umat {
    --bs-bg-opacity: 1;
    background-color: #084d5b !important;
    width: 100%;
    padding: 0;
} */

#menu_filtre { 
    max-width: 350px;
    border-right: 0.5px solid rgb(0, 130, 155);
    /* display: flex;
    flex-direction: column; */
}

#avis_cookies .cc-config {
    color: white;
    background: #00B9DC;
}

.cc-config {
    color: white;
    background: #00B9DC;
}

.headerObservatori {
    margin-top: 0px;
    background: #343a40;
    width: 100%;
}

.headerObservatori .title {
    text-align: center;
    /* padding: 24px;
    margin: 0; */
    font-family: Oswald, Sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.5px;
    margin: 0 0.75rem;
    /* padding: 0.25rem 0 !important; */
    padding: 0.25rem !important;
}

.headerObservatori .title .content {
    font: 1.5em "Helvetica Neue",Helvetica,Arial,sans-serif;
    padding: 2px 10px 2px 10px;
}


#cc-config-parent {
    color:  #00B9DC;
    position: absolute;
    bottom: 180px;
    right: -40px;
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    width: 160px;
    z-index: 99;
}

#informe {
    display: none;
}

#div_eda {
    display: inline-flexbox;
}

.cc-config a:hover{
    text-decoration: none;
    font-weight: bold;
}

.unsupported-browser {
    display: none;
    background: rgb(0,130,155);
    color: white;
    width: 100%;
	height:100%;
    top:0;
	left:0;
    position: absolute;
    text-align: center;
    height: 100%;
    z-index: 5;
    padding-top: 150px;
    font-size: 32px;
    font-size:20px;
	font-weight:bold
}

.browser_warning_inner {
	padding:60px;
	max-width:600px;
}

footer {
    background: rgb(52, 58, 64);
    padding: 15px 10px 5px 10px;
    box-shadow: 0 5px 200px rgba(0, 0, 0, 0.85) inset;
    font-family: 'Libre Franklin', Sans-serif;
    font-weight: 300;
    height: auto;
}

#loadDiv {
    /* background-color:white; */
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 99;
    margin: auto;
    /* background-color: #00B9DC; */
} 

.loadContent {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    /* color:  #00B9DC; */
    color: black;
    /* color: white; */
    padding: 5px;
}

.loadContent div {
    padding: 12px 0 12px 0;
}

.menu {
    /* clear: both; */
    background: rgba(0, 130, 155, 1);
    /* background: linear-gradient(180deg, rgba(0, 93, 111, 1) 0%, rgba(0, 123, 147, 1) 50%, rgba(0, 130, 155, 1) 100%); */
    /* height: 88px; */
    width: 100%;
    /* padding: 20px; */
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    width: 100%;
    height: 120px;
    padding: 0;
    height: auto;
    
}

.header .title {
    font-family: 'Libre Franklin', Sans-serif;
    font-weight: 600;
    font-size: 2.5em;
    text-align: left;
    color: white;
    margin: 0;
    margin-left: -5px;
    padding: 23px 0 5px 0;
    max-width: 1200px; 
}


.header a {
    text-decoration: none;
}


.header a:hover{
    text-decoration: none;
    color: #00B9DC;
    font-weight: bold;
}

.header .topnav {
    display: block;
    padding: 10px 10px 0px 10px;
   }

.header .topnav ul {
	list-style: none;
    height: 26px;
}

.header .topnav ul li {
    float: left;
}

.header .topnav ul li a:hover {
    text-decoration: none;
    color: #00B9DC;
}
.header .topnav ul li a {
    display: block;
    padding: 2px 15px;
    color: white;
    font-weight: bold;
}

.li {
    text-decoration: none;
}

.btn-menu {
    background: rgba(0, 130, 155, 0.15);
    border: 1px solid #004D5C;
    color: #004D5C;
    border-radius: 9px;
    padding: 5px 10px;
    /* margin-left: 15px;
    margin-bottom: 10px; */
    margin: 4px;
}

.btn-danger {
    border-radius: 9px;
    padding: 5px 10px;
    margin: auto;
}

.estudi {
    margin: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background: rgba(0, 130, 155, 0.5);
}

.btn:active {
    background: rgba(0, 130, 155, 0.5);
}

.btn-menu.activat{
    background: #004D5C;
    color: white;
}


h1{
	display:block;
	clear:both;
}

h2 {
    margin: 45px 0;
    font-weight: bold;
    font-size: 24px;
    letter-spacing: 2px;
}

h5 {
    color: #2e98ad;
    font-weight: bold;
}

.categories h4, .categories h2 {
    border-bottom: 1px solid #262626;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1.8px;
    line-height: 1.25;
    margin-bottom: 11px;
    padding-bottom: 5px;
}

.categories ul {
    list-style: none;
    margin: 0 0 31px 0px;
    padding: 0;
}

.categories {
    max-width: 73.125rem;
    margin-right: auto;
    margin-left: auto;
}

.index-categories {
    border-left: 2px solid #ff0000;
    background-color: rgba(255,255,255,0.75);
    width: 18rem;
    height: 18rem;
}

.index-categories:hover{
    background-color: #00B9DC;
    border-left: 2px solid #07c55d;
    cursor: pointer;
}

.categories-space {
    background-color: #dce8eb25;
}

.jumbotron {
    padding: 1.5rem;
    /* background-color: white; */
    background-clip: border-box;
    /* border: 1px solid rgba(0,0,0,.125); */
    border-radius: 0.25rem;
}

.jumbotron ul {
    list-style: none;
    padding: 0;
    margin: 0px;
}

.small-up-1>.column, .small-up-1>.columns {
    float: left;
    width: 100%;
}

.column, .columns {
    width: 100%;
    float: left;
    padding-right: 0.625rem;
    padding-left: 0.625rem;
}


.container.right{
	text-align:right;
}

td.llista_link{
	text-align:left;
}


a { color: #00829B; text-decoration: none }
a:hover, a:active { color: #000; text-decoration: none }

div.observatori_font {
    font-weight: bold;
} 

div.observatori_calcul {
    font-weight: bold;
} 

div.observatori_subgrup {
    font-style: italic;
    color: #AB3C21;
} 

div.observatori_grup {
    font-style: italic;
    color: #AB3C21;
}

div.observatori_font {
    font-size: smaller;
}

div.observatori_calcul {
    font-size: smaller;
}

div.botons a.tornar {
    background: black;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.35);
    color: white;
    padding: 4px 13px 5px 8px;
    font: 1.1em; 
}

div.botons a {
    display: inline-block;
    margin-bottom: 15px;
}


div.peu_pagina a { color: white; }
div.peu_pagina a:hover { color: #00b9dc; }

a.logo_ajgirona { width: 180px;}
a:hover.logo_ajgirona { background-position: -150px 0 }

div.adreca { border-left: 1px solid #B7B7B7; float: left; margin: 12px 0 0 32px; padding-left: 27px; font: 0.7em Arial, Sans-serif; color: white }
div.telefon { border-left: 1px solid #B7B7B7; float: left; margin: 12px 0 0 32px; padding-left: 27px; font: 0.7em Arial, Sans-serif; color: white }

.no-padding {
    padding: 0;
    text-align: center;
}


#resultats {
    margin: auto;
    max-width: 1320px;
    padding-right: 15px;
    padding-left: 15px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    background-clip: border-box;
    /* border-bottom: 1px solid rgba(0,0,0,.125); */
    /* border: 1px solid #004D5C; */
    border: none;
    /* border-radius: 0.25rem; */
    border-radius: none;
    min-height: 330px;
}

.row {
    /* display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 15px 10px 10px 15px; */
    margin: 1rem; 
    /* padding: 1rem 0rem 0rem 0rem; */
}

.row-body {
    margin: 15px; 
}

.row-resultat {
    border-top: 0.5px solid rgb(0, 130, 155);
    /* margin: 0px; */
    /* cursor: pointer; */
}

/* .row-resultat:first-child {
    border-top: 0px;
} */

.row-resultat:hover {
    background-color: #dce8eb25;
  }

.row-fitxa {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 0px;
    margin: 0px; 
}

.col {
    padding: 4px;
    /* margin: 5px; */
}

.col-fitxa {
    padding: 4px 0px;
}


  /* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
  /* .active, .accordion:hover {
    background-color: #ccc;
  } */
  
  /* Style the accordion panel. Note: hidden by default */
  .panel {
    padding: 0 18px;
    background-color: white;
    display: none;
    overflow: hidden;
  }


.nav a:hover {
    color: rgb(0, 130, 155);
    text-decoration: none;
    font-size: large;
    font-weight: bold;
}

.nav-link.active {
    font-weight: bold;
}


.menu-btn {
    padding: 0.1rem; /* Ajusta este valor según tus necesidades */
    background: #084d5b;
    max-height: 40px;
}

.menu-grup-btn {
    max-width: 1300px;
    margin: 0px auto;
}

.nav-link a {
    padding: 0.25rem 0 !important; 
}

a {
    color: #2e98ad;
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

.navbar-toggler {
    border: none;
}

.nav-link:hover {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.nav-link {
    display: block;
    padding: .5rem 1rem;
    color: rgba(255, 255, 255, .5);
}


/* Ajust per al padding del menú */
#navbarsMenu {
    padding-left: 20px; /* Manté el teu padding original per al menú */
}

/* ------------------- ESTILS BARRA DE MENÚ ---------------------- */
/* Estils de l'ítem actiu com a botó */
 /* Estils de l'ítem actiu com a botó */

.navbar {
    width: 100%;
}

.navbar-dark .navbar-nav .nav-link.active {
    background-color: var(--bs-primary);
    color: var(--bs-white) !important;
    border-radius: .25rem;
    padding: .5rem 1rem;
    margin-right: .5rem;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 575.98px) {
    .navbar-nav .nav-item {
        margin-bottom: .25rem;
    }
    .navbar-dark .navbar-nav .nav-link.active {
        margin-right: 0;
        width: fit-content;
    }
}

/* --- NOUS ESTILS PER A L'ALINEACIÓ ESQUERRA/DRETA I VERTICAL --- */
.navbar .container-fluid {
    display: flex; /* Converteix el container-fluid en un contenidor flex */
    justify-content: space-between; /* Espai entre el grup de l'esquerra i el de la dreta */
    align-items: center; /* Alinea tots els fills directes verticalment al centre */
    flex-wrap: nowrap; /* Evita que els elements saltin de línia prematurament en desktop */
}
      
/* Ajusta el padding per al menú col·lapsat en mòbil */
.navbar-collapse {
    padding-left: 20px !important; /* Manté el teu padding original en mòbil */
}
      
/* Contenidor per al menú i toggler en pantalles petites */
.navbar-left-group {
    display: flex;
    align-items: center; /* Per alinear el toggler amb els links quan el menú s'expandeix */
}

/* Estils per al text de descripció */
.navbar-description {
    color: rgba(255, 255, 255, 0.75); /* Color del text */
    text-transform: uppercase; /* Text en majúscules */
    font-size: 0.9rem; /* Mida de la font, ajusta si cal */
    font-weight: bold; /* Negreta */
    white-space: nowrap; /* Evita que el text salti de línia */
    padding-left: 15px; /* Espai a l'esquerra del text */
    padding-right: 15px; /* Espai a la dreta del text */
    flex-shrink: 0; /* Evita que el text es redueixi massa */
}

/* Media Queries per ajustar la mida del text en pantalles més petites */
@media (max-width: 991.98px) { /* Laptops i tablets horitzontal */
    .navbar-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) { /* Tablets vertical i mòbils grans */
    .navbar-description {
        font-size: 0.7rem;
        white-space: normal; /* Permet que el text salti de línia si és massa llarg */
    }
}

@media (max-width: 575.98px) { /* Mòbils petits */
    .navbar-description {
        display: none; /* Amaga el text en pantalles molt petites si no hi ha espai */
    }
}

/* ---------------------------------------------------------------- */
.imatge-home {
    background-image:    url(https://umat.girona.cat/vu/mapa/static/img/observatori/fons_home.jpg);
    background-size:     cover;                      /* <------ */
    background-repeat:   no-repeat;
    background-position: center center; 
    height: 100%;
}

.explicacio {
    margin: auto;
    max-width: 80%;
    padding: 1.2rem;
}

#id_cercar {
    border-color: rgb(0, 130, 155);
}


.select2-selection__rendered {
        width: 100%;
        height: 50px;
        border: 3px solid;
        -webkit-border-radius: 30px;
        -khtml-border-radius: 30px;
        -moz-border-radius: 30px;
        -ms-border-radius: 30px;
        -o-border-radius: 30px;
        border-radius: 30px;
        padding: 0 32px 0 44px;
        border: 3px solid #222222;
        background-color: #ffffff;
        cursor: text;
        outline: none;
        line-height: 43px;
}


.cercador {
    padding: 0.5rem;
    margin: auto;
    border-width: 0.2rem;
    max-width: 820px;
}

.cercle-indicadors {
    background-color: rgb(0, 130, 155);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); 
    width: 170px; 
    height: 170px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    color: white;
    font-weight: bold;
    text-align: center;
}

.cercle-estudis {
    background-color: green;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); 
    width: 170px; 
    height: 170px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    color: white;
    font-weight: bold;
    text-align: center;
}


.icon-search {
    position: absolute;
    z-index: 1;
    outline: none;
    /* top: -40px; */
    left: 25px;
    color: gray;
    z-index: 99;
}

hr {
    border-top: 1px dashed rgba(0, 0, 0, 0.3);
    color: rgba(0, 0, 0, 0.5);
    max-width: 60%;
}

.myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    color: white;
    cursor: pointer;
    height: 48px;
    border: none;
    background-color: rgb(0, 130, 155);
    color: white;
}
  
.myBtn:hover {
background-color: rgba(0, 130, 155, 0.15);
color: #004D5C;
}

.mb-1 {
    margin-bottom: .25rem !important;
    padding-bottom: 1rem;
}

.dropdown-toggle { outline: 0; }

.nav-flush .nav-link {
  border-radius: 0;
}

.btn-toggle {
  display: inline-flex;
  align-items: center;
  padding: .25rem .5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, .65);
  background-color: transparent;
  border: 0;
}

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

.btn-toggle {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    color: black;
    letter-spacing: 0.5px;
    background-color: none;
    border: none;
    font-weight: bold;
    text-align: left;
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(0, 0, 0, .85);
}

.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
    display: inline-flex;
    padding: .1875rem .5rem;
    margin-top: .125rem;
    margin-left: 1.25rem;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    color: black;
    letter-spacing: 0.5px;
    text-align: left;
    cursor: pointer;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: #d2f4ea;
}

.card.circular {
    border-radius: 50%;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-left: 2px solid #ff0000;
    background-color: rgba(255,255,255,0.75);
}

.card.circular:hover{
    background-color: #00B9DC;
    border-left: 2px solid #07c55d;
    cursor: pointer;
}

.card-img-top {
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
}
.card-body {
    text-align: center;
    flex: none;
}

.card-title {
    padding: 1rem;
}

.marcar {
    background-color: #d2f4ea !important;
} 

.scrollarea {
  overflow-y: auto;
}

.fw-semibold { font-weight: 600; }
.lh-tight { line-height: 1.25; }

badge-primary {
    color: #fff;
    background-color: #007bff;
}
.badge-pill {
    padding-right: .6em;
    padding-left: .6em;
    border-radius: 10rem;
}
.badge {
    background: #4B4D4F;
    /* display: inline-block; */
    float: right;
}


.b-divider {
    width: 1.5rem;
    /* height: 100vh; */
    border: solid rgba(0, 0, 0, .15);
    border-width: 0px 0px 0px 1px;
}

.carousel {
    margin-bottom: 4rem; /* Espai sota el carrusel */
    width: 100%;
}

.carousel-item {
    height: 18rem; /* Altura del carrusel */
    position: relative;
    overflow: hidden; /* Assegura que l'overlay no sobresurti */
    z-index: 1;
}

.carousel-item > img {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 100%; /* La imatge ocupa el 100% de l'altura del carousel-item */
    object-fit: cover; /* Cobreix tot l'espai sense distorsionar */
    z-index: 1; /* Posa la imatge darrere de l'overlay */
}

/* Estils per a la capa d'overlay fosca */
.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Color negre amb 50% de transparència */
    backdrop-filter: blur(3px); /* Efecte de difuminat (blur) */
    z-index: 2; /* Posa l'overlay entre la imatge i el text */
}

.carousel-caption {
    position: absolute;
    bottom: 3rem;
    left: 15%;
    right: 15%;
    z-index: 3; /* Posa el text per sobre de l'overlay */
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff; /* Assegura que el text sigui blanc per contrast */
    text-align: start; /* O 'center', 'end' segons vulguis */
}

.carousel-control-prev,
    .carousel-control-next {
    z-index: 4; /* Un z-index més alt que el de l'overlay i la capció */
}

.carousel-caption h1, .carousel-caption p {
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Afegir una ombra al text per millorar llegibilitat */
}

/* Per centrar el contingut */
.d-flex.h-100 {
    align-items: center;
    justify-content: center;
}


@media screen and (max-width: 960px)
{
	div.menu { display: none; }
    /* #informe { display: inline-block;} */
    /* #carregant { display: none !important;} */
    /* #div_eda {display: none;} */
    .d-flex { display: block !important; }
    
}

@media screen and (max-width: 768px)
{
    div.menu { display: none }
    #informe { display: inline-block;}
    #carregant { display: none !important;}
    #div_eda {display: none;}
    .d-flex { display: block !important; }
}


@media screen and (max-width: 480px)
{
    div.menu { display: none }
    div.searchDiv {display: none}
    #informe { display: inline-block}
    #carregant { display: none !important;}
    #div_eda {display: none;}
    .d-flex { display: block !important; }
    .subtitle {display: none; }
    .logo_ajgirona {
        display: none;
    }
    .logo_ajgirona img {
        display: none;
    }
}