@font-face {
  font-family: "Formula1";
  src: url("/fonts/Formula1-Regular.ttf") format("truetype");
}
* { box-sizing: border-box; }
/* ===== HAMBURGER ICON ===== */
.hamburger {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  margin-bottom: 5px;
  transition: 0.3s;
}

/* ===== SIDE MENU ===== */
.side-menu {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: #000;
  padding-top: 100px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: left 0.3s ease;
  z-index: 1000;
}

.side-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-family: "Formula1", sans-serif;
  letter-spacing: 1px;
}

.side-menu a:hover {
  color: #e10600;
}

.header-title {
  margin: 0;
  font-size: 2.2rem;
}
/* ===== OVERLAY ===== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}

/* ===== ACTIVE STATES ===== */
.side-menu.open {
  left: 0;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .hamburger {
    top: 16px;
    left: 16px;
  }

  .side-menu {
    width: 220px;
  }
  .header-title {
    font-size: 1.5rem;
  }
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Formula1", "Titillium Web", sans-serif;
}

/* HEADER */
.header {
  position: relative;
  padding: 22px 18px 60px;
  padding-top: 90px;   /* 🔥 pushes content below logos */
  text-align: center;
}

.logo {
  position: absolute;
  top: 16px;
  height: 46px;
}

.logo-left { left: 80px; }
.logo-right { right: 16px; }

.league-ribbon {
  background: #e10600;
  display: inline-block;
  padding: 6px 18px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}


/* BOARD */
.board {
  width: 75vw;          /* 🔥 95% of viewport */
  max-width: 1600px;    /* safe for ultrawide */
  margin: 0 auto;
}

/* GRID */
.table-head,
.row {
  display: grid;
  grid-template-columns: 64px 100px 1fr 90px 88px;
  align-items: center;
  text-align: center;  
}

.table-head {
  /*align-items: center;*/
  text-align: center;             /* 🔥 centers header text */
  font-weight: 700;
  padding: 12px 0px;
  text-transform: uppercase;
}

.row {
  height: 62px;
  font-size: 1.4rem;
  border-bottom: 2px solid #fff;
}

/* POS */
.pos {
  background: #e5e5e5;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* CAR */
.car img {
  height: 46px;
}
.car{
    padding-left: 20px;
    
}
/* NAME */
.name {
  padding-left: 12px;
  text-transform: uppercase;
}

/* LOGO */
.logo-col {
  display: flex;
  justify-content: center;
}

.logo-col img {
  max-height: 36px;
  max-width: 60px;
  object-fit: contain;
}

/* PTS */
.pts {
  background: #e10600;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ALTERNATING SHADES */
.row:nth-child(even) .pos { background:#cfcfcf; }
.row:nth-child(even) .pts { background:#c00000; }

/* TEAM COLORS */
.mclaren  { background:#ff9800; }
.williams { background:#1e6ad6; }
.haas     { background:#ffffff; color:#000; }
.redbull  { background:#0b1b4d; }
.alpine   { background:#2196f3; }
.mercedes { background:#00e5c3; color:#000; }
.aston    { background:#004d40; }
.ferrari  { background:#ff0000; }
.rb       { background:#1e41ff; }
.sauber   { background:#00ff00; color:#000; }

/* FOOTER */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 1rem;
}

.footer span {
  color: #e10600;
}

/* MOBILE */
@media (max-width: 900px) {
  .table-head,
  .row {
        grid-template-columns: 35px 115px 1fr 61px 40px;
  font-size: 0.8rem;
    }
  
.logo-left{left: 55px;}
  .car img {
    height: 25px;
  }

  .logo-col img {
    max-height: 28px;
  }
  .board{
      width:fit-content;
        padding: 0px 5px;
  }
  .car img{
      /*height:25px;*/
  }
}
.footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* centers text */
  padding: 20px 24px;
  background: #000;
  font-size: 0.95rem;
}

.footer-text {
  text-align: center;
}

.footer-socials {
  position: absolute;
  right: 24px;
  display: flex;
  gap: 16px;
    height: 0px;
}

.footer-socials a {
  font-size: 1.4rem;
  color: #fff;
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: #e10600;
}

/* ===== SUBMENU TOGGLE ===== */
.menu-toggle {
  cursor: pointer;
  font-size: 1.1rem;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle:hover {
  color: #e10600;
}

.arrow {
  transition: transform 0.3s ease;
}

/* ===== SUBMENU ===== */
.submenu {
  display: none;
  flex-direction: column;
  padding-left: 16px;
  gap: 14px;
}

.submenu a {
  font-size: 1rem;
  opacity: 0.85;
}

/* ===== SUBMENU ACTIVE ===== */
.submenu.open {
  display: flex;
}

.arrow.rotate {
  transform: rotate(90deg);
}

/* ===== SOCIAL ICONS ===== */
.menu-socials {
  margin-top: auto;
  display: flex;
  gap: 18px;
  padding-top: 20px;
}

.menu-socials a {
  font-size: 1.4rem;
  color: #fff;
  transition: color 0.2s ease;
}

.menu-socials a:hover {
  color: #e10600;
}
.name {
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.pos-change {
  font-size: 13px;
  font-weight: 600;
}

.pos-change.up {
  color: #00ff88;
}

.pos-change.down {
  color: #ff4d4d;
}

.pos-change.same {
  color: #888;
}

