html {
  min-height: 100%;
  background-color: #f1f1f1;
  position: relative;
}

body {
  margin-bottom: 40px;
}

body .navbar-light .navbar-nav .nav-link {
  color: rgb(0 0 0 / 60%);
}

img.personage-portrait {
  max-height: 100px;
}

.personage-description,
.alias-description {
  max-width: 420px;
  white-space: normal;
}

footer.main-footer {
  color: #696f74;
  bottom: 0;
  position: absolute;
  background-color: #FFF;
  display: block;
  width: 100%;
  padding: 4px 24px;
}

.content-wrapper {
  background-color: #f1f1f1 !important;
}

.frame-container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  flex-direction: row;
  align-content: center;
  justify-content: space-around;
  align-items: baseline;
  font-size: 14px;
  color: #333;
}

.frame-container.frame-container-video {
  justify-content: center;
  align-items: center;
}

.content-header>.container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.header-text>h2 {
  font-size: 1.3rem;
}

.navbar-brand {
  font-weight: 400;
  line-height: 1.5;
  margin: 0 20px 0 0;
  padding: 0;
}

.navbar-nav {
  text-align: right;
}

.navbar-brand .brand-text {
  font-size: 1.75rem;
  margin: 0;
}

@media (max-width: 600px) {
  .navbar-brand .brand-text {
    font-size: 1rem;
  }
}

.header-text {
  margin-top: 20px;
}

@import url(https://fonts.googleapis.com/css?family=Exo+2:300,400,700);

.card-body::after,
.card-footer::after,
.card-header::after {
  display: block;
  clear: both;
  content: "";
}


.frame-container .card {
  position: relative;
  width: 330px;
  /* Remove for full width */
  height: 450px;
  /* Remove for full width */
  margin: 30px 1px;
  box-shadow: 0 0 50px rgba(0, 0, 0, .3);
  border: 0 solid rgba(0, 0, 0, .125);
  overflow: hidden;
  /* required  for ribbon*/
}





.frame-container .card-header {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: top;
  background-color: transparent;

  padding: 0.65rem 1.25rem;

  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;

}

.frame-container .card-header:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(5, 85, 134, 0.5), rgba(181, 181, 181, 0.1));
  margin-left: -20px;
  margin-top: -9px;
  z-index: 6;
}


.frame-container .card-header-bar {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
  width: 100%;
}

.frame-container .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  border: none;
  overflow: hidden;
}

.frame-container .btn-message {
  display: inline-block;
  background: url(https://res.cloudinary.com/dj14cmwoz/image/upload/v1491077483/profile-card/images/message.svg) no-repeat;
  width: 19.37px;
  height: 16.99px;
  margin-right: 10px;
  margin-top: 10px;

}

.frame-container .btn-menu {
  display: inline-block;
  background: url(https://res.cloudinary.com/dj14cmwoz/image/upload/v1491077483/profile-card/images/menu.svg) no-repeat;
  width: 19px;
  height: 12.16px;
  margin-left: 10px;
  margin-top: 10px;

}

.frame-container svg .polygon {
  fill: #fff;
}

.frame-container .card-header-slanted-edge {
  position: absolute;
  bottom: -3px;
  z-index: 7;
  width: 100%;
  right: 0;
  left: 0;
}

.frame-container .btn-follow {
  position: absolute;
  top: -15px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: linear-gradient(to left, #2D77C1, #68FAC2);
  border-radius: 100%;
  box-shadow: 0 10px 15px rgba(110, 221, 235, .53);
  cursor: pointer;
}

.frame-container .btn-follow.saved-like {
  opacity: 0.2;
  cursor: default;

}

.frame-container .btn-follow:after {
  content: '';
  position: absolute;
  background: url(https://res.cloudinary.com/dj14cmwoz/image/upload/v1491077480/profile-card/images/add.svg) no-repeat;
  width: 17px;
  height: 17px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.frame-container .card-body {
  text-align: center;
  height: 160px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 22px 8px 0;
}

.frame-container ::-webkit-scrollbar {
  width: 6px;
}

/* Ribbon */


.ribbon {
  margin: 0;
  padding: 0;
  background: red;
  color: white;
  padding: 0.5em 0;
  position: absolute;
  top: 0;
  font-weight: bold;
  right: 0;
  transform: translateX(30%) translateY(0%) rotate(45deg);
  transform-origin: top left;
  z-index: 5;
}

.ribbon:before,
.ribbon:after {
  content: '';
  position: absolute;
  top: 0;
  margin: 0 -1px;
  /* tweak */
  width: 100%;
  height: 100%;
  background: red;
}

.ribbon:before {
  right: 100%;
}

.ribbon:after {
  left: 100%;
}


/* Track */
.frame-container ::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
}

/* Handle */
.frame-container ::-webkit-scrollbar-thumb {
  background: darkgrey;
  border-radius: 10px;
}

/* Handle on hover */
.frame-container ::-webkit-scrollbar-thumb:hover {
  background: grey;
}

.frame-container .name {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  margin: -20px auto 0;
}

.card-body .alias-link {
  color: #333;
  text-decoration-color: #333;
}

.frame-container .job-title {
  font-size: 18px;
  font-weight: 300;
  margin-top: 5px;
  color: #001081;
}

.frame-container .job-title:hover {
  color: #0018ce;
}

.frame-container .bio {
  font-size: 14px;
  color: #585858;
  font-weight: 300;
  margin: 0 auto;
  line-height: 20px;
  text-align: justify;
}

.frame-container .card-footer {
  padding: 0.75rem;
  background-color: rgba(0, 0, 0, .03);
  border-top: 0 solid rgba(0, 0, 0, .125);

  left: 0;
  width: 100%;
  bottom: 0px;
}

.frame-container .stats {
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame-container .stat {
  box-sizing: border-box;
  text-align: center;
}

.frame-container .stat-likes {
  border-left: 1px solid #EBEBEB;
  width: 60px;
}

.frame-container .stat-tags {
  flex-grow: 1;
}

.stat.stat-video {
  display: flex;

  width: 40px;
  border-right: 1px solid #EBEBEB;
  padding-right: 10px;
  height: 40px;
}

.frame-container .stat .label {
  display: block;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 1px;
  color: #6c6c6c;
}

.frame-container .stat .value {
  display: block;
  font-weight: 700;
  font-size: 16px;

}

.tag-badge {
  padding: 2px 3px;
  color: white;
  border-radius: 5px;
  vertical-align: middle;
  line-height: normal;
  font-weight: bold;
  font-size: 12px;
  white-space: nowrap;
}

.personage-main-image {
  text-align: center;
  max-width: 100%;
}

.text-center {
  text-align: center;
}

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

.breadcrumb .breadcrumb-item.active {
  color: #676f76;
}

/* SEARCH */

.search-form {
  position: relative;
  display: flex;
}

input.search {
  width: 240px;
}

input.search::placeholder {
  color: #CCC;
}

.suggestions {
  margin: 0;
  padding: 0;
  position: absolute;
  top: 40px;
  z-index: 100;

}

.suggestions li {
  background: white;
  list-style: none;
  border-bottom: 1px solid #D8D8D8;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.14);
  margin: 0;
  padding: 20px;
  transition: background 0.2s;
  display: flex;
  justify-content: space-between;
  text-transform: capitalize;
}

span.population {
  font-size: 15px;
}

.hl {
  background: #ffc600;
}

span.search-result-alias {
  font-weight: bold;
  color: #777;
}

span.search-result-personage {
  color: #AAA;
}

img.logo-image {
  margin-bottom: -8px;
  height: 72px;
  margin-right: 18px;
}

/** QUIZ **/
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


img.quiz-image {
  width: 100%;
}


.quiz-options {
  margin-top: 20px;
  margin-bottom: 20px;
}

.quiz-option {
  vertical-align: middle;
  margin: 10px 0;
  padding: 12px;

}

.quiz-option.bg-info:hover {
  color: #777;
}

.quiz-option.bg-info {
  cursor: pointer;

}

.quiz-option>.inner {
  margin: 0;
}

.next-alias {
  margin: 20px;
}


/** LOAD MORE CARDS **/

#loading-more.hidden {
  display: none;
}

body .btn-outline-success {
  color: #237851;
}

/** VIDEO MODAL **/
.videomodal .modal-dialog {
  max-width: 800px;
  margin: 30px auto;
}

.videomodal .modal-body {
  position: relative;
  padding: 0px;
}

.videomodal .btn-close {
  position: absolute;
  right: -30px;
  top: 0;
  z-index: 999;

}

.cursor-pointer {
  cursor: pointer;
}














/**** BORRAME DE AQUI ****/

.contact-form .section-padding {
  padding: 45px 0;
}

.contact-form .section-dark {
  background-color: #f9f9f9;
  z-index: -2;
}

.contact-form .form-group .form-control.invalid {
  border: 1px solid red;
}

.contact-form input.form-control,
.contact-form .form-group input.form-control {
  border: 0;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#009688), to(#009688)), -webkit-gradient(linear, left top, left bottom, from(#D2D2D2), to(#D2D2D2));
  background-image: -webkit-linear-gradient(#009688, #009688), -webkit-linear-gradient(#D2D2D2, #D2D2D2);
  background-image: -o-linear-gradient(#009688, #009688), -o-linear-gradient(#D2D2D2, #D2D2D2);
  background-image: linear-gradient(#009688, #009688), linear-gradient(#D2D2D2, #D2D2D2);
  -webkit-background-size: 0 2px, 100% 1px;
  background-size: 0 2px, 100% 1px;
  background-repeat: no-repeat;
  background-position: center bottom, center -webkit-calc(100% - 1px);
  background-position: center bottom, center calc(100% - 1px);
  background-color: rgba(0, 0, 0, 0);
  -webkit-transition: background 0s ease-out;
  -o-transition: background 0s ease-out;
  transition: background 0s ease-out;
  float: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  border-radius: 0
}

.contact-form .form-control::-moz-placeholder,
.contact-form .form-group .form-control::-moz-placeholder {
  color: #BDBDBD;
  font-weight: 400
}

.contact-form .form-control:-ms-input-placeholder,
.contact-form .form-group .form-control:-ms-input-placeholder {
  color: #BDBDBD;
  font-weight: 400
}

.contact-form .form-control::-webkit-input-placeholder,
.contact-form .form-group .form-control::-webkit-input-placeholder {
  color: #BDBDBD;
  font-weight: 400
}

.contact-form .form-control[disabled],
.contact-form .form-control[readonly],
.contact-form .form-group .form-control[disabled],
.contact-form .form-group .form-control[readonly],
.contact-form fieldset[disabled] .form-control,
.contact-form fieldset[disabled] .form-group .form-control {
  background-color: rgba(0, 0, 0, 0)
}

.contact-form .form-control[disabled],
.contact-form .form-group .form-control[disabled],
fieldset[disabled] .form-control,
.contact-form fieldset[disabled] .form-group .form-control {
  background-image: none;
  border-bottom: 1px dotted #D2D2D2
}

.contact-form .form-group {
  position: relative
}

.contact-form .form-group.label-floating label.control-label,
.contact-form .form-group.label-placeholder label.control-label,
.contact-form .form-group.label-static label.control-label {
  pointer-events: none;
  -webkit-transition: .3s ease all;
  -o-transition: .3s ease all;
  transition: .3s ease all
}

.contact-form .form-group.label-floating label.control-label {
  will-change: left, top, contents
}

.contact-form .form-group.label-placeholder:not(.is-empty) label.control-label {
  display: none
}

.contact-form .form-group .help-block {
  position: absolute;
  display: none
}

.contact-form .form-group.is-focused .form-control {
  outline: 0;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#009688), to(#009688)), -webkit-gradient(linear, left top, left bottom, from(#D2D2D2), to(#D2D2D2));
  background-image: -webkit-linear-gradient(#009688, #009688), -webkit-linear-gradient(#D2D2D2, #D2D2D2);
  background-image: -o-linear-gradient(#009688, #009688), -o-linear-gradient(#D2D2D2, #D2D2D2);
  background-image: linear-gradient(#009688, #009688), linear-gradient(#D2D2D2, #D2D2D2);
  -webkit-background-size: 100% 2px, 100% 1px;
  background-size: 100% 2px, 100% 1px;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition-duration: .3s;
  -o-transition-duration: .3s;
  transition-duration: .3s
}

.contact-form .form-group.is-focused .form-control .material-input:after {
  background-color: #009688
}

.contact-form .form-group.is-focused label,
.contact-form .form-group.is-focused label.control-label {
  color: #009688
}

.contact-form .form-group.is-focused.label-placeholder label,
.contact-form .form-group.is-focused.label-placeholder label.control-label {
  color: #BDBDBD
}

.contact-form .form-group.is-focused .help-block {
  display: block
}

.contact-form .form-group.has-warning .form-control {
  -webkit-box-shadow: none;
  box-shadow: none
}

.contact-form .form-group.has-warning.is-focused .form-control {
  background-image: -webkit-gradient(linear, left top, left bottom, from(#ff5722), to(#ff5722)), -webkit-gradient(linear, left top, left bottom, from(#D2D2D2), to(#D2D2D2));
  background-image: -webkit-linear-gradient(#ff5722, #ff5722), -webkit-linear-gradient(#D2D2D2, #D2D2D2);
  background-image: -o-linear-gradient(#ff5722, #ff5722), -o-linear-gradient(#D2D2D2, #D2D2D2);
  background-image: linear-gradient(#ff5722, #ff5722), linear-gradient(#D2D2D2, #D2D2D2)
}

.contact-form .form-group.has-warning .help-block,
.contact-form .form-group.has-warning label.control-label {
  color: #ff5722
}

.contact-form .form-group.has-error .form-control {
  -webkit-box-shadow: none;
  box-shadow: none
}

.contact-form .form-group.has-error .help-block,
.contact-form .form-group.has-error label.control-label {
  color: #f44336
}

.contact-form .form-group.has-success .form-control {
  -webkit-box-shadow: none;
  box-shadow: none
}

.contact-form .form-group.has-success.is-focused .form-control {
  background-image: -webkit-gradient(linear, left top, left bottom, from(#4caf50), to(#4caf50)), -webkit-gradient(linear, left top, left bottom, from(#D2D2D2), to(#D2D2D2));
  background-image: -webkit-linear-gradient(#4caf50, #4caf50), -webkit-linear-gradient(#D2D2D2, #D2D2D2);
  background-image: -o-linear-gradient(#4caf50, #4caf50), -o-linear-gradient(#D2D2D2, #D2D2D2);
  background-image: linear-gradient(#4caf50, #4caf50), linear-gradient(#D2D2D2, #D2D2D2)
}

.contact-form .form-group.has-success .help-block,
.contact-form .form-group.has-success label.control-label {
  color: #4caf50
}

.contact-form .form-group.has-info .form-control {
  -webkit-box-shadow: none;
  box-shadow: none
}

.contact-form .form-group.has-info.is-focused .form-control {
  background-image: -webkit-gradient(linear, left top, left bottom, from(#03a9f4), to(#03a9f4)), -webkit-gradient(linear, left top, left bottom, from(#D2D2D2), to(#D2D2D2));
  background-image: -webkit-linear-gradient(#03a9f4, #03a9f4), -webkit-linear-gradient(#D2D2D2, #D2D2D2);
  background-image: -o-linear-gradient(#03a9f4, #03a9f4), -o-linear-gradient(#D2D2D2, #D2D2D2);
  background-image: linear-gradient(#03a9f4, #03a9f4), linear-gradient(#D2D2D2, #D2D2D2)
}

.contact-form .form-group.has-info .help-block,
.contact-form .form-group.has-info label.control-label {
  color: #03a9f4
}

.contact-form .form-group textarea {
  resize: none
}

.contact-form .form-group textarea~.form-control-highlight {
  margin-top: -11px
}

.contact-form .form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none
}

.contact-form .form-group select~.material-input:after {
  display: none
}

.contact-form .form-control {
  margin-bottom: 7px
}

.contact-form .form-control::-moz-placeholder {
  font-size: 16px;
  line-height: 1.42857143;
  color: #BDBDBD;
  font-weight: 400
}

.contact-form .form-control:-ms-input-placeholder {
  font-size: 16px;
  line-height: 1.42857143;
  color: #BDBDBD;
  font-weight: 400
}

.contact-form .form-control::-webkit-input-placeholder {
  font-size: 16px;
  line-height: 1.42857143;
  color: #BDBDBD;
  font-weight: 400
}

.contact-form .checkbox label,
.contact-form .radio label,
.contact-form label {
  font-size: 16px;
  line-height: 1.42857143;
  color: #8f8f8f;
  font-weight: 400
}

.contact-form label.control-label {
  font-size: 12px;
  line-height: 1.07142857;
  font-weight: 400;
}

.contact-form .help-block {
  margin-top: 0;
  font-size: 12px
}

.contact-form .form-group {
  padding-bottom: 7px;
  margin: 15px 0 0 0
}

.contact-form .form-group .form-control {
  margin-bottom: 7px
}

.contact-form .form-group .form-control::-moz-placeholder {
  font-size: 16px;
  line-height: 1.42857143;
  color: #BDBDBD;
  font-weight: 400
}

.contact-form .form-group .form-control:-ms-input-placeholder {
  font-size: 16px;
  line-height: 1.42857143;
  color: #BDBDBD;
  font-weight: 400
}

.contact-form .form-group .form-control::-webkit-input-placeholder {
  font-size: 16px;
  line-height: 1.42857143;
  color: #BDBDBD;
  font-weight: 400
}

.contact-form .form-group .checkbox label,
.contact-form .form-group .radio label,
.contact-form .form-group label {
  font-size: 16px;
  line-height: 1.42857143;
  color: #8f8f8f;
  font-weight: 400
}

.contact-form .form-group label.control-label {
  font-size: 12px;
  line-height: 1.07142857;
  font-weight: 400;
}

.contact-form .form-group .help-block {
  margin-top: 0;
  font-size: 12px
}

.contact-form .form-group.label-floating label.control-label,
.contact-form .form-group.label-placeholder label.control-label {
  font-size: 16px;
  line-height: 1.42857143
}

.contact-form .form-group.label-floating.is-focused label.control-label,
.contact-form .form-group.label-floating:not(.is-empty) label.control-label,
.contact-form .form-group.label-static label.control-label {
  font-size: 12px;
  line-height: 1.07142857
}

.contact-form .form-group.label-floating input.form-control:-webkit-autofill~label.control-label label.control-label {
  top: -30px;
  left: 0;
  font-size: 12px;
  line-height: 1.07142857
}

.contact-form .form-group.form-group-sm {
  padding-bottom: 3px;
  margin: 21px 0 0 0
}

.contact-form .form-group.form-group-sm .form-control {
  margin-bottom: 3px
}

.contact-form .form-group.form-group-sm .form-control::-moz-placeholder {
  font-size: 11px;
  line-height: 1.5;
  color: #BDBDBD;
  font-weight: 400
}

.contact-form .form-group.form-group-sm .form-control:-ms-input-placeholder {
  font-size: 11px;
  line-height: 1.5;
  color: #BDBDBD;
  font-weight: 400
}

.contact-form .form-group.form-group-sm .form-control::-webkit-input-placeholder {
  font-size: 11px;
  line-height: 1.5;
  color: #BDBDBD;
  font-weight: 400
}

.contact-form .form-group.form-group-sm .checkbox label,
.contact-form .form-group.form-group-sm .radio label,
.contact-form .form-group.form-group-sm label {
  font-size: 11px;
  line-height: 1.5;
  color: #8f8f8f;
  font-weight: 400
}

.contact-form .form-group.form-group-sm label.control-label {
  font-size: 9px;
  line-height: 1.125;
  font-weight: 400;
  margin: 16px 0 0 0
}

.contact-form .form-group.form-group-sm .help-block {
  margin-top: 0;
  font-size: 9px
}

.contact-form .form-group.form-group-sm.label-floating label.control-label,
.contact-form .form-group.form-group-sm.label-placeholder label.control-label {
  top: -11px;
  font-size: 11px;
  line-height: 1.5
}

.contact-form .form-group.form-group-sm.label-floating.is-focused label.control-label,
.contact-form .form-group.form-group-sm.label-floating:not(.is-empty) label.control-label,
.contact-form .form-group.form-group-sm.label-static label.control-label {
  top: -25px;
  left: 0;
  font-size: 9px;
  line-height: 1.125
}

.contact-form .form-group.form-group-sm.label-floating input.form-control:-webkit-autofill~label.control-label label.control-label {
  top: -25px;
  left: 0;
  font-size: 9px;
  line-height: 1.125
}

.contact-form .form-group.form-group-lg {
  padding-bottom: 9px;
  margin: 30px 0 0 0
}

.contact-form .form-group.form-group-lg .form-control {
  margin-bottom: 9px
}

.contact-form .form-group.form-group-lg .form-control::-moz-placeholder {
  font-size: 18px;
  line-height: 1.3333333;
  color: #BDBDBD;
  font-weight: 400
}

.contact-form .form-group.form-group-lg .form-control:-ms-input-placeholder {
  font-size: 18px;
  line-height: 1.3333333;
  color: #BDBDBD;
  font-weight: 400
}

.contact-form .form-group.form-group-lg .form-control::-webkit-input-placeholder {
  font-size: 18px;
  line-height: 1.3333333;
  color: #BDBDBD;
  font-weight: 400
}

.contact-form .form-group.form-group-lg .checkbox label,
.contact-form .form-group.form-group-lg .radio label,
.contact-form .form-group.form-group-lg label {
  font-size: 18px;
  line-height: 1.3333333;
  color: #8f8f8f;
  font-weight: 400
}

.contact-form .form-group.form-group-lg label.control-label {
  font-size: 14px;
  line-height: .99999998;
  font-weight: 400;
  margin: 16px 0 0 0
}

.contact-form .form-group.form-group-lg .help-block {
  margin-top: 0;
  font-size: 14px
}

.contact-form .form-group.form-group-lg.label-floating label.control-label,
.contact-form .form-group.form-group-lg.label-placeholder label.control-label {
  top: -5px;
  font-size: 18px;
  line-height: 1.3333333
}

.contact-form .form-group.form-group-lg.label-floating.is-focused label.control-label,
.contact-form .form-group.form-group-lg.label-floating:not(.is-empty) label.control-label,
.contact-form .form-group.form-group-lg.label-static label.control-label {
  top: -32px;
  left: 0;
  font-size: 14px;
  line-height: .99999998
}

.contact-form .form-group.form-group-lg.label-floating input.form-control:-webkit-autofill~label.control-label label.control-label {
  top: -32px;
  left: 0;
  font-size: 14px;
  line-height: .99999998
}

.contact-form select.form-control {
  border: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  border-radius: 0
}

.contact-form .form-group.is-focused select.form-control {
  -webkit-box-shadow: none;
  box-shadow: none;
  border-color: #D2D2D2
}

.contact-form .form-group.is-focused select.form-control[multiple],
.contact-form select.form-control[multiple] {
  height: 85px
}

.contact-form .input-group-btn .btn {
  margin: 0 0 7px 0
}

.contact-form .form-group.form-group-sm .input-group-btn .btn {
  margin: 0 0 3px 0
}

.contact-form .form-group.form-group-lg .input-group-btn .btn {
  margin: 0 0 9px 0
}

.contact-form .input-group .input-group-btn {
  padding: 0 12px
}

.contact-form .input-group .input-group-addon {
  border: 0;
  background: 0 0
}

.contact-form .form-group input[type=file] {
  opacity: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100
}

.contact-form .contact-widget-section .single-contact-widget {
  background: #f9f9f9;
  padding: 20px 25px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.26);
  height: 260px;
  margin-top: 25px;
  transition: all 0.3s ease-in-out
}

.contact-form .contact-widget-section .single-contact-widget i {
  font-size: 75px
}

.contact-form .contact-widget-section .single-contact-widget h3 {
  font-size: 20px;
  color: #333;
  font-weight: 700;
  padding-bottom: 10px
}

.contact-form .contact-widget-section .single-contact-widget p {
  line-height: 16px
}

.contact-form .contact-widget-section .single-contact-widget:hover {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.46);
  cursor: pointer;
  transition: all 0.3s ease-in-out
}

.contact-form #contactForm {
  margin-top: -10px
}

.contact-form #contactForm .form-group label.control-label {
  color: #8c8c8c
}

.contact-form #contactForm .form-control {
  font-weight: 500;
  height: auto
}


/**** PERSONAGE THUMBS ****/

.big-letter {
  font-size: 40px;
}

.thumb-list {
  display: grid;
  /* 1 */
  grid-template-columns: repeat(auto-fill, 310px);
  /* 2 */
  grid-gap: 1rem;
  /* 3 */
  justify-content: space-between;
  /* 4 */
  padding-bottom: 15px;
  margin-bottom: 5px;
  border-bottom: 1px solid #adb5bd
}

.personage-thumb-block .thumb-img-wrapper {
  height: 60px;
  width: 60px;
  vertical-align: middle;
  text-align: center;
  float: left;
  padding: 2px;
  border-radius: 50%;
  border: 2px solid #adb5bd;
  overflow: hidden;
  margin-right: 6px;
}

.personage-thumb-block img {
  height: 60px;
  left: -50%;
  position: relative;
  top: -2px;
  min-width: 100px;
}

.personage-thumb-block .personage-name {
  font-size: 16px;
  font-weight: 600;
  margin-top: 6px;
}

.personage-thumb-block .personage-comment,
.personage-thumb-block .personage-name {
  display: block;
  margin-left: 33px;
}

.personage-thumb-block .personage-comment {
  color: #6c757d;
  font-size: 13px;
  margin-top: -2px;
}



body .select2-container .select2-selection--single {
  height: 36px;
}

body .fedenews {
  align-items: normal;
}

body .fedenews article {
  font-size: 1.4rem;
  font-weight: 599;
  line-height: 1;
  padding: 2rem;
  border-bottom: 2px solid #e3e3e3;

}

body .fedenews article header {
  color: #000;
}

body .fedenews article .fecha-articulo {
  font-family: "Roboto-Regular", sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: #999;
}

body .fedenews article.slot1 {
  border-right: 2px solid #e3e3e3;
}

body .fedenews article.slot1 img {
  display: none;
}

body .fedenews article.slot1 header {
  font-weight: 700;
  font-size: 2.8rem;
}


body .fedenews article.slot2 .position-relative header {
  position: absolute;
  bottom: 1rem;
  padding: 1rem 5rem;
  font-size: 2.1rem;
  color: #EEE;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.5);
  text-align: center;

}

body .fedenews article.slot2 .fecha-articulo {
  display: none;
}

body .fedenews article.slot3,
body .fedenews article.slot4 {
  border-right: 2px solid #e3e3e3;
}

body .fedenews article.slot3 img,
body .fedenews article.slot4 img,
body .fedenews article.slot5 img {
  margin-bottom: 0.5rem;
}

.fedenew h1 {
  font-weight: 700;
  font-size: 3.3rem;
  line-height: 4rem;
}

.fedenew article .fecha-articulo {
  font-family: "Roboto-Regular", sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: #999;
}

.fedenew article img {
  padding: 1rem 0;
  max-width: 100%;
}

.fedenew article .cuerpo {
  margin-bottom: 2rem;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 2.5rem;
}

/** LOGIN **/

.login-page {
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background-color: #0b2239;
  background-image:
    radial-gradient(circle at 12% 18%, rgb(45 119 193 / 45%), transparent 42%),
    radial-gradient(circle at 88% 82%, rgb(104 250 194 / 16%), transparent 45%),
    linear-gradient(150deg, #081b2d 0%, #0d3a5c 55%, #055586 100%);
}

body:has(.login-page) {
  margin-bottom: 0;
}

body:has(.login-page) .login-page {
  min-height: 100vh;
}

.login-box {
  width: 100%;
  max-width: 430px;
  margin: auto;
}

.login-brand {
  margin-bottom: 26px;
}

.login-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #FFF;
  font-size: 30px;
  background: linear-gradient(135deg, #2D77C1, #68FAC2);
  box-shadow: 0 12px 28px rgb(4 40 70 / 45%);
}

.login-brand-title {
  margin: 0;
  color: #FFF;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.login-brand-subtitle {
  margin: 4px 0 0;
  color: rgb(255 255 255 / 72%);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.login-card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgb(3 22 39 / 45%);
}

.login-card .card-body {
  padding: 36px 34px;
}

.login-card-title {
  margin: 0 0 6px;
  color: #1C2B3A;
  font-size: 1.35rem;
  font-weight: 700;
}

.login-card-text {
  margin: 0 0 24px;
  color: #6B7C93;
  font-size: 0.92rem;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  font-size: 0.92rem;
}

.login-alert i {
  margin-top: 3px;
}

.login-form .form-label {
  margin-bottom: 6px;
  color: #34495E;
  font-size: 0.85rem;
  font-weight: 600;
}

.login-input-group .input-group-text {
  width: 46px;
  justify-content: center;
  color: #6B7C93;
  background-color: #F4F7FA;
  border-color: #DFE6EE;
  border-right: 0;
}

.login-input-group .form-control {
  min-height: 48px;
  border-color: #DFE6EE;
  border-left: 0;
  background-color: #FBFCFE;
  box-shadow: none;
}

.login-input-group .form-control:focus {
  border-color: #2D77C1;
  background-color: #FFF;
  box-shadow: 0 0 0 0.2rem rgb(45 119 193 / 15%);
}

.login-input-group:focus-within .input-group-text {
  color: #2D77C1;
  background-color: #EEF5FB;
}

.login-password-toggle {
  color: #6B7C93;
  background-color: #F4F7FA;
  border-color: #DFE6EE;
  border-left: 0;
}

.login-password-toggle:hover,
.login-password-toggle:focus {
  color: #055586;
  background-color: #E9F1F8;
  border-color: #DFE6EE;
  box-shadow: none;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  color: #FFF;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: linear-gradient(120deg, #055586 0%, #2D77C1 100%);
  box-shadow: 0 12px 24px rgb(5 85 134 / 35%);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-submit:hover,
.login-submit:focus {
  color: #FFF;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgb(5 85 134 / 45%);
}

.login-submit:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgb(5 85 134 / 35%);
}

.login-submit:focus-visible {
  outline: 3px solid rgb(104 250 194 / 65%);
  outline-offset: 2px;
}

.login-footer {
  margin: 22px 0 0;
}

.login-footer a {
  color: rgb(255 255 255 / 80%);
  font-size: 0.9rem;
}

.login-footer a:hover {
  color: #FFF;
}

@media (max-width: 420px) {
  .login-card .card-body {
    padding: 28px 22px;
  }
}

/* Admin tables: keep the actions column visible while scrolling horizontally */
.table-sticky-actions {
  border-collapse: separate;
  border-spacing: 0;
}

.table-sticky-actions th.actions-column,
.table-sticky-actions td.actions-column {
  position: sticky;
  right: 0;
  z-index: 1;
  background-color: #F1F1F1;
  box-shadow: -4px 0 6px -4px rgb(0 0 0 / 15%);
}

.table-sticky-actions thead th.actions-column {
  z-index: 2;
}

.table-sticky-actions tbody tr:hover td.actions-column {
  background-color: #DFDFDF;
}

.message-username,
.message-title,
.message-body {
  max-width: 180px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.message-detail-body {
  overflow-wrap: anywhere;
}

/* Admin panel: mobile responsiveness */

/* Smooth scrolling for horizontally scrollable admin tables */
.table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* Action links/buttons grouped after forms and detail tables */
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* Admin navbar: let links wrap instead of overflowing on narrow screens */
.main-header .navbar-collapse,
.main-header .navbar-nav {
  flex-wrap: wrap;
}

/* Admin pagination: wrap instead of overflowing on small screens */
.pagination {
  flex-wrap: wrap;
}

/* YouTube player used in the video reference admin form */
#player {
  max-width: 100%;
}

#player iframe {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

/* Segment rows in the video reference admin form */
.segment-row {
  flex-wrap: wrap;
}

.segment-row label {
  margin-bottom: 0;
}

.segment-row input {
  width: 110px;
  max-width: 100%;
}

/* Search engine results: transcriptions side by side, stacked on mobile */
.transcription-container > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.transcription-clean {
  width: 32.4%;
}

.transcription-raw {
  width: 67.6%;
}

@media (max-width: 767.98px) {
  .transcription-container {
    flex-direction: column;
  }

  .transcription-clean,
  .transcription-raw {
    width: 100%;
  }

  /* Give the collapsed admin menu a solid, readable panel */
  .main-header .navbar-collapse {
    padding: 6px 0;
    border-top: 1px solid rgb(0 0 0 / 8%);
  }

  .main-header .navbar-nav .nav-link {
    padding: 8px 0;
  }

  /* Form controls and buttons never overflow the viewport */
  .content .btn,
  .content .form-control {
    max-width: 100%;
  }
}
