@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;500;600;800&family=VT323&');

*{
    font-family: poppins;
}

html, body, .opening-section {
    margin: 0;
    padding: 0;
    background-color: black;
  }

  #title{
    color: red;
  }

/* Menu Header Styles */
.menu-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 3px solid red;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header-title {
    font-size: 24px;
    font-weight: 800;
    color: red;
    letter-spacing: 2px;
}

.header-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu-link {
    color: whitesmoke;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 4px;
}

.menu-link:hover {
    color: red;
    background-color: rgba(255, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Header Responsive */
@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
  }

  .header-menu {
    gap: 20px;
  }

  .menu-link {
    font-size: 14px;
    padding: 6px 12px;
  }

  .welcome-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .header-menu {
    gap: 10px;
  }

  .menu-link {
    font-size: 12px;
    padding: 5px 8px;
  }

  .header-logo {
    gap: 10px;
  }

  .logo-img {
    height: 40px;
  }

  .welcome-text {
    font-size: 12px;
  }

  .audio-btn i {
    font-size: 16px;
  }
}

.audio-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.audio-btn i {
    font-size: 18px;
}

.audio-btn:hover {
    color: red;
}

.welcome-text {
    color: yellow;
    font-weight: 600;
    font-size: 16px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.opening-section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0e27 0%, #16213e 50%, #0f3460 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  padding-top: 80px;
}

.opening-section::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 100, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.opening-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 900px;
  padding: 40px 20px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Title */
.hero-title-container {
  text-align: center;
  margin-bottom: 10px;
}

#title {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0;
  background: linear-gradient(135deg, #ff0055, #ff6b9d, #ff0055);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 0, 85, 0.3);
  letter-spacing: 3px;
  animation: textGlow 2s ease-in-out infinite;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0;
  background: linear-gradient(135deg, #ff0055, #ff6b9d, #ff0055);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 0, 85, 0.3);
  letter-spacing: 2px;
  animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(255, 0, 85, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 0, 85, 0.8));
  }
}

.tagline {
  font-size: 1.2rem;
  color: #00ffff;
  margin: 10px 0 0 0;
  font-weight: 300;
  letter-spacing: 1px;
}

/* Info Cards */
.info-cards-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  margin: 20px 0;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 0, 85, 0.3);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: white;
  flex: 1;
  min-width: 200px;
}

.info-card:hover {
  background: rgba(255, 0, 85, 0.1);
  border-color: #ff0055;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 0, 85, 0.2);
}

.info-icon {
  font-size: 2.5rem;
  min-width: 60px;
  text-align: center;
}

.info-text {
  flex: 1;
}

.info-title {
  font-size: 1rem;
  font-weight: 600;
  color: #00ffff;
  margin: 0 0 8px 0;
}

.info-detail {
  font-size: 0.9rem;
  color: #b3e5fc;
  margin: 0;
}

.bonus-text {
  color: #76ff03;
  font-weight: 600;
}

.skull-text {
  color: #ff1744;
  font-weight: 600;
}

#bonus, #skull {
  width: 30px;
  height: 24px;
  margin: 0 5px;
  vertical-align: middle;
}

#arrows {
  width: 35px;
  height: 35px;
  vertical-align: middle;
  margin: 0 5px;
}

.timer{
  position: absolute;
  left: 50px;
  bottom: 50px;
  color:white;
  display: flex;
  flex-direction: column;
}

#countdown{
  font-size: 50px;
  font-weight: bold;
}

.checkbox{
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 3px;
    margin-right: 10px;
    margin-bottom: 30px;
    cursor: pointer;
}

.car-radio {
  display: none;
}

/* Car Selection Section */
.car-selection-container {
  width: 100%;
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00ffff;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.car-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.car-option {
  position: relative;
}

.car-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 25px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.car-label:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
}

.car-radio:checked + .car-label {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.car-radio:checked + .yellow-car-label {
  border-color: #ffff00;
  background: rgba(255, 255, 0, 0.15);
  box-shadow: 0 0 20px rgba(255, 255, 0, 0.3), inset 0 0 20px rgba(255, 255, 0, 0.1);
}

.car-radio:checked + .red-car-label {
  border-color: #ff0000;
  background: rgba(255, 0, 0, 0.15);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3), inset 0 0 20px rgba(255, 0, 0, 0.1);
}

.car-img {
  width: 60px;
  height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.car-radio:checked + .car-label .car-img {
  transform: scale(1.1);
}

.car-name {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Quick Links */
.quick-links-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid #00ffff;
  border-radius: 8px;
  color: #00ffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quick-link:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
  transform: translateY(-3px);
}

.quick-link i {
  font-size: 1.1rem;
}

/* Start Button */
#start-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 60px;
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff0000, #ff6b6b);
  border: 3px solid #ff0000;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
}

#start-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

#start-button:hover::before {
  left: 100%;
}

#start-button:hover {
  background: linear-gradient(135deg, #ff6b6b, #ff0000);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.8), 0 5px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

#start-button:active {
  transform: translateY(-1px);
}

.button-text {
  position: relative;
  z-index: 1;
}

.button-icon {
  position: relative;
  z-index: 1;
  font-size: 1rem;
}

/* Music Button */
.play-music {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.music-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background: rgba(255, 165, 0, 0.1);
  border: 2px solid #ffa500;
  border-radius: 8px;
  color: #ffa500;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.music-button:hover {
  background: rgba(255, 165, 0, 0.2);
  box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
  transform: translateY(-3px);
}

.music-button i {
  font-size: 1.1rem;
}

#canvas{
    position: absolute;
    border: 3px solid #ff0000;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4), inset 0 0 20px rgba(255, 0, 0, 0.1);
    border-radius: 8px;
}

.info{
  position: fixed;
  top: 80px;
  left: 30px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px 20px;
  border-radius: 8px;
  border: 2px solid rgba(255, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.score {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 10px;
}

#yourScore {
  color: #ffff00;
  font-size: 1.8rem;
  font-weight: 900;
}

.level {
  position: fixed;
  top: 80px;
  right: 30px;
  z-index: 100;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px 20px;
  border-radius: 8px;
  border: 2px solid rgba(0, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

#level{
  color: #00ffff;
  font-size: 2rem;
  font-weight: 900;
}

.timer {
  position: fixed;
  left: 30px;
  bottom: 30px;
  color: #ffa500;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px 20px;
  border-radius: 8px;
  border: 2px solid rgba(255, 165, 0, 0.3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 100;
}

#countdown {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffa500;
}

.bonus-indicator {
  position: absolute;
  font-size: 2rem;
  color: #90ee90;
  transition: opacity 0.5s ease-in-out;
  z-index: 9999;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(144, 238, 144, 0.5);
}

.skull-indicator {
  position: absolute;
  font-size: 2rem;
  color: #ff6b6b;
  transition: opacity 0.5s ease-in-out;
  z-index: 9999;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.hidden {
  display: none;
}

.mobile-controls {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  bottom: 30px;
  display: flex;
  gap: 50px;
  white-space: nowrap;
  z-index: 100;
}

#left,
#right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  white-space: nowrap;
  width: 70px;
  height: 70px;
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.1));
  border: 2px solid #ff0000;
  border-radius: 10px;
  color: #ff0000;
  transition: all 0.2s ease;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

#left:hover,
#right:hover {
  background: linear-gradient(135deg, #ff0000, #ff6b6b);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
  transform: scale(1.05);
}

#left:active,
#right:active {
  transform: scale(0.95);
}

.boxes{
  display: flex;
  flex-direction: row;
  white-space: nowrap;
}

.boxes > p {
  background-color: black;
}

.login{
  background-color: red;
  color: black;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid black;
  text-decoration: none;
  font-weight: bold;
}

.login:hover{
    background: black;
    color: red
}

@media(max-width:630px){
  .opening-section {
    padding-top: 70px;
  }
  
  .opening-text {
    gap: 20px;
    padding: 20px 15px;
  }

  #title {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .info-cards-container {
    flex-direction: column;
    gap: 15px;
  }

  .info-card {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .info-icon {
    font-size: 2rem;
    min-width: auto;
  }

  .car-options {
    gap: 15px;
  }

  .car-label {
    padding: 15px 20px;
  }

  .car-img {
    width: 50px;
    height: 80px;
  }

  .quick-links-container {
    gap: 10px;
  }

  .quick-link {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  #start-button {
    padding: 14px 40px;
    font-size: 1rem;
  }

  .music-button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media(min-width:1111px){
  .mobile-controls{
    display: none;
  }
}

@media(max-width:1111px){
  .enter-button{
    display: none;
  }
}

@media(max-width:1060px){
  #canvas  {
    width: 60%;
    height: 60%;
  }
  .stats{
    top: 0px;
    left: 0px;
  }
  .score{
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    top: 0px;
    display: flex;
    flex-direction: column;
  }
  .level{
    right: 5px;
    bottom: 30vh;
    top: auto;
    display: flex;
    flex-direction: column;
    font-size: 20px;
    display: flex;
    flex-direction: column;
  }
  #level{
    font-size: 50px;
  }
  .timer{
    left: 0px;
    bottom: 30vh;
  }
  }


  @media(max-width:600px){
    .opening-text > p,
  .opening-text > h1 {
    margin: 5px;
}
  }

  @media(max-width:350px){

    #skull{
      max-width: 50px;
    }
    #bonus{
      max-width: 50px;
    }
      }

  @media(max-width:300px){
    .opening-text > p,
  .opening-text > h1 {
    margin: 0px;
}
.level{
  font-size: 15px;
}
#skull{
  max-width: 30px;
}
#bonus{
  max-width: 30px;
}
  }


@media(max-width:506px){
  .login{
    font-size: small;
  }
  .audio  {
    display: none;
}
.fa,.fas{
  font-size: 60px;
  margin-top: 0;
}
}
 
@media(max-width:450px){
.fa,.fas{
  font-size: 50px;
}
}

@media(max-width:330px){
  .fa,.fas{
    font-size: 40px;
    margin-top: 10px;
  }
}

/* FOR THE LOGIN PAGE */

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

@keyframes speedLines {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(100vw) translateY(100vh) rotate(45deg);
    opacity: 0;
  }
}

@keyframes neonGlow {
  0%, 100% {
    box-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000, 0 0 15px #ff0000;
  }
  50% {
    box-shadow: 0 0 10px #ff4444, 0 0 20px #ff4444, 0 0 30px #ff4444;
  }
}

.login-page {
  font-family: poppins, consolas;
  display: grid;
  place-items: center;
  background: linear-gradient(45deg, #000000, #1a1a1a, #000000);
  background-image:
    url(./images/racing-lights1.jpg),
    radial-gradient(circle at 20% 80%, rgba(255, 0, 0, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 255, 0, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 0, 255, 0.3) 0%, transparent 50%);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: cover, 200px 200px, 150px 150px, 100px 100px;
  background-position: center, 20% 80%, 80% 20%, 40% 40%;
  animation: pan 8s infinite linear;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
}

.login-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.1) 2px,
    rgba(255, 255, 255, 0.1) 4px
  );
  animation: speedLines 3s infinite linear;
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff;
  animation: neonGlow 2s infinite;
  transform: translate(-50%, -50%);
}

@media (min-width: 500px) {
    .login-page {
      padding: 0;
    }
}

.login-card {
  width: 400px;
  padding: 30px 40px 54px;
  border-radius: 24px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border: 2px solid #ff0000;
  box-shadow:
    0 0 20px rgba(255, 0, 0, 0.3),
    inset 0 0 20px rgba(255, 0, 0, 0.1),
    0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '🏎️';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  opacity: 0.7;
}

.login-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ff0000, transparent);
  animation: speedLines 2s infinite linear;
}

@media (max-width: 500px) {
  .login-card {
    margin: 0;
    width: 90%;
    max-width: 400px;
    padding: 25px 30px 44px;
  }
}

@media (max-width: 450px) {
  .login-card {
    width: 85%;
    max-width: 350px;
    padding: 20px 25px 39px;
  }
}

@media (max-width: 400px) {
  .login-card {
    width: 80%;
    max-width: 300px;
    padding: 20px 20px 34px;
  }
}

@media (max-width: 360px) {
  .login-card {
    width: 75%;
    max-width: 280px;
    padding: 15px 15px 29px;
  }
}

@media (max-width: 328px) {
  .login-card {
    width: 70%;
    max-width: 270px;
    padding: 15px 15px 29px;
  }
}

@media (max-width: 300px) {
  .login-card {
    width: 65%;
    max-width: 250px;
    padding: 10px 10px 24px;
  }
}

.loginSignup{
  margin-bottom: 0px; 
}

  .login-card > h3 {
  margin: 0 0 30px;
  font-weight: 500;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.38);
}

.login-form {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 16px;
}

.login-form > a {
  color: #216ce7;
}

.login-form > input,
.login-form > button {
  height: 56px;
  padding: 0 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.login-form > input {
  border: 2px solid #444;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 16px;
}

.login-form > input:focus {
  outline: none;
  border-color: #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

.loginBtn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background-color: #ff6b6b;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.loginBtn:hover {
  background-color: #ff4040;
}

.loginBtn:active {
  background-color: #ff1f1f;
}

.loginBtn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.4);
}


.back-home{
  background-color: transparent;
  color: white;
  font-size: small;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid white;
  text-decoration: none;
    }

.back-home:hover{
  border: none;
    }

.note{
  font-size: smaller;
    }

.error{
  color: red;
}

.welcome{
  position: fixed;
  right: 20px;
  top: 70px;
  margin: 0;
  color: white;
  font-size: large;
  text-decoration: none;
}

#logout{ 
  padding: none;
  background-color: white;
}

#logout:hover{ 
  padding: none;
  background-color: transparent;
  color: white;
}

#logout-anchor{
  text-decoration: none;
}

#logout-anchor:hover{
  color: white;
}

/* TOP 10 SCORES STYLES */

/* Dark theme for the Top 10 table */
.top-ten {
    background-color: #121212;
    color: #f5f5f5;
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
}

.top-ten h1 {
    color: #ffffff;
    margin-bottom: 20px;
}

.top-ten table {
    margin: 0 auto;
    border-collapse: collapse;
    width: 80%;
    max-width: 700px;
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.top-ten th,
.top-ten td {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
}

.top-ten th {
    background-color: #2a2a2a;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.top-ten tr:nth-child(even) {
    background-color: #252525;
}

.top-ten tr:hover {
    background-color: #333333;
}

.top-ten td {
    font-size: 15px;
    color: #dddddd;
}

.top-ten .score-back {
    display: inline-block;
    margin-top: 25px;
    padding: 5px 10px;
    background-color: #eb3f3f;
    color: #f5f5f5;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    position: fixed;
    right: 3px;
    bottom: 3px;
}

.top-ten .score-back:hover {
    background-color: #444444;
}


.top-ten-anchor{
  position: absolute;
  background-color: black;
  top: 0;
  left: 50%;
  transform: translate(-50%);
}

.top-ten-anchor > a {
  color: gold;
  margin-right: 10px;
  margin-left: 10px;
}

.top-ten-mobile{
  display: none;
  margin-bottom: 5px;
  white-space: nowrap;
}

.top-ten-mobile > a {
  color: gold;
  margin-right: 10px;
  margin-left: 10px;
}

/* Add trophy emojis to the rank column (first <td>) */
.top-ten table tr:nth-child(2) td:first-child::after {
    content: " 🥇";
}

.top-ten table tr:nth-child(3) td:first-child::after {
    content: " 🥈";
}

.top-ten table tr:nth-child(4) td:first-child::after {
    content: " 🥉";
}

/* Center all table text */
body.top-ten table th,
body.top-ten table td {
    text-align: center;
}

/* Add vertical lines between columns */
body.top-ten table th,
body.top-ten table td {
    border-right: 1px solid #444; /* subtle dark grey line */
}

/* Remove the border on the last column */
body.top-ten table th:last-child,
body.top-ten table td:last-child {
    border-right: none;
}

@media(max-width:914px){
  .hide{
    display: none;
  }
  .top-ten-anchor{
    display: none;
  }
  .top-ten-mobile{
    display: block;
    background-color: black;
  }
}

.all-together{
  display: flex;
  flex-direction: row;
}

.all-together > a{
  color: gold;
  background-color: black;
  font-size: smaller;
}

.enter-button{
    color:white; 
    background:black;
    margin-top: 5px;
}

/* Game Over Screen */
.full-time {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0e27 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.full-time::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 100, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.full-time-text {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 500px;
  padding: 50px 40px;
  background: rgba(0, 0, 0, 0.8);
  border: 3px solid #ff0055;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(255, 0, 85, 0.4), inset 0 0 40px rgba(255, 0, 85, 0.1);
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.full-time-text > p:first-child {
  font-size: 3rem;
  font-weight: 900;
  color: #ff0055;
  margin: 0 0 30px 0;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.full-time-text > p {
  margin: 15px 0;
  font-size: 1rem;
  font-weight: 400;
  color: #c0c0c0;
}

#fifty {
  color: #ff0000;
  font-size: 1rem;
  font-weight: 700;
}

#finalScore,
#finalLevel {
  color: #c0c0c0;
}

.stats {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 12px;
  border: 2px solid rgba(0, 255, 255, 0.3);
  font-size: 1rem;
  margin: 25px 0;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

#scoreTwo {
  color: #ffff00;
  font-size: 2rem;
  font-weight: 900;
}

#levelTwo {
  color: #00ffff;
  font-size: 2rem;
  font-weight: 900;
}

.utilityButtons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.try-again-button,
.main-menu-button {
  padding: 12px 35px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid;
}

.try-again-button {
  background: linear-gradient(135deg, #ff0055, #ff6b9d);
  border-color: #ff0055;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
}

.try-again-button:hover {
  background: linear-gradient(135deg, #ff6b9d, #ff0055);
  box-shadow: 0 0 25px rgba(255, 0, 85, 0.5);
  transform: translateY(-2px);
}

.main-menu-button {
  background: rgba(0, 255, 255, 0.1);
  border-color: #00ffff;
  color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.main-menu-button:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
}

.all-together {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.all-together > a {
  color: #00ffff;
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid #00ffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.all-together > a:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
  transform: translateY(-2px);
}

.all-together > a{
    white-space: nowrap
}

@media(min-width:714px){
  .all-together > a{
    margin-left: 10px;
    margin-right: 10px;
  }
}

@media(max-width:640px){
  .full-time-text {
    max-width: 90%;
    padding: 30px 20px;
    margin: 20px;
  }

  .full-time-text > p:first-child {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .stats {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  #finalScore,#finalLevel {
    line-height: 1.5;
    margin: 10px 0;
  }

  .utilityButtons {
    flex-direction: column;
    gap: 10px;
  }

  .try-again-button,
  .main-menu-button {
    width: 100%;
    padding: 12px 20px;
  }

  .all-together {
    flex-direction: column;
  }

  .all-together > a {
    width: 100%;
    padding: 10px 15px;
  }

  .info {
    top: 80px;
    left: 15px;
    right: 15px;
    width: auto;
    font-size: 1rem;
  }

  .level {
    top: 80px;
    right: 15px;
    left: auto;
    font-size: 0.9rem;
  }

  #level {
    font-size: 1.5rem;
  }

  .timer {
    left: 15px;
    bottom: 100px;
  }

  #countdown {
    font-size: 2rem;
  }

  #left,
  #right {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Mobile-First Responsive Design */
/* Extra Small Devices (320px - 360px) */
@media (max-width: 360px) {
  .menu-header {
    padding: 0 10px;
  }

  .header-container {
    padding: 0 10px;
    height: 50px;
  }

  .header-title {
    font-size: 16px;
  }

  .header-menu {
    gap: 15px;
  }

  .menu-link {
    font-size: 12px;
    padding: 5px 10px;
  }

  .opening-section {
    padding: 70px 15px 30px;
  }

  #title {
    font-size: 2rem;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .info-cards-container {
    gap: 10px;
  }

  .info-card {
    padding: 15px;
    border-radius: 8px;
  }

  .info-title {
    font-size: 0.85rem;
  }

  .info-detail {
    font-size: 0.75rem;
  }

  .car-selection-container {
    gap: 10px;
  }

  .car-label {
    padding: 10px;
  }

  .car-img {
    width: 60px;
    height: 60px;
  }

  .car-name {
    font-size: 0.8rem;
  }

  .start-button {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .quick-link {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
}

/* Small Devices (361px - 480px) */
@media (max-width: 480px) {
  .header-container {
    height: 55px;
  }

  .header-title {
    font-size: 18px;
  }

  .opening-section {
    padding: 75px 15px 30px;
  }

  #title {
    font-size: 2.2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .info-cards-container {
    gap: 12px;
    flex-direction: column;
  }

  .info-card {
    padding: 18px;
  }

  .car-selection-container {
    gap: 12px;
  }

  .start-button {
    padding: 14px 25px;
    font-size: 1.05rem;
  }

  #canvas {
    width: 90vw;
    height: 90vh;
    max-width: 500px;
    max-height: 600px;
  }

  .info {
    top: 70px;
    left: 12px;
    right: auto;
    font-size: 0.9rem;
  }

  .level {
    top: 70px;
    right: 12px;
    left: auto;
    font-size: 0.85rem;
  }

  #level {
    font-size: 1.3rem;
  }

  .timer {
    left: 12px;
    bottom: 120px;
  }

  #countdown {
    font-size: 1.8rem;
  }

  #left, #right {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }

  .full-time-text {
    max-width: 85%;
    padding: 25px 18px;
  }

  .full-time-text > p:first-child {
    font-size: 1.8rem;
  }

  .stats {
    flex-direction: column;
    gap: 12px;
  }

  .try-again-button,
  .main-menu-button {
    width: 100%;
    padding: 11px 18px;
    font-size: 0.95rem;
  }
}

/* Medium Devices (481px - 640px) */
@media (max-width: 640px) {
  .header-container {
    height: 60px;
  }

  .opening-section {
    padding: 80px 20px 30px;
  }

  #title {
    font-size: 2.5rem;
  }

  .info-cards-container {
    gap: 15px;
    flex-direction: column;
  }

  .info-card {
    padding: 20px;
  }

  .car-selection-container {
    gap: 15px;
  }

  .start-button {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  #canvas {
    width: 85vw;
    height: 85vh;
    max-width: 600px;
    max-height: 650px;
  }

  .info {
    top: 80px;
    left: 15px;
    right: 15px;
    width: auto;
    font-size: 1rem;
  }

  .level {
    top: 80px;
    right: 15px;
    left: auto;
    font-size: 0.9rem;
  }

  #level {
    font-size: 1.5rem;
  }

  .timer {
    left: 15px;
    bottom: 100px;
  }

  #countdown {
    font-size: 2rem;
  }

  #left,
  #right {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .full-time-text {
    max-width: 90%;
    padding: 30px 20px;
    margin: 20px;
  }

  .full-time-text > p:first-child {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .stats {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  #finalScore,#finalLevel {
    line-height: 1.5;
    margin: 10px 0;
  }

  .utilityButtons {
    flex-direction: column;
    gap: 10px;
  }

  .try-again-button,
  .main-menu-button {
    width: 100%;
    padding: 12px 20px;
  }

  .all-together {
    flex-direction: column;
  }

  .all-together > a {
    width: 100%;
    padding: 10px 15px;
  }

  .page-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  table {
    width: 100%;
    font-size: 0.9rem;
  }

  th {
    padding: 10px 8px;
  }

  td {
    padding: 8px;
  }

  .quick-link {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
}

/* Mobile Friendly Table */
@media (max-width: 640px) {
    body.top-ten table {
        width: 100%;      
        font-size: 13px; 
    }

    body.top-ten table th,
    body.top-ten table td {
        padding: 8px 6px; 
    }

    body.top-ten h1 {
        font-size: 25px;
    }
}

/* TABLET & DESKTOP RESPONSIVE IMPROVEMENTS */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .opening-section {
    padding: 100px 40px;
  }

  #title {
    font-size: 4rem;
  }

  .tagline {
    font-size: 1.3rem;
  }

  .info-cards-container {
    gap: 25px;
  }

  .info-card {
    padding: 25px;
  }

  .car-options {
    gap: 20px;
  }

  .car-label {
    padding: 15px;
  }

  .start-button {
    padding: 18px 40px;
    font-size: 1.2rem;
  }

  table {
    font-size: 1rem;
  }

  th, td {
    padding: 12px 15px;
  }
}

/* Desktop (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .opening-section {
    padding: 90px 30px;
  }

  #title {
    font-size: 3.2rem;
  }

  .info-cards-container {
    gap: 20px;
  }

  .car-options {
    gap: 15px;
  }

  .start-button {
    padding: 16px 35px;
    font-size: 1.1rem;
  }

  table {
    font-size: 0.95rem;
  }
}

/* Tablet Portrait (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
  .header-container {
    flex-wrap: wrap;
  }

  .header-menu {
    gap: 15px;
    width: 100%;
    order: 3;
  }

  .opening-section {
    padding: 85px 25px 30px;
  }

  #title {
    font-size: 2.8rem;
  }

  .info-cards-container {
    gap: 15px;
    flex-direction: row;
  }

  .info-card {
    padding: 18px;
    flex: 1;
    min-width: 150px;
  }

  .car-options {
    gap: 12px;
    flex-wrap: wrap;
  }

  .car-label {
    flex: 0 1 calc(50% - 6px);
  }

  .start-button {
    padding: 15px 30px;
    font-size: 1.05rem;
  }

  .quick-links-container {
    flex-direction: row;
  }

  .quick-link {
    flex: 1;
  }
}

/* Small Tablet (481px - 599px) */
@media (min-width: 481px) and (max-width: 599px) {
  .header-container {
    padding: 0 12px;
  }

  .header-menu {
    gap: 12px;
  }

  .menu-link {
    font-size: 0.9rem;
    padding: 5px 10px;
  }

  .opening-section {
    padding: 75px 18px 25px;
  }

  #title {
    font-size: 2.3rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .info-cards-container {
    gap: 12px;
    flex-direction: column;
  }

  .info-card {
    padding: 16px;
  }

  .car-options {
    gap: 10px;
    justify-content: center;
  }

  .car-label {
    padding: 12px;
    flex: 0 1 calc(50% - 5px);
  }

  .start-button {
    padding: 13px 25px;
    font-size: 1rem;
  }

  #canvas {
    width: 88vw;
    height: 88vh;
    max-width: 550px;
    max-height: 620px;
  }

  .info {
    top: 75px;
    left: 13px;
    font-size: 0.95rem;
  }

  .level {
    top: 75px;
    right: 13px;
  }

  #level {
    font-size: 1.4rem;
  }

  .timer {
    left: 13px;
    bottom: 110px;
  }

  #countdown {
    font-size: 1.9rem;
  }

  #left, #right {
    width: 58px;
    height: 58px;
    font-size: 1.45rem;
  }
}

/* ULTRA MOBILE IMPROVEMENTS */

/* iPhone 12 Pro Max / Large Phones (411px - 480px) */
@media (min-width: 411px) and (max-width: 480px) {
  html, body {
    font-size: 14px;
  }

  .menu-header {
    padding: 0 8px;
  }

  .header-container {
    height: 55px;
    padding: 0 12px;
  }

  .header-title {
    font-size: 17px;
  }

  .header-menu {
    gap: 12px;
  }

  .menu-link {
    font-size: 0.88rem;
    padding: 5px 9px;
  }

  .welcome-text {
    font-size: 0.85rem;
  }

  .opening-section {
    padding: 70px 16px 25px;
  }

  #title {
    font-size: 2rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .info-cards-container {
    gap: 12px;
    flex-direction: column;
  }

  .info-card {
    padding: 15px;
    gap: 10px;
  }

  .info-icon {
    font-size: 2.2rem;
    min-width: 50px;
  }

  .info-title {
    font-size: 0.95rem;
  }

  .info-detail {
    font-size: 0.85rem;
  }

  .car-selection-container {
    gap: 12px;
  }

  .section-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }

  .car-options {
    gap: 10px;
    justify-content: center;
  }

  .car-label {
    padding: 11px;
    flex: 0 1 calc(50% - 5px);
    border-radius: 8px;
  }

  .car-img {
    width: 55px;
    height: 55px;
  }

  .car-name {
    font-size: 0.85rem;
    margin-top: 5px;
  }

  .start-button {
    padding: 13px 24px;
    font-size: 1rem;
    margin-top: 15px;
  }

  .quick-links-container {
    gap: 10px;
    flex-direction: column;
  }

  .quick-link {
    padding: 10px 15px;
    font-size: 0.85rem;
  }

  #canvas {
    width: 92vw;
    height: 92vh;
    max-width: 480px;
    max-height: 580px;
  }

  .info {
    top: 70px;
    left: 11px;
    right: 11px;
    font-size: 0.88rem;
    padding: 10px 12px;
  }

  #yourScore {
    font-size: 1.4rem;
  }

  .level {
    top: 70px;
    right: 11px;
    font-size: 0.83rem;
    padding: 8px 10px;
  }

  #level {
    font-size: 1.25rem;
  }

  .timer {
    left: 11px;
    bottom: 105px;
    padding: 8px 10px;
  }

  #countdown {
    font-size: 1.7rem;
  }

  #left, #right {
    width: 54px;
    height: 54px;
    font-size: 1.3rem;
    bottom: 12px;
  }

  .full-time-text {
    max-width: 88%;
    padding: 28px 18px;
  }

  .full-time-text > p:first-child {
    font-size: 1.7rem;
  }

  .stats {
    padding: 12px;
    gap: 12px;
  }

  .try-again-button,
  .main-menu-button {
    padding: 11px 18px;
    font-size: 0.9rem;
  }
}

/* Standard Phone (375px - 410px) */
@media (min-width: 375px) and (max-width: 410px) {
  html, body {
    font-size: 13px;
  }

  .header-container {
    height: 52px;
  }

  .header-title {
    font-size: 15px;
  }

  .menu-link {
    font-size: 0.82rem;
    padding: 4px 8px;
  }

  .opening-section {
    padding: 68px 15px 22px;
  }

  #title {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .info-cards-container {
    gap: 10px;
  }

  .info-card {
    padding: 13px;
  }

  .info-icon {
    font-size: 2rem;
    min-width: 45px;
  }

  .info-title {
    font-size: 0.9rem;
  }

  .info-detail {
    font-size: 0.8rem;
  }

  .car-label {
    padding: 10px;
    flex: 0 1 calc(50% - 4px);
  }

  .car-img {
    width: 50px;
    height: 50px;
  }

  .start-button {
    padding: 12px 22px;
    font-size: 0.95rem;
  }

  #canvas {
    width: 94vw;
    height: 94vh;
    max-width: 450px;
    max-height: 550px;
  }

  #yourScore {
    font-size: 1.3rem;
  }

  #level {
    font-size: 1.2rem;
  }

  #countdown {
    font-size: 1.6rem;
  }

  #left, #right {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }
}

/* Small Phone (320px - 374px) */
@media (max-width: 374px) {
  html, body {
    font-size: 12px;
  }

  .menu-header {
    border-bottom-width: 2px;
  }

  .header-container {
    height: 50px;
    padding: 0 8px;
  }

  .header-logo {
    gap: 8px;
  }

  .logo-img {
    height: 38px;
  }

  .header-title {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .header-menu {
    gap: 8px;
  }

  .menu-link {
    font-size: 0.75rem;
    padding: 4px 6px;
  }

  .welcome-text {
    display: none;
  }

  .audio-btn i {
    font-size: 14px;
  }

  .opening-section {
    padding: 65px 12px 20px;
  }

  #title {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .info-cards-container {
    gap: 8px;
    flex-direction: column;
  }

  .info-card {
    padding: 12px;
    border-radius: 8px;
    gap: 8px;
  }

  .info-icon {
    font-size: 1.8rem;
    min-width: 40px;
  }

  .info-title {
    font-size: 0.85rem;
  }

  .info-detail {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .car-options {
    gap: 8px;
  }

  .car-label {
    padding: 8px;
    flex: 0 1 calc(50% - 4px);
    border-radius: 6px;
  }

  .car-img {
    width: 45px;
    height: 45px;
  }

  .car-name {
    font-size: 0.75rem;
  }

  .start-button {
    padding: 11px 20px;
    font-size: 0.9rem;
    margin-top: 12px;
  }

  .quick-links-container {
    gap: 8px;
    flex-direction: column;
  }

  .quick-link {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  #canvas {
    width: 96vw;
    height: 96vh;
    max-width: 420px;
    max-height: 520px;
  }

  .info {
    top: 65px;
    left: 8px;
    right: 8px;
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  #yourScore {
    font-size: 1.2rem;
  }

  .level {
    top: 65px;
    right: 8px;
    font-size: 0.8rem;
    padding: 7px 9px;
  }

  #level {
    font-size: 1.1rem;
  }

  .timer {
    left: 8px;
    bottom: 100px;
    padding: 7px 9px;
  }

  #countdown {
    font-size: 1.5rem;
  }

  #left, #right {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 10px;
  }

  .full-time {
    padding: 15px;
  }

  .full-time-text {
    max-width: 92%;
    padding: 24px 16px;
    border-radius: 12px;
  }

  .full-time-text > p:first-child {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .stats {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }

  .try-again-button,
  .main-menu-button {
    padding: 10px 16px;
    font-size: 0.85rem;
    width: 100%;
  }

  .all-together {
    gap: 8px;
  }

  .all-together > a {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  table {
    width: 100%;
    font-size: 0.8rem;
  }

  th, td {
    padding: 6px 4px;
  }

  .page-title {
    font-size: 1.6rem;
  }
}

