body,html{
/*    height: 100%; */
    width: 100%;
    margin: 0;
}

/* LOGIN */
.main-container{

    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(130deg, rgba(44,182,205,1) 0%, rgba(1,55,78,1) 100%);
    background-size: 200% 200%;
    animation: background 6s ease infinite;
}

/* login animation */
  @keyframes background { 
    0% {
      background-position: 0% 50%;
    }
    
    50% {
      background-position: 100% 50%;
    }
    
    100% {
      background-position: 0% 50%;
    }
  }

.main-container > .login{

    background-color: white;
    padding: 1%;

    -webkit-box-shadow: 0px 0px 19px 0px rgba(0,0,0,0.57);
    -moz-box-shadow: 0px 0px 19px 0px rgba(0,0,0,0.57);
    box-shadow: 0px 0px 19px 0px rgba(0,0,0,0.57);
    
    border-radius: 10px 10px 10px 10px;
    -moz-border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;
    border: 0px solid #000000;

    height: auto;
    width: 100%;
    max-width: 400px;
    min-width: 300px;
}

.loginlogo{
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  text-align: center;
}

/* NAV BAR */
.nav-logout-bnt {
  color: #FFFFFF;
  font-weight: 400;
}
.bg-nav{
  background-color: hsla(0, 0%, 10%, 0.725);
  color: #FFFFFF;
  font-weight: 400;
}

.navbar-brand{
  color: #FFFFFF !important;
}

/* Dashboard */

.add-button{
  margin: 10px;
  text-align: center;
}

.banner {
    margin: 10px;
    background-color:#01374e; /* #2cb6cd - #01374e */
    border-radius: 10px;
   /* background: linear-gradient(180deg, #2cb6cd, #01374e) 50.0%; */
    color: #ffffff;
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo {
    position: absolute;
    left: 20px;
}

.logo img {
    width: 170px;
}

.title {
    flex-grow: 1;
}

#resultTabled {
  width: 100%;
  border-collapse: collapse;
}

#resultTabled th, #resultTabled td {
  border: 1px solid #ddd;
  padding: 8px;
}

#resultTabled th {
  background-color: #f2f2f2;
  text-align: center;
}

.btn-accent {
  background-color: #007bff;
  color: white;
  border: none;
}

.btn-accent:hover {
  background-color: #0058b6;
  color: white;
}


/* HOME */
.search-section {
    margin: 20px;
    text-align: left;
}

.search-section input :hover {
  border: #52387a;
}

.main-content {
    padding: 10px;
}

#resultTable {
    width: 100%;
    border-collapse: collapse;
}

#resultTable th, #resultTable td {
    border: 1px solid #ddd;
    padding: 8px;
}

#resultTable th {
    background-color: #f2f2f2;
    text-align: center;
}

/* MODAL VENTANA CON LOS DATOS */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content-in{
  display: flex;
}

.carfrente{
  
  width: 504px;
  height: 262px;
  background-image: url("../img/carnet_bg.jpg");
  background-size: contain;
  background-repeat: no-repeat;

}

#cardFront{
  width: 124px;
}

.card-container {
  width: 500px; /* Ajusta el tamaño según sea necesario */
  height: 260px; /* Ajusta el tamaño según sea necesario */
  background-image: url('../img/carnet_bg.jpg');
  background-size: cover;
  position: relative;
  overflow: hidden;
}
.content {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.name {
  position: absolute;
  top: 113px; /* Ajusta según sea necesario */
  left: 50px; /* Ajusta según sea necesario */
  font-size: 18px; /* Ajusta el tamaño según sea necesario */
  color: black; /* Ajusta el color según sea necesario */
}
.dni {
  position: absolute;
  top: 140px; /* Ajusta según sea necesario */
  left: 50px; /* Ajusta según sea necesario */
  font-size: 16px; /* Ajusta el tamaño según sea necesario */
  color: black; /* Ajusta el color según sea necesario */
}

.mp{
  position: absolute;
  top: 160px; /* Ajusta según sea necesario */
  left: 50px; /* Ajusta según sea necesario */
  font-size: 16px; /* Ajusta el tamaño según sea necesario */
  color: black; /* Ajusta el color según sea necesario */
}
.photo {
  position: absolute;
  top: 40px; /* Ajusta según sea necesario */
  right: 93px; /* Ajusta según sea necesario */
  width: 80px; /* Ajusta el tamaño según sea necesario */
  height: 100px; /* Ajusta el tamaño según sea necesario */
  background-color: white; /* Ajusta el color según sea necesario */
}

/* QR */
.cardqr{
  margin: 5%;
  padding: 30px;
  text-align: center;
  width: 500px;
 /* background-color: #52387a; */
 background-color: #FFFFFF;
 border-radius: 15px;
}
.qrimg{
  width: 300px;
}

/*  Footer  */
.footer {
    background-color: #01374e;
    text-align: center;
    padding: 10px 0;
    color: #FFFFFF;
    width: 100%;
}

/* 404 */

.bg404{
    background: linear-gradient(180deg, #2cb6cd, #01374e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-fluid {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .container-fluid h1 {
    font-size: 10rem;
    font-weight: 700;
  }
  
  .lead {
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  .btn-404 {
    background-color: #fa4c95;
    color: white;
    border: none;
  }
  
  .btn-404:hover {
    background-color: #ff79b0;
    color: white;
  }

  /* ADD SECCTION*/
  .add-section{
    padding: 5%;
    padding-top: 50px;
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, #2cb6cd, #01374e);
  }
  .add-section .container{
    padding: 20px;
    border-radius: 10px;
    background-color: #FFFFFF;

    -webkit-box-shadow: 0px 0px 19px 0px rgba(0,0,0,0.57);
    -moz-box-shadow: 0px 0px 19px 0px rgba(0,0,0,0.57);
    box-shadow: 0px 0px 19px 0px rgba(0,0,0,0.57);
    
    border-radius: 10px 10px 10px 10px;
    -moz-border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;
    border: 0px solid #000000;
  }

  .add-section .container form{
    padding-top: 30px ;
  }

  .add-banner{
    border-radius: 10px;
    /*background-image: linear-gradient(169deg,  #2cb6cd, #01374e 100.0%);*/
    background-color: #2cb6cd;
   
    color: #FFFFFF;
    font-weight: 400;
    padding: 20px;
    text-align: center;
  }

/* PAGINADOR */

.pagination {
  margin: 20px 0;
  text-align: center;
}

.pagination a {
  margin: 0 5px;
  padding: 8px 16px;
  text-decoration: none;
  color: #007bff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.pagination a.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.pagination a:hover {
  background-color: #ddd;
}

/* VER DATOS */
.card-custom {
  width: 350px;
  /* background-image: url('../img/carnet_bg.jpg');*/
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
  background-color: #FFFFFF;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  color: #333;
  position: relative;
}
.profile-section {
  /*display: flex;*/
  align-items: center;
}
.personal-info p {
  margin: 0px !important;
}
.personal-info h5{
  max-width: 320px;
}
.profile-pic {
  width: 130px;
  height: 130px;

  object-fit: cover;
  margin-right: 15px;
}

.logo-container {
  /*
  display: flex;
  justify-content: 
  flex-grow: 1; /* Hace que el logo ocupe el espacio disponible */
  text-align: center;
}

.ver-datos-logo{
  width: 200px;
}
.personal-info {
  flex-grow: 1;
  margin-top: 60px;
}
.qr-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.qr-code img {
  width: 120px;
}
.description-text {
  flex-grow: 1;
  margin-left: 10px;
  font-size: 0.75rem;
  line-height: 1rem;
}
/* Espacio para firmas y link, ocupando espacio pero sin contenido */
.signature-space {
  height: 100px;
  margin-top: 20px;
}

.ver-section{
  padding-top: 0px;
  background: linear-gradient(180deg, #2cb6cd, #01374e);
}

.ver-section-qr{
  margin: 10px;
  height: 100vh;
}


@media (max-width: 768px) {
  
  .banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo {
    position: static;
    margin-bottom: 10px;
  }

  .logo img {
      width: 200px;
  }

  .title {
      flex-grow: 0;
  }

  .qr img {
    width: 50%;
  }
  .cardqr {
    width: auto !important;
  }
  .main-container > .login{
    padding: 2% !important;
    margin: 2% !important;
  }
}