@charset "UTF-8";

/* ============================
   GLOBAL THEME
   ============================ */

:root {
  --accent: #00ff66; /* Neon racing green */
  --accent-dark: #009944;
  --bg-main: #050605; /* #0a0a0a;*/
  --bg-panel: #111;
  --bg-soft: #181818;
  --border-soft: #222;
  --text-main: #e5e5e5;
  --danger: #ff2b2b;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  letter-spacing: 0.3px;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
  font-weight: bold;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip-text {
  visibility: hidden;
  width: 180px;
  background-color: #333;
  color: #fff;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;

  /* Position to the right of the entire block */
  position: absolute;
  top: 50%;
  left: 100%;
  margin-left: 10px;
  transform: translateY(-50%);
  z-index: 1;

  opacity: 0;
  transition: opacity 0.3s;
  white-space: normal;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Optional arrow pointing left */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent #333 transparent transparent;
}

.contact_form {
  border: solid;
  border-width: 1px;
  border-color: #091c0a;
  background-color: black;
  border-radius: 10px;
  width: 90%;
  color: white;
}

.contact_block {
  border: solid;
  border-width: 2px;
  border-color: #52bad5;
  border-radius: 5px;
  width: 50%;
}

/* ============================
   HEADER + LOGO
   ============================ */

header {
  background-color: var(--bg-main);
  border-bottom: 2px solid var(--accent-dark);
  border-radius: 12px 12px 0px 0px;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 50%; /*700px; 90%;*/
  margin: 40px auto; /* 2rem auto;*/
  background-color: var(--bg-soft);
  padding: 30px; /*2rem;*/
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 20px;
}

.header_logo {
  width: 140px;
  height: auto;
}

/* ============================
   NAV BAR
   ============================ */

ul.navbar {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-soft);
  overflow: hidden;
  max-height: none;
  transition: max-height 0.35s ease;
}

li.navbar {
  padding: 14px 20px;
}

a.navbar {
  color: #aaa;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.25s ease;
}

a.navbar:hover,
li.navbar:hover a.navbar {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 255, 100, 0.4);
}

/* ============================
   MAIN CONTAINER
   ============================ */

.container {
  width: 50%; /* 700px; /*90%;*/
  margin: 40px auto; /* 2rem auto;*/
  background-color: var(--bg-soft);
  padding: 30px; /*2rem;*/
  border-radius: 12px;
  /*  border: 1px solid var(--border-soft);
    box-shadow: 0 0 20px rgba(0,255,100,0.05);*/
}

/* ============================
   DRIVER CARD
   ============================ */

.drivers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.driver-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 0 15px rgba(0, 255, 100, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.driver-card img {
  width: 160px;
  height: auto;
  border-radius: 10px;
  border: 2px solid var(--accent-dark);
  margin-bottom: 12px;
}

.driver-card h3 {
  margin: 0;
  color: var(--accent);
}

.driver-card p {
  margin: 6px 0;
  line-height: 1.4;
  font-size: 0.9rem;
}

/* ============================
   COOKIE BANNER
   ============================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  /*left: 10%;*/
  margin: auto;
  border-top: 2px solid var(--accent-dark);
  background-color: var(--bg-soft);
  color: var(--text-main);
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;

  align-items: left;
  font-size: 0.9rem;
  box-shadow: 0 -2px 10px rgba(var(--accent), 0.8);
  z-index: 1003;
  transition: transform 0.3s ease-in-out;
}

.cookie-banner button {
  background: var(
    --accent
  ); /*linear-gradient(0deg, var(--bg-color), var(--glow-blue));*/
  border: none;
  padding: 0.1rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  color: var(--bg-main);
  transition: transform 0.2s;
}

.cookie-banner button:hover {
  transform: scale(1.05);
}

.cookie-banner.hide {
  transform: translateY(100%);
}

.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  padding: 12px 20px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 6px 0;
  background: var(--accent);
  transition: 0.3s ease;
}


/* ============================
   TIMER
   ============================ */

.countdown-container {
  text-align: center;
  font-family: Arial, sans-serif;
  margin-top: 40px;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.time-box {
  background: var( --bg-soft);
  color:  var(--accent);
  padding: 20px 25px;
  border-radius: 10px;
  min-width: 50px;
}

.time-box span {
  font-size: 2rem;
  font-weight: bold;
  display: block;
}

.time-box p {
  margin: 0;
  font-size: 0.5rem;
  opacity: 0.8;
}

.hidden {
  display: none;
}

#finished-message {
  margin-top: 20px;
  font-size: 1.3rem;
  font-weight: bold;
  color: #d00;
}


/* ============================
   TABS
   ============================ */

.tab-container {
  margin-top: 2rem;
}

.tabs {
  display: flex;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  background-color: #0f0f0f;
  color: #888;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: 0.25s ease;
}

.tab:hover,
.tab.active {
  color: var(--accent);
  background-color: #151515;
  border-bottom: 3px solid var(--accent);
}

.tab-content {
  display: none;
  background-color: var(--bg-panel);
  padding: 20px;
  border-radius: 0 0 10px 10px;
  border: 1px solid var(--border-soft);
  border-top: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================
   GRID BUTTONS
   ============================ */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 360px;
}

.grid button {
  width: 100%;
  aspect-ratio: 1 / 1;
  font-size: 2rem;
  border: 2px solid var(--border-soft);
  border-radius: 10px;
  background-color: #111;
  color: var(--accent);
  cursor: pointer;
  transition: 0.2s ease;
}

.grid button:hover {
  transform: scale(1.05);
  background-color: #151515;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 255, 100, 0.3);
}

/* ============================
   TABLES
   ============================ */

.teams {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.teams th {
  background-color: #000;
  color: var(--accent);
  padding: 10px;
  border-bottom: 2px solid var(--accent-dark);
}

.teams td {
  padding: 10px;
  background-color: #111;
  border-bottom: 1px solid #222;
}

.teams tr:nth-child(even) td {
  background-color: #141414;
}

.team-image-wrapper {
  width: 100%;
  height: 160px;
  background: var(--card-bg, #111);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.team-image-wrapper img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 255, 100, 0.4));
}

.team-name {
  font-size: 1.6rem; /* Larger heading */
  margin: 10px 0;
  color: var(--accent);
  text-align: center;
}

/* ============================
   FORMS
   ============================ */

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 98%;
  padding: 12px;
  margin: 8px 0;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #eee;
}

input[type="submit"],
input[type="button"] {
  background-color: var(--accent);
  color: #000;
  padding: 12px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
}

input[type="submit"]:hover,
input[type="button"]:hover {
  background-color: var(--accent-dark);
}

/* ============================
   FOOTER
   ============================ */

.footer_banner {
  background-color: #000;
  /* padding: 20px 0;
    margin-top: 3rem;*/
  border-top: 2px solid var(--accent-dark);
  width: 50%; /* 700px; /*90%;*/
  margin: 40px auto; /* 2rem auto;*/
  background-color: var(--bg-soft);
  padding: 30px; /*2rem;*/
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0px 0px 12px 12px;
}

.footer_banner .copyright {
  text-align: center;
  color: #888;
}

.help-block {
  color: red;
}

/* Add a green text color and a checkmark when the requirements are right */
.valid {
  color: var(--accent);
}

.valid:before {
  position: relative;
  left: -35px;
  content: "✔";
}

/* Add a red text color and an "x" when the requirements are wrong */
.invalid {
  color: #ff4040;
  /*color: red;*/
}

.invalid:before {
  position: relative;
  left: -35px;
  content: "✖";
}

.smlbtn {
  background-color: #555353;
  border: none;
  color: white;
  /*  padding: 12px 16px;*/
  font-size: 24px;
  cursor: pointer;
  border-radius: 5px;
}

.smlbtn:hover {
  background-color: #a88a8a;
}

.smlbtn:disabled {
  background-color: #298a82;
  cursor: not-allowed;
}

.leaderboardInternal {
  width: 95%;
  border: 0px;
  border-spacing: 0px;
  border-collapse: collapse;
}

.leaderboardInternal th {
  font-size: 1.5rem;
  background-color: #1a4f1f;
  color: white;
  border: 1px solid #1a4f1f;
}

.leaderboardInternal td {
  font-size: 1.3rem;
  background-color: #1a4f1f;
  color: white;
}

.leaderboard {
  border: 0px;
  border-spacing: 0px;
  width: 70%;
}

.leaderboard td {
  background-color: #1a4f1f;
  color: white;
  border: 1px solid #1a4f1f;
  border-radius: 10px 10px 10px 10px;
}

/* ============================
   RESPONSIVE
   ============================ 

@media screen and (max-width: 600px) {

    header {
        width: 80%;     
         align-items: center;
  /*justify-content: space-between; /* pushes items apart */
/*
    }

    .header_logo {
        width: 20%;
    }

    
    ul.navbar {
        flex-direction: column;
        text-align: center;
    }

    .grid button {
        font-size: 2.2rem;
    }

    .container {
        width: 80%;
    }

    .footer_banner {
        width: 80%;
    }


}

/* ============================
   RESPONSIVE — TABLET
   ============================ 
@media screen and (max-width: 1024px) {
    body {
        font-size: 0.95em;
    }

    .container {
        padding: 1.5rem;
    }

    .tabs .tab {
        font-size: 1rem;
        padding: 10px;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .grid button {
        font-size: 1.8rem;
    }

    .teams th,
    .teams td {
        font-size: 0.95rem;
        padding: 8px;
    } 
}
/* HAMBURGER BASE 
.nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 12px 20px;
      margin-left: auto; 
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px 0;
    background: var(--accent);
    transition: 0.3s ease;
}



/* MOBILE NAV BEHAVIOUR */
@media screen and (max-width: 800px) {
  /* Show hamburger */
  .hamburger {
    display: block;
  }

  /* Collapse nav by default */
  ul.navbar {
    flex-direction: column;
    max-height: 0;
    padding: 0;
    border-top: none;
  }

  /* Expand when toggled */
  .nav-toggle:checked ~ ul.navbar {
    max-height: 500px;
    border-top: 1px solid var(--border-soft);
  }

  /* Hamburger → X animation */
  .nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Nav items */
  li.navbar {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-bottom: 1px solid #222;
  }

  a.navbar {
    font-size: 1.1rem;
    display: block;
    width: 100%;
  }

  /* Resize layout */
  header,
  .container,
  .footer_banner {
    width: 80%;
  }

  .contact_form {
    width: 100%;
  }



  
.leaderboard {
  width: 100%;
}

#countdown {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 5px;
  }

  .time-box {
    width: 22%;              /* ensures 4 boxes fit in one row */
    padding: 10px 0;
    min-width: 0;            /* prevents flex overflow */
  }

  .time-box span {
    font-size: 1.4rem;
  }

  .time-box p {
    font-size: 0.7rem;
  }



  h2 {
    font-size: 1.4rem;
  }



}
