* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background: #9de1e2;
  color: #080606;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.hidden {
  display: none;
}

#start-screen {
  text-align: center;
}

#start-screen img {
  max-width: 800px;
  display: block;
  margin: 0 auto 20px;
}

#start-btn {
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 10px;
  border: none;
  background: #0c805d;
  color: rgb(230, 170, 233);
  transition: 0.3s;
}

#start-btn:hover {
  background: #96c7c7;
}

#car-selection {
  text-align: center;
}

#car-selection h2 {
  margin-bottom: 20px;
}


.car-option {
  padding: 10px 20px;
  margin: 10px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 10px;
  border: none;
  background: #52c7cd;
  color: rgb(224, 44, 194);
  transition: 0.3s;
}

.car-option:hover {
  background: #567ea6;
}

#game-container {
  position: relative;
  text-align: center;
}

#hud {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  font-size: 20px;
  font-weight: bold;
  background: rgba(239, 233, 233, 0.6);
  padding: 5px 15px;
  border-radius: 10px;
  z-index: 5;
}

#gameCanvas {
  background: url("../assets/race-track.png") no-repeat center/cover;
  border: 3px solid #4d2626;
  border-radius: 10px;
  margin-top: 50px;
  width: 800px;    
  height: 600px;   
}
#buttons {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 10; 
}

.color-btn {
  width: 70px;
  height: 70px;
  cursor: pointer;
  transition: transform 0.2s;
}

.color-btn:hover {
  transform: scale(1.1);
}

#result-screen {
  text-align: center;
}

#result-text {
  font-size: 80px;
  margin-bottom: 20px;
}

#play-again-btn {
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 10px;
  border: none;
  background: #96d1c4;
  color: #000;
  transition: 0.3s;
}

#play-again-btn:hover {
  background: #f1c951;
}
