* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding-top: 20px;
}

.container {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: space-between;
    width: 90%; 
    max-width: 650px; 
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin: 20px; 
}

.registro-asistencia {
    width: 65%;
    margin-bottom: 15px;
}

h1 {
    text-align: center;
    padding: 15px;
    color: #333;
    margin-bottom: 10px;
    width: 100%;
    font-size: 1.8 rem; 
    font-weight: 600;
}

#fecha {
    color: #333;
    width: 100%;
    font-size: 1.5rem; 
    font-weight: bold;
    margin-bottom: 10px;
} 


.codigoEmpleado, .contador-registro , .cod_legal p {
    font-size: 1rem; 
    color: #606060; 
    margin: 10px 0; 
}

input[type="text"] {
    width: 80%; 
    padding: 15px; 
    font-size: 20px;
    border: 2px solid #000000;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #000;
    outline: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}


.img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img img {
    max-width: 80%; 
    height: auto;
    margin-bottom: 20px; 
}

.botones {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

button {
    padding: 10px; 
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px; 
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    background-color: #2add60; /* Color verde */
    margin: 10px;
    color: white;
}

.registro-asistencia #entrada {
    background-color: #2add60; /* Color verde */
}

.registro-asistencia #salida {
    background-color: #dd2a2a; /* Color rojo */
}


.boton-ingreso {
    margin-left: auto; 
}

#popup-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 999; 
}

#popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}


@media only screen and (max-width: 600px) {
    .container {
        width: 90%; 
    }
    
    h1 {
        font-size: 24px;
    }

    #fecha {
        font-size: 18px;
    }

    .codigoEmpleado {
        font-size: 14px;
    }

    input[type="text"] {
        width: 80%; 
        padding: 12px; 
        font-size: 18px; 
        margin-bottom: 15px;
    }   

    button {
        padding: 10px;
        font-size: 14px;
    }

    .img img {
        max-width: 80%; 
    }
}