html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    margin: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    background-color: black;
    padding: 0 5vw;
    color: white;
}

header div {
    display: flex;
    justify-content: right;
    gap: 1vw;
}

header div a {
    color: white;
    text-decoration: none;
}

header nav {
    display: flex;
    flex-direction: row;
    justify-content: right;
    gap: clamp(10px, 3vw, 3vw);
}

header nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: clamp(10px, 3vw, 3vw);
}

header nav div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(5px, 1vw, 1vw);
    border: 1px white solid;
    padding: 0 1vw;
}

header nav ul li {
	text-align: center;
    position: relative;
}

header a:link, header a:visited, header a:hover, header a:active {
    text-decoration: none;
    color: white;
}

nav a {
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

nav a:hover::after {
    transform: scaleX(1);
}

nav a.active::after {
    transform: scaleX(1);
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 5vw;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5vw;
    background-color: black;
    color: white;
}

/* Single table */

#tableDisplay {
    display: flex;
    flex-direction: column;
}

#pages {
    display: flex;
}

table {             
    border: solid black 1px;   
    border-collapse: collapse;
    width: 100%;     
}

table input {             
    outline: none;
    border: none;
    text-align: center;
}

th {              
    text-align: center;
    border: solid black 1px;   
    border-collapse: collapse;         
}

th a {
    color: black;
}

td {      
    text-align: center;          
    border: solid black 1px;   
    border-collapse: collapse;
}

tr:nth-child(even) {
    background-color: #f2f2f2;  
}

tr:hover {
    background-color: #ddd;
}

a {
    color: black;
}

#pages a {
    margin-right: 0.5vw;
}

/* Login Page */

.formContainer {
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-self: center;
    border: solid 1px black;
    width: 33vw;
    min-height: 20vh;
    padding: 1vw 1vw;
    margin: 1vw 0;
}

.formContainer form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.error {
    color: red;
}


