
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;  /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  /*background-color: rgb(0,0,0); /* Fallback color */
  /*background-color: rgba(0,0,0,0.4); /* Black w/ opacity */


  
  margin: 10px auto;
  padding: 10px 20px;
  background: #f4f7f8;
  border-radius: 8px;

}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

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


       /* Modal Header */
.modal-header {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

/* Modal Body */
    .modal-body {padding: 2px 16px;}

    /* Modal Footer */
    .modal-footer {
      padding: 2px 16px;
      background-color: #5cb85c;
      color: white;
    }

    /* Modal Content */
    .modal-content {
      position: relative;
      background-color: #fefefe;
      margin: auto;
      padding: 0;
      border: 1px solid #888;
      width: 80%;
      box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
      animation-name: animatetop;
      animation-duration: 0.4s
    }

    /* Add Animation */
    @keyframes animatetop {
      from {top: -300px; opacity: 0}
      to {top: 0; opacity: 1}
    }


      a.my-button{
      background: linear-gradient(to right,#19ca3f ,#33e060);
      background-color: #19ca3f;
      color: #fff;
      font-family: Trebuchet MS;
      font-size: 18px;
      font-weight: 800;
      font-style: normal;
      text-decoration: none;
      padding: 14px 15px;
      border: 0px solid #000;
      border-radius: 10px;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      }
      a.my-button span{
      margin-right: 15px;
      display: block;
      width: 29px;
      height: 29px;
      transform: rotate(0deg);
      }
      a.my-button:hover{
      background: linear-gradient(to right,#54d064 ,#5ee37a);
      background-color: #54d064;
      }
      a.my-button:active{
      transform: scale(0.95);
      }

      
      .video{
        width: 80%;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
      }

      .canvas-wrap{
        display: none;
        width: 100%;
        height: auto;
        
      }

      .canvasModal{
        width: 80%;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
      }

      .canvasForm{
        width: 80%;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;


      }
      img {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: auto;
        height: auto;
      }
/*

      img {
        width: 50%;
        height: auto%;

      }
*/
      .photo{
       object-fit: contain;  
      
        

      }



      @media screen and (min-width: 480px) {
          .modal{
            max-width: 480px;
          }
      }


    .modal-ventana {
      position: fixed;
      background-color: rgba(255, 255, 255, 0.25);
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 999;
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s;
    }
    .modal-ventana:target {
      visibility: visible;
      opacity: 2;
      pointer-events: auto;
    }
    .modal-ventana > div {
      width: 400px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      padding: 2em;
      background: white;
    }
    .modal-ventana header {
      font-weight: bold;
    }
    .modal-ventana h1 {
      font-size: 150%;
      margin: 0 0 15px;
    }

    .modal-close-ventana {
      color: #aaa;
      line-height: 50px;
      font-size: 80%;
      position: absolute;
      right: 0;
      text-align: center;
      top: 0;
      width: 70px;
      text-decoration: none;
    }
    .modal-close-ventana:hover {
      color: black;
    }

    .ocultar {
      visibility: hidden;   
    }

    .modal-ventana > div {
      border-radius: 1rem;
    }

    .modal-ventana div:not(:last-of-type) {
      margin-bottom: 15px;
    }

    small {
      color: lightgray;
    }




    .camara span{
      background-image: url("/assets/images/cam50.png");
     }

    .cambio span{
      background-image: url("/assets/images/sincronizar.png");
     }

     .okFoto span{
      background-image: url("/assets/images/ok.png");
     }  


    a.mi-camara{
      background: linear-gradient(to right,#19ca3f ,#44cb2a);
      background-color: #19ca3f;
      color: #fff;
      font-family: Trebuchet MS;
      font-size: 8px;
      font-weight: 800;
      font-style: normal;
      text-decoration: none;
      padding: 1px 5px;
      border: 0px solid #000;
      border-radius: 9px;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      flex-flow: column;
     }
     a.mi-camara span{
      margin-bottom:0px;
      display: block;
      width: 38px;
      height: 38px;
      background-repeat: no-repeat;
      background-size: contain;
      transform: rotate(0deg);
     }
     a.mi-camara:hover{
      background: linear-gradient(to right,#54d064 ,#67d15a);
      background-color: #54d064;
     }
     a.mi-camara:active{
      transform: scale(0.95);
     }


     #BotonesModal{  
      display: flex;
      align-items: center;
      justify-content: center;
      
      }

      .contenedor {
        display: grid;
        place-items: center;
        padding: 3px 5px 3px 5px;
       
      }
     




      div.polaroid {
        width: auto;
        background-color: white;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        margin-bottom: 25px;
        display: flex;
        justify-content: center;
        position: relative;
      }
      



 .buttonForm{
 background: linear-gradient(to right,#2dca19 ,#4a9f1d);
 background-color: #2dca19;
 color: #fff;
 font-family: Trebuchet MS;
 font-size: 18px;
 font-weight: 800;
 font-style: normal;
 text-decoration: none;
 padding: 4px 16px;
 border: 0px solid #000;
 border-radius: 10px;
 display: inline-block;
}
.buttonForm:hover{
 background: linear-gradient(to right,#5bd054 ,#6bab55);
 background-color: #5bd054;
}
.buttonForm:active{
 transform: scale(0.95);
}