
body {
  font-family: "Nunito", sans-serif;
  font-weight: 300;
  text-align: center;
  color: #1f1954;
  margin: 0;
}
#petitorio-container {
  width: 80%;
  margin: 50px auto;
}

.title {font-weight: 800;margin: 30px 0;}
.link-petitorio {
  font-size: 1rem;
  text-decoration: none;
  background-color: #e4e9ee;
  color: #1f1954;
  padding: 7px 20px;
  border-radius: 10px;
  display: inline-block;
  transition: transform 200ms ease-out;
}
.link-petitorio:hover {
  transform: scale(1.05);
}
.link-petitorio:active, .link-petitorio:focus {
  filter: brightness(0.9);
  transform: scale(1);
}
.intro {
}
.representantes {
  display: flex;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}
.representantes div {
  width: 50%;
  box-sizing: border-box;
}
.representantes ul {
  list-style: none;
  padding: 0;
  margin: 5px 0;
}
.representantes h3 {
  margin: 5px 0;
}
.representantes .cargo {
  display: block;
  opacity: 0.7;
  font-size: 0.8rem;
  margin: -2px 0 5px;
}
.divider {
  width: 80%;
  height: 1px;
  background-color: #e4e9ee;
  margin: 15px auto;
}

.legend {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.legend-item {
  width: 20%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: flex-start;
}
.legend-icon {
  width: 15px;
  height: 15px;
  border-radius: 10px;
  background-color: #000;
  margin: 0 5px 0 -5px;
}
.legend-label {
  font-size: 0.9rem;
}
.legend-text {
  font-size: 0.75rem;
  opacity: 0.7;
}

.tema {
  width: 100%;
  margin: 20px 0;
}
.tema-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: relative;
  border-radius: 15px;
  padding: 10px 20px;
  color: white;
  cursor: pointer;
  box-shadow: 0 6px 10px -5px rgba(0,0,0,0.4);
  transition: all 200ms ease-out;
}
.open .tema-header {
  padding-top: 15px;
  padding-bottom: 15px;
}
#extra .tema-header {
  color: inherit;
}
.tema-header-bg {
  border-radius: inherit;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transition: all 200ms ease-out;
}
.open .tema-header-bg {
  border-radius: 15px 15px 3px 3px;
}
.tema-header-bg:hover {
  filter: brightness(0.9);
}
.tema-header-label {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  font-family: "Nunito";
  font-weight: 600;
  font-size: 1.3rem;
  transition: all 200ms ease-out;
}
.open .tema-header-label {
  font-size: 1.4rem;
}
.tema-header-extra-text {
  font-size: 0.9rem;
  position: relative;
  margin: 3px 0 0 10px;
  font-weight: 300;
}
.tema-header-counters {
    position: relative;
    display: flex;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 4px 7px;
    border-radius: 30px;
    pointer-events: none;
}
.tema-header-counter {
    border-radius: 20px;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 3px;
    padding: 1px;
}
#carga .tema-header-bg {
  background-color: #2c5ca1;
}
#salud .tema-header-bg {
  background-color: #02ac9e;
}
#docencia .tema-header-bg {
  background-color: #ec377f;
}
#auxiliares .tema-header-bg {
  background-color: #ffb700;
}
#infraestructura .tema-header-bg {
  background-color: #606898;
}
#extra .tema-header-bg {
  background-color: #f5f5f5;
}
.tema-content-collapse {
  height: 0px;
  overflow: hidden;
  transition: height 400ms ease-in-out, box-shadow 400ms ease-out;
  box-shadow: none;
  border-radius: 0 0 10px 10px;
}
.open .tema-content-collapse {
  box-shadow: 0 6px 10px -5px rgba(0,0,0,0.4);
}
.tema-content {
  opacity: 0;
  padding: 20px;
  transition: opacity 100ms ease-out;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.open .tema-content {
  opacity: 1;
}
.petition-wrapper {
  margin: 10px 0;
  padding: 0 15px;
  width: 33.333333333333%;
  box-sizing: border-box;
  height: auto;
}
.petition {
  width: 100%;
  border-radius: 10px;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #333;
  padding-bottom: 10px;
}
.petition-title {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px 10px 3px 3px;
  padding: 15px;
  font-size: 1.1em;
  color: white;
  font-weight: 600;
  line-height: 1.1em;
}
.petition-view {
  margin: 10px 20px 0;
  padding: 5px 15px;
  font-size: 0.8rem;
  background-color: rgba(0, 0, 0, 0.05);
  mix-blend-mode: screen;
  cursor: pointer;
  transition: opacity 150ms ease-out;
  border-radius: 5px;
}
.petition-view:hover {
  background-color: rgba(0, 0, 0, 0.08);
}
.petition-view p {
  margin: 5px 0;
}
.petition-view.view {
  font-size: 0.9rem;
  text-align: left;
}
.fade {
  opacity: 0;
}
.petition-status-text {
  opacity: 0.6;
  font-size: 0.8rem;
  padding: 0 8px;
  margin: 5px auto;
  border-radius: 5px;
  text-align: center;
  text-transform: capitalize;
}
.petition-content {
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 10px;
  padding: 0 20px;
  text-align: left;
  font-size: 0.9rem;
}

.credits {
  font-size: 0.75rem;
  opacity: 0.6;
  margin: 2px;
}

@media (max-width: 960px) {
  #petitorio-container {
    width: 90%;
  }
  .representantes div {
    width: 100%
  }
  .legend-item {
    width: 33.333333333%;
    margin-bottom: 10px;
  }
  .tema-header {
    justify-content: center;
  }
  .tema-header-label {
    flex-wrap: wrap;
    width: 100%;
  }
  .tema-header-extra-text {
    width: 100%;
    margin: -3px 0 5px;
  }
  .tema-content {
    padding: 10px;
  }
  .petition-wrapper {
    width: 100%;
    padding: 0 5px;
  }
  .petition-view {
    margin: 8px 15px;
  }
  .petition-content {
    padding: 0 15px;
  }
}

.status-pendiente.legend-icon, 
.status-pendiente.tema-header-counter, 
.status-pendiente .petition-title {
  background-color: rgb(170, 170, 170);
}
.status-discutido.legend-icon, 
.status-discutido.tema-header-counter, 
.status-discutido .petition-title {
  background-color: rgb(241, 170, 98);
}
.status-infactible.legend-icon, 
.status-infactible.tema-header-counter, 
.status-infactible .petition-title {
  background-color: rgb(213, 67, 67);
}
.status-alternativa.legend-icon, 
.status-alternativa.tema-header-counter, 
.status-alternativa .petition-title {
  background-color: rgb(123, 113, 239);
}
.status-aceptado.legend-icon, 
.status-aceptado.tema-header-counter, 
.status-aceptado .petition-title {
  background-color: rgb(102, 189, 102);
}

.status-pendiente .petition {
  background-color: rgba(170, 170, 170, 0.1);
}
.status-discutido .petition {
  background-color: rgba(241, 170, 98, 0.1);
}
.status-infactible .petition {
  background-color: rgba(213, 67, 67, 0.1);
}
.status-alternativa .petition {
  background-color: rgba(123, 113, 239, 0.1);
}
.status-aceptado .petition {
  background-color: rgba(102, 189, 102, 0.1);
}
