body {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: linear-gradient(180deg, #1a2a6c, #b21f1f, #fdbb2d);
  background-size: 400% 400%;
  animation: gradient-animation 15s ease infinite;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  z-index: 2;
  text-align: center;
  padding: 10px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-family: 'Roboto', sans-serif;
  color: #333;
}

#pause-message{
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  z-index: 2;
  text-align: center;
  padding: 20px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-family: 'Roboto', sans-serif;
  color: #333;
}

.paused{
  margin-top: 20px;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  margin-top:10px;
  background: linear-gradient(135deg, gray,black);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

#end-screen{
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  z-index: 2;
  text-align: center;
  padding: 10px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-family: 'Roboto', sans-serif;
}

#pause-message kbd {
  display: inline-block;
  padding: 5px 8px;
  font-size: 7px;
  font-weight: 700;
  color: #fff;
  background: #555;
  border-radius: 4px;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

#pause-message button {
  margin-top: 20px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #007b1e, #00a74f);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#info kbd {
  display: inline-block;
  padding: 5px 8px;
  font-size: 7px;
  font-weight: 700;
  color: #fff;
  background: #555;
  border-radius: 4px;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

#info strong {
  color: #111;
}

#info button {
  margin-top: 20px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #007b1e, #00a74f);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#info button:hover {
  background: linear-gradient(135deg, #005f14, #008c3a);
  box-shadow: 0 4px 10px rgba(0, 128, 0, 0.4);
}

#info button:active {
  transform: scale(0.96);
}

#score {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 10px 15px;
  color: rgb(0, 0, 0);
  z-index: 1;
  background-color: #50000023;
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-family: 'Arial', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

#score:before {
  content: '\1F3C6';
  margin-right: 8px;
  font-size: 20px;
}

#gameBody {
  position: relative;
  height: 100vh;
  max-height: 99vh;
  width: 360px;
  background: linear-gradient(135deg, #1a1a1a, #333333);
  display: grid;
  border: 2px solid #444;
  grid-template-columns: 1fr 1fr;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

#leftTracks,
#rightTracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  height: 100%;
}
#car1,
#car2 {
  position: absolute;
  height: 90px;
  width: 50px;
  bottom: 20px;
  z-index: 1;
  transform-origin: 50%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
}

#car1 {
  background-image: url("./asset/car.png");
}

#car2 {
  background-image: url("./asset/car.png");
  filter: hue-rotate(180deg);
}

#llTrack,
#lrTrack,
#rlTrack,
#rrTrack {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}
#llTrack {
  background: #bbe8ff;
}

#lrTrack {
  background: #79acce;
}

#rlTrack {
  background: #ffbbbb;
}

#rrTrack {
  background: #ff7d7b;
}

#stone,
#coin {
  position: absolute;
  height: 50px;
  width: 50px;
  left: 20px;
  top: -50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
}

#coin {
  border-radius: 50%;
  background: yellow;
  background-image: url("./asset/coin.png");
}

#stone {
  background: rgb(81, 58, 0);
  background-image: url("./asset/stone.jpg");
}