*{
    font-family: "Google Sans", sans-serif;
}

html{
    margin: 0px;
    width: 1520px;
}

body{

    background-image: url('./fondo.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
}

h1{
    text-align: center;
    font-size: 5em;
    margin: 40px;
}

hr{
    width: 1300px;
    border: solid rgb(224, 186, 255) 3px;
    margin-bottom: 60px;
}

table caption {
  caption-side: bottom;
  padding-top: 8px;
}

table{

    width: 50%;
    margin: 0% 25%;

    border-radius: 10px;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
    border-collapse: collapse;
    overflow: hidden;
    background-color: white;
    font-size: 1.5em;
}

th, td{
    padding: 15px;
}

th{
    text-align: center;
    background-color: rgb(142, 46, 221);
    color: white;
}

td{
    font-size: 0.7em;
}

span{
    width: 20px;
    height: 20px;
}

footer{
    margin: 50px 0px;
    width: 100%;
    display: grid;
    grid-auto-flow: column;
    justify-content: space-evenly;
}

footer div, .volver{
    width: 80px;
    height: 40px;
    border-radius: 5px;
    text-align: center;
    align-content: center;
}

footer a,footer a:visited, footer a:active, footer a:hover{
    color: white;
    text-decoration: none;
}

.volver{
    background-color: rgb(169, 63, 241);
}

#anadir{
    background-color: rgb(169, 63, 241);
}

#modificar{
    background-color: rgb(123, 36, 198);
}

#eliminar{
    background-color: rgb(85, 21, 128);
}

.control{
    color: white;
    background-color: rgb(82, 82, 82);
    border-radius: 5px;
    padding: 5px;
    text-decoration: none;
    margin: 0px 5px;
}

form{
    width: 500px;
    margin: 0px 490px; /* 1520 - 500 - 20 - 20 = 980      980 / 2 = 490 */
    background-color: white;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.427);
    padding: 20px;
    border-radius: 5px;
}

legend{
    font-size: 2em;
    text-align: center;
    margin: 0px 0px 30px 0px;
    font-weight: bolder;
    color: rgb(169, 63, 241);
}

#nombre{
    width: 400px;
}

#enviar{
    color: rgb(169, 63, 241);
    background-color: rgb(249, 236, 255);
    font-weight: bolder;
    font-size: 1em;
    border-radius: 5px;
    padding: 5px;
    border: none;
}