html {
    margin: 0;
}

body {
    margin: 0;
    font-family: 'Ubuntu', 'Roboto', 'Calibri', sans-serif;
    min-height: calc(100vh - 210px);
    position: relative;
    background: #f5f5f5;
    padding-bottom: 210px;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    background: #1f242d;
    color: white;
}

nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: fit-content;
    align-self: center;
    gap: 10px;
}

nav :is(a, a:hover, a:visited) {
    color: white;
    text-decoration: none;
}

nav a {
    font-weight: bold;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    transition: .2s ease-in-out;
}

nav a:hover {
    background: #343c4b;
}

footer {
    height: 150px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: #1f242d;
    color: white;
    align-items: center;
    color: #9e9e9e;
    position: absolute;
    bottom: 0px;
    width: calc(100% - 40px);
}

footer p {
    margin: 0;
}

main {
    width: 80%;
    margin: 0px auto;
}

table {
    margin: 5px 0 10px 0;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

tr {
    background-color: #343c4b;
    color: white;
}

table tr:nth-child(2n+1) {
    background-color: #1f242d;
}

td, th {
    padding: 6px;
    font-size: .9rem;
    font-weight: normal;
    text-align: center;
}

th {
    background-color: #399F35;
}

.page_selector {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.page_selector a {
    font-size: .9rem;
    min-width: 15px;
    text-align: center;
    text-decoration: none;
    color: white;
    background: #1f242d;
    padding: 2px 6px;
    border-radius: 8px;
}

#current_page {
    background: #399F35;
}

.cell_link {
    width: 40px;
}

.cell_link a {
    display: inline-block;
    color: white;
}

.hidden {
    display: none;
}

input, textarea, select, .link_button {
    font-family: 'Ubuntu', 'Roboto', 'Calibri', sans-serif;
    font-size: .8rem;
    text-decoration: none;
    text-align: center;
	min-width: 200px;
	border: none;
	background-color: lightgray;
	padding: 8px;
	border-radius: 8px;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: fit-content;
}

form label {
    text-align: right;
    align-self: center;
}

form input[type="submit"], .link_button {
    width: 100%;
    grid-column: span 2;
    background: #399F35;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: .2s ease-in-out;
}

form input[type="submit"]:hover, form input[type="submit"]:focus, .link_button:hover, .link_button:focus {
    background: #49c149;
}

.inline_edit {
	display: inline-block;
	padding: 2px 8px;
	font-size: .7rem;
    cursor: pointer;
    border-radius: 8px;
    transition: .2s ease-in-out;
}

.inline_edit:hover, .inline_edit:focus {
    background: rgba(255, 255, 255, .5);
}

.unknown {
    color: lightgray;
    font-style: italic;
}

td a:hover, td a:focus, td a:visited, td a:link {
    color: white !important;
}

ul li {
    background: #399F35;
    transition: .2s ease-in-out;
    border-radius: 8px;
    text-align: center;
    min-width: 150px;
}

ul li :is(a, a:visited) {
    display: block;
    color: white;
    font-weight: bold;
    font-size: .9rem;
    text-decoration: none;
    padding: 8px 13px;
    cursor: pointer;
}

ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(auto, 1fr);
    width: fit-content;
    gap: 10px;
}

ul li:hover {
    background: #49c149;
}

ul li {
    list-style-type: none;
}

.info {
    color: white;
    background-color: rgb(70, 136, 221);
    font-weight: bold;
    padding: 8px 13px;
    border-radius: 8px;
    width: fit-content;
}

.info .fa-solid {
    margin-right: 8px;
}