@import url('https://fonts.googleapis.com/css?family=Open+Sans');

body {
    background-color: #0d1216;
    color: white;
    font-family: "Open Sans", sans-serif;
    height: 100vh; 
    margin: 0;
    padding: 0;
}

/* Imagen centrada en ambos ejes */
.image {
    z-index: 1;
    /* Asegura que la imagen esté encima del fondo */
    width: 60%;
    /* Ajusta el tamaño de la imagen */
    border-radius: 15px;
    /* Esquinas redondeadas */
    object-fit: cover;
}

.contenedor {
    background-image: linear-gradient(90deg, #000000, #737373);
    width: 500px;/* Ajusta el ancho a tus necesidades */
    height: auto;/* Ajusta el alto a tus necesidades */
    margin: 0 auto;
    justify-content: center;/* Centra horizontalmente */
    position: relative;
    text-align: center;
    overflow: hidden; /* Para asegurarte de que el contenido no se salga */
}

.cabeza {
    top: 0;
    height: 25%;
    width: 100%;
    padding: 25px;
}

.blanco {
    background-image: url(img/fondo_xquadrone.jpeg);
    text-align: center;
    width: 100%;
    background-size: cover;
}

hr {
    background-color: #4A96BA;
    height: 8px;
    width: 100px;
    border: 0;
    margin: 20px auto;
}

.imagen {
    text-align: center;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25%;
}

.form-group {
    display: block;
    margin: 20px 10px; /* Espacio entre este campo y el siguiente */ 
    box-sizing: border-box;
}

label {
    padding-left: 10px;
    font-weight: bold;
    margin-bottom: .5rem;
    margin-left: 70px;
    float: left;
}

.inputName {
    width: 70%;
    padding: 15px;
    margin-bottom: 5px;
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
    border: none;
    border-radius: 50px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.inputName:focus {
    outline: none;
}

.fondo-imagen {
    background-image: url(img/PINTURA.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 1px;
}

.radio-group {
    display: inline-block; /* Alinea los elementos verticalmente */
}

input[type="radio"] {
    -ms-transform: scale(1.5); /* IE 9 */
    -webkit-transform: scale(1.5); /* Chrome, Safari, Opera */
    transform: scale(1.5);
    border-radius: 50%;
    border: 2px solid #999;
    transition: 0.2s all linear;
}

input[type="checkbox"] {
    -ms-transform: scale(1.5); /* IE 9 */
    -webkit-transform: scale(1.5); /* Chrome, Safari, Opera */
    transform: scale(1.5);
    border-radius: 50%;
    border: 2px solid #999;
    transition: 0.2s all linear;
}

input[readonly] {
    background-color: transparent; /* Cambia el color de fondo si lo deseas */
    border: none !important;
    cursor: not-allowed; /* Cambia el cursor a "no permitido" */
}

textarea {
    font-family: "Open Sans", sans-serif;
    resize: none;
    overflow: hidden;
}

.firma-contenedor {
    background-color: #7EB0C5;
    font-weight: 700;
    height: auto;
    width: 80%;
    border-radius: 15px;
    object-fit: cover;
    margin: 0 auto;
    font-size: smaller;
}

#firma.firma-contenedor.error {
    border: 2px solid red;
}

.texto {
    padding: 5px;
}

.signature-container {
    text-align: center;
    margin-top: 20px;
}

#signature-pad {
    cursor: crosshair;
    border-bottom: 4px solid white;
}

#clear-btn {
    background: none;
    border: none;
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 15px;
    cursor: pointer;
    font-weight: 700;
    color: white;
    font-family: "Open Sans", sans-serif;
}

.btnEnviar {
    background-color: #7ed957;
    width: 70px;
    height: 70px;
    border: none;
    border-radius: 10px;
    margin-bottom: 10%;
    cursor: pointer;
}

.btnEnviar img {
    margin: 0 auto;
    width: 40px;
    height: 40px;
}

.swal2-confirm {
    background-color: #7ed957;
    border: 2px solid #7ed957;
    outline: none !important;
}

.pie {
    background-color: #737373;
    padding: 30px;
}

/* The Modal (background) */
.modal {
    display: none; /* o 'none' si deseas que esté oculto inicialmente */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-height: 100vh;
    overflow: auto; /* Permite scroll si el contenido es más grande */
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
}

  /* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid white;
    width: 80%;
    color: #000;
}

.modal-content img {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    padding: 10px 10px;
}

.img-alert {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    padding: 10px 10px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1;
}

  /* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.inputName.error {
    border: 2px solid red;
}

#radioGroup.error {
    font-weight: 700; 
    margin-block-end: 0; 
    font-size: smaller;
    color: red;
    margin-right: 25%;
}

.my-image {
    display: block;
    margin-top: 1rem;
    width: 100%;
}

@media screen and (max-width: 600px) {
    .fondo-imagen {
        background-size: contain; /* Cambia la imagen a 'contain' para hacerla más pequeña en móviles */
        font-size: 12px;
        padding: 10px; /* Disminuye el padding en móviles */
    }
}

