/* Estilos para la página index.php */
.formulario-principal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 65vw;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(76, 164, 82, 0.7);
    padding: 20px;
    justify-self: center;
    margin-top: 50px;
}

.formulario-principal>h3 {
    grid-column: 1/3;
    text-align: center;
    margin-bottom: 25px;
    padding: 5px;
}
.formulario-principal>label {
    grid-column: 1;
    margin-left: 100px;

}

.formulario-principal>input,select {
    grid-column: 2;
}

.formulario-principal>input,select {
    margin-left: 135px;
    width: 50%;
}

.formulario-principal>button {
    margin-top: 30px;
    width: 50%;
    justify-self : center;

}


p.error {
    color: red;
    font-size: 12px;
    font-weight: bold;
    grid-column: 2;
    margin-left: 120px;
}

/* Estilos para la página de resultados */
.padre-resultados{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    margin-top: 50px;
    height: auto;

}

.contenedor-resultados{
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(76, 164, 82, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.contenedor-resultados>h1{
    text-align: center;
    margin-bottom: 30px;
}   

.contenedor-resultados>p{
    text-align: center;
    margin: 20px;
}

.contenedor-resultados>a{
    margin-top: 20px;
    margin-bottom: 20px;

    width: 50%;
    text-align: center; 
    display: flex;
    justify-content: center; 
}

/* Estilos para los emojis azules */
.emoji{
    width: 40px;
}

/* Estilos para las páginas de los CRUD */
table {
    justify-self: center;
    width: 70%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #f9f9f6;
}

th {
    background-color: #4CA452;
    color: white!important;
    font-weight: bold;
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

td {
    padding: 10px;
    border: 1px solid #ddd;
}
td img{
    width: 100px;
    height: 100px;
    border-radius: 8px;
}

tr:nth-child(even) {
    background-color: #e8f5e9;
    /* Verde claro */
}

tr:nth-child(odd) {
    background-color: #f1f8e9;
}

td,
th {
    font-size: 16px;
    color: #333;
}

td[colspan] {
    text-align: center;
    background-color: #c8e6c9;
    font-style: italic;
}


/* Estilos para la pagina autor */
.contenedor-autor {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    margin: 0;
    margin-top: 50px;
}

.contenedor-autor>h1,h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* Estilos para las paginas de los cruds */
/*Estilos para nuEvasActividaes.php */
.formulario-na-padre{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.formulario-na{
    width: 100%;
    max-width: 500px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.formulario-na button{
    margin:20px;
    width:100px;
    align-self:center;
}
