﻿body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 0.8rem;
}

#tableContainer {
  height: 400px;
  overflow-y: auto;
  border: 1px solid #ddd;
  margin-top: 20px;
}

table {
  display: table;
  width: auto;
  border-collapse: collapse;
  table-layout: fixed;
}
th,
td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

/* First and last columns centered */
td:first-child,
td:last-child {
  text-align: center;
}

/* 5th column (index 4) right aligned - Date Viewed */
td:nth-child(5) {
  text-align: right;
}

/* Table body font size */
tbody td {
  font-size: 12px;
}

/* Column widths - accounting for padding and borders */
td:nth-child(1),
th:nth-child(1) {
  width: 43px;
  min-width: 43px;
  max-width: 43px;
}

td:nth-child(2),
th:nth-child(2),
td:nth-child(3),
th:nth-child(3),
td:nth-child(4),
th:nth-child(4),
td:nth-child(5),
th:nth-child(5),
td:nth-child(6),
th:nth-child(6) {
  width: 163px;
  min-width: 163px;
  max-width: 163px;
}

th {
  background-color: #f2f2f2;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
tr:nth-child(even) {
  background-color: #f9f9f9;
}
tr:hover {
  background-color: #e2e2e2;
}
h1 {
  text-align: center;
}
h3 {
  text-align: center;
  display: block;
}

a {
  text-decoration: none;
  color: black;
  background-color: bisque;
  padding: 2px 4px;
  cursor: pointer;
  border: 1px solid rgb(136, 54, 10);
  border-radius: 8px;
}

a:visited {
  color: black;
}

a:hover {
  background-color: black;
  color: bisque;
  border: 2px solid red;
  border-radius: 8px;
}

img {
  height: 20px;
  cursor: pointer;
}

img:hover {
  border: 4px solid red;
  border-radius: 8px;
}
