﻿
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: rgba(0,0,0,0.0);
}

div {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #C0C0C0;
    padding: 7px 0px;
}

li {
    margin: 5px 0px;
}

.container {
    text-align: center;
    border-bottom: 0px solid #C0C0C0;
}

.container2 {
    display: none;
    border-bottom: 0px solid #C0C0C0;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
}

.dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialog-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
}

.hidden {
    display: none;
}

/* Estilos generales para el modal */
.modal {
    visibility: hidden; /* Inicialmente oculto */
    opacity: 0; /* Totalmente transparente */
    position: fixed; /* Posición fija */
    z-index: 9999; /* Asegura que esté por encima de otros elementos */
    left: 0;
    top: 0;
    width: 100%; /* Cubre toda la ventana */
    height: 100%; /* Cubre toda la ventana */
    background-color: rgba(0, 0, 0, 0.5); /* Fondo opaco con transparencia */

    display: flex; /* Flexbox para centrar */
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
    transition: visibility 0s, opacity 0.3s ease-in-out; /* Animación */
}

    /* Mostramos el modal */
    .modal.show {
        visibility: visible; /* Hacemos visible el modal */
        opacity: 1; /* Opacidad al 100% */
    }

/* Contenido del modal */
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width:146px;
}

/* Spinner */
.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Texto cargando */
.modal-content p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

