/* Mara Gambero Hernández */

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

h1 {
    text-align: center;
    margin: 20px 0;
    color: #2c3e50;
}

button {
    margin-top: 1vh;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button a {
    display: block;
    width: 100%;
    height: 4vh;
    align-content: center;
    text-decoration: none;
    color: white;
}

button:hover {
    background-color: #2980b9;
    cursor: default;
}

button:disabled{
    background-color: lightgray;
}

button:disabled a{
    pointer-events: none;
}

div.table-container{
    width: fit-content;
    min-height: 55vh;
}

table {
    min-width: 80vw;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
    color: #333;
}

table tr td button{
    width: 100%;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

form {
    width: 40vw;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

form input,
form button{
    width: 100%;
    height: 4vh;
}

form input[type="text"],
form input[type="password"],
form input[type="submit"]{
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form input[type="submit"] {
    background-color: #3498db;
    color: white;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background-color: #2980b9;
}

span.error {
    color: red;
    font-size: 0.9em;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

.menu{
    display: flex;
    flex-direction: row;
    justify-content: left;
    width: 100vw;
}

body > div{
    margin: 2rem;
}

img{
    width: 10vw;
}

.pagination nav ul{
    display: flex;
    list-style: none;
}

.pagination nav ul li{
    margin: 1rem;
}