html,
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  font-family: "Arial", sans-serif;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  padding: 10px;
  background: #1a1a2e;
  border: 3px solid #16213e;
  border-radius: 20px;
}

.game-area {
  position: relative;
  width: 90vw;
  height: 80vh;
  max-width: 800px;
  max-height: 600px;
  background: #0f3460;
  border-radius: 15px;
  border: 3px solid #e94560;
  overflow: hidden;
}

.bricks-container {
  position: relative;
  display: block;
}

.brick {
  position: absolute;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.brick::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(255, 255, 255, 0.3);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
}

/* Brick colors */
.brick-red {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.brick-orange {
  background: linear-gradient(45deg, #f39c12, #e67e22);
}

.brick-yellow {
  background: linear-gradient(45deg, #f1c40f, #f39c12);
}

.brick-green {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.brick-blue {
  background: linear-gradient(45deg, #3498db, #2980b9);
}

.brick-purple {
  background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.ball {
  position: absolute;
  width: 2.5vw;
  height: 2.5vw;
  max-width: 16px;
  max-height: 16px;
  background: radial-gradient(circle at 30% 30%, #fff, #c59a55);
  box-shadow: 0 0 15px rgba(214, 167, 91, 0.8);
  border-radius: 50%;
}

.paddle {
  position: absolute;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #fff;
}

.game-title {
  text-align: center;
  font-size: clamp(16px, 4vw, 28px);
  color: #f39c12;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}


.score-lives {
  margin-bottom: 20px;
  padding: 15px 5px;
  background: #0f3460;
  border-radius: 15px;
  border: 2px solid #e94560;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: clamp(13px, 1vw, 20px);
  font-weight: bold;
}

.score,
.lives {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.score-value,
.lives-value {
  color: #f39c12;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.controls {
  display: flex;
  gap: 15px;
}

.heart {
  color: #e94560;
  font-size: clamp(15px, 2vw, 18px);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.trophy {
  color: #f39c12;
  font-size: clamp(15px, 2vw, 18px);
}

.game-message {
  padding: 20px;
  position: absolute;
  color: white;
  width: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  z-index: 10;
  display: none;
}

.start-message {
  font-size: 18px;
  color: #f39c12;
  margin-top: 10px;
}

@keyframes floatDown {
  from {
    transform: translateY(-10px);
  }

  to {
    transform: translateY(50vh);
  }
}


.hidden {
  display: none;
}

.image {
  text-align: center;
  padding: 20px;
  position: absolute;
  background-color: #1a1a2e;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  border-radius: 15px;
  border: 1px solid #0f3460;
  z-index: 500;
}


h1 {
  font-size: 30px;
  color: wheat;
  margin-bottom: 30px;
}

h1 span {
  margin: 0 10px;
}

p {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 0;
}

.space-text {
  font-size: 28px;
  color: #fdb827;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .image {
    width: 70%;
  }

  h1 {
    font-size: 30px;
  }

}

@media (max-width: 500px) {
  h1 {
    font-size: 25px;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 18px;
  }
}

#continueBtn ,#restartBtn{
  font-size: 18px;
  cursor: pointer;
  margin: 2px 0;
  background-color: rgb(26, 24, 24);
  color: white;
  border-radius: 12px;
  border: 1px solid yellow;
  width: 150px;
  padding: 10px;
}