@import url('https://fonts.googleapis.com/css?family=Heebo:300,400&display=swap');

* {  
  box-sizing: border-box;
  outline: none; 
}

:root {
  --primary-color: #000000;
  --secondary-color: #ffffff;
  --game-over-bg: rgba(0, 0, 0, 0.7);
}

body {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #000000;
  font-family: 'Heebo', sans-serif;
  font-size: 0.8rem;
  color: var(--secondary-color);
  margin: 0;
  padding: 0;
}

#splashScreen {
  position: absolute;  
  width: 100vw;  
  height: 100vh;  
  background-color: rgba(0, 0, 0, 0.8);  
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; 
  padding: 0;
  margin: 0;
}

#splashScreen img {
  position: absolute;  
  width: 100vw;  
  height: 100vh;  
  z-index: 9999;
  padding: 0;
  margin: 0;
}



/* Speed Slider */
.slider {
  position: relative;
  top: 0;
  align-items: center;
  z-index: 9998;
  width: 100%;
}

#showGameSpeed {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  z-index: 9999;
  color: white;
}


#container {
  position: absolute;
  width: 800px;
  height: 700px;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  overflow: hidden;
  position: relative;
}

#canvas1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#slider {
  width: 100%;
}

.character {
  margin: 0;
  padding: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.character img {
  height: 200px;
  width: auto;
}

.character .fire {
  position: absolute;
  top: 35%;
  left: 40%;
  transform: translate(-50%, -50%);
  display: none;
  margin: 0;
  height: 550px;
  width: auto;
}

.fire {
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.random-block {
  margin: 0;
  padding: 0;
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  animation: moveBlock 5s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes moveBlock {
  from {
    transform: translateX(800px);
  }
  to {
    transform: translateX(-50px);
  }
}

.game-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--game-over-bg);
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  color: white;
  display: none;
}

.game-over h1 {
  margin-bottom: 10px;
}

.game-over p {
  margin-bottom: 20px;
}

.game-over button {
  padding: 10px 20px;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.game-over button:hover {
  background-color: #f0f0f0;
}
