@page {
  size: auto;
  margin: 5mm;
}

body {
  font-family: Arial, sans-serif;
  padding: 20px;
  margin: 0;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #444;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.header img {
  height: 80px;
}

.header-center {
  text-align: center;
  flex-grow: 1;
}

.header-center h1 {
  margin: 0;
  font-size: 24px;
}

.header-center h2 {
  margin: 4px 0 0;
  font-size: 18px;
  color: #444;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0;
}

table {
  border-collapse: collapse;
  width: auto;
}

th, td {
  border: 1px solid #aaa;
  padding: 2px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  
}

th {
  background-color: #f0f0f0;
  font-size: 11px;
  height: 2em;
}

.superheader {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  padding: 10px;
  background: #ddd;
}

.rank,
.no {
  font-size: 13px;
  font-weight: bold;
}

.crew .driver,
.crew .codriver {

  font-size: 10px;
  display: block;
}
.start {
  font-size: 13px;
}

.timeraw {
  font-size: 16px;
  font-weight: bold;
}

.flying {
  font-size: 16px;
  font-weight: bold;
}

.crew .car {
  font-size: 8px;
  color: gray;
  display: block;
}

.ko {
  font-size: 8px;
}

.ko .sc {
  font-weight: bold;
  float: left;
}

.ko .cat {
  float: right;
}

.ko .class {
  float: left;
  clear: both;
}

.ko .hcat {
  float: right;
  color: gray;
}

.left-time {
  font-weight: bold;
  font-size: 10px;
  display: block;
}

.left-speed {
  font-size: 9px;
  color: gray;
  display: block;
}

.right-penalty {
  font-weight: bold;
  font-size: 8px;
  display: block;
}

.right-time {
  font-weight: bold;
  font-size: 8px;
  display: block;
}

.right-total {
  font-weight: bold;
  font-size: 10px;
  display: block;
}

.right-diff1,
.right-diffprev {
  font-size: 9px;
  color: gray;
  display: block;
}

.blink {
  animation: blink-animation 1s steps(2, start) infinite;
  background-color: yellow;
}

@keyframes blink-animation {
  to {
    visibility: hidden;
  }
}

.back-button {
  position: fixed;
  top: 120px;
  left: 20px;
  /* transform: translateX(-250px); 50px to the left of center */
  background: #39ff14;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 0 10px #39ff14;
  transition: background 0.3s ease;
  z-index: 999;
}

.back-button:hover {
  background: #5cff2d;
}

.logout-button {
  position: fixed;
  top: 220px;
  left: 20px;
  /* transform: translateX(-250px); 50px to the left of center */
  background: #39ff14;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 0 10px #39ff14;
  transition: background 0.3s ease;
  z-index: 999;
}

.logout-button:hover {
  background: #5cff2d;
}
@media print {
  .back-button {
    display: none !important;
  }
}
