body {
  font-family: "Orbitron", sans-serif;
  margin: 0;
  background: url('./images/redbull-rb19.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  padding: 20px;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

.container {
  max-width: 900px;
  margin: auto;
  background: rgba(34, 42, 58, 0.85); /* Slightly lighter blue, more transparent */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(225, 214, 0, 0.25); /* Red Bull yellow accent */
  position: relative;
  z-index: 1;
}

h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #ffd600; /* Red Bull yellow */
  text-shadow: 1px 1px 8px #1b2136;
}

label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.styled-select,
select,
button {
  padding: 8px 12px;
  width: 100%;
  font-size: 1rem;
  background-color: #232a3d;
  color: #ffd600;
  border: 1.5px solid #e10600;
  border-radius: 6px;
  transition: 0.3s ease-in-out;
}

select {
  max-height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
}

select option {
  padding: 8px 12px;
}

select:hover,
.styled-select:hover {
  border-color: #ffd600;
  box-shadow: 0 0 10px #ffd600;
}

button {
  background-color: #e10600;
  border: none;
  font-weight: bold;
  color: #fff;
}

button:hover {
  background-color: #ffd600;
  color: #1b2136;
  box-shadow: 0 0 10px #ffd600;
}

.form-row {
  margin-bottom: 20px;
}

.form-buttons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.spinner {
  margin: 40px auto 20px auto;
  border: 5px solid #444;
  border-top: 5px solid #e10600;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  animation: spin 1s linear infinite;
  display: block;
  position: relative;
  left: 0;
  right: 0;
}
.loading-message {
  text-align: center;
  color: #ffd600;
  font-size: 1.1rem;
  margin-top: 10px;
  font-family: 'Orbitron', sans-serif;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none;
}

.error {
  margin-top: 15px;
  background: #330000;
  color: #ff4c4c;
  padding: 10px;
  border-left: 5px solid #e10600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  padding: 14px;
  border: 1px solid #333;
  text-align: center;
}

th {
  background: #232a3d;
  color: #ffd600;
}

.driver-name {
  color: #ffd600;
  cursor: pointer;
  text-decoration: underline;
}

.driver-name:hover {
  color: #e10600;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  /* CHANGED */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.4s ease-in-out;
}

.modal-content {
  background-color: #222a3a;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 0 20px rgba(225, 214, 0, 0.35);
}

.modal-content img {
  width: 140px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.driver-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffd600;
  text-align: center;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: #ffd600;
  cursor: pointer;
}

/* Modal fade-in */
.modal {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Table row slide-up */
#resultsTable tbody tr {
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button hover zoom */
button:hover {
  transform: scale(1.03);
  transition: transform 0.2s ease-in-out;
}
