* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1b2735, #090a0f);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Segoe UI", Arial, sans-serif;
  overflow: hidden;
}


.main-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 20px;
  flex-wrap: wrap;
}


.game-area {
  text-align: center;
  position: relative;
}

.title {
  color: #00f5ff;
  margin-bottom: 10px;
  letter-spacing: 3px;
  font-size: 28px;
  text-shadow: 0 0 10px #00f5ff;
}

.score-board {
  color: white;
  font-size: 26px;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

canvas {
  background: black;
  border: 3px solid #00f5ff;
  box-shadow: 
    0 0 20px #00f5ff,
    0 0 40px rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

.difficulty-panel,
.side-panel {
  color: white;
  text-align: center;
}

.difficulty-panel h3 {
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.difficulty-panel button,
.side-panel button,
.game-over button {
  display: block;
  margin: 10px auto;
  padding: 10px 18px;
  cursor: pointer;
  border: none;
  font-weight: bold;
  background: #00f5ff;
  color: black;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #00f5ff;
}

.difficulty-panel button:hover,
.side-panel button:hover,
.game-over button:hover {
  background: white;
  transform: scale(1.05);
}

.game-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  color: #00f5ff;
  padding: 30px;
  border-radius: 12px;
  border: 2px solid #00f5ff;
  box-shadow: 0 0 25px #00f5ff;
  display: none;
  text-align: center;
  width: 80%;
  max-width: 300px;
}

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

@media (max-width: 900px) {
  .main-container {
    flex-direction: column;
    gap: 20px;
  }

  .title {
    font-size: 22px;
  }

  .score-board {
    font-size: 22px;
  }
}

@media (max-width: 500px) {
  canvas {
    width: 95vw;
    height: auto;
  }

  .title {
    font-size: 18px;
  }

  .score-board {
    font-size: 18px;
  }

  .difficulty-panel button,
  .side-panel button {
    padding: 8px 14px;
    font-size: 14px;
  }
}