body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header {
    background-color: #FFFFFFE0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 70px;
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    height: 90px;
    z-index: 1000;
    box-sizing: border-box;
}

header img {
    height: 85px;
}

footer {
    background-color: #FFFFFFE0;
    color: white;
    text-align: center;
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1000;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer img {
    height: 75px;
}

footer a {
    display: contents;
    padding: 0;
    margin: 0;
}

.contenido2 {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th,
td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

th {
    background-color: #338a35;
    color: white;
    font-size: 21px;
}

td {
    font-size: 18px;
    text-transform: uppercase;
}

tr {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.nombre {
    width: 45%;
}

.fecha,
.hora, .codsubagencia {
    width: 15%;
}

.lugar {
    width: 25%;
}

h1 {
    margin: 20px 0;
    font-size: 35px;
    color: white;
}

input[type="text"],
button,
input[type="date"] {
    font-size: 22px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

input[type="text"],
input[type="date"] {
    margin-right: 10px;
    width: 500px;
}

button {
    background-color: #357C32;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #2b552a;
}

.video-background {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    overflow: hidden;
}

label {
    color: white;
    font-size: 22px;
}

#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 1.5rem;
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 12px solid #e0e0e0;
    border-top: 12px solid #007bff;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    margin-right: 20px;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loadingOverlay p {
    margin: 0;
    font-size: 2rem !important;
    color: #333;
}

.msgFlotante {
    background-color: white;
    color: #3E913C;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 680px;
}

.contenido {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    align-items: center;
    position: fixed;
    top: 100px;
    bottom: 80px;
    left: 0;
    right: 0;
    overflow-y: auto;
    box-sizing: border-box;
}

.rectangulo{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    background-color: #ffffff54;
    width: 100%;
    border-radius: 30px;
    padding: 35px;
    margin-top: 30px;
}

/* Media Queries para pantallas más pequeñas */
@media (max-width: 992px) {

    input[type="text"],
    input[type="date"] {
        width: 80%;
    }

    h1 {
        font-size: 28px;
    }

    .msgFlotante {
        font-size: 18px;
    }
}

@media (max-width: 768px) {

    input[type="text"],
    input[type="date"] {
        width: 100%;
        margin-right: 0;
    }

    h1 {
        font-size: 24px;
    }

    .msgFlotante {
        font-size: 16px;
    }

    .contenido, .rectangulo {
        padding: 15px;
    }
    
    


}

@media (max-width: 576px) {
    h1 {
        font-size: 30px;
    }

    .msgFlotante {
        font-size: 20px;
    }

    .contenido {
        max-width: 100vw;
        padding: 20px;
    }

    input[type="text"],
    input[type="date"] {
        margin-right: 10px;
        width: 330px;
    }

    label {
        font-size: 20px;
    }

    input[type="text"],
    button,
    input[type="date"] {
        font-size: 20px;
    }

    button {
        margin-top: 10px;
    }

    .back-button::before {
        display: none;
    }

    th {
        font-size: 19px;
    }

    td {
        font-size: 15px;
    }

    th,
    td {
        padding: 5px;
    }
    
    .rectangulo{
        padding: 20px;
    }
    
}