*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "Nunito", sans-serif;
    /* background-color: rgb(217, 226, 236); */
    position: relative;
    height: 100vh;  
    /* padding-top: 180px; */
    padding-top: 25vh;
}

body::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url("../imagenes/imagen-index/fondo.jpg"); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: -1;
}

.acceso{
    color: rgb(202, 202, 202);
    text-decoration: none;
    position: absolute;
    display: block;
    top: 5%;
    left: 10%;
    border: 1px solid rgb(202, 202, 202);
    padding: 10px 30px;
    border-radius: 8px;
    z-index: 2;
}

.acceso:hover{
    color: #000;
    background-color: #cfcfcf;
}

.logos-index{
    position: absolute;
    left: 0;
    right: 0;
    top: 40px;
    text-align: center;    
}

.logos-index img{
    width: 120px;
}

.logos-index img:nth-child(2){
    width: 130px;
}

.logos-index img:nth-child(4){
    width: 110px;
}

h1{
    text-align: center;
    padding: 28px;
    font-size: 30px;
    color: rgb(243, 243, 243);
}

#fecha{
    text-align: center;
    color: rgb(255, 255, 255);
    font-weight: bold;
    background-color: rgb(56, 56, 56);
    width: max-content;
    margin: 0 auto;
    padding: 10px 20px;
    border-radius: 10px;
}

.container{
    width: 600px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    padding: 20px;  
    margin: 0 auto;    
    border-radius: 20px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.26);
}



.dni{
    text-align: center;
    font-weight: 600;
    font-size: 25px;    
    color: #fff;
    margin-top: 30px;
    margin-bottom: 25px;
}

#txtdni{
    background-color: rgb(56, 56, 56);
    border-radius: 8px;
    padding: 18px;
    margin: 0 auto;
    margin-bottom: 40px;
    width: 95%;
    display: block;  
    color: #fff;
    font-weight: bold;  
    font-size: 18px;
}

#txtdni::placeholder{
    color: #c2c2c2
}

input{
    width: 100%;
    padding: 30px;
    outline: none;
    border: none;
}

.botones{
    margin-top: 20px;
    display: flex;
    gap: 15px;
    width: 95%;
    margin: 0 auto;
    margin-bottom: 15px;
}

.entrada{
    background-color:  rgb(8, 194, 17);
    width: 100%;
    padding: 23px 25px;
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 7px;
    cursor: pointer;
}

.entrada:hover{
    background-color:  rgb(18, 226, 29);
}

.salida{
    background-color:  rgb(241, 13, 13);
    width: 100%;
    padding: 23px 25px;
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 7px;
    cursor: pointer;
}

.salida:hover{
    background-color:  rgb(255, 34, 34);
}

@media(max-width: 1300px){
    body{
        padding-top: 20vh;
    }
}

@media(max-width: 1025px){    
    body{
        padding-top: 20vh;
    }

    .container{
        width: 500px;
    }

    h1{
        font-size: 25px;  
    }

    #fecha{
        font-size: 1.3em;
    }

    .dni{
        font-size: 22px;
    }

    #txtdni{
        padding: 15px;
    }

    .entrada, .salida{
        padding: 20px 22px;
    }

    .logos-index {
        top: 30px;
    }

    .logos-index img{
        width: 100px;
    }
    .logos-index img:nth-child(2){
        width: 120px;
    }
    
    .logos-index img:nth-child(4){
        width: 100px;
    }

    .acceso{
        color: #000;
        background-color: #cfcfcf;
    }
    
    .acceso:hover{
        /* color: rgb(255, 255, 255); */
        border: 1px solid rgb(255, 255, 255);
        background-color: #e7e7e7;
    }

}

@media(max-width: 770px){
    .logos-index img{
        width: 80px;
    }
    .logos-index img:nth-child(2){
        width: 90px;
    }
    
    .logos-index img:nth-child(4){
        width: 70px;
    }
}

@media(max-width: 600px){
    /* body{
        padding-top: 15vh;
    } */
    .container{
        width: 90%;
    }

    h1{
        font-size: 23px;  
    }
    
    #fecha{
        font-size: 1.1em;
    }

    #txtdni{
        padding: 13px;
    }

    .entrada, .salida{
        padding: 18px 20px;
    }

}