/******************
    User custom CSS
    ---------------

    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/

:root{
  --primary: #990000;
}

.btn-primary,
.btn-success,
.btn-outline-primary,
.progress-bar{
  background-color:#990000 !important;
  border-color:#990000 !important;
}

.btn-primary:hover,
.btn-success:hover{
  background-color:#7a0000 !important;
  border-color:#7a0000 !important;
}

a,
.text-primary{
  color:#990000 !important;
}

.form-check-input:checked{
  background-color:#990000 !important;
  border-color:#990000 !important;
}

.navbar,
.top-container{
  background-color:#990000 !important;
}

/* Listado público: botón de encuestas */
.surveyname a,
.surveylink a,
.surveylist a,
.list-surveys a.btn,
#surveylist a,
a.btn.btn-primary,
a.btn-primary {
  color: #fff !important;
  font-weight: 600;
}

/* Si el fondo es guinda, aseguramos contraste */
a.btn.btn-primary,
a.btn-primary {
  background-color: #990000 !important;
  border-color: #990000 !important;
}

/* Oculta el bloque "Powered by LimeSurvey" del footer original */
/* Quitar "proudly powered by LimeSurvey" (bloque extra) */
.poweredby,
#poweredby,
.ls-poweredby,
div.poweredby,
div#poweredby,
footer .poweredby,
footer #poweredby,
div[role="contentinfo"] .poweredby,
div[role="contentinfo"] #poweredby {
  display: none !important;
}

/* Por si viene como imagen poweredby.png dentro del footer */
img[src*="poweredby"],
img[alt*="powered"],
img[alt*="LimeSurvey"] {
  display: none !important;
}

/* Quitar texto "The Online Survey Tool - Free & Open Source" */
a[href*="limesurvey.org"] {
    display: none !important;
}

/* Por si viene dentro de un contenedor extra */
div[role="contentinfo"] a {
    display: none !important;
}

/* Eliminar cualquier resto del bloque de créditos de LimeSurvey */
div[role="contentinfo"] {
  display: none !important;
}

/* Por si en tu tema el footer original usa estas clases/ids */
#footer,
.footer,
.ls-footer,
.footer-container,
#surveyfooter {
  /* no lo ocultamos completo para no matar tu footer; solo si existe el bloque interno */
}

/* Ocultar cualquier elemento que contenga el texto "Free & Open Source" */
*:not(script):not(style) {
  /* sin efecto por sí solo; el selector real abajo */
}

/* Último residuo: "- Free & Open Source" */
small,
p,
div,
span {
  /* no afecta nada por sí solo */
}

/* Este selector apunta al texto típico del footer de LimeSurvey */
.surveyfooter,
#surveyfooter,
.footer__powered,
.footer-powered,
.ls-footer__powered,
.ls-footer__copyright,
.footer-copyright {
  display: none !important;
}

/* Por si el texto quedó dentro del footer global */
body > footer,
#footer,
#surveyfooter,
.ls-footer {
  /* No lo ocultamos completo para no afectar tu footer UNAY */
}

body * {
  /* nada */
}

/* Ajuste fino del logo UNAY */
img[alt="UNAY"] {
  margin: 10px auto 5px auto !important;
  display: block;
}

/* Eliminar espacio del contenedor del logo */
.ls-logo,
.logo,
.navbar-brand {
  margin-bottom: 5px !important;
  padding-bottom: 0 !important;
}

/* Reducir espacio del título */
h1, h2, h3 {
  margin-top: 5px !important;
}
