@font-face {
  font-family: "Eiko";
  src: url("Assets/PPEiko-LightItalic.otf") format("opentype");
  font-weight: lighter;
}
*{
  box-sizing: border-box;
}

/* Scrollbar */
html {
  scrollbar-color: var(--primary) var(--white);
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--white);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* TYPE STYLES*/
h1 {
  font-family: "Eiko";
  font-weight: lighter;
}
a{
  color: var(--primary);
  text-decoration: none;
}
a:hover{
  text-decoration: underline;
  font-style: italic;
}
p{
  font-size: 12px;
  font-weight: normal;
  color:var(--black);
  /* white-space: nowrap; */
}
td{
  font-size: 12px;
  font-weight: normal;
  color:var(--black);
  /* white-space: nowrap; */
}

/* STYLE FOR BODY  - header, main and footer */
body {
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  width: 90vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--default_padding);
}
header{
  height: var(--default_margin);
  display: flex;
  justify-content: space-between;
  align-items: center; 
}
main{
  flex: 1;
}
footer {
  color: var(--primary);
  height: var(--default_margin);
  display: flex;
  justify-content: center;
  align-items: center;
}
.sites-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.sites-table th,
.sites-table td {
  border: var(--border) solid var(--primary);
  text-align: left;
  vertical-align: middle;
  text-align: center;
  height: var(--default-grid);
}
.sites-table thead th {
  vertical-align: middle;
  font-family: "Eiko";
  font-weight: lighter;
  height: fit-content;
  padding: var(--detail_padding);
}

.sites-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}

.sites-table thead th.sortable:hover {
  background-color: rgba(73, 146, 84, 0.1);
}

/* Column width ratio 1:1:1:2:2:2:2:2:6 (total 19 parts) */
.sites-table th:nth-child(1),
.sites-table th:nth-child(2),
.sites-table th:nth-child(3),
.sites-table th:nth-child(5),
.sites-table th:nth-child(6),
.sites-table th:nth-child(7){
  width: calc(100% / 15);
}
.sites-table th:nth-child(4),
.sites-table th:nth-child(8) {
  width: calc(100% * 2 / 15);
}
.sites-table th:nth-child(9) {
  width: calc(100% * 6 / 15);
}

.version-images {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  padding: calc(var(--detail_padding)/2);
}

.version-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* margin: calc(var(--detail_padding)/2); */
  
}

.info{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--default_padding);
  height: var(--default_padding);
  border-radius: var(--default_padding);
  border: var(--border) solid var(--primary);
  cursor: pointer;
  background-color: var(--white);
}


.info-tooltip {
  position: absolute;
  left: 50%;
  top: 125%;
  transform: translateX(-50%);
  min-width: 200px;
  max-width: 320px;
  padding: var(--detail_padding);
  background: var(--white);
  border: var(--border) solid var(--primary);
  color: var(--black);
  opacity: 0;
  pointer-events: none;
  white-space: normal;
  z-index: 5;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.info:hover .info-tooltip,
.info:focus-visible .info-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}