*, *:after, *:before {
    box-sizing: border-box;
  }
  
  body, .ui-widget{
    font-family:'PT Sans Narrow';
  }

  h2, h4, p, ul, li {
    margin: 0;
    padding: 0;
  }
  
  h1 {
    text-transform: uppercase;
    color: white;
    font-size: 45px;
    text-align: center;
    text-shadow: 0px 0px 4px #ffffff;
    position: absolute;
    top: 0;
  }

  h2, h4 {
    text-transform: uppercase;
    color: white;
  }
  
  h2 {
    font-size: 23px;
    font-weight: 500;
    letter-spacing: -0.2px;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0px 0px 4px #ffffff;
  }
  
  h3{
    font-size: 17px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 5px;
    width: 100%;
    color: #fdfd47;
    background-color:rgba(0, 0, 0, 0.6);
    margin-bottom: 3px;
  }

  h3 label{
    font-weight: normal;
    text-transform: none;
    color: rgba(255,255,255,0.85);
  }

  div.menu{
    color: white;
    font-size: 18px;
    text-align: center;
    position: absolute;
    top: 95px;
    border-top: 1px solid rgba(255,255,255,0.6);
    padding-top: 5px;
  }

  div.menu span{
    margin: 0 5px;
  }

  div.menu span i{
    font-size: 7px;
    -moz-transform: translate(0px, -3px);
    -webkit-transform: translate(0px, -3px);
    -o-transform: translate(0px, -3px);
    -ms-transform: translate(0px, -3px);
    transform: translate(0px, -3px);
  }

  div.menu span{
    margin: 0 5px;
  }

  .card p, li {
    font-weight: 400;
    color: white;
    line-height: 22px;
    opacity: 0.75;
    text-align: center;
  }
  
  ul, li {
    text-decoration: none;
  }
  
  ul {
    padding-left: 20px;
  }
  
  svg {
    margin: 0px;
    min-width: 24px;
    min-height: 24px;
  }
  
  body {
    background-color: #dadce2;
    background-image: linear-gradient(140deg, white, #dadce2);
    margin: 0;
    width: 100vw;
    min-height: 450px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .cardContainer {
    position: relative;
    width: 300px;
    height: 400px;
    min-width: 300px;
    min-height: 400px;
    margin: 4px;
    -webkit-perspective: 1000px;
            perspective: 1000px;

    -moz-transform: translate(0px, 30px);
    -webkit-transform: translate(0px, 30px);
    -o-transform: translate(0px, 30px);
    -ms-transform: translate(0px, 30px);
    transform: translate(0px, 30px);
  }
  
  .active {
    -webkit-transform: translateZ(0px) rotateY(180deg) !important;
            transform: translateZ(0px) rotateY(180deg) !important;
  }
  .active:after {
    display: none;
  }
  
  .card {
    display: inline-block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    -moz-backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
    -webkit-transform: translateZ(-100px);
            transform: translateZ(-100px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);


  }
  .card:after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    box-shadow: 0 14px 50px -4px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1.4);
  }
  .card:hover {
    -webkit-transform: translateZ(0px);
            transform: translateZ(0px);
  }
  .card:hover:after {
    opacity: 1;
  }
  .card .side {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    
    background-color: #091217;
    border: 6px double rgba(255, 255, 255, 0.5);
    padding: 10px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
  }
  .card .front {
    z-index: 2;
    /*background-color: #091217;*/
    border: 6px double rgba(255, 255, 255, 0.5);
    padding: 10px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;

       }

.popo{
  background: #030d14; /* Old browsers */
  background:url("../img/bg-left.png") repeat-y left top, url("../img/bg-right.png") repeat-y right bottom, -moz-linear-gradient(top,  #030d14 0%, #2c5268 100%) !important; /* FF3.6+ */
  background:url("../img/bg-left.png") repeat-y left top, url("../img/bg-right.png") repeat-y right bottom, -webkit-gradient(linear, left top, left bottom, color-stop(0%,#030d14), color-stop(100%,#2c5268)) !important; /* Chrome,Safari4+ */
  background:url("../img/bg-left.png") repeat-y left top, url("../img/bg-right.png") repeat-y right bottom, -webkit-linear-gradient(top,  #030d14 0%,#2c5268 100%) !important; /* Chrome10+,Safari5.1+ */
  background:url("../img/bg-left.png") repeat-y left top, url("../img/bg-right.png") repeat-y right bottom, -o-linear-gradient(top,  #030d14 0%,#2c5268 100%) !important; /* Opera 11.10+ */
  background:url("../img/bg-left.png") repeat-y left top, url("../img/bg-right.png") repeat-y right bottom, -ms-linear-gradient(top,  #030d14 0%,#2c5268 100%) !important; /* IE10+ */
  background:url("../img/bg-left.png") repeat-y left top, url("../img/bg-right.png") repeat-y right bottom, linear-gradient(to bottom,  #030d14 0%,#2c5268 100%) !important; /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#030d14', endColorstr='#2c5268',GradientType=0 ) !important; /* IE6-9 */

}

  .card .back {
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
  }

  
  .card .info {
    padding: 12px;
  }

  .card .front .info {
    padding: 12px;
    background-color: rgba(0,0,0,0.45);
    height: 148px;
    border: 1px solid rgba(255,255,255,0.25);
  }
  
  .card .front .img {
    
    background:rgba(255,255,255,0.05); /* Old browsers */

    border-radius: 5px 5px 0 0;
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
  }

  
 
  .card  .front .img222 {
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#7db9e8+1,091217+100 */
background: #7db9e8; /* Old browsers */
background: -moz-radial-gradient(center, ellipse cover, #7db9e8 1%, #091217 100%); /* FF3.6-15 */
background: -webkit-radial-gradient(center, ellipse cover, #7db9e8 1%,#091217 100%); /* Chrome10-25,Safari5.1-6 */
background: radial-gradient(ellipse at center, #7db9e8 1%,#091217 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7db9e8', endColorstr='#091217',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
  }

  .card .front .img .logo{
    background-image: url("../img/blue.logo.png");
    background-position: 50% 25% !important;
    background-repeat: no-repeat;
    background-attachment: local;
    
    width: 100%;
    height: 250px;
  }

  .mainPic{
    border-radius: 28px 0 0 0;
    width: 100%;
    height: 200px;
    background-size: cover;
    border: 1px solid #FFC324;
    border-bottom-width: 5px;
  }

  .mainPic.img-wijnaldum { background-image: url("../img/bg-cards/wijnaldum.jpeg"); }
  .mainPic.img-fichaje { background-image: url("../img/bg-cards/fichaje.jpg"); }   
  .mainPic.img-revalorizacion { background-image: url("../img/bg-cards/revalorizacion.jpg"); }   
  .mainPic.img-energia { background-image: url("../img/bg-cards/energia.jpg"); }   
  .mainPic.img-moral { background-image: url("../img/bg-cards/moral.jpg"); }   
  .mainPic.img-ef { background-image: url("../img/bg-cards/ef.jpg"); }   
  .mainPic.img-crack-juvenil { background-image: url("../img/bg-cards/crack.juvenil.jpg"); }   
  .mainPic.img-nominas { background-image: url("../img/bg-cards/nominas.jpg"); }   

  .mainPic .mini-logo{
    background-image: url("../img/white.logo.png");
    background-position: 5px 5px !important;
    background-repeat: no-repeat;
    background-attachment: local;
    background-size: 50px 50px;
    width: 80px;
    height: 100px;
    margin: 0px;
    display: inline-block;
  }

  .mainPic .legend{
    float: right;
    color: black !important; /*rgba(255,255,255, 0.75);*/    
    border: 1px solid rgba(255,255,255,0.25);
    background-color: #FFC324 !important;
    border-top: none;
    border-right: none;
    padding: 3px 10px 3px;
    margin: 0;
    font-size: 12px;
    font-weight: bold;
  }

  .mainPic .img4 {
     background-image: url("../img/wijnaldum.jpeg");
    }
   
  .card .back {
    position: relative;
  }
  .card .back h2 {
    margin-top: 6px;
    margin-bottom: 18px;
  }

  h5{
    color: lightyellow;
    text-align: center;
    margin: -10px auto 10px;
    font-size: 13px;
    font-weight: normal;
    background-color: rgba(0,0,0,0.5);
    padding: 5px;
  }

  .card .back .reviews {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
  }
  .card .back .reviews p {
    color: #c4c4c4;
    font-weight: 300;
    margin: 1px 0 0 6px;
    transition: 0.3s ease-in-out;
  }
  .card .back .reviews:hover p {
    color: #555;
  }
  .card .back li {
    line-height: 22px;
    margin: 2px 0 6px 0;
  }
  .card .back .code {
    background-color: #FFC324;
    background-image: linear-gradient(-90deg, #FFB714, #FFE579);
    border-radius: 5px;
    float: left;
    width: 100%;
    padding: 2px;
    font-size: 19px;
    text-align: center;
    border: 1px solid white;
  }
 
  .card .back .code h4 {
    color: black;
  }
  
  .card .back .code i {
    position: absolute;
    right: 26px;
    color: black;
    font-size: 14px;
    cursor: pointer;
  }
  
  .info-card{
    font-size: 13px;
  }

  .info-card span{
    margin: 0 2px;
    white-space: nowrap;
    float: left;
    font-weight: bold;
    text-align: left;
  }    

  .info-card span:nth-child(even),
  .info-card span.right{
    text-align: right;
    float: right;
  }    

  .info-card span:nth-last-child{
    margin-left: 5px;
  }   
  
  .info-card span label{
    color: rgba(255,255,255,0.85);
    font-weight: normal;
  }  

  p.description{
    float: left;
    width: 100%;
    font-size: 11px;
    height: 53px;
    line-height: 15px;
    border: 3px double rgba(255,255,255,0.35);
    padding: 2px 5px 0;
    text-align: left;
    margin: 8px 0;
    overflow: hidden;
    opacity: 1;
    background-color:rgba(0,0,0,0.3);
    border-radius: 3px;
  }

  /* Dialog */
  .ui-dialog .ui-dialog-title {
    font-size: 1em;
  }
  
  .ui-dialog .ui-dialog-content ol {
    list-style-type: decimal;
    margin: 0 0 0 15px;
    padding: 10px;
   }
  

  .ui-dialog .ui-dialog-content,
  .ui-dialog .ui-dialog-content li {
    font-size: 0.9em !important;
    color: black !important;
  }

  .ui-dialog .ui-dialog-content li {
    text-align: left;
    font-size: 15px !important;
    color: black !important;
    font-weight: bold;
    line-height: 18px;
  }


  .ui-dialog .ui-dialog-content img{
    border: 2px solid rgba(0, 0, 0, 0.65);
    margin: 10px;
    display: inline-block;
    height: 200px;
  }

  .click-here{
    z-index: 99999;
}

.click-here i{
  margin-left: 5px;
  margin-right: 5px;
}

.inside-cover{
  position: absolute;
  color: white;
  transform: translateY(356px);
}

.inside-cover.envelope-title{
  -webkit-transform: translateY(160px) rotate(357deg);
  -moz-transform: translateY(160px) rotate(357deg);
  -ms-transform: translateY(160px) rotate(357deg);
  -o-transform: translateY(160px) rotate(357deg);
  transform: translateY(160px) rotate(357deg);

  font-size: 1.1em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.5);
  width: 460px;
  background-color: rgba(0,0,0,0.5);
  margin-left: -30px;
  text-align: center;
  z-index: 2;
}

.inside-cover.envelope-contains{
  right: 0;
  background-color: rgba(0,0,0,0.5);
  padding: 4px 10px;
  font-size: 1em;
  color: lightyellow;
  transform: translateY(390px);

  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

.inside-cover.envelope-stars{
  left: 0;
  background-color: rgba(0,0,0,0.5);
  padding: 4px 10px;
  font-size: 1em;
  color: lightyellow;
  transform: translateY(390px);

  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

.inside-cover.envelope-stars i.far{
  opacity: 0.5;
}

.card-stars{
  background-color: rgba(0,0,0,0.65);
  padding: 4px 10px;
  font-size: 10px;
  color: lightyellow;
  transform: translateY(69px);
  text-align: center;
}

/* Ayuda actualizada. La captura de la carta se conserva sin regenerarla y
   se muestra recortada exactamente mediante esta ventana. */
.uf-cards-help-dialog {
  max-width: 920px;
  font-family: 'PT Sans Narrow', Arial, sans-serif;
}

.uf-cards-help-dialog ol {
  margin: 0 0 18px;
  padding-left: 28px;
}

.uf-cards-help-dialog li {
  margin-bottom: 5px;
}

.uf-cards-help-media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.uf-cards-help-media figure {
  margin: 0;
  text-align: center;
}

.uf-cards-help-media figcaption {
  margin-top: 6px;
  color: #111;
  font-weight: 700;
}

.uf-cards-help-card-crop {
  width: 300px;
  height: 400px;
  overflow: hidden;
  border: 1px solid rgba(34, 106, 154, .9);
  border-radius: 10px;
  background: #0b1a23;
}

.ui-dialog .ui-dialog-content .uf-cards-help-card-crop img {
  display: block;
  width: 333px !important;
  max-width: none !important;
  height: 443px !important;
  margin: 0 !important;
  border: 0 !important;
  transform: translate(-17px, -18px);
}

.ui-dialog .ui-dialog-content .uf-cards-help-main img {
  display: block;
  width: 483px !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border: 1px solid rgba(34, 106, 154, .75) !important;
}
