body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*min-height: 100vh;
    min-width: 100vw;
    max-height: 100vh;
    max-width: 100vw;*/
}

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;
}

h1 {
    margin: 0;
    font-size: 35px;
    color: white;
}

/*form {
    margin-bottom: 20px;
}*/

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: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 1003;
    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;
    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: 94%;
    border-radius: 50px;
    padding: 10px 0;
    margin-bottom: 30px;
}

table {
    width: 94%;
    margin: 20px 0;
    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;
}

tr {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.nombre {
    width: 45%;
}

.fecha {
    width: 20%;
}

.lugar {
    position: relative;
    width: 35%;
}

h2 {
    color: white;
    font-size: 40px;
    margin-top: 15px;
    margin-bottom: 20px;
    text-align: center;
}

#busqueda{
    text-shadow: 2px 2px 3px #000000ab;
    font-weight: 800;
}

.back-button {
    position: absolute;
    top: 30px;
    left: 2%;
    background-color: #357C32;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 18px;
    z-index: 1002;
}

.back-button:hover {
    background-color: #2b552a;
}

.back-button::before {
    content: "←";
    margin-right: 10px;
    font-size: 24px;
}

.pagination {
    margin: 12px 0 20px 0;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 16px;
    text-decoration: none;
    color: #007bff;
    background-color: #f1f1f1;
    border-radius: 5px;
    font-size: 20px;
}

.pagination a.active {
    background-color: #338a35;
    color: white;
}

.pagination a:hover {
    background-color: #357C32;
    color: white;
}

.pagination span {
    margin: 0 5px;
    padding: 8px 16px;
    color: #007bff;
    background-color: #f1f1f1;
    border-radius: 5px;
    cursor: default;
    font-size: 20px;
}

.hidden {
    display: none;
}

.lugarMn{
    position: relative;
    width: 35%;
    cursor: pointer;
}

/* Contenedor para posicionar las ondas */
.icon-container {
    position: absolute; /* Contenedor que fija la posición */
    display: inline-block;
    right: 10px;
    top: 0;
    width: 60px;
    height: 60px;
}

/* Ícono con salto */
.icon {
    font-size: 27px; 
    cursor: pointer;
    color: #B7167E;
    animation: bounce 3s infinite;
    transition: transform 0.3s ease;
}

/* Ondas independientes */
.icon-container::after {
    content: "";
    position: absolute;
    bottom: 0; /* Posición fija en la base del contenedor */
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(183, 22, 126, 0.5);
    opacity: 0;
    animation: ripple 3s infinite ease-out;
    animation-delay: 1.5s; /* Comienza justo cuando toca el suelo */
}

/* Keyframes para el salto */
@keyframes bounce {
    0%, 100% {
        transform: translateY(20%);
    }
    50% {
        transform: translateY(80%);
    }
}

/* Keyframes para las ondas */
@keyframes ripple {
    0% {
        transform: translateX(-50%) scale(0.2);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(1.7);
        opacity: 0;
    }
}

/* Estilos para el pop-up */
#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    padding: 20px;
    background: white;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    z-index: 1005;
}

/* Fondo oscuro detrás del pop-up */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1004;
}

/* Cerrar botón */
#popup img {
    width: 100%;
    height: auto;
    display: block;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 35px;
    color: black;
    cursor: pointer;
}

/* 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 {
        padding: 15px;
    }

}

@media (max-width: 576px) {
    h1, h2 {
        font-size: 30px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .msgFlotante {
        font-size: 20px;
    }

    .contenido {
        padding: 5px;
    }

    button {
        margin-top: 10px;
    }

    .back-button::before {
        display: none;
    }

    table {
        width: 95%;
    }

    th {
        font-size: 18px;
    }

    .pagination a,
    .pagination span {
        font-size: 19px;
        margin: 0 4px;
        padding: 4px 8px;
    }

    td {
        font-size: 14px;
    }

    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;
    }
    
    .rectangulo {
        padding: 0 10px;
        width: 97%;
    }
    
    .icon, .icon-container{
        display: none !important;
    }
}