﻿
/*
El color de la colla és este Grana : #ab2a3e   (196, 45, 69)
El #00bb23 és el color secundari: #00bb23
*/

body
{
  margin: 0 10px; /* Simplificado */
  padding: 0; /* Simplificado */
  font-family: Arial, sans-serif;
}

.pinyator
{
  margin: 10px;
  table-layout: fixed;
}

.entry-title
{
  font-size: 50px;
  color: #35be0f; /* Blau Ter - Primary color */
  margin-bottom: 10px;
}

.topnav
{
  overflow: hidden;
  margin-left: 0px;
  margin-right: 0px;
  margin: 0px;
  /* background-color: #2E2E2E; */ /* Old background */
  background-color: #ab2a3e ; /* Blau Ter - Primary color */
  display: flex; /* For better alignment of items */
  align-items: center; /* Vertically center items */
  padding: 0 10px; /* Add some padding to the nav itself */
}

/* Style for the logo link */
.topnav a.logo {
  padding: 5px 0; /* Adjust padding for the logo container */
  margin-right: 20px; /* Space between logo and first nav item */
  display: inline-block; /* Ensure it behaves as a block for padding */
  
}

.topnav a.logo img {
  height: 40px; /* Adjust as per your logo's aspect ratio and desired size */
  width: auto;
  display: block; /* Removes extra space below image */
}

.topnav a
{
  display: block;
  color: #FFFFFF;
  text-align: center;
  padding: 18px 16px;
  text-decoration: none;
  font-size: 17px;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.topnav a:hover
{
  background-color: #89140c; /* Sombra más oscura de #ab2a3e  */
  color: #00bb23; /* Color secundario */
  font-weight: normal;
  text-decoration: none;
}

.topnav a.active
{
  background-color: #00bb23; /* Color secundario para el fondo activo */
  color: white;
  font-weight: bold;
}

.topnav .icon
{
  display: none;
  color: #FFFFFF; /* Ensure icon is visible on Blau Ter */
}

.topnav-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}


@media screen and (max-width: 100px)
{
  .topnav {
    flex-wrap: wrap; /* Allow items to wrap for responsive menu icon */
  }
  /* Hide all links except the logo and the icon in the main flow */
  .topnav a:not(.logo):not(.icon) {display: none;}
  /* Ensure login link inside topnav-right is also hidden initially on small screens */
  .topnav .topnav-right a:not(.icon) { display: none; }


  .topnav a.icon {
    float: right; /* Keep float for the icon to position it correctly initially */
    display: block;
    margin-left: auto; /* Push icon to the far right if logo is the only other visible item */
  }
}
@media screen and (max-width: 1100px) {

  /* --- ESTADO COLAPSADO (MENÚ CERRADO) --- */

  /* Ocultamos los enlaces del menú principal y los de la derecha, excepto el logo */
  .topnav a:not(.logo):not(.icon),
  .topnav .topnav-right a {
    display: none;
  }

  /* Mostramos el icono "hamburguesa" y lo empujamos a la derecha */
  .topnav a.icon {
    display: block; /* Hacemos visible el icono */
    margin-left: auto; /* Lo empuja al final del contenedor flex */
  }


  /* --- ESTADO DESPLEGADO (MENÚ ABIERTO con la clase .responsive) --- */

  /* Cuando el menú tiene la clase .responsive, cambiamos la dirección de flex a columna */
  .topnav.responsive {
    position: relative;
    flex-direction: column; /* Apila los elementos verticalmente */
    align-items: flex-start; /* Alinea los elementos a la izquierda */
    z-index: 99;
  }

  /* Posicionamos el icono de cerrar (X) en la esquina superior derecha */
  .topnav.responsive .icon {
    position: absolute;
    right: 10px;
    top: 10px;
  }
  
  /* Hacemos que TODOS los enlaces (menú y derecha) sean visibles y ocupen todo el ancho */
  .topnav.responsive a,
  .topnav.responsive .topnav-right a {
    display: block;  /* Los mostramos como bloques */
    text-align: left; /* Alineamos el texto a la izquierda */
    width: 100%;     /* Hacemos que ocupen todo el ancho para un mejor clic */
  }

  /* Nos aseguramos que el contenedor de la derecha también se comporte como un bloque */
  .topnav.responsive .topnav-right {
    display: block;
    margin-left: 0; /* Reseteamos el margen */
    width: 100%;
  }
  
  /* (Opcional) Añadir un poco de espacio debajo del logo cuando el menú está desplegado */
  .topnav.responsive a.logo {
      margin-bottom: 10px; 
  }
}

/*style="position:fixed;width:200px;left:10px;height:300px;z-index:2"*/
.sidenav
{	
    height: 100%; /* Full-height: remove this if you want "auto" height */
    width: 200px; /* Set the width of the sidebar */
    position: fixed; /* Fixed Sidebar (stay in place on scroll) */
    z-index: 1; /* Stay on top */
    top: 70px;
    left: 0;
    background-color: white; /* Black */
    overflow: hidden; /* Disable horizontal scroll */
	padding-left: 10px;
}

.canvascontent
{
	position:absolute;
	margin-left:204px;
}

table.simple 
{
    border: 0px;
	width: 100%;
}

table.fixed { table-layout:fixed; }

table.butons 
{
  border: 0px;
	width: 80%;
}

table.llistes 
{
    font-family: arial, sans-serif;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;     /* Centra el texto horizontalmente */
    vertical-align: middle; 
    width: 95%;
    padding: 30px;
}

.table-scroll-wrap
{
  width: 100%;
}

.table-scroll-hint
{
  display: none;
}

table.llistes2
{
    font-family: arial, sans-serif;
    border-collapse: collapse;
    table-layout: fixed;
	width:150px;
}

th.llistes2
{
    border: 1px solid #ab2a3e ;
    text-align: left;
    padding: 6px;
	background-color: #ab2a3e ;
	color: #FFF;
	width:150px;
}

td.llistes2
{
    border: 1px solid #ab2a3e ;
    text-align: left;
    padding: 6px;
	width:150px;
}

.pinyator a.home-link
{
  color: #ab2a3e;
  text-decoration: none;
}

.pinyator a.home-link:hover
{
  color: #00bb23;
  text-decoration: underline;
}

.event-count
{
  display: inline-block;
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  background: #00bb23;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}

.assistencia-publica,
.info-directiva
{
  margin-top: 10px;
}

.info-directiva
{
  display: grid;
  gap: 6px;
  max-width: 520px;
}

.info-directiva select,
.info-directiva input
{
  width: 100%;
  padding: 6px;
  color: #000;
}

th.llistes
{
    border: 1px solid #ab2a3e ;
    text-align: left;
    padding: 6px;
	background-color: #ab2a3e ;
	color: #FFF;
}

td.llistes
{
    border: 1px solid #ab2a3e ;
    text-align: left;
    padding: 0px;
    margin: 0px;
}

.event-table th:nth-child(1),
.event-table td:nth-child(1)
{
  min-width: 120px;
}

.event-table th:nth-child(2),
.event-table td:nth-child(2)
{
  min-width: 110px;
}

.event-table th:nth-child(3),
.event-table td:nth-child(3),
.event-table th:nth-child(4),
.event-table td:nth-child(4)
{
  min-width: 96px;
  text-align: center;
}

@media screen and (max-width: 900px)
{
  .event-table-wrap
  {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(171, 42, 62, 0.2);
    box-shadow: inset -24px 0 18px -24px rgba(171, 42, 62, 0.55);
  }

  .table-scroll-hint
  {
    display: block;
    margin: 0 0 8px 2px;
    font-size: 12px;
    color: #7c2431;
    font-weight: bold;
  }

  .event-table-wrap .event-table
  {
    width: max-content;
    min-width: 760px;
    margin: 0;
  }
}

td.fill
{
    border: 1px solid #ab2a3e ;
    text-align: left;
    padding: 6px;
	text-align:center;
}

tr.llistes:nth-child(even) 
{
    /* background-color: #CED8F6; */
	background-color: #eaeae1;
}

td.llistes a.boto{
	color: #FFF;
}

td.llistes a{
	color: #ab2a3e ;
}

.triangle-up {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 5px solid #FFF;
}

.triangle-down {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #FFF;
}

.boto{
  display: inline-block;
  padding: 2px 6px;
  font-size: 14px;
  line-height: 1.8;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 4px;
  color: #FFF;
  background-color: #952f16;
  border-color:#952f16;
  border: none;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  background-image: none;
  font-weight: bold;  
}

.boto_petit{
  height:20px;
  display: inline-block;
  font-size: 12px;
  vertical-align: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 4px;
  color: #FFF;
  background-color: #952f16;
  border-color:#952f16;
  border: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  background-image: none;
  font-weight: bold;  
}

/* Add a background color to the button if you move the mouse over it (hover) */
button.boto:hover,
a.boto:hover{
	background-color: #3dff50;
	color: #FFF;
	text-decoration: none;
}

.boto_remove{
	background-color: red; 
	float: right;
}

.boto_remove_popup{
	background-color: red;
}

button.boto_remove:hover,
a.boto_remove:hover{
	background-color: #00bb23;
}

button.boto_remove_popup:hover,
a.boto_remove:hover{
	background-color: #00bb23;
}

.boto_add{
	background-color: green;
}

button.boto_add:hover,
a.boto_add:hover{
	background-color: #FFC43D;
}

.tabulador{
  display: inline-block;
  padding: 2px 10px;
  margin-right: 4px;
  font-size: 14px;
  vertical-align: bottom;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 1px;
  color: #FFF;
  background-color: #5BC0DE;
  border-color:#46B8DA;
  border: none;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  background-image: none;
  font-weight: none;  
}

button.tabulador:hover{
	background-color: #00bb23;
}

button.tabuladorActiu{
	background-color: #00bb23;
}

.img_boto
{
	width:20px;
	height:20px;
}

/***************  GRIDS   ********************/

.container-fluid,
.container {
  margin-right: auto;
  margin-left: auto;
}

.container-fluid {
  padding-right: 2rem;
  padding-left: 2rem;
}

.row {
  box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 0;
  -ms-flex: 0 1 auto;
  flex: 0 1 auto;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}

.col-xs {
  box-sizing: border-box;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.col-xs {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  -ms-flex-preferred-size: 0;
  flex-basis: 0;
  max-width: 100%;
}


/***************  FROMS   ********************/

div.form_group{
	padding-left: 20px;
	padding-bottom: 10px;
}

.form_edit{
    border: 1px solid #ab2a3e ;
    border-radius: 4px;
	width:100%;
	padding: 5px;
}

input.form_edit:focus{
	outline: 0px none;
	/*box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset, 0px 0px 8px rgba(102, 175, 233, 0.6);*/
	box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset, 0px 0px 8px rgba(240, 136, 42, 0.6);
	border: 1px solid #FFC43D;
}

/****************************ACCORDION******************************/

/* Style the buttons that are used to open and close the accordion panel */

button.accordion{
  color: #FFF;
  width:100%;
  text-align: left;
  border-radius: 0;
}

/* 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) */
button.accordion:hover,
button.accordion.hover{
	background-color: #ab2a3e ;
	color: #FFF;
}

/* Style the accordion panel. Note: hidden by default */
div.accordionItem{
	background-color:#FFF;
	display: none;
	vertical-align: middle;
	padding-left:5px;
	padding-top:5px;
	padding-bottom:5px;
}

.llistes .accordionItem{
  border: 1px solid #ab2a3e ;
  border-radius: 4px;
  margin: 0;
  padding: auto;
}

#castellers
{
  background-color: #FFF;
  border: 1px solid #ab2a3e ;
  border-radius: 4px;
  padding: 5px;
  margin: 10px 10px 10px 10px;
}

div.castellerNoInscrit{
	background-color: #F5A9BC;
}

div.castellerSeleccionat{
	background-color: #81F781;
}

font.Vinc{
	text-decoration: underline;
}

/**************************** SWITCH ****************************/

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 20px;
}

.switch input {display:none;}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #ab2a3e ;
}
input:checked + .slidergreen {
  background-color: #40FF00;
}

input:focus + .slider {
  box-shadow: 0 0 1px #ab2a3e ;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 18px;
}

.slider.round:before {
  border-radius: 50%;
}

.slider.slider2
{
	background-color: #40FF00;
}

/****************************POPUP******************************/
/* Popup container - can be anything you want */
.popup {
    /*position: relative;
    display: inline-block;*/
    -webkit-user-select: none;
    -moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* The actual popup */
.popup .popuptext {
    visibility: hidden;
    width: 260px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: fixed;
    z-index: 1;
    top: 40%;
    left: 40%;
    left: 40%;
}

/* The actual popup */
.popuptext .text {
    width: 90%;
    color: #000;
}

/* The actual popup */
.popup .popupcasella{
    visibility: hidden;
    width: 150px;
    width: 150px;
    color: #fff;
    position: fixed;
    z-index: 1;
    z-index: 1;
    left: 40%;
    left: 40%;
    padding-left: 4px;
}


/* The actual popup */
.popupcasella .text {
  color: #000;
}
/* Toggle this class - hide and show the popup */
.popup .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    from {opacity: 0;} 
    to {opacity: 1;}
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity:1 ;}
}


#floatdiv {
  z-index: 9;
  background-color:#555;
}

#floatdivheader {
  cursor: move;
  z-index: 10;
  background-color:#BBB;
}


/* The actual popup */
.popup .popupheader{
  background-color: #bdbdbd;
  color: #fff;
  text-align: left;
  height: 20px;
  z-index: 1;
  padding-left: 4px;
  margin-left: -4px;
}


.missatgeCookie {
    display:none;
    position:fixed;
    left:0px;
    right:0px;
    bottom:0px;
    padding-bottom:20px;
    width:100%;
    text-align:center;
    min-height:40px;
    background-color: rgba(0, 0, 0, 0.5);
    color:#fff;
    z-index:99999;
}
 
.missatgeCookie .ok {
	display: inline-block;
	padding: 2px 6px;
	font-size: 14px;
	line-height: 1.8;
	vertical-align: bottom;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 4px;
	color: #FFF;
	background-color: #ab2a3e ;
	border-color:#1D51B2;
	border: none;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	cursor: pointer;
	cursor: pointer;
	background-image: none;
	font-weight: bold; 
}
.missatgeCookie a.info {
    padding-left:5px;
    text-decoration:none;
    color:#faff00;
}

/****/

.thead-fixed thead
{
	top:0;
}
.thead-fixed th
{
	border: 1px solid #ab2a3e ;
	text-align: left;
	background-color: #ab2a3e ;
	color: #FFF;
	padding: 6px;
}

.thead-fixed td
{
	border: 1px solid #ab2a3e ;
	text-align: left;
	padding: 6px;
}

.thead-fixed tr:nth-child(even) 
{
	/* background-color: #CED8F6; */
	background-color: #eaeae1;
}

.sticky
{
  position: fixed;
}


/************* COUNTER *****************/
.counter
{
    background: linear-gradient(white, black);
	border-radius: 5px;
    width: 40px;
    height: 60px;
	color: white;
	font-size:48px;
	text-align: center;
	position: relative;
}

.countertd
{
	padding:1px;
}

.counterframe
{
	height:100px;
	width:160;
	border:none;
	background:none;
}

/*********************************/
.starOn {
  color: gold;
}
.starOff {
  color: gray;
}
.starHalf {
  color: orange;
}
.starTitleOrange{
  color: orange;
  font-size:22px;
}
.starTitleBlue{
  color: blue;
  font-size:22px;
}

.starRed {
  color: Red;
}

/*********************************/

@keyframes flickerAnimation {
  0%   { opacity:1; }
  50%  { opacity:0; }
  100% { opacity:1; }
}
@-o-keyframes flickerAnimation{
  0%   { opacity:1; }
  50%  { opacity:0; }
  100% { opacity:1; }
}
@-moz-keyframes flickerAnimation{
  0%   { opacity:1; }
  50%  { opacity:0; }
  100% { opacity:1; }
}
@-webkit-keyframes flickerAnimation{
  0%   { opacity:1; }
  50%  { opacity:0; }
  100% { opacity:1; }
}
.animate-flicker {
   -webkit-animation: flickerAnimation .8s infinite;
   -moz-animation: flickerAnimation .8s infinite;
   -o-animation: flickerAnimation .8s infinite;
    animation: flickerAnimation .8s infinite;
}

/******************************************/
/********** FILE/ DOCUMENT ICON ***********/ 
.dot {
  background-color: #5BC0DE;
  border-radius: 50%;
  vertical-align: middle;
  text-align: center;
}
.dot img
{
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%)
}

.file {
  width: 50px;
  height: 60px;
  position: relative;
  background-color: #518ef8;
  border-radius: 6px 0px 6px 6px;
}

.file::before {
  content: '';
  left: 35px;
  width: 16px;
  position: absolute;    
  border-style: solid;
  border-width: 0 16px 16px 0;
  border-color: transparent #cce6ff transparent transparent;
  transform: rotate(0deg)
}

.filefold {
  content: '';
  left: 35px;
  width: 15px;
  position: relative;    
  border-style: solid;
  border-radius: 0px 0px 0px 6px;
  border-width: 15px 0 0 15px;
  border-color: transparent transparent transparent #acd1fc;
  transform: rotate(0deg)
}

.filefold::before {
  content: '';
  left:-10px;
  position: absolute;    
  border-style: solid;
  border-width: 0 10px 5px 0;
  border-color: transparent #ab2a3e  transparent transparent;
  transform: rotate(0deg)
}


/********************************************/



/********************************************/

.like-cnt
{  
  /*background: #cce6ff; */    
  width: 52px; 
  height: 52px;  
  border-radius: 50%;
  vertical-align: middle;
  text-align: center;
  z-index:10;
}
.like-cnt img
{
  transform: translate(1%, 6%)
}


/* Missatge */
.missatge {
    display:none;
    position:fixed;
    left:0px;
    right:0px;
    bottom:0px;
    width:100%;
    text-align:center;
    min-height:40px;
    background-color: rgba(0, 0, 0, 0.75);
    color:#fff;
    z-index:99999;
}

.missatge p {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
}
 
.missatge .ok {
	display: inline-block;
	padding: 2px 6px;
	font-size: 14px;
	line-height: 1.8;
	vertical-align: bottom;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 4px;
	color: #FFF;
	background-color: #ab2a3e ;
	border-color:#1D51B2;
	border: none;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	cursor: pointer;
	cursor: pointer;
	background-image: none;
	font-weight: bold; 
}

.boto-accio {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin: 0 2px;
}
.boto-vinc { background-color: #33cc33; color: white; }
.boto-novinc { background-color: #ff1a1a; color: white; }
.boto-accio.actiu {
    border: 2px solid black;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.estat-vinc { color: #33cc33; font-weight: bold; }
.estat-novinc { color: #ff1a1a; font-weight: bold; }
.estat-no-vist { color: #bcae00; font-weight: bold; }
