* {
  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;
}

/* ===== 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;
  }
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Formula1", sans-serif;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
  position: relative;
  padding-top: 90px;   /* 🔥 pushes content below logos */
  padding-bottom: 48px;
  text-align: center;
}

.logo {
  position: absolute;
  top: 16px;
  height: 48px;
}

.logo-left { left: 80px; }
.logo-right { right: 16px; }

.league-ribbon {
  background: #e10600;
  display: inline-block;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.header-title {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 1px;
}

/* ===== BOARD ===== */
.board {
  width: 75vw;          /* 🔥 95% of viewport */
  max-width: 1600px;    /* safe for ultrawide */
  margin: 0 auto;
}

/* ===== TABLE ===== */
.table-head,
.row {
  display: grid;
  grid-template-columns: 100px 100px 1fr 100px;
  align-items: center;
  text-align: center;    
}
.pos-head,.pts-head{
  text-align: center;    
}
.driver-head{
    padding-right: 80px;
}

.table-head {
  /*align-items: center;*/   
  
  align-items: center;
  font-weight: 700;
  padding: 12px 0px;
  text-transform: uppercase;
}

.row {
  min-height: 56px;
}
.row {
  height: 56px;   
  font-size: 1.4rem;/* keep broadcast height */
  border-bottom: 2px solid #fff; /* 🔥 white divider */
}


.pos {
  background: #e5e5e5;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  height: 100%;        /* 🔥 ensures full cell height */
}

.team-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;          /* fixed column width */
  height: 100%;
}
.team-logo img {
  max-height: 28px;     /* controls vertical size */
  max-width: 44px;      /* controls wide logos */
  width: auto;
  height: auto;
  object-fit: contain;
}


.name {
  padding-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  
  padding-right: 80px;
}

.pts {
  background: #e10600;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;        /* 🔥 aligns vertically */
}

/* ===== TEAM COLORS ===== */
.mclaren  { background:#ff9800; }
.williams { background:#1e6ad6; }
.redbull  { background:#0b1b4d; }
.alpine   { background:#2196f3; }
.haas     { background:#ffffff; color:#000; }
.mercedes { background:#00e5c3; color:#000; }
.aston    { background:#004d40; }
.ferrari  { background:#dc0000; }
.rb       { background:#1e41ff; }
.sauber   { background:#00ff00; color:#000; }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.footer span {
  color: #e10600;
  font-weight: 700;
}

.row:nth-child(odd) .pos {
  background: #e5e5e5; /* light */
}

.row:nth-child(even) .pos {
  background: #cfcfcf; /* slightly darker */
}

.row:nth-child(odd) .pts {
  background: #e10600; /* primary red */
}

.row:nth-child(even) .pts {
  background: #c00000; /* darker red */
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .board {
    width: 95vw;
  }
    .name{
        font-size: 15px;
    padding-right: 10px;
    }
    .driver-head{
    padding-right: 10px;
    }
  .team-logo img {
    height: 26px;
  }

  .table-head,
  .row {
    grid-template-columns: 46px 50px 1fr 60px;
  text-align: center;    
  }

  .header-title {
    font-size: 1.5rem;
  }
}
@media (max-width: 600px) {
  .team-logo {
    width: 100%;
  }

  .team-logo img {
    max-height: 22px;
    max-width: 36px;
  }
}

.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 {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

/* position change arrow */
.pos-change {
  font-size: 0.9rem;   /* 🔥 smaller */
  font-weight: 800;
  line-height: 1;
}

/* GREEN UP */
.pos-change.up {
  color: #00c853;
}

/* RED DOWN */
.pos-change.down {
  color: #ff1744;
}

/* NO CHANGE */
.pos-change.same {
  color: #9e9e9e;
}

