body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #1a1a1a, #000000);
  color: #39ff14;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  position: relative;
  overflow: auto;
  width: 100vw;
  overflow-x: auto;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: url('../media/fl.jpg') repeat-y center center;
  background-size: cover;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

body > * {
  position: relative;
  z-index: 1;
}

.logo-section {
  margin: 40px 0 10px;
  text-align: center;
}

.logo {
  max-width: 300px;
  height: auto;
}

.event-title {
  color: #39ff14;
  font-size: 24px;
  margin-top: 20px;
  text-shadow: 1px 1px 2px black;
}


.container-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.container-box {
  width: 90%; /* or any consistent width that fits both */
  max-width: 850px;
  margin: 10px auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 0 15px #39ff14;
}

.container-box h2 {
  color: #39ff14;
  font-size: 24px;
  margin-bottom: 25px;
}
.container-box:not(:last-child) {
  margin-bottom: 30px;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.racing-button {
  background: linear-gradient(45deg, #39ff14, #88ffcc, #39ff14);
  background-size: 300% 300%;
  animation: flow 3s ease infinite;
  color: #000;
  padding: 12px 0; /* ⬅️ smaller vertical padding */
  font-size: 18px;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 12px #39ff14;
  transition: transform 0.2s ease;
  text-decoration: none;
  flex: 1 1 220px; /* ⬅️ all buttons use the same width */
  text-align: center;
}

.racing-button:hover {
  transform: scale(1.1);
}

@keyframes flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.back-button {
  position: fixed;
  top: 20px;
  left: 50%;
  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: 80px;
  left: 50%;
  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;
}
footer {
  padding: 30px 0;
  font-size: 0.9em;
  color: #ccc;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .logo {
    max-width: 200px;
  }

  .racing-button {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
  }

  .event-title {
    font-size: 18px;
    line-height: 1.3;
  }
    .event-title-b {
    font-size: 14px;
    line-height: 1.3;
  }

  .container-box h2 {
    font-size: 20px;
  }

  .back-button {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    padding: 8px 14px;
  }
}

/*********************************************************/
@keyframes chromeShine {
  0% {
    background-position: -200%;
  }
  100% {
    background-position: 200%;
  }
}

.chrome-title {
  font-size: 32px;
  font-weight: bold;
  background: linear-gradient(
    120deg,
    #999999 0%,
    #ffffff 40%,
    #39ff14 60%,
    #ffffff 80%,
    #999999 100%
  );
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chromeShine 30s linear infinite;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  padding: 20px;
  margin-top: 30px;
  text-align: center;
}